@nebula.js/cli-serve 7.3.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eHub.js CHANGED
@@ -99,5 +99,5 @@
99
99
  animation: ${Ic} 1.4s linear infinite;
100
100
  `:null,Tc="string"!=typeof Nc?aa`
101
101
  animation: ${Nc} 1.4s ease-in-out infinite;
102
- `:null,Mc=_r("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Vr(n.color)}`]]}})(Xa(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Rc||{animation:`${Ic} 1.4s linear infinite`}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Oc=_r("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qc=_r("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Vr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xa(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Tc||{animation:`${Nc} 1.4s ease-in-out infinite`}}]}))),Pc=_r("circle",{name:"MuiCircularProgress",slot:"Track"})(Xa(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Bc=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:r=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:h="indeterminate",...u}=n,g={...n,color:o,disableShrink:s,size:a,thickness:c,value:d,variant:h,enableTrackSlot:r},p=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e;return Lt({root:["root",n,`color${Vr(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Vr(n)}`,o&&"circleDisableShrink"]},Ec,t)})(g),m={},f={},b={};if("determinate"===h){const e=2*Math.PI*((Dc-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,f.transform="rotate(-90deg)"}return(0,_t.jsx)(Mc,{className:kt(p.root,i),style:{width:a,height:a,...f,...l},ownerState:g,ref:t,role:"progressbar",...b,...u,children:(0,_t.jsxs)(Oc,{className:p.svg,ownerState:g,viewBox:"22 22 44 44",children:[r?(0,_t.jsx)(Pc,{className:p.track,ownerState:g,cx:Dc,cy:Dc,r:(Dc-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,(0,_t.jsx)(qc,{className:p.circle,style:m,ownerState:g,cx:Dc,cy:Dc,r:(Dc-c)/2,fill:"none",strokeWidth:c})]})})}),Fc=Bc;function Wc(e){return Er("MuiIconButton",e)}const zc=Dr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Vc=_r(Lc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Vr(n.color)}`],n.edge&&t[`edge${Vr(n.edge)}`],t[`size${Vr(n.size)}`]]}})(Xa(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xa(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${zc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${zc.loading}`]:{color:"transparent"}}))),Hc=_r("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),jc=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:r="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium",id:d,loading:h=null,loadingIndicator:u,...g}=n,p=Ul(d),m=u??(0,_t.jsx)(Fc,{"aria-labelledby":p,color:"inherit",size:16}),f={...n,edge:i,color:r,disabled:a,disableFocusRipple:l,loading:h,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:i,edge:o,size:s,loading:r}=e;return Lt({root:["root",r&&"loading",n&&"disabled","default"!==i&&`color${Vr(i)}`,o&&`edge${Vr(o)}`,`size${Vr(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Wc,t)})(f);return(0,_t.jsxs)(Vc,{id:h?p:d,className:kt(b.root,s),centerRipple:!0,focusRipple:!l,disabled:a||h,ref:t,...g,ownerState:f,children:["boolean"==typeof h&&(0,_t.jsx)("span",{className:b.loadingWrapper,style:{display:"contents"},children:(0,_t.jsx)(Hc,{className:b.loadingIndicator,ownerState:f,children:h&&m})}),o]})}),Uc=jc;function $c(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}const Gc=(e,t,n)=>{const i=e.keys[0];var o,s;Array.isArray(t)?t.forEach((t,i)=>{n((t,n)=>{i<=e.keys.length-1&&(0===i?Object.assign(t,n):t[e.up(e.keys[i])]=n)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,s=Object.keys(t),o.filter(e=>s.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const s=t[o];void 0!==s&&n((t,n)=>{i===o?Object.assign(t,n):t[e.up(o)]=n},s)}}):"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t)};function Kc(e){return`--Grid-${e}Spacing`}function Qc(e){return`--Grid-parent-${e}Spacing`}const Yc="--Grid-columns",Zc="--Grid-parent-columns",Xc=({theme:e,ownerState:t})=>{const n={};return Gc(e.breakpoints,t.size,(e,t)=>{let i={};"grow"===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Zc}) - (var(${Zc}) - ${t}) * (var(${Qc("column")}) / var(${Zc})))`}),e(n,i)}),n},Jc=({theme:e,ownerState:t})=>{const n={};return Gc(e.breakpoints,t.offset,(e,t)=>{let i={};"auto"===t&&(i={marginLeft:"auto"}),"number"==typeof t&&(i={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Zc}) + var(${Qc("column")}) * ${t} / var(${Zc}))`}),e(n,i)}),n},ed=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Yc]:12};return Gc(e.breakpoints,t.columns,(e,t)=>{const i=t??12;e(n,{[Yc]:i,"> *":{[Zc]:i}})}),n},td=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gc(e.breakpoints,t.rowSpacing,(t,i)=>{const o="string"==typeof i?i:e.spacing?.(i);t(n,{[Kc("row")]:o,"> *":{[Qc("row")]:o}})}),n},nd=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gc(e.breakpoints,t.columnSpacing,(t,i)=>{const o="string"==typeof i?i:e.spacing?.(i);t(n,{[Kc("column")]:o,"> *":{[Qc("column")]:o}})}),n},id=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gc(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},od=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Kc("row")}) var(${Kc("column")})`}}),sd=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},rd=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,i])=>{n(i)&&t.push(`spacing-${e}-${String(i)}`)}),t}return[]},ad=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],ld=Lo(),cd=Br("div",{name:"MuiGrid",slot:"Root"});function dd(e){return Pr({props:e,name:"MuiGrid",defaultTheme:ld})}const hd=function(e={}){const{createStyledComponent:n=cd,useThemeProps:i=dd,useTheme:o=qr,componentName:s="MuiGrid"}=e;function r(e,t,n=()=>!0){const i={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(i[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(i[t]=o)}):i[t.keys[0]]=e),i}const a=n(ed,nd,td,Xc,id,od,Jc),l=t.forwardRef(function(e,n){const l=o(),c=$a(i(e));!function(e,t){const n=[];void 0!==e.item&&(delete e.item,n.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(t=>{void 0!==e[t]&&(n.push(t),delete e[t])})}(c,l.breakpoints);const{className:d,children:h,columns:u=12,container:g=!1,component:p="div",direction:m="row",wrap:f="wrap",size:b={},offset:v={},spacing:C=0,rowSpacing:_=C,columnSpacing:y=C,unstable_level:w=0,...A}=c,S=r(b,l.breakpoints,e=>!1!==e),x=r(v,l.breakpoints),k=e.columns??(w?void 0:u),L=e.spacing??(w?void 0:C),E=e.rowSpacing??e.spacing??(w?void 0:_),D=e.columnSpacing??e.spacing??(w?void 0:y),I={...c,level:w,columns:k,container:g,direction:m,wrap:f,spacing:L,rowSpacing:E,columnSpacing:D,size:S,offset:x},N=((e,t)=>{const{container:n,direction:i,spacing:o,wrap:r,size:a}=e;return Lt({root:["root",n&&"container","wrap"!==r&&`wrap-xs-${String(r)}`,...ad(i),...sd(a),...n?rd(o,t.breakpoints.keys[0]):[]]},e=>Er(s,e),{})})(I,l);return(0,_t.jsx)(a,{ref:n,as:p,ownerState:I,className:kt(N.root,d),...A,children:t.Children.map(h,e=>t.isValidElement(e)&&$c(e,["Grid"])&&g&&e.props.container?t.cloneElement(e,{unstable_level:e.props?.unstable_level??w+1}):e)})});return l.muiName="Grid",l}({createStyledComponent:_r("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Sr({props:e,name:"MuiGrid"}),useTheme:Ur}),ud=hd,gd=function(e){return(0,_t.jsx)(ha,{...e,defaultTheme:fr,themeId:br})};function pd(e){return Er("MuiTypography",e)}const md=Dr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),fd={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},bd=$a,vd=_r("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${Vr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Xa(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Vr(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),Cd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_d=t.forwardRef(function(e,t){const{color:n,...i}=Sr({props:e,name:"MuiTypography"}),o=bd({...i,...!fd[n]&&{color:n}}),{align:s="inherit",className:r,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:u=Cd,...g}=o,p={...o,align:s,color:n,className:r,component:a,gutterBottom:l,noWrap:c,paragraph:d,variant:h,variantMapping:u},m=a||(d?"p":u[h]||Cd[h])||"span",f=(e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:r}=e;return Lt({root:["root",s,"inherit"!==e.align&&`align${Vr(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]},pd,r)})(p);return(0,_t.jsx)(vd,{as:m,ref:t,className:kt(f.root,r),...g,ownerState:p,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...g.style}})}),yd=_d;function wd(e){return Er("MuiLink",e)}const Ad=Dr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Sd=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const i=Ii(e,`palette.${n}.main`)||Ii(e,`palette.${n}`)||t.color;return e.alpha(i,.4)}const i=Ii(e,`palette.${n}.main`,!1)||Ii(e,`palette.${n}`,!1)||t.color,o=Ii(e,`palette.${n}.mainChannel`)||Ii(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ho(i,.4)},xd={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},kd=_r(yd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Vr(n.underline)}`],"button"===n.component&&t.button]}})(Xa(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"===t.color,style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ad.focusVisible}`]:{outline:"auto"}}}]}))),Ld=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiLink"}),o=Ur(),{className:s,color:r="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:d,underline:h="always",variant:u="inherit",sx:g,...p}=i,[m,f]=t.useState(!1),b={...i,color:r,component:a,focusVisible:m,underline:h,variant:u},v=(e=>{const{classes:t,component:n,focusVisible:i,underline:o}=e;return Lt({root:["root",`underline${Vr(o)}`,"button"===n&&"button",i&&"focusVisible"]},wd,t)})(b);return(0,_t.jsx)(kd,{color:r,className:kt(v.root,s),classes:d,component:a,onBlur:e=>{Gl(e.target)||f(!1),l&&l(e)},onFocus:e=>{Gl(e.target)&&f(!0),c&&c(e)},ref:n,ownerState:b,variant:u,...p,sx:[...void 0===xd[r]?[{color:r}]:[],...Array.isArray(g)?g:[g]],style:{...p.style,..."always"===h&&"inherit"!==r&&!xd[r]&&{"--Link-underlineColor":Sd({theme:o,ownerState:b})}}})}),Ed=Ld;var Dd=n(80494);var Id="unmounted",Nd="exited",Rd="entering",Td="entered",Md="exiting",Od=function(e){function n(t,n){var i;i=e.call(this,t,n)||this;var o,s=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?s?(o=Nd,i.appearStatus=Rd):o=Td:o=t.unmountOnExit||t.mountOnEnter?Id:Nd,i.state={status:o},i.nextCallback=null,i}ic(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Id?{status:Nd}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Rd&&n!==Td&&(t=Rd):n!==Rd&&n!==Td||(t=Md)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Rd){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Dd.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nd&&this.setState({status:Id})},i.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[Dd.findDOMNode(this),i],s=o[0],r=o[1],a=this.getTimeouts(),l=i?a.appear:a.enter;e||n?(this.props.onEnter(s,r),this.safeSetState({status:Rd},function(){t.props.onEntering(s,r),t.onTransitionEnd(l,function(){t.safeSetState({status:Td},function(){t.props.onEntered(s,r)})})})):this.safeSetState({status:Td},function(){t.props.onEntered(s)})},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:Dd.findDOMNode(this);t?(this.props.onExit(i),this.safeSetState({status:Md},function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Nd},function(){e.props.onExited(i)})})})):this.safeSetState({status:Nd},function(){e.props.onExited(i)})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Dd.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=o[0],r=o[1];this.props.addEndListener(s,r)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Id)return null;var n=this.props,i=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,ec(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(oc.Provider,{value:null},"function"==typeof i?i(e,o):t.cloneElement(t.Children.only(i),o))},n}(t.Component);function qd(){}Od.contextType=oc,Od.propTypes={},Od.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qd,onEntering:qd,onEntered:qd,onExit:qd,onExiting:qd,onExited:qd},Od.UNMOUNTED=Id,Od.EXITED=Nd,Od.ENTERING=Rd,Od.ENTERED=Td,Od.EXITING=Md;const Pd=Od,Bd=e=>e.scrollTop;function Fd(e,t){return n=>{if(t){const i=e.current;void 0===n?t(i):t(i,n)}}}function Wd(e,t,n,i,o,s){const r="exited"!==e||t?n[e]||n.exited:i;return o||s?{...r,...o,...s}:r}function zd(e,t){const{timeout:n,easing:i,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof i?i[t.mode]:i),delay:o.transitionDelay}}function Vd(e){return Er("MuiCollapse",e)}Dr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Hd=_r("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]}})(Xa(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),jd=_r("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ud=_r("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),$d=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiCollapse"}),{addEndListener:o,children:s,className:r,collapsedSize:a="0px",component:l,easing:c,in:d,onEnter:h,onEntered:u,onEntering:g,onExit:p,onExited:m,onExiting:f,orientation:b="vertical",slots:v={},slotProps:C={},style:_,timeout:y=Gs.standard,TransitionComponent:w=Pd,...A}=i,S={...i,orientation:b,collapsedSize:a},x=(e=>{const{orientation:t,classes:n}=e;return Lt({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},Vd,n)})(S),k=Ur(),L=gc(),E=t.useRef(null),D=t.useRef(),I="number"==typeof a?`${a}px`:a,N="horizontal"===b,R=N?"width":"height",T=t.useRef(null),M=Kl(n,T),O=()=>E.current?E.current[N?"clientWidth":"clientHeight"]:0,q=Fd(T,(e,t)=>{E.current&&N&&(E.current.style.position="absolute"),e.style[R]=I,h&&h(e,t)}),P=Fd(T,(e,t)=>{const n=O();E.current&&N&&(E.current.style.position="");const{duration:i,easing:o}=zd({style:_,timeout:y,easing:c},{mode:"enter"});if("auto"===y){const t=k.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,D.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[R]=`${n}px`,e.style.transitionTimingFunction=o,g&&g(e,t)}),B=Fd(T,(e,t)=>{e.style[R]="auto",u&&u(e,t)}),F=Fd(T,e=>{e.style[R]=`${O()}px`,p&&p(e)}),W=Fd(T,m),z=Fd(T,e=>{const t=O(),{duration:n,easing:i}=zd({style:_,timeout:y,easing:c},{mode:"exit"});if("auto"===y){const n=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,D.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[R]=I,e.style.transitionTimingFunction=i,f&&f(e)}),V={slots:v,slotProps:C,component:l},[H,j]=Nl("root",{ref:M,className:kt(x.root,r),elementType:Hd,externalForwardedProps:V,ownerState:S,additionalProps:{style:{[N?"minWidth":"minHeight"]:I,..._}}}),[U,$]=Nl("wrapper",{ref:E,className:x.wrapper,elementType:jd,externalForwardedProps:V,ownerState:S}),[G,K]=Nl("wrapperInner",{className:x.wrapperInner,elementType:Ud,externalForwardedProps:V,ownerState:S});return(0,_t.jsx)(w,{in:d,onEnter:q,onEntered:B,onEntering:P,onExit:F,onExited:W,onExiting:z,addEndListener:e=>{"auto"===y&&L.start(D.current||0,e),o&&o(T.current,e)},nodeRef:T,timeout:"auto"===y?null:y,...A,children:(e,{ownerState:t,...n})=>{const i={...S,state:e};return(0,_t.jsx)(H,{...j,className:kt(j.className,{entered:x.entered,exited:!d&&"0px"===I&&x.hidden}[e]),ownerState:i,...n,children:(0,_t.jsx)(U,{...$,ownerState:i,children:(0,_t.jsx)(G,{...K,ownerState:i,children:s})})})}})});$d&&($d.muiSupportAuto=!0);const Gd=$d,Kd=({showGuid:e})=>(0,_t.jsxs)(Gd,{in:e,children:[(0,_t.jsx)(yd,{variant:"h6",gutterBottom:!0,style:{marginTop:"1rem"},children:"WebSocket URL"}),(0,_t.jsx)(yd,{variant:"body2",paragraph:!0,children:"The development server needs to connect to and communicate with the Qlik Associative Engine running within any of Qlik's product offerings. The connection is done through the WebSocket protocol using a WebSocket URL format that differs slightly between products. Enter the WebSocket URL that corresponds to the Qlik product you are using."}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"Qlik Cloud Services"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:[(0,_t.jsx)("b",{children:"Web integration id format:"}),"There are two ways in order to connect through WebSocket:",(0,_t.jsx)("br",{}),"1. ",(0,_t.jsx)("code",{children:"qlik-web-integration-id"}),(0,_t.jsx)("br",{}),"2. ",(0,_t.jsx)("code",{children:"qlik-client-id"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"Web integration id:"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("code",{children:"wss://<tenant>.<region>.qlikcloud.com?qlik-web-integration-id=<web-integration-id>"}),(0,_t.jsx)("br",{}),"Example: ",(0,_t.jsx)("code",{children:"wss://qlik.eu.qlikcloud.com?qlik-web-integration-id=xxx"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),"For more info, visit"," ",(0,_t.jsx)(Ed,{color:"secondary",underline:"always",href:"https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-adminster-web-integrations.htm",children:"Managing web integrations"}),"."]}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:[(0,_t.jsx)("b",{children:"OAuth Client ID URL format:"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("code",{children:"wss://<tenant>.<region>.qlikcloud.com?qlik-client-id=<client-id>"}),(0,_t.jsx)("br",{}),"Example: ",(0,_t.jsx)("code",{children:"wss://qlik.eu.qlikcloud.com?qlik-client-id=xxx"}),(0,_t.jsx)("br",{}),"Redirect URL form: ",(0,_t.jsx)("code",{children:"http://localhost:8000/auth/login/callback"}),(0,_t.jsx)("br",{}),"The ",(0,_t.jsx)("code",{children:"qlik-web-integration-id"})," ",(0,_t.jsx)("b",{children:"OR"})," ",(0,_t.jsx)("code",{children:"qlik-client-id"})," must be present in order for QCS to confirm that the request originates from a whitelisted domain.",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{})]}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"Qlik Sense on Windows"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:["WebSocket URL format: ",(0,_t.jsx)("code",{children:"wss://<sense-host.com>/<virtual-proxy-prefix>"}),(0,_t.jsx)("br",{}),"Example: ",(0,_t.jsx)("code",{children:"wss://mycompany.com/bi"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),"Note that for the Qlik Sense Proxy to allow sessions from this webpage,",(0,_t.jsx)("code",{children:window.location.host})," needs to be whitelisted in QMC in your Qlik Sense on Windows deployment. In addition, you need to enable ",(0,_t.jsx)("i",{children:"Has secure attribute"})," and set ",(0,_t.jsx)("i",{children:"SameSite attribute"})," to ",(0,_t.jsx)("i",{children:"None"}),".",(0,_t.jsx)("br",{}),'Also some "Additional reponse headers" needs to align with the whitelisted domain:',(0,_t.jsxs)("ul",{children:[(0,_t.jsxs)("li",{children:["Access-Control-Allow-Origin: ",(0,_t.jsx)("code",{children:window.location.host})]}),(0,_t.jsx)("li",{children:"Access-Control-Allow-Credentials: true"}),(0,_t.jsx)("li",{children:"Access-Control-Expose-Headers: qlik-csrf-token"})]}),"Make sure you are logged in to Qlik Sense in another browser tab."]}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"Qlik Sense Desktop"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:["WebSocket URL format: ",(0,_t.jsx)("code",{children:"ws://localhost:4848"})]})]});function Qd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Yd({size:e,style:t={},viewBox:n="0 0 16 16",shapes:i=[]}){const o={fontSize:Qd(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...t};return(0,_t.jsx)("i",{style:o,children:(0,_t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:n,fill:"currentColor",children:i.map(({type:e,attrs:t},n)=>(0,_t.jsx)(e,{...t},n))})})}const Zd=e=>Yd((e=>({...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));n.dn(Zd);const Xd=t.createContext({});function Jd(e){return Er("MuiList",e)}Dr("MuiList",["root","padding","dense","subheader"]);const eh=_r("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),th=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiList"}),{children:o,className:s,component:r="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...d}=i,h=t.useMemo(()=>({dense:a}),[a]),u={...i,component:r,dense:a,disablePadding:l},g=(e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return Lt({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},Jd,t)})(u);return(0,_t.jsx)(Xd.Provider,{value:h,children:(0,_t.jsxs)(eh,{as:r,className:kt(g.root,s),ref:n,ownerState:u,...d,children:[c,o]})})}),nh=th,ih=Jr;function oh(e){return Er("MuiListItemButton",e)}const sh=Dr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),rh=_r(Lc,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Xa(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${sh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${sh.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${sh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ah=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:r="div",children:a,dense:l=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:h,selected:u=!1,className:g,...p}=i,m=t.useContext(Xd),f=t.useMemo(()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c}),[o,m.dense,l,c]),b=t.useRef(null);ih(()=>{s&&b.current&&b.current.focus()},[s]);const v={...i,alignItems:o,dense:f.dense,disableGutters:c,divider:d,selected:u},C=(e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:s,divider:r,selected:a}=e,l=Lt({root:["root",i&&"dense",!s&&"gutters",r&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",a&&"selected"]},oh,n);return{...n,...l}})(v),{root:_,...y}=C,w=Kl(b,n);return(0,_t.jsx)(Xd.Provider,{value:f,children:(0,_t.jsx)(rh,{ref:w,href:p.href||p.to,component:(p.href||p.to)&&"div"===r?"button":r,focusVisibleClassName:kt(C.focusVisible,h),ownerState:v,className:kt(C.root,g),...p,classes:y,children:a})})}),lh=ah;function ch(e){return Er("MuiListItemText",e)}const dh=Dr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hh=_r("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dh.primary}`]:t.primary},{[`& .${dh.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${md.root}:where(& .${dh.primary})`]:{display:"block"},[`.${md.root}:where(& .${dh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),uh=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:r=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h,slots:u={},slotProps:g={},...p}=i,{dense:m}=t.useContext(Xd);let f=null!=l?l:o,b=d;const v={...i,disableTypography:r,inset:a,primary:!!f,secondary:!!b,dense:m},C=(e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:s}=e;return Lt({root:["root",n&&"inset",s&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},ch,t)})(v),_={slots:u,slotProps:{primary:c,secondary:h,...g}},[y,w]=Nl("root",{className:kt(C.root,s),elementType:hh,externalForwardedProps:{..._,...p},ownerState:v,ref:n}),[A,S]=Nl("primary",{className:C.primary,elementType:yd,externalForwardedProps:_,ownerState:v}),[x,k]=Nl("secondary",{className:C.secondary,elementType:yd,externalForwardedProps:_,ownerState:v});return null==f||f.type===yd||r||(f=(0,_t.jsx)(A,{variant:m?"body2":"body1",component:S?.variant?void 0:"span",...S,children:f})),null==b||b.type===yd||r||(b=(0,_t.jsx)(x,{variant:"body2",color:"textSecondary",...k,children:b})),(0,_t.jsxs)(y,{...w,children:[f,b]})}),gh=uh,ph=({item:e,info:t})=>!(!t||(!t.isClientIdProvided&&!t.isWebIntegrationIdProvided||!e.includes("localhost"))&&(t.isClientIdProvided?e.includes("qlik-client-id"):!t.isWebIntegrationIdProvided||e.includes("qlik-web-integration-id"))),mh=()=>{const e=le(),{info:t,setError:n,cachedConnectionsData:i}=At();return i.cachedConnections.length?(0,_t.jsxs)(Qa,{mb:2,children:[(0,_t.jsx)(yd,{variant:"h6",children:"Previous connections"}),(0,_t.jsx)(nh,{children:i.cachedConnections.map(o=>(0,_t.jsxs)(lh,{component:"a",onClick:()=>(t=>{n(),e(`/app-list?engine_url=${t.replace("?","&")}`)})(o),disabled:ph({item:o,info:t}),children:[(0,_t.jsx)(gh,{primary:o}),(0,_t.jsx)(Uc,{onClick:()=>i.removeCachedConnection(o),"data-testid":"close-btn",size:"large",edge:"end",children:(0,_t.jsx)(Zd,{})})]},o))})]}):null},fh=function(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,r=o?{}:Ll(n,i),{props:a,internalRef:l}=Il({...s,externalSlotProps:r}),c=Sl(l,r?.ref,e.additionalProps?.ref);return kl(t,{...a,ref:c},i)};function bh(e,t=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{e.apply(this,i)},t)}return i.clear=()=>{clearTimeout(n)},i}const vh=bh;function Ch(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function _h(e){return e&&e.ownerDocument||document}function yh(e){return _h(e).defaultView||window}const wh=yh,Ah={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},Sh=ul((0,_t.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),xh=ul((0,_t.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function kh(e){return Er("MuiTabScrollButton",e)}const Lh=Dr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Eh=_r(Lc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Lh.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Dh=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:s={},direction:r,orientation:a,disabled:l,...c}=n,d=Zr(),h={isRtl:d,...n},u=(e=>{const{classes:t,orientation:n,disabled:i}=e;return Lt({root:["root",n,i&&"disabled"]},kh,t)})(h),g=o.StartScrollButtonIcon??Sh,p=o.EndScrollButtonIcon??xh,m=fh({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),f=fh({elementType:p,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,_t.jsx)(Eh,{component:"div",className:kt(u.root,i),ref:t,role:null,ownerState:h,tabIndex:null,...c,style:{...c.style,..."vertical"===a&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===r?(0,_t.jsx)(g,{...m}):(0,_t.jsx)(p,{...f})})}),Ih=Dh;function Nh(e){return Er("MuiTabs",e)}const Rh=Dr("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Th=_h,Mh=function(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t},Oh=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,qh=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ph=(e,t,n)=>{let i=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(i)return;i=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},Bh=_r("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rh.scrollButtons}`]:t.scrollButtons},{[`& .${Rh.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Xa(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Rh.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Fh=_r("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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Wh=_r("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),zh=_r("span",{name:"MuiTabs",slot:"Indicator"})(Xa(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Vh=_r(function(e){const{onChange:n,...i}=e,o=t.useRef(),s=t.useRef(null),r=()=>{o.current=s.current.offsetHeight-s.current.clientHeight};return ih(()=>{const e=vh(()=>{const e=o.current;r(),e!==o.current&&n(o.current)}),t=wh(s.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[n]),t.useEffect(()=>{r(),n(o.current)},[n]),(0,_t.jsx)("div",{style:Ah,...i,ref:s})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Hh={},jh=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiTabs"}),o=Ur(),s=Zr(),{"aria-label":r,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:h,component:u="div",allowScrollButtonsMobile:g=!1,indicatorColor:p="primary",onChange:m,orientation:f="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:C,slots:_={},slotProps:y={},TabIndicatorProps:w={},TabScrollButtonProps:A={},textColor:S="primary",value:x,variant:k="standard",visibleScrollbar:L=!1,...E}=i,D="scrollable"===k,I="vertical"===f,N=I?"scrollTop":"scrollLeft",R=I?"top":"left",T=I?"bottom":"right",M=I?"clientHeight":"clientWidth",O=I?"height":"width",q={...i,component:u,allowScrollButtonsMobile:g,indicatorColor:p,orientation:f,vertical:I,scrollButtons:v,textColor:S,variant:k,visibleScrollbar:L,fixed:!D,hideScrollbar:D&&!L,scrollableX:D&&!I,scrollableY:D&&I,centered:c&&!D,scrollButtonsHideMobile:!g},P=(e=>{const{vertical:t,fixed:n,hideScrollbar:i,scrollableX:o,scrollableY:s,centered:r,scrollButtonsHideMobile:a,classes:l}=e;return Lt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",i&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",r&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Nh,l)})(q),B=fh({elementType:_.StartScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:q}),F=fh({elementType:_.EndScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:q}),[W,z]=t.useState(!1),[V,H]=t.useState(Hh),[j,U]=t.useState(!1),[$,G]=t.useState(!1),[K,Q]=t.useState(!1),[Y,Z]=t.useState({overflow:"hidden",scrollbarWidth:0}),X=new Map,J=t.useRef(null),ee=t.useRef(null),te={slots:_,slotProps:{indicator:w,scrollButtons:A,...y}},ne=()=>{const e=J.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==x){const e=ee.current.children;if(e.length>0){const t=e[X.get(x)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ie=Yl(()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,i=0;I?(n="top",t&&e&&(i=t.top-e.top+e.scrollTop)):(n=s?"right":"left",t&&e&&(i=(s?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:i,[O]:t?t[O]:0};if("number"!=typeof V[n]||"number"!=typeof V[O])H(o);else{const e=Math.abs(V[n]-o[n]),t=Math.abs(V[O]-o[O]);(e>=1||t>=1)&&H(o)}}),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,i={},o=()=>{}){const{ease:s=Ch,duration:r=300}=i;let a=null;const l=t[e];let c=!1;const d=i=>{if(c)return void o(new Error("Animation cancelled"));null===a&&(a=i);const h=Math.min(1,(i-a)/r);t[e]=s(h)*(n-l)+l,h>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(N,J.current,e,{duration:o.transitions.duration.standard}):J.current[N]=e},se=e=>{let t=J.current[N];t+=I?e:e*(s?-1:1),oe(t)},re=()=>{const e=J.current[M];let t=0;const n=Array.from(ee.current.children);for(let i=0;i<n.length;i+=1){const o=n[i];if(t+o[M]>e){0===i&&(t=e);break}t+=o[M]}return t},ae=()=>{se(-1*re())},le=()=>{se(re())},[ce,{onChange:de,...he}]=Nl("scrollbar",{className:kt(P.scrollableX,P.hideScrollbar),elementType:Vh,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:q}),ue=t.useCallback(e=>{de?.(e),Z({overflow:null,scrollbarWidth:e})},[de]),[ge,pe]=Nl("scrollButtons",{className:kt(P.scrollButtons,A.className),elementType:Ih,externalForwardedProps:te,ownerState:q,additionalProps:{orientation:f,slots:{StartScrollButtonIcon:_.startScrollButtonIcon||_.StartScrollButtonIcon,EndScrollButtonIcon:_.endScrollButtonIcon||_.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:F}}}),me=Yl(e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[R]<t[R]){const i=t[N]+(n[R]-t[R]);oe(i,{animation:e})}else if(n[T]>t[T]){const i=t[N]+(n[T]-t[T]);oe(i,{animation:e})}}),fe=Yl(()=>{D&&!1!==v&&Q(!K)});t.useEffect(()=>{const e=vh(()=>{J.current&&ie()});let t;const n=wh(J.current);let i;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(i=new MutationObserver(n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),fe()}),i.observe(ee.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),i?.disconnect(),t?.disconnect()}},[ie,fe]),t.useEffect(()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&D&&!1!==v){const n=e[0],i=e[t-1],o={root:J.current,threshold:.99},s=new IntersectionObserver(e=>{U(!e[0].isIntersecting)},o);s.observe(n);const r=new IntersectionObserver(e=>{G(!e[0].isIntersecting)},o);return r.observe(i),()=>{s.disconnect(),r.disconnect()}}},[D,v,K,d?.length]),t.useEffect(()=>{z(!0)},[]),t.useEffect(()=>{ie()}),t.useEffect(()=>{me(Hh!==V)},[me,V]),t.useImperativeHandle(l,()=>({updateIndicator:ie,updateScrollButtons:fe}),[ie,fe]);const[be,ve]=Nl("indicator",{className:kt(P.indicator,w.className),elementType:zh,externalForwardedProps:te,ownerState:q,additionalProps:{style:V}}),Ce=(0,_t.jsx)(be,{...ve});let _e=0;const ye=t.Children.map(d,e=>{if(!t.isValidElement(e))return null;const n=void 0===e.props.value?_e:e.props.value;X.set(n,_e);const i=n===x;return _e+=1,t.cloneElement(e,{fullWidth:"fullWidth"===k,indicator:i&&!W&&Ce,selected:i,selectionFollowsFocus:C,onChange:m,textColor:S,value:n,...1!==_e||!1!==x||e.props.tabIndex?{}:{tabIndex:0}})}),we=(()=>{const e={};e.scrollbarSizeListener=D?(0,_t.jsx)(ce,{...he,onChange:ue}):null;const t=D&&("auto"===v&&(j||$)||!0===v);return e.scrollButtonStart=t?(0,_t.jsx)(ge,{direction:s?"right":"left",onClick:ae,disabled:!j,...pe}):null,e.scrollButtonEnd=t?(0,_t.jsx)(ge,{direction:s?"left":"right",onClick:le,disabled:!$,...pe}):null,e})(),[Ae,Se]=Nl("root",{ref:n,className:kt(P.root,h),elementType:Bh,externalForwardedProps:{...te,...E,component:u},ownerState:q}),[xe,ke]=Nl("scroller",{ref:J,className:P.scroller,elementType:Fh,externalForwardedProps:te,ownerState:q,additionalProps:{style:{overflow:Y.overflow,[I?"margin"+(s?"Left":"Right"):"marginBottom"]:L?void 0:-Y.scrollbarWidth}}}),[Le,Ee]=Nl("list",{ref:ee,className:kt(P.list,P.flexContainer),elementType:Wh,externalForwardedProps:te,ownerState:q,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=ee.current,n=Mh(Th(t)),i=n?.getAttribute("role");if("tab"!==i)return;let o="horizontal"===f?"ArrowLeft":"ArrowUp",r="horizontal"===f?"ArrowRight":"ArrowDown";switch("horizontal"===f&&s&&(o="ArrowRight",r="ArrowLeft"),e.key){case o:e.preventDefault(),Ph(t,n,qh);break;case r:e.preventDefault(),Ph(t,n,Oh);break;case"Home":e.preventDefault(),Ph(t,null,Oh);break;case"End":e.preventDefault(),Ph(t,null,qh)}})(t),e.onKeyDown?.(t)}})});return(0,_t.jsxs)(Ae,{...Se,children:[we.scrollButtonStart,we.scrollbarSizeListener,(0,_t.jsxs)(xe,{...ke,children:[(0,_t.jsx)(Le,{"aria-label":r,"aria-labelledby":a,"aria-orientation":"vertical"===f?"vertical":null,role:"tablist",...Ee,children:ye}),W&&Ce]}),we.scrollButtonEnd]})}),Uh=jh;function $h(e){return Er("MuiTab",e)}const Gh=Dr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Kh=_r(Lc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Vr(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gh.iconWrapper}`]:t.iconWrapper},{[`& .${Gh.icon}`]:t.icon}]}})(Xa(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${Gh.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${Gh.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${Gh.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${Gh.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Gh.selected}`]:{opacity:1},[`&.${Gh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Gh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Gh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Qh=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:r=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:h,onChange:u,onClick:g,onFocus:p,selected:m,selectionFollowsFocus:f,textColor:b="inherit",value:v,wrapped:C=!1,..._}=i,y={...i,disabled:s,disableFocusRipple:r,selected:m,icon:!!l,iconPosition:c,label:!!h,fullWidth:a,textColor:b,wrapped:C},w=(e=>{const{classes:t,textColor:n,fullWidth:i,wrapped:o,icon:s,label:r,selected:a,disabled:l}=e;return Lt({root:["root",s&&r&&"labelIcon",`textColor${Vr(n)}`,i&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},$h,t)})(y),A=l&&h&&t.isValidElement(l)?t.cloneElement(l,{className:kt(w.icon,l.props.className)}):l;return(0,_t.jsxs)(Kh,{focusRipple:!r,className:kt(w.root,o),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:e=>{!m&&u&&u(e,v),g&&g(e)},onFocus:e=>{f&&!m&&u&&u(e,v),p&&p(e)},ownerState:y,tabIndex:m?0:-1,..._,children:["top"===c||"start"===c?(0,_t.jsxs)(t.Fragment,{children:[A,h]}):(0,_t.jsxs)(t.Fragment,{children:[h,A]}),d]})}),Yh=Qh;var Zh;const Xh=_r("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Jh=_r("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cr})(Xa(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))),eu=t.createContext(void 0);function tu(){return t.useContext(eu)}function nu({props:e,states:t,muiFormControl:n}){return t.reduce((t,i)=>(t[i]=e[i],n&&void 0===e[i]&&(t[i]=n[i]),t),{})}function iu(e){return Er("MuiInputBase",e)}const ou=Dr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function su(e){return Er("MuiOutlinedInput",e)}const ru={...ou,...Dr("MuiOutlinedInput",["root","notchedOutline","input"])};function au(e){return parseInt(e,10)||0}const lu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function cu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const du=t.forwardRef(function(e,n){const{onChange:i,maxRows:o,minRows:s=1,style:r,value:a,...l}=e,{current:c}=t.useRef(null!=a),d=t.useRef(null),h=Sl(n,d),u=t.useRef(null),g=t.useRef(null),p=t.useCallback(()=>{const t=d.current,n=g.current;if(!t||!n)return;const i=yh(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const r=i.boxSizing,a=au(i.paddingBottom)+au(i.paddingTop),l=au(i.borderBottomWidth)+au(i.borderTopWidth),c=n.scrollHeight;n.value="x";const h=n.scrollHeight;let u=c;return s&&(u=Math.max(Number(s)*h,u)),o&&(u=Math.min(Number(o)*h,u)),u=Math.max(u,h),{outerHeightStyle:u+("border-box"===r?a+l:0),overflowing:Math.abs(u-c)<=1}},[o,s,e.placeholder]),m=Ql(()=>{const e=d.current,t=p();if(!e||!t||cu(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),f=t.useCallback(()=>{const e=d.current,t=p();if(!e||!t||cu(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),b=t.useRef(-1);return Jr(()=>{const e=bh(f),t=d?.current;if(!t)return;const n=yh(t);let i;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(()=>{m()&&(i.unobserve(t),cancelAnimationFrame(b.current),f(),b.current=requestAnimationFrame(()=>{i.observe(t)}))}),i.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),i&&i.disconnect()}},[p,f,m]),Jr(()=>{f()}),(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)("textarea",{value:a,onChange:e=>{c||f();const t=e.target,n=t.value.length,o=t.value.endsWith("\n"),s=t.selectionStart===n;o&&s&&t.setSelectionRange(n,n),i&&i(e)},ref:h,rows:s,style:r,...l}),(0,_t.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...lu,...r,paddingTop:0,paddingBottom:0}})]})}),hu=du;function uu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function gu(e,t=!1){return e&&(uu(e.value)&&""!==e.value||t&&uu(e.defaultValue)&&""!==e.defaultValue)}var pu;const mu="mui-auto-fill",fu="mui-auto-fill-cancel",bu=(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${Vr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},vu=(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]},Cu=_r("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bu})(Xa(({theme:e})=>({...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",[`&.${ou.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),_u=_r("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vu})(Xa(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ou.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ou.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:fu,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:mu}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),yu=function(e){return function(t){return(0,_t.jsx)(gd,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${mu}`]:{from:{animationName:mu}},[`@keyframes ${fu}`]:{from:{animationName:fu}}}),wu=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:r,className:a,color:l,components:c={},componentsProps:d={},defaultValue:h,disabled:u,disableInjectingGlobalStyles:g,endAdornment:p,error:m,fullWidth:f=!1,id:b,inputComponent:v="input",inputProps:C={},inputRef:_,margin:y,maxRows:w,minRows:A,multiline:S=!1,name:x,onBlur:k,onChange:L,onClick:E,onFocus:D,onKeyDown:I,onKeyUp:N,placeholder:R,readOnly:T,renderSuffix:M,rows:O,size:q,slotProps:P={},slots:B={},startAdornment:F,type:W="text",value:z,...V}=i,H=null!=C.value?C.value:z,{current:j}=t.useRef(null!=H),U=t.useRef(),$=t.useCallback(e=>{},[]),G=Kl(U,_,C.ref,$),[K,Q]=t.useState(!1),Y=tu(),Z=nu({props:i,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=Y?Y.focused:K,t.useEffect(()=>{!Y&&u&&K&&(Q(!1),k&&k())},[Y,u,K,k]);const X=Y&&Y.onFilled,J=Y&&Y.onEmpty,ee=t.useCallback(e=>{gu(e)?X&&X():J&&J()},[X,J]);ih(()=>{j&&ee({value:H})},[H,ee,j]),ih(()=>{if(!r)return;const e=U.current;if(!e)return;const t=Th(e),n=Mh(t),i=null==n||n===t.body||n===t.documentElement;e===n?Y&&Y.onFocus?Y.onFocus():Q(!0):i&&e.focus()},[r]),t.useEffect(()=>{ee(U.current)},[]);let te=v,ne=C;S&&"input"===te&&(ne=O?{type:void 0,minRows:O,maxRows:O,...ne}:{type:void 0,maxRows:w,minRows:A,...ne},te=hu),t.useEffect(()=>{Y&&Y.setAdornedStart(Boolean(F))},[Y,F]);const ie={...i,color:Z.color||"primary",disabled:Z.disabled,endAdornment:p,error:Z.error,focused:Z.focused,formControl:Y,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:S,size:Z.size,startAdornment:F,type:W},oe=(e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:s,focused:r,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:h,size:u,startAdornment:g,type:p}=e;return Lt({root:["root",`color${Vr(n)}`,i&&"disabled",o&&"error",l&&"fullWidth",r&&"focused",a&&"formControl",u&&"medium"!==u&&`size${Vr(u)}`,d&&"multiline",g&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled","search"===p&&"inputTypeSearch",d&&"inputMultiline","small"===u&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]},iu,t)})(ie),se=B.root||c.Root||Cu,re=P.root||d.root||{},ae=B.input||c.Input||_u;return ne={...ne,...P.input??d.input},(0,_t.jsxs)(t.Fragment,{children:[!g&&"function"==typeof yu&&(pu||(pu=(0,_t.jsx)(yu,{}))),(0,_t.jsxs)(se,{...re,ref:n,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),E&&E(e)},...V,...!xl(se)&&{ownerState:{...ie,...re.ownerState}},className:kt(oe.root,re.className,a,T&&"MuiInputBase-readOnly"),children:[F,(0,_t.jsx)(eu.Provider,{value:null,children:(0,_t.jsx)(ae,{"aria-invalid":Z.error,"aria-describedby":o,autoComplete:s,autoFocus:r,defaultValue:h,disabled:Z.disabled,id:b,onAnimationStart:e=>{ee(e.animationName===fu?U.current:{value:"x"})},name:x,placeholder:R,readOnly:T,required:Z.required,rows:O,value:H,onKeyDown:I,onKeyUp:N,type:W,...ne,...!xl(ae)&&{as:te,ownerState:{...ie,...ne.ownerState}},ref:G,className:kt(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),C.onBlur&&C.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):Q(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||U.current;if(null==t)throw new Error(Ei(1));ee({value:t.value})}C.onChange&&C.onChange(e,...t),L&&L(e,...t)},onFocus:e=>{D&&D(e),C.onFocus&&C.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):Q(!0)}})}),p,M?M({...Z,startAdornment:F}):null]})]})}),Au=wu,Su=_r(Cu,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:bu})(Xa(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ru.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ru.focused} .${ru.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${ru.focused} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ru.error} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ru.disabled} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),xu=_r(function(e){const{children:t,classes:n,className:i,label:o,notched:s,...r}=e,a=null!=o&&""!==o,l={...e,notched:s,withLabel:a};return(0,_t.jsx)(Xh,{"aria-hidden":!0,className:i,ownerState:l,...r,children:(0,_t.jsx)(Jh,{ownerState:l,children:a?(0,_t.jsx)("span",{children:o}):Zh||(Zh=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xa(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),ku=_r(_u,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vu})(Xa(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Lu=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:r="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:h={},type:u="text",...g}=i,p=(e=>{const{classes:t}=e,n=Lt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},su,t);return{...t,...n}})(i),m=tu(),f=nu({props:i,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...i,color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:m,fullWidth:s,hiddenLabel:f.hiddenLabel,multiline:l,size:f.size,type:u},v=d.root??o.Root??Su,C=d.input??o.Input??ku,[_,y]=Nl("notchedOutline",{elementType:xu,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:d,slotProps:h},additionalProps:{label:null!=a&&""!==a&&f.required?(0,_t.jsxs)(t.Fragment,{children:[a," ","*"]}):a}});return(0,_t.jsx)(Au,{slots:{root:v,input:C},slotProps:h,renderSuffix:e=>(0,_t.jsx)(_,{...y,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:s,inputComponent:r,multiline:l,ref:n,type:u,...g,classes:{...p,notchedOutline:null}})});Lu.muiName="Input";const Eu=Lu,Du=t.createContext({}),Iu=t.createContext(void 0),Nu=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Ru=_r(Lc,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Vr(n.color)}`],t[`size${Vr(n.size)}`],t[`${n.variant}Size${Vr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xa(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ba.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&"start"===e.loadingPosition,style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ba.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ba.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ba.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ba.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ba.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ba.loading}`]:{color:"transparent"}}}]}})),Tu=_r("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Vr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Nu]})),Mu=_r("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Vr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Nu]})),Ou=_r("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),qu=_r("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Pu=t.forwardRef(function(e,n){const i=t.useContext(Du),o=t.useContext(Iu),s=Sr({props:yr(i,e),name:"MuiButton"}),{children:r,color:a="primary",component:l="button",className:c,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:u=!1,endIcon:g,focusVisibleClassName:p,fullWidth:m=!1,id:f,loading:b=null,loadingIndicator:v,loadingPosition:C="center",size:_="medium",startIcon:y,type:w,variant:A="text",...S}=s,x=Ul(f),k=v??(0,_t.jsx)(Fc,{"aria-labelledby":x,color:"inherit",size:16}),L={...s,color:a,component:l,disabled:d,disableElevation:h,disableFocusRipple:u,fullWidth:m,loading:b,loadingIndicator:k,loadingPosition:C,size:_,type:w,variant:A},E=(e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:s,loading:r,loadingPosition:a,classes:l}=e,c=Lt({root:["root",r&&"loading",s,`${s}${Vr(t)}`,`size${Vr(o)}`,`${s}Size${Vr(o)}`,`color${Vr(t)}`,n&&"disableElevation",i&&"fullWidth",r&&`loadingPosition${Vr(a)}`],startIcon:["icon","startIcon",`iconSize${Vr(o)}`],endIcon:["icon","endIcon",`iconSize${Vr(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Pa,l);return{...l,...c}})(L),D=(y||b&&"start"===C)&&(0,_t.jsx)(Tu,{className:E.startIcon,ownerState:L,children:y||(0,_t.jsx)(qu,{className:E.loadingIconPlaceholder,ownerState:L})}),I=(g||b&&"end"===C)&&(0,_t.jsx)(Mu,{className:E.endIcon,ownerState:L,children:g||(0,_t.jsx)(qu,{className:E.loadingIconPlaceholder,ownerState:L})}),N=o||"",R="boolean"==typeof b?(0,_t.jsx)("span",{className:E.loadingWrapper,style:{display:"contents"},children:b&&(0,_t.jsx)(Ou,{className:E.loadingIndicator,ownerState:L,children:k})}):null,{root:T,...M}=E;return(0,_t.jsxs)(Ru,{ownerState:L,className:kt(i.className,E.root,c,N),component:l,disabled:d||b,focusRipple:!u,focusVisibleClassName:kt(E.focusVisible,p),ref:n,type:w,id:b?x:f,...S,classes:M,children:[D,"end"!==C&&R,r,"end"===C&&R,I]})}),Bu=Pu,Fu=({isCredentialProvided:e,inputs:t,fields:n})=>e?!t["engine-websocket-url"]:Object.entries(t).length!==n.length||Object.values(t).some(e=>!e),Wu=({isCredentialProvided:e,field:t})=>e?`You have provided "${t}" through cli or nebula.config.js file already!`:t;function zu({error:{message:e,hints:t}}){return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(yd,{variant:"subtitle1",color:"error",gutterBottom:!0,style:{marginBottom:0},children:e}),t.map(e=>(0,_t.jsx)(yd,{variant:"body2",children:e},e))]})}function Vu({info:e,fields:n,error:i,isCredentialProvided:o}){const s=le(),{setError:r}=At(),[a,l]=(0,t.useState)({});return(0,_t.jsx)("form",{onSubmit:e=>{e.preventDefault(),r();const t=new URL(a["engine-websocket-url"]);a["web-integration-id"]&&t.searchParams.append("qlik-web-integration-id",a["web-integration-id"]),a["client-id"]&&t.searchParams.append("qlik-client-id",a["client-id"]),s(`/app-list?engine_url=${t.toString().replace("?","&")}`)},children:(0,_t.jsxs)(ud,{container:!0,spacing:2,direction:"column",justifyContent:"center",children:[n.map((t,n)=>(0,_t.jsx)(ud,{size:12,children:(0,_t.jsx)(Eu,{fullWidth:!0,autoFocus:0===n,disabled:o&&1===n,name:t.split(" ").map(e=>e.toLowerCase()).join("-"),error:e?.invalid,placeholder:0===n?t:Wu({field:t,isCredentialProvided:o}),onChange:e=>(e=>{l({...a,[e.target.name]:e.target.value})})(e)})},t)),(0,_t.jsxs)(ud,{container:!0,size:12,alignItems:"center",children:[(0,_t.jsx)(ud,{size:10,children:i&&(0,_t.jsx)(zu,{error:i})}),(0,_t.jsx)(ud,{container:!0,size:2,direction:"row",alignItems:"center",justifyContent:"flex-end",children:(0,_t.jsx)(Bu,{type:"submit",variant:"contained",size:"large",disabled:Fu({isCredentialProvided:o,inputs:a,fields:n}),children:"Connect"})})]})]})})}const Hu=[{id:0,label:"Local Engine",formFields:["Engine WebSocket URL"]},{id:1,label:"Web Integration Id",formFields:["Engine WebSocket URL","Web Integration Id"]},{id:2,label:"Client Id",formFields:["Engine WebSocket URL","Client Id"]}],ju=({label:e,info:t})=>{if(!t)return!1;const n=e.split(" ").map(e=>e.toLowerCase()).join("-");return t.isWebIntegrationIdProvided?"web-integration-id"!==n:!!t.isClientIdProvided&&"client-id"!==n};function Uu(){const{info:e,error:n}=At(),[i,o]=(0,t.useState)(0);return(0,t.useEffect)(()=>{const t=(e=>e?e.isWebIntegrationIdProvided?Hu.findIndex(e=>"Web Integration Id"===e.label):e.isClientIdProvided?Hu.findIndex(e=>"Client Id"===e.label):0:0)(e);t&&o(t)},[e]),(0,_t.jsxs)(Qa,{children:[(0,_t.jsx)(yd,{variant:"h6",gutterBottom:!0,children:"New connection with:"}),(0,_t.jsxs)(Qa,{sx:{width:"100%"},children:[(0,_t.jsx)(Qa,{sx:{borderBottom:1,borderColor:"divider"},children:(0,_t.jsx)(Uh,{value:i,onChange:(e,t)=>o(t),"aria-label":"basic tabs example",children:Hu.map(({id:t,label:n})=>(0,_t.jsx)(Yh,{label:n,disabled:ju({info:e,label:n})},t))})}),Hu.map(({id:t,formFields:o})=>(0,_t.jsx)($u,{tabIdx:i,idx:t,children:(0,_t.jsx)(Vu,{info:e,error:n,fields:o,isCredentialProvided:e?.isWebIntegrationIdProvided||e?.isClientIdProvided})},t))]})]})}function $u({children:e,tabIdx:t,idx:n}){return t===n?(0,_t.jsx)(Qa,{sx:{p:3,pb:1},children:e}):null}const Gu=()=>{const{cachedConnectionsData:e}=At(),[n,i]=(0,t.useState)(!1);return(()=>{const{cachedConnectionsData:e}=At();(0,t.useEffect)(()=>{it.setDefaultHostConfig(void 0)},[e.cachedConnections.length])})(),(0,t.useEffect)(()=>{i(!e.cachedConnections.length)},[e.cachedConnections.length]),(0,_t.jsxs)(Bl,{children:[(0,_t.jsxs)(ud,{container:!0,children:[(0,_t.jsx)(ud,{sx:{flex:1},children:(0,_t.jsx)(yd,{variant:"h5",gutterBottom:!0,children:"Connect to an engine"})}),(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)(Uc,{onClick:()=>i(!n),size:"small",children:(0,_t.jsx)(jl,{})})})]}),(0,_t.jsx)(mh,{}),(0,_t.jsx)(Uu,{}),(0,_t.jsx)(Kd,{showGuid:n})]})},Ku=()=>{const e=le(),n=re(),{info:i,glob:o,treatAsDesktop:s}=At(),{loading:r,appList:a}=(({glob:e,info:n})=>{const{setInfo:i,setActiveStep:o}=At(),[s,r]=(0,t.useState)(),[a,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{o(1),ut().then(e=>{i(e)})},[]),(0,t.useEffect)(()=>{s?.length||(l(!0),e?.getDocList()?.then(e=>{r(e),e&&l(!1)})?.catch(e=>{console.error("Failed to fetch app list:",e),l(!1)}))},[n,e]),{appList:s,loading:a}})({glob:o,info:i});return(0,_t.jsxs)(Bl,{children:[(0,_t.jsx)(yd,{variant:"h5",gutterBottom:!0,children:"Select an app"}),r&&(0,_t.jsx)(Fc,{"data-testid":"loading",size:32}),!r&&a&&!a.length&&(0,_t.jsx)(yd,{component:"span",children:"No apps found!"}),a&&a.length>0&&(0,_t.jsx)(nh,{children:a.map(t=>(0,_t.jsx)(lh,{button:!0,component:"a",onClick:()=>(async({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,s=i.engine.secure?"wss":"ws",r=i.engine.port?`:${i.engine.port}`:"",a=i.engine.prefix?`/${i.engine.prefix}`:"",l=("localhost"===i.engine.host?`${i.engine.host}${r}`:i.engine.host)+a,c=await at(`https://${i.engine.host}${a}`),d=c?`&qlik-csrf-token=${c}`:"",h=`${s}://${l}/app/${encodeURIComponent(n)}${d}`;e(`/dev/${o.replace(i.engineUrl,h)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:n,targetApp:s?t.qDocName:t.qDocId}),children:(0,_t.jsx)(gh,{primary:t.qTitle,secondary:t.qDocId})},t.qDocId))})]})};n(39312);const Qu=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach(e=>{n[e]||(n[e]={}),n[e][t]=i[e]})},get(e,o){let s;return s=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)})(s,o):s}};return o}({initial:e,fallback:t});return{translator:n}},Yu=JSON.parse('{"Accessibility_Object_NoTitle":{"id":"Accessibility.Object.NoTitle","locale":{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},"Cancel":{"id":"Cancel","locale":{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},"CurrentSelections_All":{"id":"CurrentSelections.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"CurrentSelections_Of":{"id":"CurrentSelections.Of","locale":{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},"Listbox_Clear_Search":{"id":"Listbox.Clear.Search","locale":{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},"Listbox_Cyclic":{"id":"Listbox.Cyclic","locale":{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},"Listbox_Dismiss":{"id":"Listbox.Dismiss","locale":{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},"Listbox_DrillDown":{"id":"Listbox.DrillDown","locale":{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},"Listbox_ItemsOverflow":{"id":"Listbox.ItemsOverflow","locale":{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},"Listbox_Lock":{"id":"Listbox.Lock","locale":{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},"Listbox_NoMatchesForYourTerms":{"id":"Listbox.NoMatchesForYourTerms","locale":{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},"Listbox_ResultFilterLabel":{"id":"Listbox.ResultFilterLabel","locale":{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},"Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_ActionButton":{"id":"Object.ActionButton","locale":{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},"Object_AutoChart":{"id":"Object.AutoChart","locale":{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},"Object_BarChart":{"id":"Object.BarChart","locale":{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},"Object_BoxPlot":{"id":"Object.BoxPlot","locale":{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},"Object_BulletChart":{"id":"Object.BulletChart","locale":{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},"Object_ComboChart":{"id":"Object.ComboChart","locale":{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},"Object_Container":{"id":"Object.Container","locale":{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},"Object_DistributionPlot":{"id":"Object.DistributionPlot","locale":{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},"Object_FilterLabel_All":{"id":"Object.FilterLabel.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"Object_FilterLabel_Exclude":{"id":"Object.FilterLabel.Exclude","locale":{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},"Object_FilterLabel_Unknown":{"id":"Object.FilterLabel.Unknown","locale":{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},"Object_FilterPane":{"id":"Object.FilterPane","locale":{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},"Object_FiltersApplied":{"id":"Object.FiltersApplied","locale":{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},"Object_FunnelChart":{"id":"Object.FunnelChart","locale":{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},"Object_Gauge":{"id":"Object.Gauge","locale":{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},"Object_GridChart":{"id":"Object.GridChart","locale":{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},"Object_Histogram":{"id":"Object.Histogram","locale":{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},"Object_Kpi":{"id":"Object.Kpi","locale":{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},"Object_LayoutContainer":{"id":"Object.LayoutContainer","locale":{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},"Object_LineChart":{"id":"Object.LineChart","locale":{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},"Object_Listbox":{"id":"Object.Listbox","locale":{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},"Object_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},"Object_Map":{"id":"Object.Map","locale":{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},"Object_MekkoChart":{"id":"Object.MekkoChart","locale":{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},"Object_NavMenu":{"id":"Object.NavMenu","locale":{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},"Object_NlgChart":{"id":"Object.NlgChart","locale":{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},"Object_PieChart":{"id":"Object.PieChart","locale":{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},"Object_PivotTable":{"id":"Object.PivotTable","locale":{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},"Object_RadarChart":{"id":"Object.RadarChart","locale":{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},"Object_SankeyChart":{"id":"Object.SankeyChart","locale":{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},"Object_ScatterPlot":{"id":"Object.ScatterPlot","locale":{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},"Object_StraightTable":{"id":"Object.StraightTable","locale":{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},"Object_TabContainer":{"id":"Object.TabContainer","locale":{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d\'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ コンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},"Object_Table":{"id":"Object.Table","locale":{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Table_Deprecated":{"id":"Object.Table.Deprecated","locale":{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Text":{"id":"Object.Text","locale":{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},"Object_TextImage":{"id":"Object.TextImage","locale":{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},"Object_Treemap":{"id":"Object.Treemap","locale":{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Object_WaterfallChart":{"id":"Object.WaterfallChart","locale":{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"ScreenReader_ManySearchResults":{"id":"ScreenReader.ManySearchResults","locale":{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSearchResult":{"id":"ScreenReader.OneSearchResult","locale":{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"SelectionToolbar_ClickToLock":{"id":"SelectionToolbar.ClickToLock","locale":{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var Zu=n(28521),Xu=n.n(Zu);function Ju(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eg(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function tg(){}n.dn(Ju);var ng=.7,ig=1/ng,og="\\s*([+-]?\\d+)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ag=/^#([0-9a-f]{3,8})$/,lg=new RegExp(`^rgb\\(${og},${og},${og}\\)$`),cg=new RegExp(`^rgb\\(${rg},${rg},${rg}\\)$`),dg=new RegExp(`^rgba\\(${og},${og},${og},${sg}\\)$`),hg=new RegExp(`^rgba\\(${rg},${rg},${rg},${sg}\\)$`),ug=new RegExp(`^hsl\\(${sg},${rg},${rg}\\)$`),gg=new RegExp(`^hsla\\(${sg},${rg},${rg},${sg}\\)$`),pg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function mg(){return this.rgb().formatHex()}function fg(){return this.rgb().formatRgb()}function bg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ag.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vg(t):3===n?new yg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Cg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Cg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=lg.exec(e))?new yg(t[1],t[2],t[3],1):(t=cg.exec(e))?new yg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dg.exec(e))?Cg(t[1],t[2],t[3],t[4]):(t=hg.exec(e))?Cg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ug.exec(e))?Lg(t[1],t[2]/100,t[3]/100,1):(t=gg.exec(e))?Lg(t[1],t[2]/100,t[3]/100,t[4]):pg.hasOwnProperty(e)?vg(pg[e]):"transparent"===e?new yg(NaN,NaN,NaN,0):null}function vg(e){return new yg(e>>16&255,e>>8&255,255&e,1)}function Cg(e,t,n,i){return i<=0&&(e=t=n=NaN),new yg(e,t,n,i)}function _g(e,t,n,i){return 1===arguments.length?function(e){return e instanceof tg||(e=bg(e)),e?new yg((e=e.rgb()).r,e.g,e.b,e.opacity):new yg}(e):new yg(e,t,n,i??1)}function yg(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function wg(){return`#${kg(this.r)}${kg(this.g)}${kg(this.b)}`}function Ag(){const e=Sg(this.opacity);return`${1===e?"rgb(":"rgba("}${xg(this.r)}, ${xg(this.g)}, ${xg(this.b)}${1===e?")":`, ${e})`}`}function Sg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function kg(e){return((e=xg(e))<16?"0":"")+e.toString(16)}function Lg(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dg(e,t,n,i)}function Eg(e){if(e instanceof Dg)return new Dg(e.h,e.s,e.l,e.opacity);if(e instanceof tg||(e=bg(e)),!e)return new Dg;if(e instanceof Dg)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2;return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Dg(r,a,l,e.opacity)}function Dg(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Ig(e){return(e=(e||0)%360)<0?e+360:e}function Ng(e){return Math.max(0,Math.min(1,e||0))}function Rg(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ju(tg,bg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mg,formatHex:mg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Eg(this).formatHsl()},formatRgb:fg,toString:fg}),Ju(yg,_g,eg(tg,{brighter(e){return e=null==e?ig:Math.pow(ig,e),new yg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ng:Math.pow(ng,e),new yg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yg(xg(this.r),xg(this.g),xg(this.b),Sg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wg,formatHex:wg,formatHex8:function(){return`#${kg(this.r)}${kg(this.g)}${kg(this.b)}${kg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ag,toString:Ag})),Ju(Dg,function(e,t,n,i){return 1===arguments.length?Eg(e):new Dg(e,t,n,i??1)},eg(tg,{brighter(e){return e=null==e?ig:Math.pow(ig,e),new Dg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ng:Math.pow(ng,e),new Dg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new yg(Rg(e>=240?e-240:e+120,o,i),Rg(e,o,i),Rg(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Dg(Ig(this.h),Ng(this.s),Ng(this.l),Sg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Sg(this.opacity);return`${1===e?"hsl(":"hsla("}${Ig(this.h)}, ${100*Ng(this.s)}%, ${100*Ng(this.l)}%${1===e?")":`, ${e})`}`}}));var Tg=n(64313),Mg=n.n(Tg);const Og=JSON.parse('{"fontSize":"12px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"object":{"title":{"main":{"color":"@B50","fontSize":"15px","backgroundColor":"transparent"},"subTitle":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"},"footer":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"}}},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),qg=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"light","color":"@B35"}'),Pg=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"dark","color":"@B98","object":{"listBox":{"backgroundColor":"@B20","title":{"main":{"color":"@B98","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#@B98","fontSize":"12px"}}}}'),Bg=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),Fg={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Wg=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,zg=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Vg=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i,Hg=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i,jg=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Ug=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:$g}=Math,{round:Gg}=Math;class Kg{constructor(...e){let t,n,i,o,s,r,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof Kg)g=e[0]._r,p=e[0]._g,m=e[0]._b,f=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(u=e[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10),f=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))f=parseInt(h[1],10)/255,g=parseInt(h[2],10),p=parseInt(h[3],10),m=parseInt(h[4],10);else if(h=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(u))g=parseInt(h[1],16),p=parseInt(h[2],16),m=parseInt(h[3],16),f=1;else if(h=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(u))g=parseInt(h[1]+h[1],16),p=parseInt(h[2]+h[2],16),m=parseInt(h[3]+h[3],16),f=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,r=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Gg(255*g),p=Gg(255*p),m=Gg(255*m),f=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),f=parseFloat(h[7]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,r=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Gg(255*g),p=Gg(255*p),m=Gg(255*m)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),s=parseFloat(h[5]),t%=360,n/=100,s/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,s=s<0?0:s>1?1:s,r=s*n,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=s-r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Gg(255*g),p=Gg(255*p),m=Gg(255*m),f=1}else Object.prototype.hasOwnProperty.call(Fg,u.toLowerCase())?(i=u.toLowerCase(),g=Fg[i].r,p=Fg[i].g,m=Fg[i].b,f="number"==typeof Fg[i].a?Fg[i].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(f=(4278190080&e[0])>>>24,f/=255,g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(g=e[0],p=e[1],m=e[2],f=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+g+p+m+f)&&(this._invalid=!0),this._r=$g(g),this._g=$g(p),this._b=$g(m),this._a=f,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Kg.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Kg.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Kg.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Kg.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Kg.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Kg.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Kg.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Kg.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),i=parseFloat(n[1]),o=parseFloat(n[3]);let s=parseFloat(n[5]);const r=parseFloat(n[7]);return s+=e,s=Math.max(0,Math.min(s,100)),`hsla(${i},${o},${s},${r})`}isEqual(e){return e instanceof Kg||(e=new Kg(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[$g(this._r+(e._r-this._r)*t),$g(this._g+(e._g-this._g)*t),$g(this._b+(e._b-this._b)*t),$g(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,i=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Kg(i)}static toRGB(e){return e instanceof Kg?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=Kg.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof Kg?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=Kg.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,n,i;return e instanceof Kg?(t=e._r.toString(16),n=e._g.toString(16),i=e._b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`):("string"==typeof e&&(e=Kg.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),i=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`)}static toHSL(e,t){let n,i,o,s=0;"string"==typeof e&&(e=new Kg(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(r,a,l),d=Math.min(r,a,l);if(i=t?.21*r+.72*a+.07*l:(c+d)/2,c===d)n=0,s=0;else{switch(o=c-d,n=i>.5?o/(2-c-d):o/(c+d),c){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsl(${360*s},${100*n},${100*i})`}static toHSLA(e,t){let n,i,o,s=0;"string"==typeof e&&(e=new Kg(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(r,a,l),h=Math.min(r,a,l);if(i=t?.21*r+.72*a+.07*l:(d+h)/2,d===h)n=0,s=0;else{switch(o=d-h,n=i>.5?o/(2-d-h):o/(d+h),d){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsla(${360*s},${100*n},${100*i},${c})`}static toHSVComponents(e){let t,n,i=0;"string"==typeof e&&(e=new Kg(e));const o=e._r/255,s=e._g/255,r=e._b/255,a=Math.max(o,s,r),l=Math.min(o,s,r),c=a;if(a===l)t=0,i=0;else{switch(n=a-l,t=0===n?0:n/c,a){case o:i=(s-r)/n+(s<r?6:0);break;case s:i=(r-o)/n+2;break;case r:i=(o-s)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Kg)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,i=0,o=0,s=0;return 1===e.length&&"string"==typeof e[0]&&(n=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(n))?(i=parseInt(t[1],10),o=parseInt(t[2],10),s=parseInt(t[3],10)):(t=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(n))?(i=parseInt(t[1],16),o=parseInt(t[2],16),s=parseInt(t[3],16)):(t=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(n))&&(i=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),s=parseInt(t[3]+t[3],16))),(i<<16)+(o<<8)+s}static blend(e,t,n){const i=(16711680&(e=Kg.toNumber(e)))>>16,o=(65280&e)>>8,s=255&e;return(i+(((16711680&(t=Kg.toNumber(t)))>>16)-i)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(s+((255&t)-s)*n)}static getBlend(e,t,n){const i=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,s=e._b+(t._b-e._b)*n,r=e._a+(t._a-e._a)*n;return new Kg(i,o,s,r)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Wg.test(e)||zg.test(e)||Vg.test(e)||Hg.test(e)||jg.test(e)||Ug.test(e)||Object.prototype.hasOwnProperty.call(Fg,e.toLowerCase()))}static getBestContrast(e,t,n){const i=e.getLuminance();return Math.abs(i-t.getLuminance())>Math.abs(i-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,i=t.getLuminance()/100;return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}static isDark(...e){return new Kg(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Qg=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=bg(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([bg(e),bg(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const s=this.colorParts[t][o],r=s[0],a=s[1];if(e===this.min)return a;if(e===this.max)return r;const l=function(e,t,n){return _g(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(r,a,i-o);return l}};function Yg(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Zg(e,t,n){const i=[],o=new Qg(t);i.push(e[0]),n||i.push(e[0]);let s=1;for(;s<e.length-1;s++)i.push(e[s]),i.push(e[s]);const r=e[e.length-1];i.push(r),n||i.push(r);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function Xg(e,t,n){const i=[];for(let o=0;o<t+1;o++){let s;switch(t){case 0:s=e.getColor(.5);break;default:{const i=Yg(1/t*o,t,n);s=e.getColor(i);break}}i.push(bg(s).formatHex())}return i}function Jg(e,t){const n=[];let i,o;if(e){let s=e.length;for(;s>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),s--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function ep(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function tp(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=Jg(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=ep(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function np(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?np(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function ip(e){const t=bg(e);if(!t)return 0;const{r:n,g:i,b:o}=t.rgb(),[s,r,a]=[n,i,o].map(e=>e/255),[l,c,d]=[s,r,a].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function op(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=tp(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=bg(...e);return i?i.toString():void 0}},s={setTheme(s,r){e=function(e,t){const n="dark"===e.type?Pg:qg;let i=Bg;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=Mg()(!0,{},Og,i,n),s=Mg()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return s.palettes.data&&s.palettes.data.length||(s.palettes.data=o.palettes.data),s.palettes.ui&&s.palettes.ui.length||(s.palettes.ui=o.palettes.ui),s.scales&&s.scales.length||(s.scales=o.scales),t(s)}(s,tp.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})}),t},dataPalettes(){const t=[];return e.palettes.data.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})}),t},uiPalettes(){const t=[];return e.palettes.ui.forEach(e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})}),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){if(("number"!=typeof e?.index||Number.isNaN(e?.index))&&"string"!=typeof e?.color)return;const n=(()=>e?.index<0||void 0===e?.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return n;const i=new Kg(n);return i.setAlpha(e.alpha),i.isInvalid()?n:i.toRGBA()}}}(e);const a=o.getStyle("","","color"),l=ip(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(ip);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const s=ip(o),r=i.map(e=>{return t=s,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n}),a=e[r.indexOf(Math.max(...r))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>r}};return Object.keys(Xu().prototype).forEach(e=>{o[e]=Xu().prototype[e]}),Xu().init(o),s.setTheme({},"light"),{externalAPI:o,internalAPI:s}}tp.resolveRawTheme=e=>{const t=Mg()(!0,{},e);return np(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const i=Zg(e,n,!0),o=Zg(Xg(i,t-1,t),n,!1),s=[null];for(let e=0;e<t;e++)s.push(Xg(o,e,t));return s}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const sp=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});const rp=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null}),ap={active:!0,select:!0,passive:!0,edit:!1};function lp(e){const t={},n={},i=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const i={};return Object.keys(t).forEach(e=>{i[e]=!t[e]}),i}(e);Object.keys(ap).forEach(e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=ap[e],n[e]=!ap[e])}),e.constraints=n,e.interactions=t}const cp=(e={},n=()=>{})=>{const i=e,o=[],s={},r={get:e=>i[e],set:(e,t)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=t,s[e]=n({type:"SET",value:t}),t},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach(t=>t(e?{}:i))},destroy:()=>{Object.keys(s).forEach(e=>{s[e]&&s[e]()})}};return[()=>{const[,e]=(0,t.useState)(i);return(0,t.useEffect)(()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)}),[e]),[r]},r]};function dp(e){const[t,n]=cp({}),[i,o]=cp({}),[s,r]=cp({}),[a,l]=cp({}),[c,d]=cp({}),[,h]=cp({}),u=({type:e,value:t})=>{const i=h.get(t.id);h.set(t.id,{});const s=()=>{o.clear(t.id),d.set(t.id,{}),d.dispatch(!0)},a=()=>{t.removeListener("closed",a),t.removeListener("changed",s),n.clear(t.id),o.clear(t.id),r.clear(t.id),l.clear(t.id),d.clear(t.id),h.clear(t.id)};return"SET"===e&&(i||(t.on("changed",s),t.once("closed",a))),a},[g,p]=cp({},u);return{subscribe:e=>{const t=u({type:"SET",value:e});return()=>{t(),p.clear(e.id)}},destroy:()=>{p.destroy()},useModelStore:g,modelStore:p,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:i,rpcRequestStore:o,useRpcRequestModelStore:a,rpcRequestModelStore:l,useRpcRequestSessionModelStore:s,rpcRequestSessionModelStore:r,modelChangedStore:d,appId:e}}function hp(e){const[t,n]=cp({}),[i,o]=cp({}),[s,r]=cp({});return{useAppSelectionsStore:t,useAppModalStore:i,appSelectionsStore:n,appModalStore:o,useModalObjectStore:s,modalObjectStore:r,appId:e}}n.dn(cp);const up=(0,t.forwardRef)(({initialContext:e,renderCallback:n,modelStore:i,selectionStore:o},s)=>{const[r,a]=(0,t.useState)(e),[l,c]=(0,t.useState)(),{theme:d}=(0,t.useMemo)(()=>({theme:ja(l)}),[l]),[h,u]=(0,t.useState)([]);return(0,t.useEffect)(()=>{n&&n()},[]),(0,t.useImperativeHandle)(s,()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),r&&(r.modelStore=i,r.selectionStore=o),(0,_t.jsx)(qa,{injectFirst:!0,children:(0,_t.jsx)(Ra,{theme:d,children:(0,_t.jsx)(rp.Provider,{value:r,children:h})})})});function gp(){const{useModelStore:e}=(0,t.useContext)(rp).modelStore;return e()}function pp(e,n,...i){const o=n?`${n.id}/${JSON.stringify(e)}`:null,[s]=gp(),[r]=function(){const{useRpcRequestSessionModelStore:e}=(0,t.useContext)(rp).modelStore;return e()}(),[a,l]=(0,t.useState)();return(0,t.useEffect)(()=>{n&&(async()=>{let t=r.get(o);t||(t=n.createSessionObject(e),r.set(o,t));const i=await t;s.set(o,i),l(i)})()},[n,...i]),[a]}const mp={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function fp(e){return pp(mp,e)}const bp=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let s;switch(t.type){case"INVALID":s={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":s={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":s={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let r=n.get(i);return r||(r={}),r[o]=s,n.set(i,r),s};function vp(e,n){const i=e?`${e.id}`:null,[o]=function(){const{useRpcResultStore:e}=(0,t.useContext)(rp).modelStore;return e()}(),[s,r]=(0,t.useReducer)(bp,i?o.get(i):null),[a]=function(){const{useModelChangedStore:e}=(0,t.useContext)(rp).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=(0,t.useContext)(rp).modelStore;return e()}();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async t=>{let s=c[n];(!s||s&&s.rpcRetry)&&(s={rpc:e[n](),rpcRetry:!1},c[n]=s,r({type:"INVALID",method:n,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{await new Promise(e=>{setTimeout(e,0)});const t=await s.rpc;r({type:"VALID",result:t,key:i,method:n,model:e,rpcResultStore:o})}catch(e){15!==e.code||t||(s.rpcRetry||(s.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const t=e.session.getObjectApi({handle:-1});await t.cancelRequest(c[n].rpc.requestId),r({type:"CANCELLED",key:i,method:n,model:e,rpcResultStore:o})},retry:()=>{c[n].rpcRetry=!0,d()}};return(0,t.useEffect)(()=>{e&&d()},[e,a.get(e&&e.id),i,n]),[s&&s.result,{validating:s&&s.validating,canCancel:s&&s.canCancel,canRetry:s&&s.canRetry},h]}function Cp(e){const[t,{validating:n,canCancel:i,canRetry:o},s]=vp(e,"getLayout");return e?.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:i,canRetry:o},s]:[t,{validating:n,canCancel:i,canRetry:o},s]}function _p(e){return vp(e,"getAppLayout")}function yp(){const[e,n]=(0,t.useState)(),[i,o]=(0,t.useState)(),s=(0,t.useCallback)(e=>{e&&n(e)},[]),r=()=>{const{left:t,top:n,width:i,height:s}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:s})};return(0,t.useLayoutEffect)(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(r);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}},[e]),[s,i,e]}const wp="singlepublic-pinnedItems",Ap=e=>{const[n]=(e=>{const[n,i]=(0,t.useState)(null),[o,s]=(0,t.useState)(null),[r]=gp();return(0,t.useEffect)(()=>{let t=!0,n=()=>{};if(e)return async function(){try{const o=`${e.id}-${wp}`;let a=r.get(o);if(!a){if(a=await(async(e,t)=>{const n=await e.getLayout(),i=!!n.permissions?.createMasterobject;let o=null;try{o=i?await e.getOrCreateObject({qInfo:{qType:"singlepublic",qId:t}}):await e.getObject(t)}catch{}return o})(e,wp),!t)return;if(a){r.set(o,a);const e=()=>{r.clear(o)};a.once("closed",e),n=()=>{a.removeListener("closed",e)}}}t&&(s(null),i(a))}catch(e){t&&(s(e instanceof Error?e:new Error(String(e))),i(null))}}(),()=>{t=!1,n()}},[e,r]),[n,o]})(e),[i]=vp(n,"getLayout");return[i?.pinnedItems??[]]},Sp=(e,n,i)=>{const[o,s]=(0,t.useState)(void 0),[r,a]=(0,t.useState)(void 0),[l]=gp();return(0,t.useEffect)(()=>{let t=!0,o=()=>{};if("function"==typeof e?.getObject)return async function(){try{const r=`${e.id}-${n}`;let c=l.get(r);if(!c){try{c=await e.getObject(n)}catch(t){if(2!==t.code||"Object not found"!==t.message||!i)throw t;c=await e.createSessionObject(i)}if(!t)return;l.set(r,c);const s=()=>{l.clear(r)};c.once("closed",s),o=()=>{c.removeListener("closed",s)}}t&&(a(void 0),s(c))}catch(e){t&&(a(e instanceof Error?e:new Error(String(e))),s(void 0))}}(),()=>{t=!1,o()}},[e,n,l]),[o,r]},xp={qInfo:{qId:"FieldList",qType:"FieldList"},qFieldListDef:{qShowSystem:!1,qShowHidden:!1,qShowSrcTables:!0,qShowSemantic:!0,qShowDerivedFields:!0}},kp={qInfo:{qId:"DimensionList",qType:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{title:"/qMetaDef/title",tags:"/qMetaDef/tags",grouping:"/qDim/qGrouping",info:"/qDimInfos",labelExpression:"/qDim/qLabelExpression"}}},Lp="qField",Ep="id",Dp=(e,t)=>{const n=e.selections[0],i=t.selections[0],o=!!n.qOneAndOnlyOne;return o===!!i.qOneAndOnlyOne?n.qSortIndex-i.qSortIndex:o?-1:1},Ip=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));n.dn(Ip);const Np=e=>({...e,viewBox:"0 0 12 16",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"}}]}),Rp=e=>Yd(Np(e));function Tp(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Mp(e){return`scale(${e}, ${e**2})`}n.dn(Rp);const Op={entering:{opacity:1,transform:Mp(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Mp(.75)},exited:{opacity:0,transform:Mp(.75)}},qp={opacity:0,transform:Mp(.75),visibility:"hidden"},Pp=t.forwardRef(function(e,n){const{addEndListener:i,appear:o=!0,children:s,easing:r,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",...f}=e,b=gc(),v=t.useRef(),C=Ur(),_=t.useRef(null),y=Kl(_,Tp(s),n),w=Fd(_,d),A=Fd(_,(e,t)=>{Bd(e);const{duration:n,delay:i,easing:o}=zd({style:p,timeout:m,easing:r},{mode:"enter"});let s;"auto"===m?(s=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=s):s=n,e.style.transition=[C.transitions.create("opacity",{duration:s,delay:i}),C.transitions.create("transform",{duration:.666*s,delay:i,easing:o})].join(","),l&&l(e,t)}),S=Fd(_,c),x=Fd(_,g),k=Fd(_,e=>{const{duration:t,delay:n,easing:i}=zd({style:p,timeout:m,easing:r},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Mp(.75),h&&h(e)}),L=Fd(_,e=>{e.style.transition="",u&&u(e)});return(0,_t.jsx)(Pd,{appear:o,in:a,nodeRef:_,onEnter:A,onEntered:S,onEntering:w,onExit:k,onExited:L,onExiting:x,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),i&&i(_.current,e)},timeout:"auto"===m?null:m,...f,children:(e,{ownerState:n,...i})=>{const o=Wd(e,a,Op,qp,p,s.props.style);return t.cloneElement(s,{style:o,ref:y,...i})}})});Pp&&(Pp.muiSupportAuto=!0);const Bp=Pp,Fp=function(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1},Wp="data-mui-focusable",zp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vp(e){const t=[],n=[];return Array.from(e.querySelectorAll(zp)).forEach((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Hp(){return!0}const jp=function(e){const{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:r=Vp,isEnabled:a=Hp,open:l}=e,c=t.useRef(!1),d=t.useRef(null),h=t.useRef(null),u=t.useRef(null),g=t.useRef(null),p=t.useRef(!1),m=t.useRef(null),f=Sl(Tp(n),m),b=t.useRef(null);t.useEffect(()=>{l&&m.current&&(p.current=!i)},[i,l]),t.useEffect(()=>{if(c.current=!1,!l||!m.current)return;const e=_h(m.current),t=Mh(e),n=((i=m.current)?i.hasAttribute(Wp)?i:i.querySelector(`[${Wp}]`):null)??m.current;var i;return Fp(m.current,t)||(n.hasAttribute("tabIndex")||n.setAttribute("tabIndex","-1"),p.current&&n.focus()),()=>{s||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}},[l]),t.useEffect(()=>{if(!l||!m.current)return;const e=_h(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&Mh(e)===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},n=()=>{const t=m.current;if(null===t)return;const n=Mh(e);if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(Fp(t,n))return;if(o&&n!==d.current&&n!==h.current)return;if(n!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let i=[];if(n!==d.current&&n!==h.current||(i=r(m.current)),i.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=i[0],n=i[i.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{const t=Mh(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[i,o,s,a,l,r]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,g.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,_t.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:h,"data-testid":"sentinelEnd"})]})};function Up(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const $p=t.forwardRef(function(e,n){const{children:i,container:o,disablePortal:s=!1}=e,[r,a]=t.useState(null),l=Sl(t.isValidElement(i)?Tp(i):null,n);if(Jr(()=>{s||a(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,s]),Jr(()=>{if(r&&!s)return Up(n,r),()=>{Up(n,null)}},[n,r,s]),s){if(t.isValidElement(i)){const e={ref:l};return t.cloneElement(i,e)}return i}return r?Dd.createPortal(i,r):r}),Gp={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Kp={opacity:0,visibility:"hidden"},Qp=t.forwardRef(function(e,n){const i=Ur(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:r=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:b=o,...v}=e,C=t.useRef(null),_=Kl(C,Tp(a),n),y=Fd(C,u),w=Fd(C,(e,t)=>{Bd(e);const n=zd({style:f,timeout:b,easing:l},{mode:"enter"});e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)}),A=Fd(C,h),S=Fd(C,m),x=Fd(C,e=>{const t=zd({style:f,timeout:b,easing:l},{mode:"exit"});e.style.transition=i.transitions.create("opacity",t),g&&g(e)}),k=Fd(C,e=>{e.style.transition="",p&&p(e)});return(0,_t.jsx)(Pd,{appear:r,in:c,nodeRef:C,onEnter:w,onEntered:A,onEntering:y,onExit:x,onExited:k,onExiting:S,addEndListener:e=>{s&&s(C.current,e)},timeout:b,...v,children:(e,{ownerState:n,...i})=>{const o=Wd(e,c,Gp,Kp,f,a.props.style);return t.cloneElement(a,{style:o,ref:_,...i})}})}),Yp=Qp;function Zp(e){return Er("MuiBackdrop",e)}Dr("MuiBackdrop",["root","invisible"]);const Xp=_r("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Jp=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:r=!1,open:a,components:l={},componentsProps:c={},slotProps:d={},slots:h={},TransitionComponent:u,transitionDuration:g,...p}=n,m={...n,component:s,invisible:r},f=(e=>{const{classes:t,invisible:n}=e;return Lt({root:["root",n&&"invisible"]},Zp,t)})(m),b={component:s,slots:{transition:u,root:l.Root,...h},slotProps:{...c,...d}},[v,C]=Nl("root",{elementType:Xp,externalForwardedProps:b,className:kt(f.root,o),ownerState:m}),[_,y]=Nl("transition",{elementType:Yp,externalForwardedProps:b,ownerState:m});return(0,_t.jsx)(_,{in:a,timeout:g,...p,...y,children:(0,_t.jsx)(v,{"aria-hidden":!0,...C,ref:t,children:i})})}),em=Jp;function tm(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function nm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function im(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function om(e){return parseFloat(yh(e).getComputedStyle(e).paddingRight)||0}function sm(e,t,n,i,o){const s=[t,n,...i];[].forEach.call(e.children,e=>{const t=!s.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&im(e,o)})}function rm(e,t){let n=-1;return e.some((e,i)=>!!t(e)&&(n=i,!0)),n}const am=()=>{},lm=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&im(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);sm(t,e.mount,e.modalRef,i,!0);const o=rm(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=rm(this.containers,t=>t.modals.includes(e)),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=_h(e);return t.body===e?yh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=nm(yh(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${om(i)+e}px`;const t=_h(i).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${om(t)+e}px`})}let e;if(i.parentNode instanceof DocumentFragment)e=_h(i).body;else{const t=i.parentElement,n=yh(i);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=rm(this.containers,t=>t.modals.includes(e)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&im(e.modalRef,t),sm(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&im(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function cm(e){return Er("MuiModal",e)}Dr("MuiModal",["root","hidden","backdrop"]);const dm=_r("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xa(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),hm=_r(em,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),um=t.forwardRef(function(e,n){const i=Sr({name:"MuiModal",props:e}),{BackdropComponent:o=hm,BackdropProps:s,classes:r,className:a,closeAfterTransition:l=!1,children:c,container:d,component:h,components:u={},componentsProps:g={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:f=!1,disablePortal:b=!1,disableRestoreFocus:v=!1,disableScrollLock:C=!1,hideBackdrop:_=!1,keepMounted:y=!1,onClose:w,onTransitionEnter:A,onTransitionExited:S,open:x,slotProps:k={},slots:L={},theme:E,...D}=i,I={...i,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:f,disablePortal:b,disableRestoreFocus:v,disableScrollLock:C,hideBackdrop:_,keepMounted:y},{getRootProps:N,getBackdropProps:R,getTransitionProps:T,portalRef:M,isTopModal:O,exited:q,hasTransition:P}=function(e){const{container:n,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:r,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:h}=e,u=t.useRef({}),g=t.useRef(null),p=t.useRef(null),m=Sl(p,h),[f,b]=t.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let C=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(C=!1);const _=()=>(u.current.modalRef=p.current,u.current.mount=g.current,u.current),y=()=>{lm.mount(_(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},w=Ql(()=>{const e=function(e){return"function"==typeof e?e():e}(n)||_h(g.current).body;lm.add(_(),e),p.current&&y()}),A=()=>lm.isTopModal(_()),S=Ql(e=>{g.current=e,e&&(d&&A()?y():p.current&&im(p.current,C))}),x=t.useCallback(()=>{lm.remove(_(),C)},[C]);t.useEffect(()=>()=>{x()},[x]),t.useEffect(()=>{d?w():v&&s||x()},[d,x,v,s,w]);const k=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&A()&&(i||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=El(e);delete n.onTransitionEnter,delete n.onTransitionExited;const i={...n,...t};return{role:"presentation",...i,onKeyDown:k(i),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:L(t),open:d}},getTransitionProps:()=>({onEnter:tm(()=>{b(!1),r&&r()},l?.props.onEnter??am),onExited:tm(()=>{b(!0),a&&a(),s&&x()},l?.props.onExited??am)}),rootRef:m,portalRef:S,isTopModal:A,exited:f,hasTransition:v}}({...I,rootRef:n}),B={...I,exited:q},F=(e=>{const{open:t,exited:n,classes:i}=e;return Lt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cm,i)})(B),W={};if(void 0===c.props.tabIndex&&(W.tabIndex="-1"),P){const{onEnter:e,onExited:t}=T();W.onEnter=e,W.onExited=t}const z={slots:{root:u.Root,backdrop:u.Backdrop,...L},slotProps:{...g,...k}},[V,H]=Nl("root",{ref:n,elementType:dm,externalForwardedProps:{...z,...D,component:h},getSlotProps:N,ownerState:B,className:kt(a,F?.root,!B.open&&B.exited&&F?.hidden)}),[j,U]=Nl("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:e=>R({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:kt(s?.className,F?.backdrop),ownerState:B});return y||x||P&&!q?(0,_t.jsx)($p,{ref:M,container:d,disablePortal:b,children:(0,_t.jsxs)(V,{...H,children:[!_&&o?(0,_t.jsx)(j,{...U}):null,(0,_t.jsx)(jp,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:v,isEnabled:O,open:x,children:t.cloneElement(c,W)})]})}):null}),gm=um;function pm(e){return Er("MuiPaper",e)}Dr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mm=_r("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Xa(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fm=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiPaper"}),i=Ur(),{className:o,component:s="div",elevation:r=1,square:a=!1,variant:l="elevation",...c}=n,d={...n,component:s,elevation:r,square:a,variant:l},h=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e;return Lt({root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]},pm,o)})(d);return(0,_t.jsx)(mm,{as:s,ownerState:d,className:kt(h.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(i.vars||i).shadows[r],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[r]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${Ho("#fff",nr(r))}, ${Ho("#fff",nr(r))})`}},...c.style}})}),bm=fm;function vm(e){return Er("MuiPopover",e)}function Cm(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(i=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(i,t[i])&&"function"==typeof e[i]&&(n[i]=(...n)=>{e[i](...n),t[i](...n)})}),n}if("function"==typeof e||"function"==typeof t)return i=>{const o="function"==typeof t?t(i):t,s="function"==typeof e?e({...i,...o}):e,r=kt(i?.className,o?.className,s?.className),a=n(s,o);return{...o,...s,...a,...!!r&&{className:r},...o?.style&&s?.style&&{style:{...o.style,...s.style}},...o?.sx&&s?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const i=t,o=n(e,i),s=kt(i?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function _m(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ym(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function wm(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Am(e){return"function"==typeof e?e():e}Dr("MuiPopover",["root","paper"]);const Sm=_r(gm,{name:"MuiPopover",slot:"Root"})({}),xm=_r(bm,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),km=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:r={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:h,elevation:u=8,marginThreshold:g=16,open:p,PaperProps:m={},slots:f={},slotProps:b={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:_="auto",TransitionProps:y={},disableScrollLock:w=!1,...A}=i,S=t.useRef(),x={...i,anchorOrigin:r,anchorReference:l,elevation:u,marginThreshold:g,transformOrigin:v,TransitionComponent:C,transitionDuration:_,TransitionProps:y},k=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"]},vm,t)})(x),L=t.useCallback(()=>{if("anchorPosition"===l)return a;const e=Am(s),t=(e&&1===e.nodeType?e:Th(S.current).body).getBoundingClientRect();return{top:t.top+_m(t,r.vertical),left:t.left+ym(t,r.horizontal)}},[s,r.horizontal,r.vertical,a,l]),E=t.useCallback(e=>({vertical:_m(e,v.vertical),horizontal:ym(e,v.horizontal)}),[v.horizontal,v.vertical]),D=t.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:wm(n)};const i=L();let o=i.top-n.vertical,r=i.left-n.horizontal;const a=o+t.height,c=r+t.width,d=wh(Am(s)),h=d.innerHeight-g,u=d.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>h){const e=a-h;o-=e,n.vertical+=e}if(null!==g&&r<g){const e=r-g;r-=e,n.horizontal+=e}else if(c>u){const e=c-u;r-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:wm(n)}},[s,l,L,E,g]),[I,N]=t.useState(p),R=t.useCallback(()=>{const e=S.current;if(!e)return;const t=D(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[D]);t.useEffect(()=>(w&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[s,w,R]),t.useEffect(()=>{p&&R()}),t.useImperativeHandle(o,()=>p?{updatePosition:()=>{R()}}:null,[p,R]),t.useEffect(()=>{if(!p)return;const e=vh(()=>{R()}),t=wh(Am(s));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,p,R]);let T=_;const M={slots:{transition:C,...f},slotProps:{transition:y,paper:m,...b}},[O,q]=Nl("transition",{elementType:Bp,externalForwardedProps:M,ownerState:x,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),R()},onExited:t=>{e.onExited?.(t),N(!1)}}),additionalProps:{appear:!0,in:p}});"auto"!==_||O.muiSupportAuto||(T=void 0);const P=h||(s?Th(Am(s)).body:void 0),[B,{slots:F,slotProps:W,...z}]=Nl("root",{ref:n,elementType:Sm,externalForwardedProps:{...M,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:f.backdrop},slotProps:{backdrop:Cm("function"==typeof b.backdrop?b.backdrop(x):b.backdrop,{invisible:!0})},container:P,open:p},ownerState:x,className:kt(k.root,d)}),[V,H]=Nl("paper",{ref:S,className:k.paper,elementType:xm,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:u,style:I?void 0:{opacity:0}},ownerState:x});return(0,_t.jsx)(B,{...z,...!xl(B)&&{slots:F,slotProps:W,disableScrollLock:w},children:(0,_t.jsx)(O,{...q,timeout:T,children:(0,_t.jsx)(V,{...H,children:c})})})}),Lm=km;var Em=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Dm=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},Im=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=Dm(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Dm(i,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),Em(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,i=n.isItemLoaded,o=n.itemCount,s=n.minimumBatchSize,r=void 0===s?10:s,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,s=[],r=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(s.push(r,a),r=a=null):(a=l,null===r&&(r=l));if(null!==a){for(var c=Math.min(Math.max(a,r+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;s.push(r,a)}if(s.length)for(;s[1]-s[0]+1<i&&s[0]>0;){var h=s[0]-1;if(t(h))break;s[0]=h}return s}({isItemLoaded:i,itemCount:o,minimumBatchSize:r,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(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,i=function(i){var o=e[i],s=e[i+1],r=n(o,s);null!=r&&r.then(function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:s}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){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())}var e})},o=0;o<e.length;o+=2)i(o)}}]),t}(t.PureComponent);const Nm=Im,Rm=["S","XS"],Tm=e=>e.reduce((e,t)=>e.concat(t));async function Mm({selections:e,elemNumbers:t,toggle:n,isSingleSelect:i}){if(0===t.length)return!1;let o=!1;if(!t.some(e=>Number.isNaN(e))){const s=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",s,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const Om="RowColumn",qm={row:`${Om}-row`,rowBorderBottom:`${Om}-rowBorderBottom`,column:`${Om}-column`,fieldRoot:`${Om}-fieldRoot`,cell:`${Om}-cell`,labelText:`${Om}-labelText`,labelDense:`${Om}-labelDense`,highlighted:`${Om}-highlighted`,checkboxLabel:`${Om}-checkboxLabel`,icon:`${Om}-icon`,S:`${Om}-S`,XS:`${Om}-XS`,A:`${Om}-A`,X:`${Om}-X`,frequencyCount:`${Om}-frequencyCount`,barContainer:`${Om}-barContainer`,bar:`${Om}-bar`,barSelected:`${Om}-barSelected`,barWithCheckbox:`${Om}-barWithCheckbox`,barSelectedWithCheckbox:`${Om}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Om}-excludedTextWithCheckbox`},Pm=`.${qm.fieldRoot}`,Bm=e=>!(e?.metaKey||e?.ctrlKey);const Fm=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Wm=e=>Yd(Fm(e));n.dn(Wm);const zm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Vm=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||zm(e))&&t,Hm=e=>e.filter(e=>!!e).join(" ").trim(),jm=e=>e||"-",Um=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:i})=>"P"===t?`${e.freqMinWidth}px`:n&&!i?"max-content":"25%",$m=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,Gm=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${qm.labelText}`]:{color:t.selections.selected}}:{};const i=t.selections,o=i[n],s=i[`${n}Contrast`];return{background:o,color:s,"& $cell":{paddingRight:0},[`& .${qm.labelText}`]:{color:s},[`& .${qm.icon}`]:{color:s}}},Km={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Qm=_r("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:i,dense:o,direction:s,sizes:r,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=Gm({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),g=Gm({theme:e,styles:c,checkboxes:t,selectionState:"excluded"}),p={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},m={opacity:"30%"};return{"& .value":{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder} !important`,borderRadius:"4px",outline:"none"}},[`& .${qm.row}`]:{flexWrap:"nowrap",...c.content},[`& .${qm.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${qm.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${qm.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${qm.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...Km,...h},[`& .${qm.labelDense}`]:{lineHeight:"18px"},[`& .${qm.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${qm.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Km,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${qm.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${qm.S}`]:{...u,"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder}, inset 0 0 0 4px ${e.palette.custom.whiteBorder} !important`,borderRadius:"4px",outline:"none"},border:n?"none":void 0},[`& .${qm.XS}`]:{...Gm({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${qm.A}`]:{...Gm({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${qm.X}`]:{...g,border:n?"none":void 0},[`& .${qm.X}, & .${qm.XS}`]:{border:n?"none":void 0,[`& .${qm.barSelected} .bar-filled`]:{...p}},[`& .${qm.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Km,flex:`0 0 ${Um({sizes:r,frequencyMode:a,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==a&&l?r.freqMinWidth:"max-content",maxWidth:$m({sizes:r,frequencyMode:a,isGridMode:n}),textAlign:"rtl"===s?"left":"right",paddingLeft:"rtl"!==s?"8px":0},[`&.${qm.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${qm.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...p}},[`& .${qm.barSelected}`]:{"& .bar-filled":{...m}},[`& .${qm.barWithCheckbox}`]:{left:"rtl"===s?4:29,width:"calc(100% - 33px)"},[`& .${qm.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${qm.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}}),Ym=t.memo(Qm);function Zm(e){return Er("MuiFormControlLabel",e)}const Xm=Dr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Jm=_r("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Xm.label}`]:t.label},t.root,t[`labelPlacement${Vr(n.labelPlacement)}`]]}})(Xa(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xm.disabled}`]:{cursor:"default"},[`& .${Xm.label}`]:{[`&.${Xm.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),ef=_r("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Xa(({theme:e})=>({[`&.${Xm.error}`]:{color:(e.vars||e).palette.error.main}}))),tf=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:r={},control:a,disabled:l,disableTypography:c,inputRef:d,label:h,labelPlacement:u="end",name:g,onChange:p,required:m,slots:f={},slotProps:b={},value:v,...C}=i,_=tu(),y=l??a.props.disabled??_?.disabled,w=m??a.props.required,A={disabled:y,required:w};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==i[e]&&(A[e]=i[e])});const S=nu({props:i,muiFormControl:_,states:["error"]}),x={...i,disabled:y,labelPlacement:u,required:w,error:S.error},k=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:s}=e;return Lt({root:["root",n&&"disabled",`labelPlacement${Vr(i)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Zm,t)})(x),L={slots:f,slotProps:{...r,...b}},[E,D]=Nl("typography",{elementType:yd,externalForwardedProps:L,ownerState:x});let I=h;return null==I||I.type===yd||c||(I=(0,_t.jsx)(E,{component:"span",...D,className:kt(k.label,D?.className),children:I})),(0,_t.jsxs)(Jm,{className:kt(k.root,s),ownerState:x,ref:n,...C,children:[t.cloneElement(a,A),w?(0,_t.jsxs)("div",{children:[I,(0,_t.jsxs)(ef,{ownerState:x,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]})}),nf=tf,of=function(e){const{controlled:n,default:i,name:o,state:s="value"}=e,{current:r}=t.useRef(void 0!==n),[a,l]=t.useState(i);return[r?n:a,t.useCallback(e=>{r||l(e)},[])]};function sf(e){return Er("PrivateSwitchBase",e)}Dr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rf=_r(Lc,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),af=_r("input",{name:"MuiSwitchBase",shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lf=t.forwardRef(function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:s,disabled:r,disableFocusRipple:a=!1,edge:l=!1,icon:c,id:d,inputProps:h,inputRef:u,name:g,onBlur:p,onChange:m,onFocus:f,readOnly:b,required:v=!1,tabIndex:C,type:_,value:y,slots:w={},slotProps:A={},...S}=e,[x,k]=of({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),L=tu();let E=r;L&&void 0===E&&(E=L.disabled);const D="checkbox"===_||"radio"===_,I={...e,checked:x,disabled:E,disableFocusRipple:a,edge:l},N=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e;return Lt({root:["root",n&&"checked",i&&"disabled",o&&`edge${Vr(o)}`],input:["input"]},sf,t)})(I),R={slots:w,slotProps:{input:h,...A}},[T,M]=Nl("root",{ref:t,elementType:rf,className:N.root,shouldForwardComponentProp:!0,externalForwardedProps:{...R,component:"span",...S},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{f&&f(e),L&&L.onFocus&&L.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{p&&p(e),L&&L.onBlur&&L.onBlur(e)})(t)}}),ownerState:I,additionalProps:{centerRipple:!0,focusRipple:!a,role:void 0,tabIndex:null}}),[O,q]=Nl("input",{ref:u,elementType:af,className:N.input,externalForwardedProps:R,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||b)return;const t=e.target.checked;k(t),m&&m(e,t)})(t)}}),ownerState:I,additionalProps:{autoFocus:n,checked:i,defaultChecked:s,disabled:E,id:D?d:void 0,name:g,readOnly:b,required:v,tabIndex:C,type:_,..."checkbox"===_&&void 0===y?{}:{value:y}}});return(0,_t.jsxs)(T,{...M,children:[(0,_t.jsx)(O,{...q}),x?o:c]})}),cf=lf,df=ul((0,_t.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"})),hf=ul((0,_t.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"})),uf=ul((0,_t.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"}));function gf(e){return Er("MuiCheckbox",e)}const pf=Dr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mf=_r(cf,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Vr(n.size)}`],"default"!==n.color&&t[`color${Vr(n.color)}`]]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${pf.checked}, &.${pf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ff=(0,_t.jsx)(hf,{}),bf=(0,_t.jsx)(df,{}),vf=(0,_t.jsx)(uf,{}),Cf=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiCheckbox"}),{checkedIcon:o=ff,color:s="primary",icon:r=bf,indeterminate:a=!1,indeterminateIcon:l=vf,inputProps:c,size:d="medium",disableRipple:h=!1,className:u,slots:g={},slotProps:p={},...m}=i,f=a?l:r,b=a?l:o,v={...i,disableRipple:h,color:s,indeterminate:a,size:d},C=(e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,s=Lt({root:["root",n&&"indeterminate",`color${Vr(i)}`,`size${Vr(o)}`]},gf,t);return{...t,...s}})(v),_=p.input??c,[y,w]=Nl("root",{ref:n,elementType:mf,className:kt(C.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:p,...m},ownerState:v,additionalProps:{type:"checkbox",icon:t.cloneElement(f,{fontSize:f.props.fontSize??d}),checkedIcon:t.cloneElement(b,{fontSize:b.props.fontSize??d}),disableRipple:h,slots:g,slotProps:{input:Cm("function"==typeof _?_(v):_,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return(0,_t.jsx)(y,{...w,classes:C})}),_f=Cf,yf="ListBoxCheckbox",wf={cbIcon:`${yf}-cbIcon`,cbIconChecked:`${yf}-cbIconChecked`,cbIconExcluded:`${yf}-cbIconExcluded`,cbIconAlternative:`${yf}-cbIconAlternative`,checkbox:`${yf}-checkbox`,dense:`${yf}-dense`},Af=_r(_f,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${wf.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"},[`& .${wf.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,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:'""'}},[`& .${wf.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${wf.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${wf.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${wf.dense}`]:{padding:"4px 8px"}})),Sf=(e,t=!0,n=!1)=>(0,_t.jsx)("span",{className:e.cbIcon,children:n&&(0,_t.jsx)("span",{className:t&&n?e.cbIconExcluded:""})});function xf({onChange:e,checked:t,label:n,dense:i,excluded:o,styles:s,showGray:r=!0,dataN:a}){return(0,_t.jsx)(Af,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[wf.checkbox,i&&wf.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":a},name:n,icon:Sf(wf,r,o),checkedIcon:(0,_t.jsx)("span",{className:wf.cbIconChecked}),styles:s})}const kf=ul((0,_t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Lf=ul((0,_t.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Ef=_r("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Cr})({position:"relative",display:"flex"}),Df=_r(kf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),If=_r(Lf,{name:"MuiRadioButtonIcon"})(Xa(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]}))),Nf=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return(0,_t.jsxs)(Ef,{className:n.root,ownerState:o,children:[(0,_t.jsx)(Df,{fontSize:i,className:n.background,ownerState:o}),(0,_t.jsx)(If,{fontSize:i,className:n.dot,ownerState:o})]})},Rf=tm,Tf=t.createContext(void 0);function Mf(e){return Er("MuiRadio",e)}const Of=Dr("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),qf=_r(cf,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Vr(n.size)}`],t[`color${Vr(n.color)}`]]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Of.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Of.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Pf=(0,_t.jsx)(Nf,{checked:!0}),Bf=(0,_t.jsx)(Nf,{}),Ff=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:s=Pf,color:r="primary",icon:a=Bf,name:l,onChange:c,size:d="medium",className:h,disabled:u,disableRipple:g=!1,slots:p={},slotProps:m={},inputProps:f,...b}=i,v=tu();let C=u;v&&void 0===C&&(C=v.disabled),C??=!1;const _={...i,disabled:C,disableRipple:g,color:r,size:d},y=(e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${Vr(n)}`,"medium"!==i&&`size${Vr(i)}`]};return{...t,...Lt(o,Mf,t)}})(_),w=t.useContext(Tf);let A=o;const S=Rf(c,w&&w.onChange);let x=l;var k,L;w&&(void 0===A&&(k=w.value,A="object"==typeof(L=i.value)&&null!==L?k===L:String(k)===String(L)),void 0===x&&(x=w.name));const E=m.input??f,[D,I]=Nl("root",{ref:n,elementType:qf,className:kt(y.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...b},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),S(t,...n)}}),ownerState:_,additionalProps:{type:"radio",icon:t.cloneElement(a,{fontSize:a.props.fontSize??d}),checkedIcon:t.cloneElement(s,{fontSize:s.props.fontSize??d}),disabled:C,name:x,checked:A,slots:p,slotProps:{input:"function"==typeof E?E(_):E}}});return(0,_t.jsx)(D,{...I,classes:y})}),Wf="ListBoxRadioButton-radioButton",zf=_r(Ff,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${Wf}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function Vf({onChange:e,checked:t,label:n,dense:i,dataN:o,styles:s}){return(0,_t.jsx)(zf,{checked:t,onChange:e,value:n,name:n,className:Wf,inputProps:{"data-n":o},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}const Hf=function({label:e,dense:t,showGray:n=!0,checkboxes:i,cell:o,valueTextAlign:s}){return(0,_t.jsx)(yd,{component:"span",variant:"body2",className:Hm([qm.labelText,t&&qm.labelDense,n&&Vm({cell:o,checkboxes:i})&&qm.excludedTextWithCheckbox]),align:s,dir:"auto",children:(0,_t.jsx)("span",{children:e})})},jf=function({label:e,color:t,dense:n,showGray:i,checkboxes:o,cell:s,valueTextAlign:r}){return"string"==typeof e?(0,_t.jsx)(Hf,{label:e,color:t,dense:n,showGray:i,checkboxes:o,cell:s,valueTextAlign:r}):e},Uf=function({onChange:e,label:t,qElemNumber:n,isSelected:i,dense:o,cell:s,isGridCol:r,showGray:a,isSingleSelect:l,checkboxes:c,valueTextAlign:d,styles:h}){const u=(0,_t.jsx)(xf,{onChange:e,label:t,checked:i,dense:o,excluded:zm(s),isGridCol:r,showGray:a,dataN:n,styles:h}),g=(0,_t.jsx)(Vf,{onChange:e,label:t,checked:i,dense:o,dataN:n,styles:h});return(0,_t.jsx)(nf,{control:l?g:u,className:qm.checkboxLabel,label:(0,_t.jsx)(jf,{label:t,dense:o,showGray:a,checkboxes:c,cell:s,valueTextAlign:d})},n)};function $f({labels:e,dense:t,showGray:n,checkboxes:i}){const o=e.map(([e,t],n)=>(0,_t.jsx)("span",{id:n,className:t?qm.highlighted:"",children:e}));return(0,_t.jsx)(Hf,{label:o,dense:t,showGray:n,checkboxes:i})}const Gf=function({onChange:e,labels:t,checkboxes:n,dense:i,showGray:o,qElemNumber:s,isSelected:r,cell:a,isGridCol:l,isSingleSelect:c,valueTextAlign:d,styles:h}){const u=(0,_t.jsx)($f,{labels:t,dense:i,showGray:o,checkboxes:n});return n?(0,_t.jsx)(Uf,{onChange:e,label:u,qElemNumber:s,isSelected:r,dense:i,cell:a,isGridCol:l,showGray:o,isSingleSelect:c,checkboxes:n,valueTextAlign:d,styles:h}):u};function Kf({onChange:e,label:t,qElemNumber:n,isSelected:i,dense:o,cell:s,isGridCol:r,showGray:a,isSingleSelect:l,checkboxes:c,valueTextAlign:d,styles:h}){return c?(0,_t.jsx)(Uf,{onChange:e,label:t,qElemNumber:n,isSelected:i,dense:o,cell:s,isGridCol:r,showGray:a,isSingleSelect:l,checkboxes:c,valueTextAlign:d,styles:h}):(0,_t.jsx)(Hf,{label:t,dense:o,showGray:!0,checkboxes:c,cell:s,valueTextAlign:d})}const Qf=t.memo(Kf),Yf=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:i,frequencyMax:o}){if(!e||!t||"-"===jm(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),i="%"===n.substring(n.length-1),o=parseFloat(i?n:e);return`${i?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:o});return(0,_t.jsx)(Qa,{className:Hm([qm.bar,n&&qm.barWithCheckbox,i&&(n?qm.barSelectedWithCheckbox:qm.barSelected)]),children:(0,_t.jsx)(Qa,{className:"bar-filled",width:s})})},Zf=function({cell:e,checkboxes:t,dense:n,showGray:i}){const o=jm(e?.qFrequency);return(0,_t.jsx)(ud,{style:{display:"flex",alignItems:"center"},className:qm.frequencyCount,"aria-label":o,title:o,children:(0,_t.jsx)(yd,{noWrap:!0,color:"inherit",variant:"body2",className:Hm([n&&qm.labelDense,qm.labelText,i&&Vm({cell:e,checkboxes:t})&&qm.excludedTextWithCheckbox]),children:o})})};function Xf({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:i?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Jf=_r(ud,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o,fillHeight:s})=>{const r="padding"+("rtl"===o?"Left":"Right");return{[`&.${qm.fieldRoot}`]:{...Xf({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:s}),[r]:i?"8px":void 0}}}),eb=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===eb.ARROW_UP||e===eb.ARROW_DOWN||e===eb.ARROW_LEFT||e===eb.ARROW_RIGHT}),tb=eb;function nb(e){e?.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function ib(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function ob({containerRef:e,enabled:n}){const[i,o]=(0,t.useState)(!1),s={enabled:n,active:i,innerTabStops:!n||i,blur(t){if(!n)return;o(!1);const i=ib(e.current)||e.current?.parentElement;var s;s=e.current,s?.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),nb(e.current),t&&i&&(i.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!n)return;o(!0);const t=e.current,i=t?.querySelector(".search input"),s=t?.querySelector(".value.last-focused"),r=t?.querySelector(".value.selector, .value"),a=t?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=t?.querySelector("#listbox-unlock-button"),c=t?.querySelector(".listbox-cyclic-button"),d=c||i||s||r||l||a;d?.setAttribute("tabIndex",0),d?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return n?.setAttribute("tabIndex",0),n?.focus(),n}};return s}const sb=e=>+e.getAttribute("data-n"),rb=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},ab=e=>{const t=e?.querySelector(".value.last-focused"),n=e?.querySelector(".value.selector"),i=e?.querySelector(".value"),o=t||n||i;return o?.setAttribute("tabIndex",0),o?.focus(),nb(e),o},lb=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},cb=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:i}=e,o=i.classList.contains("listbox-container"),s=n.closest(".listbox-container"),r=ib(s),a=1===r?.querySelectorAll(".listbox-container").length;if(o||a)t.blur(!0);else{nb(s),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},db={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"},hb=function({index:e,rowIndex:n,columnIndex:i,style:o,data:s}){const{onChange:r,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:h,onTouchEnd:u,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:b,direction:v,layoutOptions:C={},freqIsAllowed:_,isSingleSelect:y,actions:w,frequencyMax:A="",histogram:S=!1,keyboard:x,showGray:k=!0,showTick:L=!0,columnCount:E=1,rowCount:D=1,dataOffset:I,deducedFrequencyMode:N,focusListItems:R,listCount:T,sizes:M,translator:O,showSearch:q,isModal:P,contentFontStyle:B,styles:F,fillHeight:W}=s,{dense:z=!1,dataLayout:V="singleColumn",layoutOrder:H}=C,{itemPadding:j}=M;let U,$;const G={max:null,currentIndex:null};if("number"==typeof n&&"number"==typeof i){"row"===H?(U=n*E+i,G.max=D,G.currentIndex=n):(U=i*D+n,G.max=E,G.currentIndex=i);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===n?o.top:Number(o.top)+n*e}}else U=e,G.max=T,G.currentIndex=e,$={...o};U+=I;const[K,Q]=(0,t.useState)(null);(0,t.useEffect)(()=>{null!==K&&(0===G.currentIndex&&R.first&&(K.focus(),R.setFirst(!1)),G.currentIndex===G.max-1&&R.last&&(K.focus(),R.setLast(!1)))},[K,R.first,R.last]);const Y=(0,t.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:s,focusListItems:r,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===tb.ARROW_LEFT||e===tb.ARROW_RIGHT||"number"!=typeof h||"number"!=typeof u){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const i=t?.parentElement.parentElement,o=i?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:i,layoutOrder:o,keyCode:s,numCells:r})=>{const a=e=>{let t;return"row"===o?(t=r%i,e<t?n:n-1):(t=r%n,e<i-1?n:t)};let l=e,c=t;if(s===tb.ARROW_DOWN)if(e>=a(t)-1){if(t===i-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*i+c;const d=r%n;return 0===d||l<d?l*i+c:(l-d)*(i-1)+c+d*i})({rowIndex:h,columnIndex:u,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),i=t?.parentElement.parentElement.children[n];return i?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:h,nativeEvent:u}=c,{keyCode:g,shiftKey:b=!1,ctrlKey:v=!1,metaKey:C=!1}=u;switch(g){case tb.TAB:{const e=h.closest(".listbox-container"),t=void 0!==l?l():void 0;if(h.classList.add("last-focused"),!a?.enabled){if(!t)return;return a.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(b){rb(e)||lb(e)||(t?a.focusSelection():cb(c,a));break}a.focusSelection()||lb(e)||rb(e)||(h.blur(),cb(c,a));break}case tb.SHIFT:f(!0);break;case tb.SPACE:e([sb(h)],!1,c);break;case tb.ARROW_DOWN:case tb.ARROW_RIGHT:d=p(g,h,!0),b&&d&&(m&&(e([sb(h)],!0),f(!1)),e([sb(d)],!0));break;case tb.ARROW_UP:case tb.ARROW_LEFT:d=p(g,h,!1),b&&d&&(m&&(e([sb(h)],!0),f(!1)),e([sb(d)],!0));break;case tb.ENTER:if(i(),void 0===l)return;break;case tb.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case tb.HOME:if(r.setFirst(!0),v){s?.("overflowStart");break}s?.("start");break;case tb.END:if(r.setLast(!0),v){s?.("overflowEnd");break}s?.("end");break;case tb.A:if(v||C){t();break}return;case tb.F:if(v||C){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:x,isModal:P,rowCount:D,columnCount:E,rowIndex:n,columnIndex:i,layoutOrder:H}),[w,x?.innerTabStops,D,E,n,i,H]),Z=(0,t.useMemo)(()=>function({pages:e,cellIndex:t}){let n;const i=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(i){const e=i.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=i.qMatrix[t-e.qTop])}return n}({pages:g,cellIndex:U}),[g,U]),X="S"===Z?.qState||"XS"===Z?.qState||"L"===Z?.qState||"XL"===Z?.qState,J=(0,t.useMemo)(()=>(({column:e,histogram:t,cell:n,showGray:i})=>{if(!n)return[];const o=[e?qm.column:qm.row];t||o.push(qm.rowBorderBottom);const s=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?qm.XS:qm.S;break;case"S":case"L":n=qm.S;break;case"A":n=!!t&&qm.A;break;case"X":case"XL":n=!!t&&qm.X;break;default:n=!1}return n}({cell:n,showGray:i});return s&&o.push(s),o})({column:m,histogram:S,cell:Z,showGray:k}),[Z?.qState,S,z]),ee=(0,t.useCallback)(e=>{e.preventDefault()},[f]),te=(0,t.useMemo)(()=>Z&&function({direction:e,cell:t,textAlign:n}){const i=!["NaN",void 0].includes(t?.qNum);let o;return o=!n||n.auto?i?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:n?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:v,cell:Z,textAlign:b}),[v,Z,b]);if(!Z)return null;const ne="grid"===V&&"column"===H,ie=Z?.qText??"";let oe;if(Z.qHighlightRanges?.qRanges?.length){oe=function(e,t){if(!t.length)return[];const n=t.reduce((n,i,o)=>{const s=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,s=[];return i>n&&s.push([e.slice(n,i),!1]),s.push([e.slice(i,i+o),!0]),s}(e,i,s));const r=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return r&&a<e.length&&n.push([e.slice(a),!1]),n},[]);return n}(ie,Z.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[])}const se={alignItems:"center",display:"flex",fontSize:"8px"},re="rtl"===v,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:re?8:f?0:void 0,paddingRight:f?0:re?8:0,justifyContent:te,textAlign:te},le=0===e,ce=X&&p,de=!f&&X&&!p,he=!f&&L,ue=f||!L,ge=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:s,showSearch:r}){const a=db[n],l=e.get(a),c=[];if(i){const t=r?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const d=`${t} ${l}`,h=e.get("CurrentSelections.Of",[o+1,s+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:O,label:ie,qState:Z.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:q}),pe=!re&&"right"===te||re&&"left"===te;return(0,_t.jsx)(Ym,{className:qm.barContainer,checkboxes:f,style:$,styles:F,isGridCol:ne,isGridMode:"grid"===V,dense:z,direction:v,sizes:M,frequencyMode:N,freqHitsValue:pe,contentFontStyle:B,"data-testid":"listbox.item",children:(0,_t.jsxs)(Jf,{role:"row","aria-label":ge,"aria-selected":X,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:Q,container:!0,dataLayout:V,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:Hm(["value",qm.fieldRoot,...J]),onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Y,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&x.innerTabStops?0:-1,"data-n":Z?.qElemNumber,direction:v,fillHeight:W,children:[Z?.qFrequency&&(0,_t.jsx)(Yf,{qFrequency:Z?.qFrequency,histogram:S,checkboxes:f,isSelected:X,frequencyMax:A}),(0,_t.jsx)(ud,{style:ae,className:Hm([qm.cell,qm.selectedCell]),title:`${ie}`,children:oe?(0,_t.jsx)(Gf,{onChange:r,labels:oe,checkboxes:f,dense:z,showGray:k,qElemNumber:Z.qElemNumber,isSelected:X,cell:Z,isGridCol:ne,isSingleSelect:y,valueTextAlign:te,styles:F}):(0,_t.jsx)(Qf,{onChange:r,label:ie,qElemNumber:Z.qElemNumber,isSelected:X,dense:z,cell:Z,isGridCol:ne,showGray:k,isSingleSelect:y,checkboxes:f,valueTextAlign:te,styles:F})}),_&&(0,_t.jsx)(Zf,{cell:Z,checkboxes:f,dense:z,showGray:k}),he&&(0,_t.jsxs)(ud,{className:qm.icon,children:[ce&&(0,_t.jsx)(Ip,{style:se,size:"small"}),de&&(0,_t.jsx)(Wm,{style:se,size:"small"})]})]})})};var ub=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gb(e,t){return e===t||!(!ub(e)||!ub(t))}function pb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!gb(e[n],t[n]))return!1;return!0}const mb=function(e,t){var n;void 0===t&&(t=pb);var i,o=[],s=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return s&&n===this&&t(r,o)||(i=e.apply(this,r),s=!0,n=this,o=r),i}};var fb="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bb(e){cancelAnimationFrame(e.id)}function vb(e,t){var n=fb(),i={id:requestAnimationFrame(function o(){fb()-n>=t?e.call(null):i.id=requestAnimationFrame(o)})};return i}var Cb=-1;function _b(e){if(void 0===e&&(e=!1),-1===Cb||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Cb=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Cb}var yb=null;function wb(e){if(void 0===e&&(e=!1),null===yb||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?yb="positive-descending":(t.scrollLeft=1,yb=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),yb}return yb}var Ab=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Sb(e){var n,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,s=e.getColumnStopIndexForStartIndex,r=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,h=e.getRowHeight,u=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,tc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:tc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=mb(function(e,t,i,o,s,r,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:s,visibleColumnStopIndex:r,visibleRowStartIndex:a,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=mb(function(e,t,i,o,s){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:s})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,s=n.props,a=s.columnWidth,l=s.direction,c=s.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:u(n.props,e,n._instanceProps),height:h(n.props,e,n._instanceProps),width:r(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=mb(function(e,t,n){return{}}),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,s=t.scrollLeft,r=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===s&&e.scrollTop===r)return null;var t=n.props.direction,c=s;if("rtl"===t)switch(wb()){case"negative":c=-s;break;case"positive-descending":c=l-o-s}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(r,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<s?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<r?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&bb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vb(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}ic(n,e),n.getDerivedStateFromProps=function(e,t){return xb(e,t),b(e),null};var v=n.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,s=this.props,r=s.columnCount,h=s.height,u=s.rowCount,g=s.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,b=_b();void 0!==i&&(i=Math.max(0,Math.min(i,r-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var v=a(this.props,this._instanceProps),C=l(this.props,this._instanceProps)>g?b:0,_=v>h?b:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,_):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,C):f})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(wb()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var s=o.clientWidth,r=o.scrollWidth;o.scrollLeft=r-s-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bb(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,n=e.children,i=e.className,o=e.columnCount,s=e.direction,r=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?Ab:g,m=e.outerElementType,f=e.outerTagName,b=e.rowCount,v=e.style,C=e.useIsScrolling,_=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),A=w[0],S=w[1],x=this._getVerticalRangeToRender(),k=x[0],L=x[1],E=[];if(o>0&&b)for(var D=k;D<=L;D++)for(var I=A;I<=S;I++)E.push((0,t.createElement)(n,{columnIndex:I,data:u,isScrolling:C?y:void 0,key:p({columnIndex:I,data:u,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var N=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:It({position:"relative",height:r,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},v)},(0,t.createElement)(d||h||"div",{children:E,ref:c,style:{height:N,pointerEvents:y?"none":void 0,width:R}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var s=this._getHorizontalRangeToRender(),r=s[0],a=s[1],l=s[2],c=s[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(r,a,h,u,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,C=m.scrollUpdateWasRequested,_=m.verticalScrollDirection;this._callOnScroll(b,v,f,_,C)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,r=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=n||i||r||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=s(this.props,g,h,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,u),f=d&&"forward"!==c?1:Math.max(1,u);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,s=e.rowCount,r=this.state,a=r.isScrolling,l=r.verticalScrollDirection,c=r.scrollTop,d=i||o||n||1;if(0===t||0===s)return[0,0,0,0];var h=g(this.props,c,this._instanceProps),u=p(this.props,h,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,h-m),Math.max(0,Math.min(s-1,u+f)),h,u]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var xb=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},kb=function(e,t){return e};function Lb(e){var n,i=e.getItemOffset,o=e.getEstimatedTotalSize,s=e.getItemSize,r=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,tc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:tc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=mb(function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=mb(function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,r=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&r);if(c.hasOwnProperty(e))t=c[e];else{var h=i(n.props,e,n._instanceProps),u=s(n.props,e,n._instanceProps),g="horizontal"===r||"horizontal"===l,p="rtl"===r,m=g?h:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:h,height:g?"100%":u,width:g?u:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=mb(function(e,t,n){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,s=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,r=o;if("rtl"===t)switch(wb()){case"negative":r=-o;break;case"positive-descending":r=s-i-o}return r=Math.max(0,Math.min(r,s-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:r,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,s=t.scrollTop;n.setState(function(e){if(e.scrollOffset===s)return null;var t=Math.max(0,Math.min(s,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&bb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vb(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}ic(n,e),n.getDerivedStateFromProps=function(e,t){return Eb(e,t),h(e),null};var u=n.prototype;return u.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)},u.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,s=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?_b():0:l.scrollHeight>l.clientHeight?_b():0}this.scrollTo(r(this.props,e,t,s,this._instanceProps,a))},u.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var s=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(wb()){case"negative":s.scrollLeft=-o;break;case"positive-ascending":s.scrollLeft=o;break;default:var r=s.clientWidth,a=s.scrollWidth;s.scrollLeft=a-r-o}else s.scrollLeft=o;else s.scrollTop=o}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bb(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,n=e.children,i=e.className,s=e.direction,r=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?kb:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,b=e.style,v=e.useIsScrolling,C=e.width,_=this.state.isScrolling,y="horizontal"===s||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,A=this._getRangeToRender(),S=A[0],x=A[1],k=[];if(d>0)for(var L=S;L<=x;L++)k.push((0,t.createElement)(n,{data:h,key:g(L,h),index:L,isScrolling:v?_:void 0,style:this._getItemStyle(L)}));var E=o(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:It({position:"relative",height:r,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},b)},(0,t.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":E,pointerEvents:_?"none":void 0,width:y?E:"100%"}}))},u._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var s=this.state,r=s.scrollDirection,a=s.scrollOffset,l=s.scrollUpdateWasRequested;this._callOnScroll(r,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,s=i.scrollDirection,r=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,r,this._instanceProps),d=l(this.props,c,r,this._instanceProps),h=o&&"backward"!==s?1:Math.max(1,n),u=o&&"forward"!==s?1:Math.max(1,n);return[Math.max(0,c-h),Math.max(0,Math.min(t-1,d+u)),c,d]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Eb=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Db=Sb({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,s){var r=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,r*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+s+a);switch("smart"===n&&(n=i>=h-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(l/2)?0:u>c+Math.floor(l/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,s){var r=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*r-a),d=Math.min(c,t*r),h=Math.max(0,t*r-a+s+r);switch("smart"===n&&(n=i>=h-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(a/2)?0:u>c+Math.floor(a/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,s=e.width,r=t*i,a=Math.ceil((s+n-r)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,s=e.height,r=t*i,a=Math.ceil((s+n-r)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Ib=Lb({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,i,o,s){var r=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===r||"horizontal"===d?h:a,g=Math.max(0,l*c-u),p=Math.min(g,t*c),m=Math.max(0,t*c-u+c+s);switch("smart"===n&&(n=i>=m-u&&i<=p+u?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(u/2)?0:f>g+Math.floor(u/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,s=e.itemCount,r=e.itemSize,a=e.layout,l=e.width,c=t*r,d="horizontal"===i||"horizontal"===a?l:o,h=Math.ceil((d+n-c)/r);return Math.max(0,Math.min(s-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Nb="#BBB",Rb="#f1f1f1",Tb="ListBox-styledScrollbars";function Mb({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:s,qCardinal:r,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,l),d=l?n.column:n.row,h=(l?i:o)>=d,u=((e,t,n,i)=>e===t*n+i+n)(r,c,l?o:i,a),g=!!a&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),p=h&&!u&&c>=d-1||g||s.state.show;s.set(p)}const{StyledFixedSizeList:Ob,StyledFixedSizeGrid:qb}=function(){const e=e=>({scrollbarColor:`${Nb} ${Rb}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Rb},"&::-webkit-scrollbar-thumb":{backgroundColor:Nb,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:ui(Ib,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${Tb}`]:e(t)})),StyledFixedSizeGrid:ui(Db,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${Tb}`]:e(t)}))}}(),Pb=e=>{const n=(0,t.useMemo)(()=>"text"in e?e:{},[e]);return(0,t.useMemo)(()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map(e=>n.measureText(e).width));const i=n.measureText(e);return Math.ceil(i.width||0)})(n.text,n.font||"12px Source Sans Pro"),[n.text,n.font])};function Bb(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Fb({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[Wb,zb]=cp({});function Vb(e){const t=`${e.id}`,[n]=Wb();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function Hb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jb(e){return e instanceof Hb(e).Element||e instanceof Element}function Ub(e){return e instanceof Hb(e).HTMLElement||e instanceof HTMLElement}function $b(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Hb(e).ShadowRoot||e instanceof ShadowRoot)}var Gb=Math.max,Kb=Math.min,Qb=Math.round;function Yb(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zb(){return!/^((?!chrome|android).)*safari/i.test(Yb())}function Xb(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&Ub(e)&&(o=e.offsetWidth>0&&Qb(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qb(i.height)/e.offsetHeight||1);var r=(jb(e)?Hb(e):window).visualViewport,a=!Zb()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/o,c=(i.top+(a&&r?r.offsetTop:0))/s,d=i.width/o,h=i.height/s;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function Jb(e){var t=Hb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ev(e){return e?(e.nodeName||"").toLowerCase():null}function tv(e){return((jb(e)?e.ownerDocument:e.document)||window.document).documentElement}function nv(e){return Xb(tv(e)).left+Jb(e).scrollLeft}function iv(e){return Hb(e).getComputedStyle(e)}function ov(e){var t=iv(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function sv(e,t,n){void 0===n&&(n=!1);var i=Ub(t),o=Ub(t)&&function(e){var t=e.getBoundingClientRect(),n=Qb(t.width)/e.offsetWidth||1,i=Qb(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),s=tv(t),r=Xb(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==ev(t)||ov(s))&&(a=function(e){return e!==Hb(e)&&Ub(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Jb(e);var t}(t)),Ub(t)?((l=Xb(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=nv(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function rv(e){var t=Xb(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function av(e){return"html"===ev(e)?e:e.assignedSlot||e.parentNode||($b(e)?e.host:null)||tv(e)}function lv(e){return["html","body","#document"].indexOf(ev(e))>=0?e.ownerDocument.body:Ub(e)&&ov(e)?e:lv(av(e))}function cv(e,t){var n;void 0===t&&(t=[]);var i=lv(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=Hb(i),r=o?[s].concat(s.visualViewport||[],ov(i)?i:[]):i,a=t.concat(r);return o?a:a.concat(cv(av(r)))}function dv(e){return["table","td","th"].indexOf(ev(e))>=0}function hv(e){return Ub(e)&&"fixed"!==iv(e).position?e.offsetParent:null}function uv(e){for(var t=Hb(e),n=hv(e);n&&dv(n)&&"static"===iv(n).position;)n=hv(n);return n&&("html"===ev(n)||"body"===ev(n)&&"static"===iv(n).position)?t:n||function(e){var t=/firefox/i.test(Yb());if(/Trident/i.test(Yb())&&Ub(e)&&"fixed"===iv(e).position)return null;var n=av(e);for($b(n)&&(n=n.host);Ub(n)&&["html","body"].indexOf(ev(n))<0;){var i=iv(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var gv="top",pv="bottom",mv="right",fv="left",bv="auto",vv=[gv,pv,mv,fv],Cv="start",_v="end",yv="viewport",wv="popper",Av=vv.reduce(function(e,t){return e.concat([t+"-"+Cv,t+"-"+_v])},[]),Sv=[].concat(vv,[bv]).reduce(function(e,t){return e.concat([t,t+"-"+Cv,t+"-"+_v])},[]),xv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kv(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}function Lv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Ev={placement:"bottom",modifiers:[],strategy:"absolute"};function Dv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Iv(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?Ev:o;return function(e,t,n){void 0===n&&(n=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ev,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},r=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},s,o.options,a),o.scrollParents={reference:jb(e)?cv(e):e.contextElement?cv(e.contextElement):[],popper:cv(t)};var d,h,u=function(e){var t=kv(e);return xv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((d=[].concat(i,o.options.modifiers),h=d.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(h).map(function(e){return h[e]})));return o.orderedModifiers=u.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var a=s({state:o,name:t,instance:l,options:i});r.push(a||function(){})}}),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(Dv(t,n)){o.rects={reference:sv(t,uv(n),"fixed"===o.options.strategy),popper:rv(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var s=o.orderedModifiers[i],r=s.fn,c=s.options,d=void 0===c?{}:c,h=s.name;"function"==typeof r&&(o=r({state:o,options:d,name:h,instance:l})||o)}else o.reset=!1,i=-1}}},update:Lv(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),a=!0}};if(!Dv(e,t))return l;function c(){r.forEach(function(e){return e()}),r=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var Nv={passive:!0};function Rv(e){return e.split("-")[0]}function Tv(e){return e.split("-")[1]}function Mv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ov(e){var t,n=e.reference,i=e.element,o=e.placement,s=o?Rv(o):null,r=o?Tv(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case gv:t={x:a,y:n.y-i.height};break;case pv:t={x:a,y:n.y+n.height};break;case mv:t={x:n.x+n.width,y:l};break;case fv:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Mv(s):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Cv:t[c]=t[c]-(n[d]/2-i[d]/2);break;case _v:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var qv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pv(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=r.x,g=void 0===u?0:u,p=r.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),C=fv,_=gv,y=window;if(c){var w=uv(n),A="clientHeight",S="clientWidth";w===Hb(n)&&"static"!==iv(w=tv(n)).position&&"absolute"===a&&(A="scrollHeight",S="scrollWidth"),(o===gv||(o===fv||o===mv)&&s===_v)&&(_=pv,m-=(h&&w===y&&y.visualViewport?y.visualViewport.height:w[A])-i.height,m*=l?1:-1),o!==fv&&(o!==gv&&o!==pv||s!==_v)||(C=mv,g-=(h&&w===y&&y.visualViewport?y.visualViewport.width:w[S])-i.width,g*=l?1:-1)}var x,k=Object.assign({position:a},c&&qv),L=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Qb(n*o)/o||0,y:Qb(i*o)/o||0}}({x:g,y:m},Hb(n)):{x:g,y:m};return g=L.x,m=L.y,l?Object.assign({},k,((x={})[_]=v?"0":"",x[C]=b?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[_]=v?m+"px":"",t[C]=b?g+"px":"",t.transform="",t))}const Bv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=void 0===o?[0,0]:o,r=Sv.reduce(function(e,n){return e[n]=function(e,t,n){var i=Rv(e),o=[fv,gv].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[fv,mv].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,s),e},{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};var Fv={left:"right",right:"left",bottom:"top",top:"bottom"};function Wv(e){return e.replace(/left|right|bottom|top/g,function(e){return Fv[e]})}var zv={start:"end",end:"start"};function Vv(e){return e.replace(/start|end/g,function(e){return zv[e]})}function Hv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$b(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function jv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uv(e,t,n){return t===yv?jv(function(e,t){var n=Hb(e),i=tv(e),o=n.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=Zb();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+nv(e),y:l}}(e,n)):jb(t)?function(e,t){var n=Xb(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):jv(function(e){var t,n=tv(e),i=Jb(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=Gb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Gb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+nv(e),l=-i.scrollTop;return"rtl"===iv(o||n).direction&&(a+=Gb(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(tv(e)))}function $v(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gv(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Kv(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,s=n.strategy,r=void 0===s?e.strategy:s,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?yv:c,h=n.elementContext,u=void 0===h?wv:h,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,b=$v("number"!=typeof f?f:Gv(f,vv)),v=u===wv?"reference":wv,C=e.rects.popper,_=e.elements[p?v:u],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=cv(av(e)),n=["absolute","fixed"].indexOf(iv(e).position)>=0&&Ub(e)?uv(e):e;return jb(n)?t.filter(function(e){return jb(e)&&Hv(e,n)&&"body"!==ev(e)}):[]}(e):[].concat(t),s=[].concat(o,[n]),r=s[0],a=s.reduce(function(t,n){var o=Uv(e,n,i);return t.top=Gb(o.top,t.top),t.right=Kb(o.right,t.right),t.bottom=Kb(o.bottom,t.bottom),t.left=Gb(o.left,t.left),t},Uv(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(jb(_)?_:_.contextElement||tv(e.elements.popper),l,d,r),w=Xb(e.elements.reference),A=Ov({reference:w,element:C,strategy:"absolute",placement:o}),S=jv(Object.assign({},C,A)),x=u===wv?S:w,k={top:y.top-x.top+b.top,bottom:x.bottom-y.bottom+b.bottom,left:y.left-x.left+b.left,right:x.right-y.right+b.right},L=e.modifiersData.offset;if(u===wv&&L){var E=L[o];Object.keys(k).forEach(function(e){var t=[mv,pv].indexOf(e)>=0?1:-1,n=[gv,pv].indexOf(e)>=0?"y":"x";k[e]+=E[n]*t})}return k}const Qv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,u=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,b=Rv(f),v=l||(b!==f&&p?function(e){if(Rv(e)===bv)return[];var t=Wv(e);return[Vv(e),t,Vv(t)]}(f):[Wv(f)]),C=[f].concat(v).reduce(function(e,n){return e.concat(Rv(n)===bv?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Sv:l,d=Tv(i),h=d?a?Av:Av.filter(function(e){return Tv(e)===d}):vv,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var g=u.reduce(function(t,n){return t[n]=Kv(e,{placement:n,boundary:o,rootBoundary:s,padding:r})[Rv(n)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}(t,{placement:n,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,y=t.rects.popper,w=new Map,A=!0,S=C[0],x=0;x<C.length;x++){var k=C[x],L=Rv(k),E=Tv(k)===Cv,D=[gv,pv].indexOf(L)>=0,I=D?"width":"height",N=Kv(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),R=D?E?mv:fv:E?pv:gv;_[I]>y[I]&&(R=Wv(R));var T=Wv(R),M=[];if(s&&M.push(N[L]<=0),a&&M.push(N[R]<=0,N[T]<=0),M.every(function(e){return e})){S=k,A=!1;break}w.set(k,M)}if(A)for(var O=function(e){var t=C.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},q=p?3:1;q>0&&"break"!==O(q);q--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Yv(e,t,n){return Gb(e,Kb(t,n))}const Zv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,u=n.tether,g=void 0===u||u,p=n.tetherOffset,m=void 0===p?0:p,f=Kv(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=Rv(t.placement),v=Tv(t.placement),C=!v,_=Mv(b),y="x"===_?"y":"x",w=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(s){var D,I="y"===_?gv:fv,N="y"===_?pv:mv,R="y"===_?"height":"width",T=w[_],M=T+f[I],O=T-f[N],q=g?-S[R]/2:0,P=v===Cv?A[R]:S[R],B=v===Cv?-S[R]:-A[R],F=t.elements.arrow,W=g&&F?rv(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=z[I],H=z[N],j=Yv(0,A[R],W[R]),U=C?A[R]/2-q-j-V-k.mainAxis:P-j-V-k.mainAxis,$=C?-A[R]/2+q+j+H+k.mainAxis:B+j+H+k.mainAxis,G=t.elements.arrow&&uv(t.elements.arrow),K=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Q=null!=(D=null==L?void 0:L[_])?D:0,Y=T+$-Q,Z=Yv(g?Kb(M,T+U-Q-K):M,T,g?Gb(O,Y):O);w[_]=Z,E[_]=Z-T}if(a){var X,J="x"===_?gv:fv,ee="x"===_?pv:mv,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],se=-1!==[gv,fv].indexOf(b),re=null!=(X=null==L?void 0:L[y])?X:0,ae=se?ie:te-A[ne]-S[ne]-re+k.altAxis,le=se?te+A[ne]+S[ne]-re-k.altAxis:oe,ce=g&&se?function(e,t,n){var i=Yv(e,t,n);return i>n?n:i}(ae,te,le):Yv(g?ae:ie,te,g?le:oe);w[y]=ce,E[y]=ce-te}t.modifiersData[i]=E}},requiresIfExists:["offset"]},Xv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Rv(n.placement),l=Mv(a),c=[fv,mv].indexOf(a)>=0?"height":"width";if(s&&r){var d=function(e,t){return $v("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gv(e,vv))}(o.padding,n),h=rv(s),u="y"===l?gv:fv,g="y"===l?pv:mv,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],m=r[l]-n.rects.reference[l],f=uv(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,v=p/2-m/2,C=d[u],_=b-h[c]-d[g],y=b/2-h[c]/2+v,w=Yv(C,y,_),A=l;n.modifiersData[i]=((t={})[A]=w,t.centerOffset=w-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Hv(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jv(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eC(e){return[gv,mv,pv,fv].some(function(t){return e[t]>=0})}var tC=Iv({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=void 0===o||o,r=i.resize,a=void 0===r||r,l=Hb(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",n.update,Nv)}),a&&l.addEventListener("resize",n.update,Nv),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Nv)}),a&&l.removeEventListener("resize",n.update,Nv)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ov({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,s=n.adaptive,r=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,c={placement:Rv(t.placement),variation:Tv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Pv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Ub(o)&&ev(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ub(i)&&ev(i)&&(Object.assign(i.style,s),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]},Bv,Qv,Zv,Xv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=Kv(t,{elementContext:"reference"}),a=Kv(t,{altBoundary:!0}),l=Jv(r,i),c=Jv(a,o,s),d=eC(l),h=eC(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});function nC(e){return Er("MuiPopper",e)}function iC(e){return"function"==typeof e?e():e}Dr("MuiPopper",["root"]);const oC={},sC=t.forwardRef(function(e,n){const{anchorEl:i,children:o,direction:s,disablePortal:r,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:h,slotProps:u={},slots:g={},TransitionProps:p,ownerState:m,...f}=e,b=t.useRef(null),v=Sl(b,n),C=t.useRef(null),_=Sl(C,h),y=t.useRef(_);Jr(()=>{y.current=_},[_]),t.useImperativeHandle(h,()=>C.current,[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,s),[A,S]=t.useState(w),[x,k]=t.useState(iC(i));t.useEffect(()=>{C.current&&C.current.forceUpdate()}),t.useEffect(()=>{i&&k(iC(i))},[i]),Jr(()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:r}},{name:"flip",options:{altBoundary:r}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=a&&(e=e.concat(a)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=tC(x,b.current,{placement:w,...d,modifiers:e});y.current(t);const n=b.current;return()=>{if(n){const{style:e}=n,i=e.position,o=e.top,s=e.left,r=e.transform;t.destroy(),e.position=i,e.top=o,e.left=s,e.transform=r}else t.destroy();y.current(null)}},[x,r,a,l,d,w]);const L={placement:A};null!==p&&(L.TransitionProps=p);const E=(e=>{const{classes:t}=e;return Lt({root:["root"]},nC,t)})(e),D=g.root??"div",I=fh({elementType:D,externalSlotProps:u.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:E.root});return(0,_t.jsx)(D,{...I,children:"function"==typeof o?o(L):o})}),rC=_r(t.forwardRef(function(e,n){const{anchorEl:i,children:o,container:s,direction:r="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=oC,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:b={},...v}=e,[C,_]=t.useState(!0);if(!l&&!d&&(!m||C))return null;let y;if(s)y=s;else if(i){const e=iC(i);y=e&&void 0!==e.nodeType?_h(e).body:_h(null).body}const w=d||!l||m&&!C?void 0:"none",A=m?{in:d,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return(0,_t.jsx)($p,{disablePortal:a,container:y,children:(0,_t.jsx)(sC,{anchorEl:i,direction:r,disablePortal:a,modifiers:c,ref:n,open:m?!C:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:b,...v,style:{position:"fixed",top:0,left:0,display:w,...p},TransitionProps:A,children:o})})}),{name:"MuiPopper",slot:"Root"})({}),aC=t.forwardRef(function(e,t){const n=Zr(),i=Sr({props:e,name:"MuiPopper"}),{anchorEl:o,component:s,components:r,componentsProps:a,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,slots:b,slotProps:v,...C}=i,_=b?.root??r?.Root,y={anchorEl:o,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,...C};return(0,_t.jsx)(rC,{as:s,direction:n?"rtl":"ltr",slots:{root:_},slotProps:v??a,...y,ref:t})});function lC(e){return Er("MuiTooltip",e)}const cC=Dr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),dC=_r(aC,{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]}})(Xa(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${cC.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${cC.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${cC.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${cC.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${cC.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${cC.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${cC.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${cC.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),hC=_r("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${Vr(n.placement.split("-")[0])}`]]}})(Xa(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${cC.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${cC.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${cC.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${cC.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${cC.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),uC=_r("span",{name:"MuiTooltip",slot:"Arrow"})(Xa(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gC=!1;const pC=new uc;let mC={x:0,y:0};function fC(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const bC=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:r,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:h=!1,disableInteractive:u=!1,disableTouchListener:g=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:f=700,followCursor:b=!1,id:v,leaveDelay:C=0,leaveTouchDelay:_=1500,onClose:y,onOpen:w,open:A,placement:S="bottom",PopperComponent:x,PopperProps:k={},slotProps:L={},slots:E={},title:D,TransitionComponent:I,TransitionProps:N,...R}=i,T=t.isValidElement(s)?s:(0,_t.jsx)("span",{children:s}),M=Ur(),O=Zr(),[q,P]=t.useState(),[B,F]=t.useState(null),W=t.useRef(!1),z=u||b,V=gc(),H=gc(),j=gc(),U=gc(),[$,G]=of({controlled:A,default:!1,name:"Tooltip",state:"open"});let K=$;const Q=Ul(v),Y=t.useRef(),Z=Yl(()=>{void 0!==Y.current&&(document.body.style.WebkitUserSelect=Y.current,Y.current=void 0),U.clear()});t.useEffect(()=>Z,[Z]);const X=e=>{pC.clear(),gC=!0,G(!0),w&&!K&&w(e)},J=Yl(e=>{pC.start(800+C,()=>{gC=!1}),G(!1),y&&K&&y(e),V.start(M.transitions.duration.shortest,()=>{W.current=!1})}),ee=e=>{W.current&&"touchstart"!==e.type||(q&&q.removeAttribute("title"),H.clear(),j.clear(),p||gC&&m?H.start(gC?m:p,()=>{X(e)}):X(e))},te=e=>{H.clear(),j.start(C,()=>{J(e)})},[,ne]=t.useState(!1),ie=e=>{const t=e?.target??q;if(!t||!Gl(t)){ne(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),te(n)}},oe=e=>{q||P(e.currentTarget),Gl(e.target)&&(ne(!0),ee(e))},se=e=>{W.current=!0;const t=T.props;t.onTouchStart&&t.onTouchStart(e)};t.useEffect(()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&J(e)}},[J,K]);const re=Kl(Tp(T),P,n);D||0===D||(K=!1);const ae=t.useRef(),le={},ce="string"==typeof D;c?(le.title=K||!ce||h?null:D,le["aria-describedby"]=K?Q:null):(le["aria-label"]=ce?D:null,le["aria-labelledby"]=K&&!ce?Q:null);const de={...le,...R,...T.props,className:kt(R.className,T.props.className),onTouchStart:se,ref:re,...b?{onMouseMove:e=>{const t=T.props;t.onMouseMove&&t.onMouseMove(e),mC={x:e.clientX,y:e.clientY},ae.current&&ae.current.update()}}:{}},he={};g||(de.onTouchStart=e=>{se(e),j.clear(),V.clear(),Z(),Y.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(f,()=>{document.body.style.WebkitUserSelect=Y.current,ee(e)})},de.onTouchEnd=e=>{T.props.onTouchEnd&&T.props.onTouchEnd(e),Z(),j.start(_,()=>{J(e)})}),h||(de.onMouseOver=fC(ee,de.onMouseOver),de.onMouseLeave=fC(te,de.onMouseLeave),z||(he.onMouseOver=ee,he.onMouseLeave=te)),d||(de.onFocus=fC(oe,de.onFocus),de.onBlur=fC(ie,de.onBlur),z||(he.onFocus=oe,he.onBlur=ie));const ue={...i,isRtl:O,arrow:o,disableInteractive:z,placement:S,PopperComponentProp:x,touch:W.current},ge="function"==typeof L.popper?L.popper(ue):L.popper,pe=t.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(B),options:{element:B,padding:4}}];return k.popperOptions?.modifiers&&(e=e.concat(k.popperOptions.modifiers)),ge?.popperOptions?.modifiers&&(e=e.concat(ge.popperOptions.modifiers)),{...k.popperOptions,...ge?.popperOptions,modifiers:e}},[B,k.popperOptions,ge?.popperOptions]),me=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:s}=e;return Lt({popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${Vr(s.split("-")[0])}`],arrow:["arrow"]},lC,t)})(ue),fe="function"==typeof L.transition?L.transition(ue):L.transition,be={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...E},slotProps:{arrow:L.arrow??l.arrow,popper:{...k,...ge??l.popper},tooltip:L.tooltip??l.tooltip,transition:{...N,...fe??l.transition}}},[ve,Ce]=Nl("popper",{elementType:dC,externalForwardedProps:be,ownerState:ue,className:kt(me.popper,k?.className)}),[_e,ye]=Nl("transition",{elementType:Bp,externalForwardedProps:be,ownerState:ue}),[we,Ae]=Nl("tooltip",{elementType:hC,className:me.tooltip,externalForwardedProps:be,ownerState:ue}),[Se,xe]=Nl("arrow",{elementType:uC,className:me.arrow,externalForwardedProps:be,ownerState:ue,ref:F});return(0,_t.jsxs)(t.Fragment,{children:[t.cloneElement(T,de),(0,_t.jsx)(ve,{as:x??aC,placement:S,anchorEl:b?{getBoundingClientRect:()=>({top:mC.y,left:mC.x,right:mC.x,bottom:mC.y,width:0,height:0})}:q,popperRef:ae,open:!!q&&K,id:Q,transition:!0,...he,...Ce,popperOptions:pe,children:({TransitionProps:e})=>(0,_t.jsx)(_e,{timeout:M.transitions.duration.shorter,...e,...ye,children:(0,_t.jsxs)(we,{...Ae,children:[D,o?(0,_t.jsx)(Se,{...xe}):null]})})})]})}),vC=bC,CC=_r(yd,{shouldForwardProp:e=>!["width","dense"].includes(e)})(({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",whiteSpace:"normal",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}}));function _C({width:e,text:n,dense:i,tooltip:o}){const{translator:s}=(0,t.useContext)(rp);return(0,_t.jsx)(vC,{title:o?s.get(n):"",children:(0,_t.jsx)(CC,{width:e,dense:i,component:"div",variant:"body1",py:"12px",children:s.get(n)})})}const yC=ul((0,_t.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),wC=_r(bm)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),AC=_r("div")(()=>({paddingLeft:"6px",flexGrow:1})),SC=_r("div")(({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"})),xC=_r(yC)(()=>({fontSize:"14px"}));function kC({text:e,dismiss:t,dense:n,parentWidth:i=0}){const o="function"==typeof t,s=n?370:282,r=Math.max(i/2-s/2,0),a=Math.min(s,i)-42,l=n&&i<s;return(0,_t.jsxs)(wC,{left:r,style:{maxWidth:s},children:[(0,_t.jsx)(AC,{children:(0,_t.jsx)(_C,{text:e,dense:n,width:a,tooltip:l})}),(0,_t.jsx)(SC,{dense:n,children:o&&(0,_t.jsx)(Uc,{"aria-label":"close",onClick:()=>t(),children:(0,_t.jsx)(xC,{})})})]})}function LC({itemWidth:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},s=!["N",void 0].includes(n);return!(!i||!s&&!o)}const EC=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,DC=e=>{const t=EC(e);return`Max(AGGR(Count(${t}), ${t}))`},IC=_r("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function NC({model:e,app:n,constraints:i,layout:o,selections:s,selectionState:r,direction:a,checkboxes:l,height:c,width:d,frequencyMode:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:b=!0,scrollState:v,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:y,onCtrlF:w,showSearch:A,isModal:S,styles:x}){const{translator:k}=(0,t.useContext)(rp),[L,E]=(0,t.useState)(!1),D=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:I=l,histogram:N}=o??{},R=(0,t.useRef)(null),T=(0,t.useRef)({queue:[],validPages:!1,dataOffset:0}),M=(0,t.useRef)({pages:[]}),{frequencyMax:O,awaitingFrequencyMax:q}=((e,n)=>{const i=(e=>"fetch"===e?.frequencyMax)(n),[o,s]=(0,t.useState)(),[r,a]=(0,t.useState)(i);return(0,t.useEffect)(()=>{i&&(async()=>{const t=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,i=n.qGroupFieldDefs[n.qGroupPos],o=DC(i);return(await t.evaluateEx(o)).qNumber})(n,e);s(t),a(!1)})()},[i&&n]),{frequencyMax:i?o:n?.frequencyMax,awaitingFrequencyMax:r}})(n,o),{isLoadingData:P,...B}=function({local:e,loaderRef:n,model:i,fetchStart:o,scrollTimeout:s,postProcessPages:r,listData:a}){const[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)([]);let[u]=(0,t.useState)(0);const g=(t,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:t+d,stop:l+d});const g=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const n=e.current.queue.slice(-1)[0];if(!n)return c(!1),void t();const s=i.getListObjectData("/qListObjectDef",[{qTop:n.start>u?n.start-u:0,qHeight:u,qLeft:0,qWidth:1},{qTop:n.start,qHeight:u,qLeft:0,qWidth:1}]).then(n=>{const i=r?r(n):n;e.current.validPages=!0,a.current.pages=i,h(i),c(!1),t()});o&&o(s)},g?s:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(u=e),g)},pages:d,isLoading:l}}({local:T,loaderRef:R,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:M}),{getStoreValue:F,setStoreValue:W}=Vb(e),z=(0,t.useCallback)(B.loadMoreItems,[o]),[V,H]=(0,t.useState)({show:!1,dismissed:!1}),[j,U]=(0,t.useState)([]);B?.pages&&r.update({setPages:U,pages:B.pages,isSingleSelect:D,layout:o});const $=o?.qListObject.qDimensionInfo.qCardinal;(B?.pages.length&&!q||0===$)&&y?.();const G=(0,t.useCallback)(e=>{if(!j?.length||!T.current.validPages)return!1;T.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=j.filter(e=>t(e))[0];return n&&t(n)},[o,j]),{interactionEvents:K,select:Q}=function({selectionState:e,selections:n,checkboxes:i=!1,doc:o=document,loaderRef:s}){const r=(0,t.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,t.useEffect)(()=>{if(!s.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=s.current._listRef._outerRef;return i.addEventListener("gesturestart",e),i.addEventListener("gesturechange",t),i.addEventListener("gestureend",n),()=>{i.removeEventListener("gesturestart",e),i.removeEventListener("gesturechange",t),i.removeEventListener("gestureend",n)}},[s.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),Mm({selections:n,elemNumbers:r.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:r.current.toggle})),l=(t,n)=>{const i=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 Tm(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i}),{min:n,max:i}}(e,t);return t.slice(n,i+1)}([t,n],i)},c=t=>{const{startElemNumber:n}=r.current;if(n===t)return;const i=l(r.current.startElemNumber,t);e.updateItems(i,!0,r.current.elemNumbers)},d=(0,t.useCallback)(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&Bm(t.nativeEvent);r.current.elemNumbers=[n],r.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),r.current.active=!1,a()},[]),h=(0,t.useCallback)(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),i=!e.isSingleSelect&&Bm(t);r.current.isRange=!1,r.current.startElemNumber=n,r.current.elemNumbers=[n],r.current.toggle=i,r.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(r.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),u=(0,t.useCallback)(e=>{if(0===e.button&&r.current.active){if(r.current.active=!1,r.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}},[]),g=(0,t.useCallback)(e=>{0===e.button&&r.current.active&&(r.current.active=!1,a())},[]),p=(0,t.useCallback)(t=>{if(!r.current.active)return;r.current.isRange||(r.current.isRange=!0,e.isSelected(r.current.startElemNumber)||(e.updateItem(r.current.startElemNumber,!0),r.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=(0,t.useCallback)(t=>{if(r.current.active||r.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const n=Number(t.touches[0].target?.closest(Pm)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(Pm)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(r.current.active=!0,l(n,i).length<7&&(r.current.touchRangeSmall=!0),r.current.elemNumbers=[],r.current.touchElemNumbers=[n,i])},[]),f=(0,t.useCallback)(()=>{if(2!==r.current.touchElemNumbers.length)return;if(r.current.touchRangeSmall)return r.current.touchRangeSmall=!1,r.current.touchElemNumbers=[],void(r.current.active=!1);const[e,t]=r.current.touchElemNumbers;r.current.startElemNumber=e,c(t),r.current.touchElemNumbers=[],r.current.active=!1,r.current.toggle=!0,a()},[]);(0,t.useEffect)(()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)}),[g]),(0,t.useEffect)(()=>{const t=()=>{e.clearItemStates(!1)},i=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return n.on("clearItemStates",t),n.on("deactivated",t),n.on("cleared",i),()=>{n.removeListener("clearItemStates",t),n.removeListener("deactivated",t),n.removeListener("cleared",i)}},[n]);const b={};return i?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:u,onMouseDown:h,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:b,select:async(t=[],i=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const s=!e.isSingleSelect&&Bm(o?.nativeEvent);s||e.clearItemStates(!0);const r=[];return e.updateItems(t,i,r),e.setSelectableValuesUpdating(),Mm({selections:n,elemNumbers:i?r:t,isSingleSelect:e.isSingleSelect,toggle:s})}}}({selectionState:r,selections:s,checkboxes:I,doc:document,loaderRef:R}),{layoutOptions:Y={}}=o||{};let Z=!0;Y.dataLayout&&(Z="singleColumn"===Y.dataLayout||"row"===Y?.layoutOrder);const X="grid"===Y?.dataLayout,J=e=>{const t={...Z?{rowIndex:e}:{columnIndex:e}},n=X?t:e;R.current._listRef.scrollToItem(n)},ee=()=>{if(T.current.queue=[],T.current.validPages=!1,R.current){R.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&C.reset());T.current.dataOffset=0,J(0)}};u&&u.call(null,ee),(0,t.useEffect)(()=>{v&&!L&&R.current&&(R.current._listRef.scrollToItem(v.initScrollPos),E(!0))},[R.current]),(0,t.useEffect)(()=>{ee()},[o,T.current.dataOffset]);let te=100;const ne="grid"!==Y.dataLayout,ie=o?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:j,minimumBatchSize:te,count:ie,calculatePagesHeight:m,layoutOptions:Y,model:e});let se=LC({itemWidth:d,layout:o,frequencyMode:h});const re=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>!!e.qFrequency?.match("%")))?"P":"-"}(j),ae=function({layout:e,width:t,height:n,listCount:i,count:o,freqIsAllowed:s,checkboxes:r,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:h,dense:u,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,b=Pb({text:Bb(e),font:f}),v=Pb({text:Bb(5),font:f}),C=Pb({text:Bb(8),font:f}),_=s?v:0,y=r?20:0;let w=56+_+y;!r&&w>=80&&(w+=20);let A,S,x,k,L=b+18+_+y;!r&&L>=80&&(L+=20),L=Math.min(150,Math.max(L,w));const E=Fb({isGridMode:"grid"===g,dense:u}),D=n??8*E;if(c){let e=t;"row"===c?(A={overflowX:"hidden"},e+=8,({rowCount:k,columnWidth:x,columnCount:S}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:i,itemMinWidth:o}){const s=e?.maxColumns||3,r=n-10;let a;const l=Math.min(t,Math.max(1,Math.round(r/Math.max(o,i))));a=!1!==e?.auto?l:Math.min(t,s,l),a=Math.max(a,1);const c=r/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:h,listCount:i,containerWidth:e,columnAutoWidth:L,itemMinWidth:w}))):(A={overflowY:"hidden"},({rowCount:k,columnWidth:x,columnCount:S}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:s,itemMinWidth:r}){let a;const l=e?.maxRows||3,c=Math.floor(i/t);a=!1!==e.auto?c:Math.min(n,l,c),a=Math.max(a,1);const d=Math.ceil(n/a);return{columnWidth:Math.max(o,s/d,r),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:E,listCount:i,listHeight:D,columnAutoWidth:L,containerWidth:e,itemMinWidth:w})))}S=("singleColumn"===g?1:S)||1,k=("singleColumn"===g?o:k)||i;const I=l.dense?838e3:577e3;k=Math.min(k,I);const N=Math.floor(3355e4/x);S=Math.min(S,N)||1;const R=k*S;return{columnCount:S,columnWidth:x,rowCount:k,overflowStyling:A,itemHeight:E,listHeight:D,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(i,R),maxCount:{row:I,column:N},itemPadding:4,textWidth:b,freqMinWidth:v,freqMaxWidth:C}}({layout:o,width:d,height:c,listCount:oe,count:ie,freqIsAllowed:se,checkboxes:I,styles:x});ae.columnWidth&&(se=LC({itemWidth:ae.columnWidth,layout:o,frequencyMode:h}));const{listCount:le}=ae;W("listCount",le);const ce=F("inputText"),de=function({layout:e,searchInputText:n,listCount:i}){const{translator:o}=(0,t.useContext)(rp),s=[];if(n?.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(i),t=o.get(e,[i]);s.push(t)}const r=function({layout:e,translatorDynamic:t}){const{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},i=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let o;switch(i){case 0:o="ScreenReader.ZeroSelected";break;case 1:o="ScreenReader.OneSelected";break;default:o="ScreenReader.ManySelected"}return t.get(o,[i])}({layout:e,translatorDynamic:o});s.push(r);const a=s.filter(e=>!!e?.length).join(". ");return a}({layout:o,searchInputText:ce,listCount:le}),he=e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let s,r=!1,a=o??0;switch(e){case"start":s=0;break;case"end":s=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,s=0,r=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),s=i.qListObject.qDimensionInfo.qCardinal,r=!0}return{scrollIndex:s,offset:a,triggerRerender:r}}({position:e,isRow:Z,sizes:ae,layout:o,offset:T.current.dataOffset});T.current.dataOffset=n,i&&r.triggerStateChanged(),J(t)};(0,t.useEffect)(()=>{const e=C.state;e.up?J(_.state.start-e.up):e.down?J(_.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()},[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ue}=o?.qListObject.qDimensionInfo||{},[ge,pe]=(0,t.useState)({first:!1,last:!1}),{List:me,Grid:fe}=function({layout:e,width:t,checkboxes:n,local:i,isVertical:o,pages:s,selectionState:r,interactionEvents:a,deducedFrequencyMode:l,histogram:c,isSingleSelect:d,select:h,selectAll:u,onCtrlF:g,textAlign:p,selections:m,keyboard:f,showGray:b,scrollState:v,direction:C,sizes:_,listCount:y,overflowDisclaimer:w,setScrollPosition:A,focusListItems:S,setCurrentScrollIndex:x,constraints:k,frequencyMax:L,freqIsAllowed:E,translator:D,showSearch:I,isModal:N,styles:R}){const{layoutOptions:T={}}=e||{},{columnWidth:M,listHeight:O,itemHeight:q,rowCount:P,columnCount:B}=_||{},F=("grid"===T.dataLayout?M:t)>80,W={direction:"rtl"===C?"rtl":"ltr",useIsScrolling:!0,className:Tb},z=e?.qListObject.qDimensionInfo.qLocked,V=O<=q,H={isLocked:z,column:!o,pages:s,...z||r.selectDisabled()?{}:a,checkboxes:n,layoutOptions:T,deducedFrequencyMode:l,freqIsAllowed:E,isSingleSelect:d,textAlign:p,sizes:_,actions:{select:h,confirm:()=>m?.confirm.call(m),cancel:()=>m?.cancel.call(m),setScrollPosition:A,selectAll:u,onCtrlF:g},frequencyMax:L,histogram:c,keyboard:f,showGray:b,showTick:F,dataOffset:i.current.dataOffset,focusListItems:S,direction:C,translator:D,showSearch:I,isModal:N,styles:R,fillHeight:V};return{List:({onItemsRendered:n,ref:o})=>(i.current.listRef=o,(0,_t.jsx)(Ob,{...W,dataTestid:"fixed-size-list",scrollDisabled:k?.active,height:O,width:t,itemCount:y,itemData:{...H,listCount:y},itemSize:q,onItemsRendered:t=>{x({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),Mb({renderProps:t,layoutOptions:T,maxCount:_.maxCount,columnCount:B,rowCount:P,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:i.current.dataOffset}),n({...t})},ref:o,children:hb})),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:s,scrollBarWidth:r}=_,{layoutOrder:a}=T||{},l=Math.min(O,P*q+r);return i.current.listRef=o,(0,_t.jsx)(qb,{...W,dataTestid:"fixed-size-grid",scrollDisabled:k?.active,height:l,width:t,columnCount:B,columnWidth:M,rowCount:P,rowHeight:q,style:{...s},itemData:{...H,column:void 0,columnCount:B,rowCount:P},onItemsRendered:t=>{const o="row"===a;x({start:o?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:o?t.visibleRowStopIndex:t.visibleColumnStopIndex});const s=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:s}=e,{overscanRowStartIndex:r,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let h,u,g,p;return n&&n.setScrollPos(d),"column"===i?(h=l*o,u=r,g=c*o,p=a):(h=l,u=r*s,g=c,p=a*s),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:a,rowCount:P,columnCount:B});Mb({renderProps:t,layoutOptions:T,maxCount:_.maxCount,columnCount:B,rowCount:P,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:i.current.dataOffset}),n(s)},ref:o,children:hb})}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,deducedFrequencyMode:re,histogram:N,keyboard:f,showGray:b,interactionEvents:K,select:Q,selectAll:()=>{r.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:ue,isVertical:ne,pages:j,selectionState:r,isSingleSelect:D,selections:s,scrollState:v,local:T,sizes:ae,listCount:le,overflowDisclaimer:{state:V,set:e=>H(t=>({...t,show:e}))},setScrollPosition:he,focusListItems:{first:ge.first,setFirst:e=>pe(t=>({...t,first:e})),last:ge.last,setLast:e=>pe(t=>({...t,last:e}))},setCurrentScrollIndex:_.set,constraints:i,frequencyMax:O,freqIsAllowed:se,translator:k,showSearch:A,isModal:S,styles:x}),{columnWidth:be,listHeight:ve,itemHeight:Ce}=ae||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:d,columnWidth:be,listHeight:ve,itemHeight:Ce})),(0,_t.jsxs)(IC,{children:[(0,_t.jsx)("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:de}),!le&&$>0&&(0,_t.jsx)(_C,{width:d,text:"Listbox.NoMatchesForYourTerms"}),(0,_t.jsx)(Nm,{isItemLoaded:G,itemCount:le||1,loadMoreItems:z.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:R,role:"grid",children:ne?me:fe}),V.show&&!V.dismissed&&(0,_t.jsx)(kC,{text:"Listbox.ItemsOverflow",dismiss:()=>H(e=>({...e,dismissed:!0})),parentWidth:R?.current?._listRef?.props?.width,dense:Y?.dense})]})}const RC=e=>({...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"}}]});n.dn(e=>(void 0)(RC(e)));const TC=e=>({...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"}}]});n.dn(e=>(void 0)(TC(e)));const MC=e=>({...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"}}]});n.dn(e=>(void 0)(MC(e)));const OC=e=>({...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"}}]});n.dn(e=>(void 0)(OC(e)));const qC=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1,selections:s})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const r="/qListObjectDef",a=()=>{s.isActive()||s.begin(r)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:RC,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAll(r)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:MC,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectPossible(r)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:TC,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAlternative(r)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:OC,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectExcluded(r)}}].filter(Boolean)};function PC(e){return Er("MuiDivider",e)}n.dn(qC);const BC=Dr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),FC=_r("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(Xa(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),WC=_r("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Xa(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),zC=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:r="horizontal",component:a=(o||"vertical"===r?"div":"hr"),flexItem:l=!1,light:c=!1,role:d=("hr"!==a?"separator":void 0),textAlign:h="center",variant:u="fullWidth",...g}=n,p={...n,absolute:i,component:a,flexItem:l,light:c,orientation:r,role:d,textAlign:h,variant:u},m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:s,orientation:r,textAlign:a,variant:l}=e;return Lt({root:["root",t&&"absolute",l,s&&"light","vertical"===r&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===r&&"withChildrenVertical","right"===a&&"vertical"!==r&&"textAlignRight","left"===a&&"vertical"!==r&&"textAlignLeft"],wrapper:["wrapper","vertical"===r&&"wrapperVertical"]},PC,i)})(p);return(0,_t.jsx)(FC,{as:a,className:kt(m.root,s),role:d,ref:t,ownerState:p,"aria-orientation":"separator"!==d||"hr"===a&&"vertical"!==r?void 0:r,...g,children:o?(0,_t.jsx)(WC,{className:m.wrapper,ownerState:p,children:o}):null})});zC&&(zC.muiSkipListHighlight=!0);const VC=zC,HC=e=>({...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 jC(e){const t=Ur(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}n.dn(e=>(void 0)(HC(e)));const UC={className:"njs-cell-action"},$C=t.forwardRef(({item:e,addAnchor:t=!1},n)=>{const i=Ur(),{hidden:o,disabled:s,style:r,hasSvgIconShape:a}=jC(e);if(o)return null;const l=Number.parseInt(i.spacing(.5),10),c=e.keyboardAction||e.action,d=c?e=>["Enter"].includes(e.key)&&c():null,h=c?e=>[" ","Spacebar"].includes(e.key)&&c():null,u=`actions-toolbar-${e.key}`,g=e.ref||(t?null:n);return(0,_t.jsxs)(Uc,{ref:g,title:e.label,onClick:e.action,onKeyDown:d,onKeyUp:h,disabled:s,style:r,className:[UC.className,u].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":u,children:[a&&Yd(e.getSvgIconShape()),t&&(0,_t.jsx)("div",{ref:n,style:{bottom:-l,right:0,position:"absolute",width:"100%",height:0}})]})}),GC=$C,KC=e=>({...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"}}]}),QC=e=>Yd(KC(e));n.dn(QC);const YC=e=>({...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"}}]}),ZC=e=>Yd(YC(e));function XC(e){return Er("MuiListItemIcon",e)}n.dn(ZC);const JC=Dr("MuiListItemIcon",["root","alignItemsFlexStart"]);function e_(e){return Er("MuiMenuItem",e)}const t_=Dr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),n_=t.createContext(null),i_=n_.Provider,o_=_r(Lc,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Xa(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t_.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${t_.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${t_.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${t_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${t_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${BC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${BC.inset}`]:{marginLeft:52},[`& .${dh.root}`]:{marginTop:0,marginBottom:0},[`& .${dh.inset}`]:{paddingLeft:36},[`& .${JC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${JC.root} svg`]:{fontSize:"1.25rem"}}}]}))),s_=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:r=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:u,...g}=i,p=t.useContext(n_),m=t.useContext(Xd),f=t.useMemo(()=>({dense:r||m.dense||!1,disableGutters:l}),[m.dense,r,l]),b=t.useRef(null);ih(()=>{o&&b.current&&function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(b.current,p)},[o]);const v={...i,dense:f.dense,divider:a,disableGutters:l},C=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:s,classes:r}=e,a=Lt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",s&&"selected"]},e_,r);return{...r,...a}})(i),_=Kl(b,n),{root:y,...w}=C;let A;return i.disabled||(A=void 0!==h?h:-1),(0,_t.jsx)(Xd.Provider,{value:f,children:(0,_t.jsx)(o_,{ref:_,role:d,tabIndex:A,component:s,focusVisibleClassName:kt(C.focusVisible,c),className:kt(C.root,u),...g,ownerState:v,classes:w})})}),r_=s_,a_=_r("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Xa(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),l_=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemIcon"}),{className:o,...s}=i,r=t.useContext(Xd),a={...i,alignItems:r.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Lt({root:["root","flex-start"===t&&"alignItemsFlexStart"]},XC,n)})(a);return(0,_t.jsx)(a_,{className:kt(l.root,o),ownerState:a,ref:n,...s})}),c_=l_,d_=nm;function h_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function u_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function g_(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function p_(e,t,n,i,o,s){let r=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(r)return!1;r=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&g_(a,s)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const m_=t.forwardRef(function(e,n){const{actions:i,autoFocus:o=!1,autoFocusItem:s=!1,children:r,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu",...u}=e,g=t.useRef(null),p=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ih(()=>{o&&g.current.focus()},[o]),t.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${d_(wh(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}}),[]);const m=Kl(g,n);let f=-1;t.Children.forEach(r,(e,n)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===f)&&(f=n),f===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=r.length&&(f=-1))):f===n&&(f+=1,f>=r.length&&(f=-1))});const b=t.Children.map(r,(e,n)=>{if(n===f){const n={};return s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),t.cloneElement(e,n)}return e});return(0,_t.jsx)(nh,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(d&&d(e));const i=Mh(Th(t));if("ArrowDown"===n)e.preventDefault(),p_(t,i,c,l,h_);else if("ArrowUp"===n)e.preventDefault(),p_(t,i,c,l,u_);else if("Home"===n)e.preventDefault(),p_(t,null,c,l,h_);else if("End"===n)e.preventDefault(),p_(t,null,c,l,u_);else if(1===n.length){const o=p.current,s=n.toLowerCase(),r=performance.now();o.keys.length>0&&(r-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&s!==o.keys[0]&&(o.repeating=!1)),o.lastTime=r,o.keys.push(s);const a=i&&!o.repeating&&g_(i,o);o.previousKeyMatched&&(a||p_(t,i,!1,l,h_,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1,...u,children:b})}),f_=m_,b_="More-icon",v_=_r(Lm)(({theme:e})=>({pointerEvents:"none",[`& .${b_} *`]:{color:e.palette.text.primary}}));function C_({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:i,disabled:o,hasSvgIconShape:s}=jC(e);return i?null:(0,_t.jsxs)(r_,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[s&&(0,_t.jsx)(c_,{className:b_,children:Yd(e.getSvgIconShape())}),(0,_t.jsx)(yd,{noWrap:!0,children:e.label})]})}const __=t.forwardRef(({actions:e=[],show:t=!0,alignTo:n,popoverProps:i={},popoverPaperStyle:o={},onCloseOrActionClick:s=()=>{},disablePortal:r=!0},a)=>{const l=e.length>0,c=e.findIndex(e=>!e.disabled);return l&&(0,_t.jsx)(v_,{...i,onClose:s,ref:a,open:t,anchorEl:n.current,getContentAnchorEl:r?null:void 0,container:r?n.current:void 0,disablePortal:r,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...o}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,_t.jsx)(f_,{id:"moreMenuList",children:e.map((e,t)=>(0,_t.jsx)(C_,{item:e,autoFocus:t===c,onActionClick:s},t))})})});const y_="ActionsToolbar",w_={item:`${y_}-item`,itemSpacing:`${y_}-itemSpacing`},A_=_r(Lm)(({theme:e})=>({[`& .${w_.itemSpacing}`]:{padding:e.spacing(0,.25)}})),S_=t.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:i=!1},o)=>t.length>0?(0,_t.jsx)(ud,{container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>(0,_t.jsx)(ud,{className:`${w_.itemSpacing} ${w_.item}`,children:(0,_t.jsx)(GC,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),x_={pointerEvents:"none"},k_=function({show:e=!0,actions:n=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:d,autoConfirm:h=!1,layout:u}){const g=function({api:e,layout:n,onConfirm:i=()=>{},onCancel:o=()=>{},onKeyDeactivate:s=()=>{}}){const{translator:r}=(0,t.useContext)(rp);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(n),action:()=>e.clear(),getSvgIconShape:YC},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(n),action:()=>{o(),e.cancel()},keyboardAction:()=>{s(),o(),e.cancel()},getSvgIconShape:KC},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(n),action:()=>{i(),e.confirm()},keyboardAction:()=>{s(),i(),e.confirm()},getSvgIconShape:Fm}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,t.useContext)(rp),[f,b]=(0,t.useState)(!1),v={vertical:12,horizontal:d?0:(a.anchorEl?.clientWidth??0)-7},C={vertical:"bottom",horizontal:d?-7:"right"},_=(0,t.useRef)(),y=(0,t.useRef)(),w=Ur(),A=(0,t.useMemo)(()=>({margin:w.spacing(.5,0)})),S=e=>{const t=_.current||c;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},x=(0,t.useMemo)(()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:i,isRtl:o}){return s=>{const{target:r,nativeEvent:a}=s,{keyCode:l}=a;switch(l){case tb.ARROW_LEFT:case tb.ARROW_DOWN:case tb.ARROW_RIGHT:case tb.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(r);let t=[tb.ARROW_LEFT,tb.ARROW_DOWN].includes(l);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");n.length&&n[Math.min(Math.max(0,e),n.length-1)].focus()})(t?e-1:e+1)}s.stopPropagation(),s.preventDefault();break;case tb.SPACE:s.preventDefault();break;case tb.TAB:e&&t?.refocusContent&&(s.shiftKey&&n(!1)===s.target||!s.shiftKey&&n(!0)===s.target)&&(s.preventDefault(),s.stopPropagation(),t.refocusContent());break;case tb.ESCAPE:i&&(i.onCancel(),i.api.cancel(),s.preventDefault(),s.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:S,selections:o,isRtl:d}),[m,l,S,o,d]);if((0,t.useEffect)(()=>()=>{b(!1)},[a.show,e,o.show]),(0,t.useEffect)(()=>{l&&(l.on("focus_toolbar_first",()=>{const e=S(!1);e?.focus()}),l.on("focus_toolbar_last",()=>{const e=S(!0);e?.focus()}))},[]),h)return;let k=r.enabled,L=r.actions;const E=r.alignTo||y,D=n.filter(e=>!e.hidden);if(D.length>i){const e=D.splice(-(D.length-i)-1);k=!0,L=[...e,...r.actions]}if(!o.show&&0===D.length&&!k)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:HC,hidden:!1,active:f,enabled:()=>k,action:()=>b(!f)},N=D.length>0,R=L.length>0,T=N&&o.show||R&&o.show,M=(0,_t.jsxs)(ud,{ref:_,onKeyDown:x,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"},children:[s?.length&&(0,_t.jsx)(S_,{className:"actions-toolbar-extra-actions",actions:s,isRtl:d}),N&&(0,_t.jsx)(S_,{actions:D}),R&&(0,_t.jsx)(S_,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,actions:[I],addAnchor:!0}),T&&(0,_t.jsx)(ud,{className:w_.itemSpacing,style:A,children:(0,_t.jsx)(VC,{orientation:"vertical"})}),o.show&&(0,_t.jsx)(S_,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&(0,_t.jsx)(__,{show:f,actions:L,alignTo:E,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{b(!1)},disablePortal:r.disablePortal})]});return a.show?(0,_t.jsx)(A_,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:v,transformOrigin:C,hideBackdrop:!0,style:x_,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:w.spacing(.5,.25)}}},children:M}):e&&M};function L_(e){return Er("MuiInputAdornment",e)}const E_=Dr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var D_;const I_=_r("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Vr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Xa(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${E_.positionStart}&:not(.${E_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),N_=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:r="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d,...h}=i,u=tu()||{};let g=d;d&&u.variant,u&&!g&&(g=u.variant);const p={...i,hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:c,variant:g},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:s,variant:r}=e;return Lt({root:["root",n&&"disablePointerEvents",o&&`position${Vr(o)}`,r,i&&"hiddenLabel",s&&`size${Vr(s)}`]},L_,t)})(p);return(0,_t.jsx)(eu.Provider,{value:null,children:(0,_t.jsx)(I_,{as:r,ownerState:p,className:kt(m.root,s),ref:n,...h,children:"string"!=typeof o||l?(0,_t.jsxs)(t.Fragment,{children:["start"===c?D_||(D_=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]}):(0,_t.jsx)(yd,{color:"textSecondary",children:o})})})}),R_=N_,T_=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));n.dn(T_);const M_="/qListObjectDef",O_=e=>e?.substring(0,64e3),q_=_r(Eu,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let i={};return t&&(i={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:e.search.color,textAlign:n?"right":"left"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:e.search.backgroundColor,backdropFilter:e.background.backgroundImage?e.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${e.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${e.search.highlightBorderColor} !important`},"& .MuiInputBase-root":{...e.search},"& *":{color:e.search.color},"& input":{color:e.search.color,textAlign:n?"right":"left"},...i}}),P_=_r(Uc)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));function B_({popoverOpen:e,selections:n,selectionState:i,model:o,keyboard:s,dense:r=!1,visible:a=!0,autoFocus:l=!0,beginSelectionOnFocus:c=!0,wildCardSearch:d=!1,searchEnabled:h,direction:u,hide:g,styles:p},m){const{translator:f}=(0,t.useContext)(rp),[b,v]=(0,t.useState)(""),[C,_]=(0,t.useState)(!1),y=(0,t.useRef)(),w=(0,t.useRef)(),A=f.get("Listbox.Clear.Search"),{getStoreValue:S,setStoreValue:x}=Vb(o),k="rtl"===u,L=async()=>{try{await o.abortListObjectSearch(M_)}finally{v("")}};(0,t.useEffect)(()=>a?()=>L():()=>{},[a]),(0,t.useEffect)(()=>(n.on("deactivated",L),()=>{n.removeListener&&n.removeListener("deactivated",L)}),[]),(0,t.useEffect)(()=>{if(C&&y.current){const e=b.length-1;y.current.setSelectionRange(e,e),_(!1)}},[C,y.current]),(0,t.useEffect)(()=>{x("inputText",b)},[b]);const E=()=>{y.current?.focus()},D=()=>{L(),E()};return(0,t.useImperativeHandle)(m,()=>({focus(){E()}})),a&&!1!==h?(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(q_,{styles:p,dense:r,isRtl:k,startAdornment:(0,_t.jsx)(R_,{position:"start",sx:{marginLeft:r?"8px":"9px"},children:(0,_t.jsx)(T_,{size:r?"small":"normal"})}),endAdornment:(0,_t.jsx)(R_,{position:"end",sx:{marginLeft:0},children:""!==b&&(0,_t.jsx)(P_,{tabIndex:0,ref:w,title:A,"aria-label":A,onClick:D,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Tab":e.shiftKey?E():ab(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:(0,_t.jsx)(QC,{size:r?"small":"normal"})})}),className:"search",inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:b,onFocus:()=>{d&&(v("**"),_(!0)),c&&!i.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=O_(e.target.value);return v(t),t.length?o.searchListObjectFor(M_,t):L()},onKeyDown:async t=>{const{currentTarget:r}=t,a=r.closest(".listbox-container");switch(t.key){case"Enter":(async()=>{let e;const t=O_(b),s=await o.searchListObjectFor(M_,t);i.selectDisabled()||s&&t.length&&S("listCount")>0&&(e=o.acceptListObjectSearch(M_,!0),n.selectionsMade=!0,i.clearItemStates(!1),v(""))})();break;case"Escape":if(ab(a),n.cancel(),e)return;break;case"Tab":t.shiftKey?lb(a)||s.focusSelection():w.current?w.current.focus():ab(a);break;case"f":case"F":if(!t.ctrlKey&&!t.metaKey)return;g&&(g(),ab(a));break;default:return}t.preventDefault(),t.stopPropagation()},autoFocus:l,inputProps:{tabIndex:s.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search"),"aria-describedby":"listbox-search-instructions"}}),(0,_t.jsx)("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:f.get("Listbox.Search.ScreenReaderInstructions")})]}):null}const F_=(0,t.forwardRef)(B_);function W_(e){if(!e.session)return[];const{selectionStore:n}=(0,t.useContext)(rp),[i]=n.useAppSelectionsStore(),o=e?e.id:null;let s=i.get(o);return(0,t.useEffect)(()=>{e&&!s&&(s=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:i,appModalStore:o}=t,s=async(e=!0)=>{const{model:t,objectSelections:o}=i.get(n)||{};t&&(await t.endSelections(e),i.clear(n),o.emit("deactivated"))},r={begin:async({model:t,paths:o,accept:r=!0,objectSelections:a})=>{if(a===i.get(n)?.objectSelections)return;s(r),i.set(n,{model:t,objectSelections:a});const l=Array.isArray(o)?o:[o],c=async o=>{try{await t.beginSelections(l),i.set(n,{model:t,objectSelections:a})}catch(t){6003!==t.code||o?i.clear(n):(await e.abortModal(r),c(!0))}};await c()},end:s};o.set(n,r);const a={model:e,isInModal:()=>!!i.get(n),isModal:e=>e?i.get(n)?.objectSelections===e:!!i.get(n),forward:()=>r.end().then(()=>e.forward()),back:()=>r.end().then(()=>e.back()),clear:()=>r.end().then(()=>e.clearAll()),clearField:(t,n="$")=>r.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return a}({app:e,selectionStore:n}),i.set(o,s),i.dispatch(!0))},[e]),[s]}function z_(e){return Object.keys(Xu().prototype).forEach(t=>{e[t]=Xu().prototype[t]}),Xu().init(e),e}n.dn(z_);const V_=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,s=!1;const r={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:r}))},clear(){return s=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return s=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return s=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return s="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:s,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:s,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(r),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:r}),noModal:(e=!1)=>t.end(e)};return z_(r),r};function H_(e,n,i,o){const s=Array.isArray(i)?i:[i],[r]=W_(e),[a]=Cp(n),{appModalStore:l}=(0,t.useContext)(rp).selectionStore,c=l.get(e.id),[d,h]=(0,t.useState)();return(0,t.useEffect)(()=>{r&&n&&!d&&h(V_({appSelections:r,appModal:c,model:n}))},[r,n]),(0,t.useEffect)(()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n={}})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map(e=>"string"==typeof e?document.querySelector(e):e?.current).filter(e=>!!e&&!!document.contains(e));i.length&&!i.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}})({elements:s,objectSelections:d,options:o});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}},[d]),(0,t.useEffect)(()=>{d&&d.setLayout(a)},[d,a]),[d]}function j_(e={}){const t={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0,...e,update({setPages:e,pages:n,isSingleSelect:i,selectDisabled:o,layout:s}){this.setPages=e;const r=this.lastRowCount===s.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;r&&a||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==n&&void 0!==n&&(t.enginePages=n??[],t.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Rm.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Tm(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=i,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=s?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:n,qState:i}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===i?"XS":"S":"S"===i||"XS"===i?"A":i:i},updateItemNoEvents(e,n,i){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(i?.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages(e){const n=e.map(e=>{const n=e.qMatrix.map(e=>{const[n]=e,i=t.getState(n);return[{...n,qState:i},...e.slice(1)]});return{...e,qMatrix:n}});return n},updateItem(e,n,i){t.updateItemNoEvents(e,n,i),t.triggerStateChanged()},updateItems(e,n,i){e.forEach(e=>{t.updateItemNoEvents(e,n,i)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const U_=(e,t,n=void 0)=>e?.[t]??n;function $_(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return U_(t,"qSelected",0)+U_(t,"qSelectedExcluded",0)+U_(t,"qLocked",0)+U_(t,"qLockedExcluded",0)>0}function G_(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K_(e){if("object"==typeof e&&G_(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,i=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+i}const Q_={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Y_="qcm-color";function Z_(...e){const t={type:Y_,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,i=0,o=0,s=1;if(null!==(r=e[0])&&"object"==typeof r&&"type"in r&&r.type===Y_)({r:n,g:i,b:o,a:s}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(G_(e[0]))({r:n,g:i,b:o}=e[0]),"a"in e[0]&&({a:s}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const r=e[0];let a;if(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(r))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10);else if(a=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(r))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10),s=parseFloat(a[4]);else if(a=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(r))s=parseInt(a[1],10)/255,n=parseInt(a[2],10),i=parseInt(a[3],10),o=parseInt(a[4],10);else if(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(r))n=parseInt(a[1],16),i=parseInt(a[2],16),o=parseInt(a[3],16),s=1;else if(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(r))n=parseInt(a[1]+a[1],16),i=parseInt(a[2]+a[2],16),o=parseInt(a[3]+a[3],16),s=1;else if(a=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(r)){let e=parseFloat(a[1]),t=parseFloat(a[3]),r=parseFloat(a[5]);e%=360,t/=100,r/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,r=r<0?0:r>1?1:r;const l=r<=.5?2*r*t:(2-2*r)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=r-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),s=1}else if(a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(r)){let e=parseFloat(a[1]),t=parseFloat(a[3]),r=parseFloat(a[5]);s=parseFloat(a[7]),e%=360,t/=100,r/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,r=r<0?0:r>1?1:r;const l=r<=.5?2*r*t:(2-2*r)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=r-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o)}else if(a=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(r)){let e=parseFloat(a[1]),t=parseFloat(a[3]),r=parseFloat(a[5]);e%=360,t/=100,r/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,r=r<0?0:r>1?1:r;const l=r*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=r-l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),s=1}else{const e=r.toLowerCase();if(function(e){return e in Q_}(e)){const t=Q_[e];({r:n,g:i,b:o}=t),s="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(s=(4278190080&e[0])>>>24,s/=255,n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],i=e[1],o=e[2],s=4===e.length?e[3]:1):t.invalid=!0;var r;return Number.isNaN(+n+i+o+s)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(i),t.b=Math.floor(o),t.a=s,t}function X_(e){let t,n,i;if(G_(e))return t=e.r.toString(16),n=e.g.toString(16),i=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`;const o="string"==typeof e?K_(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),i=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`}function J_(e){let t,n,i=0;const o="string"==typeof e?Z_(e):e,s=o.r/255,r=o.g/255,a=o.b/255,{a:l}=o,c=Math.max(s,r,a),d=Math.min(s,r,a),h=(c+d)/2;if(c===d)t=0,i=0;else{switch(n=c-d,t=h>.5?n/(2-c-d):n/(c+d),c){case s:i=(r-a)/n+(r<a?6:0);break;case r:i=(a-s)/n+2;break;case a:i=(s-r)/n+4}i/=6}return{h:360*i,s:100*t,l:100*h,a:l}}function ey(e){let t,n,i=0;const o="string"==typeof e?Z_(e):e,s=o.r/255,r=o.g/255,a=o.b/255,l=Math.max(s,r,a),c=Math.min(s,r,a),d=l;if(l===c)t=0,i=0;else{switch(n=l-c,t=0===n?0:n/d,l){case s:i=(r-a)/n+(r<a?6:0);break;case r:i=(a-s)/n+2;break;case a:i=(s-r)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*d}}function ty(e){if(G_(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K_(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function ny(e,t){return G_(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:ny(Z_(e),t)}function iy(e){return G_(e)?1===e.a?ty(e):ny(e):iy(Z_(e))}const oy=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function sy(e){return.2126*oy(e.r)+.7152*oy(e.g)+.0722*oy(e.b)}function ry(...e){const t=Z_(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},i=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=J_(n)),n.spaces.hslaObject),o=e=>{const t=i(),{h:n,s:o,l:s,a:r}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(s+e,100))}, ${r})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Z_(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Z_(...e);return t.invalid||sy(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ty(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=ny(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=iy(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=X_(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,i=0;const o="string"==typeof e?Z_(e):e,s=o.r/255,r=o.g/255,a=o.b/255,l=Math.max(s,r,a),c=Math.min(s,r,a),d=(l+c)/2;if(l===c)t=0,i=0;else{switch(n=l-c,t=d>.5?n/(2-l-c):n/(l+c),l){case s:i=(r-a)/n+(r<a?6:0);break;case r:i=(a-s)/n+2;break;case a:i=(s-r)/n+4}i/=6}return`hsl(${360*i}, ${100*t}, ${100*d})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:i,a:o}=J_(e);return`hsla(${t}, ${n}, ${i}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:i,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:i}=ey(e);return`hsv(${t}, ${n}, ${i})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=ey(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>ry(o(18*e)),getDarkenedColor:(e=1)=>ry(o(18*-e))}}function ay(e,t){if(!e||!t)return;const n=sy(e),i=sy(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}const ly="#FFFFFF";function cy(e,t){const n=ry(ly),i=ry(e),o=ry(t);if(i.isInvalid()||o.isInvalid()||i.getAlpha()<1||o.getAlpha()<1)return t;const s=ay(n,i),r=ay(o,i),a=s>r||s>4.5;return!a&&r>3?o.getHex():a?ly:"#000000"}function dy(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hy,uy,gy,py="top",my="top-right",fy="right",by="bottom-right",vy="bottom",Cy="bottom-left",_y="left",yy="top-left";dy(dy(dy(dy(dy(dy(dy(dy(dy(dy(hy={},"equal-equal",[py,vy]),"equal-higher",[vy,by]),"equal-lower",[py,my]),"equal-void",[py,vy]),"higher-equal",[_y,Cy,py,my]),"higher-higher-acute",[vy,Cy,_y,my]),"higher-higher-obtuse",[vy,py]),"higher-lower-negative",[py,my,fy]),"higher-lower-positive",[vy,Cy,_y]),"higher-void",[py]),dy(dy(dy(dy(dy(dy(dy(dy(dy(dy(hy,"lower-equal",[py]),"lower-higher-negative",[py,yy]),"lower-higher-positive",[by]),"lower-lower-acute",[py,yy,_y,my,fy]),"lower-lower-obtuse",[py,vy]),"lower-void",[py]),"void-equal",[py]),"void-higher",[py,vy]),"void-lower",[py,vy,_y]),"void-void",[py]),dy(hy,"unclassified",[py,vy,fy,_y,my,by,Cy,yy]);var wy=function(){if(gy)return uy;gy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},s=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,o=e.call(n,"constructor"),s=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!s)return!1;for(i in n);return void 0===i||e.call(n,i)},r=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return uy=function e(){var t,n,i,l,c,d,h=arguments[0],u=1,g=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},u=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});u<g;++u)if(null!=(t=arguments[u]))for(n in t)i=a(h,n),h!==(l=a(t,n))&&(p&&l&&(s(l)||(c=o(l)))?(c?(c=!1,d=i&&o(i)?i:[]):d=i&&s(i)?i:{},r(h,{name:n,newValue:e(p,d,l)})):void 0!==l&&r(h,{name:n,newValue:l}));return h},uy}();function Ay(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Sy(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function xy(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(wy);var ky=.7,Ly=1/ky,Ey="\\s*([+-]?\\d+)\\s*",Dy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Iy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ny=/^#([0-9a-f]{3,8})$/,Ry=new RegExp(`^rgb\\(${Ey},${Ey},${Ey}\\)$`),Ty=new RegExp(`^rgb\\(${Iy},${Iy},${Iy}\\)$`),My=new RegExp(`^rgba\\(${Ey},${Ey},${Ey},${Dy}\\)$`),Oy=new RegExp(`^rgba\\(${Iy},${Iy},${Iy},${Dy}\\)$`),qy=new RegExp(`^hsl\\(${Dy},${Iy},${Iy}\\)$`),Py=new RegExp(`^hsla\\(${Dy},${Iy},${Iy},${Dy}\\)$`),By={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fy(){return this.rgb().formatHex()}function Wy(){return this.rgb().formatRgb()}function zy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ny.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vy(t):3===n?new $y(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Hy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Hy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ry.exec(e))?new $y(t[1],t[2],t[3],1):(t=Ty.exec(e))?new $y(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=My.exec(e))?Hy(t[1],t[2],t[3],t[4]):(t=Oy.exec(e))?Hy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qy.exec(e))?Xy(t[1],t[2]/100,t[3]/100,1):(t=Py.exec(e))?Xy(t[1],t[2]/100,t[3]/100,t[4]):By.hasOwnProperty(e)?Vy(By[e]):"transparent"===e?new $y(NaN,NaN,NaN,0):null}function Vy(e){return new $y(e>>16&255,e>>8&255,255&e,1)}function Hy(e,t,n,i){return i<=0&&(e=t=n=NaN),new $y(e,t,n,i)}function jy(e){return e instanceof xy||(e=zy(e)),e?new $y((e=e.rgb()).r,e.g,e.b,e.opacity):new $y}function Uy(e,t,n,i){return 1===arguments.length?jy(e):new $y(e,t,n,i??1)}function $y(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Gy(){return`#${Zy(this.r)}${Zy(this.g)}${Zy(this.b)}`}function Ky(){const e=Qy(this.opacity);return`${1===e?"rgb(":"rgba("}${Yy(this.r)}, ${Yy(this.g)}, ${Yy(this.b)}${1===e?")":`, ${e})`}`}function Qy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zy(e){return((e=Yy(e))<16?"0":"")+e.toString(16)}function Xy(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ew(e,t,n,i)}function Jy(e){if(e instanceof ew)return new ew(e.h,e.s,e.l,e.opacity);if(e instanceof xy||(e=zy(e)),!e)return new ew;if(e instanceof ew)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2;return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new ew(r,a,l,e.opacity)}function ew(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function tw(e){return(e=(e||0)%360)<0?e+360:e}function nw(e){return Math.max(0,Math.min(1,e||0))}function iw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ay(xy,zy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fy,formatHex:Fy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Jy(this).formatHsl()},formatRgb:Wy,toString:Wy}),Ay($y,Uy,Sy(xy,{brighter(e){return e=null==e?Ly:Math.pow(Ly,e),new $y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ky:Math.pow(ky,e),new $y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $y(Yy(this.r),Yy(this.g),Yy(this.b),Qy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gy,formatHex:Gy,formatHex8:function(){return`#${Zy(this.r)}${Zy(this.g)}${Zy(this.b)}${Zy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ky,toString:Ky})),Ay(ew,function(e,t,n,i){return 1===arguments.length?Jy(e):new ew(e,t,n,i??1)},Sy(xy,{brighter(e){return e=null==e?Ly:Math.pow(Ly,e),new ew(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ky:Math.pow(ky,e),new ew(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new $y(iw(e>=240?e-240:e+120,o,i),iw(e,o,i),iw(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new ew(tw(this.h),nw(this.s),nw(this.l),Qy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qy(this.opacity);return`${1===e?"hsl(":"hsla("}${tw(this.h)}, ${100*nw(this.s)}%, ${100*nw(this.l)}%${1===e?")":`, ${e})`}`}}));const ow=Math.PI/180,sw=180/Math.PI,rw=.96422,aw=.82521,lw=4/29,cw=6/29,dw=3*cw*cw,hw=cw*cw*cw;function uw(e){if(e instanceof gw)return new gw(e.l,e.a,e.b,e.opacity);if(e instanceof vw)return Cw(e);e instanceof $y||(e=jy(e));var t,n,i=bw(e.r),o=bw(e.g),s=bw(e.b),r=pw((.2225045*i+.7168786*o+.0606169*s)/1);return i===o&&o===s?t=n=r:(t=pw((.4360747*i+.3850649*o+.1430804*s)/rw),n=pw((.0139322*i+.0971045*o+.7141733*s)/aw)),new gw(116*r-16,500*(t-r),200*(r-n),e.opacity)}function gw(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function pw(e){return e>hw?Math.pow(e,1/3):e/dw+lw}function mw(e){return e>cw?e*e*e:dw*(e-lw)}function fw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vw(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Cw(e){if(isNaN(e.h))return new gw(e.l,0,0,e.opacity);var t=e.h*ow;return new gw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ay(gw,function(e,t,n,i){return 1===arguments.length?uw(e):new gw(e,t,n,i??1)},Sy(xy,{brighter(e){return new gw(this.l+18*(e??1),this.a,this.b,this.opacity)},darker(e){return new gw(this.l-18*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new $y(fw(3.1338561*(t=rw*mw(t))-1.6168667*(e=1*mw(e))-.4906146*(n=aw*mw(n))),fw(-.9787684*t+1.9161415*e+.033454*n),fw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ay(vw,function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof vw)return new vw(e.h,e.c,e.l,e.opacity);if(e instanceof gw||(e=uw(e)),0===e.a&&0===e.b)return new vw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sw;return new vw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vw(e,t,n,i??1)},Sy(xy,{brighter(e){return new vw(this.h,this.c,this.l+18*(e??1),this.opacity)},darker(e){return new vw(this.h,this.c,this.l-18*(e??1),this.opacity)},rgb(){return Cw(this).rgb()}}));var _w=e=>()=>e;function yw(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_w(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?yw:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):_w(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=Uy(e)).r,(t=Uy(t)).r),o=n(e.g,t.g),s=n(e.b,t.b),r=yw(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return i.gamma=e,i}(1);var ww="center",Aw="bottom";function Sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kw(Object(n),!0).forEach(function(t){xw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[{key:"NoDataExist",alignment:ww,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ww,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ww,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ww},{key:"DataRangeIncludingZero",alignment:Aw},{key:"LimitedData",alignment:Aw},{key:"NegativeOrZeroValues",alignment:Aw}].reduce(function(e,t){return e[t.key]=t,e},{});var Ew=Object.prototype.hasOwnProperty,Dw=Object.prototype.toString,Iw=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,Rw=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Dw.call(e)},Tw=function(e){if(!e||"[object Object]"!==Dw.call(e))return!1;var t,n=Ew.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Ew.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Ew.call(e,t)},Mw=function(e,t){Iw&&"__proto__"===t.name?Iw(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ow=function(e,t){if("__proto__"===t){if(!Ew.call(e,t))return;if(Nw)return Nw(e,t).value}return e[t]},qw=function e(){var t,n,i,o,s,r,a=arguments[0],l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)i=Ow(a,n),a!==(o=Ow(t,n))&&(d&&o&&(Tw(o)||(s=Rw(o)))?(s?(s=!1,r=i&&Rw(i)?i:[]):r=i&&Tw(i)?i:{},Mw(a,{name:n,newValue:e(d,r,o)})):void 0!==o&&Mw(a,{name:n,newValue:o}));return a};function Pw(e,t,n,i){if(!e)return-1;const o=n.cache,s=e.origin?e.origin():null;s&&(e=s);let r=o.fields.indexOf(e),a=-1,l=-1;if(-1===r)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),a=o.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==l||-1!==a){r=t;break}if(Array.isArray(i)&&i.some((e,t)=>e!==t)){const e=i.indexOf(r);-1!==e&&(r=e)}return r-=t.qArea.qLeft,r<0||r>=t.qArea.qWidth?-1:l>=0?e=>e[r].qAttrDims.qValues[l]:a>=0?e=>e[r].qAttrExps.qValues[a]:e=>e[r]}function Bw(e,t,n){let i=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function Fw(e){let t=e.cache,n=e.f,i=e.mainCell,o=e.p,s=e.page,r=e.rowIdx,a=e.row,l=e.sourceKey,c=e.target,d=e.targetProp,h=e.columnOrder,u=i;if(o.field&&o.field!==n){const e=Pw(o.field,s,{cache:t},h);if(-1===e)return;u=qw({qRow:r},e(a))}c[d]=Bw(o,u,{key:l})}function Ww(e,t,n,i){const o=Array.isArray(e)?e:[e];let s=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const r=t.raw(),a=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),c=i.normalizeConfig(o[e],t),d=c.props,h=c.main,u=Object.keys(d),g=!!o[e].trackBy,p=typeof o[e].trackBy,m={},f=[],b=[];for(let t=0;t<r.qDataPages.length;t++){const s=Pw(l,r.qDataPages[t],{cache:n},r.qColumnOrder);if(-1!==s)for(let c=0;c<r.qDataPages[t].qMatrix.length;c++){const v=r.qDataPages[t].qArea.qTop+c,C=qw({qRow:v},s(r.qDataPages[t].qMatrix[c])),_=Bw(h,C,{key:a});if(!h.filter||h.filter(C)){for(let e=0;e<u.length;e++){const i=d[u[e]];let o=i.fields||[i];i.fields&&(_[u[e]]=[]);for(let s=0;s<o.length;s++)Fw({cache:n,f:l,mainCell:C,p:o[s],prop:u[e],page:r.qDataPages[t],rowIdx:v,row:r.qDataPages[t].qMatrix[c],sourceKey:a,target:i.fields?_[u[e]]:_,targetProp:i.fields?s:u[e],columnOrder:r.qColumnOrder});if(i.fields){const t=_[u[e]].map(e=>e.value),n=_[u[e]].map(e=>e.label);_[u[e]]={value:"function"==typeof i.value?i.value(t):void 0!==i.value?i.value:t,label:"function"==typeof i.label?i.label(n):void 0!==i.label?String(i.label):String(_[u[e]].value)}}}g&&i.track({cfg:o[e],itemData:C,obj:_,target:f,tracker:m,trackType:p}),b.push(_)}}}const v=g?i.collect(f,{main:h,propsArr:u,props:d}):b;s=[...s,...v]}return s}function zw(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function Vw(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jw)):void 0===t&&(t=Hw);for(var n,i,o,s,r,a=new Gw(e),l=[a];n=l.pop();)if((o=t(n.data))&&(r=(o=Array.from(o)).length))for(n.children=o,s=r-1;s>=0;--s)l.push(i=o[s]=new Gw(o[s])),i.parent=n,i.depth=n.depth+1;return a.eachBefore($w)}function Hw(e){return e.children}function jw(e){return Array.isArray(e)?e[1]:null}function Uw(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function $w(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Gw(e){this.data=e,this.depth=this.height=0,this.parent=null}function Kw(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}Gw.prototype=Vw.prototype={constructor:Gw,count:function(){return this.eachAfter(zw)},each:function(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this},eachAfter:function(e,t){for(var n,i,o,s=this,r=[s],a=[],l=-1;s=r.pop();)if(a.push(s),n=s.children)for(i=0,o=n.length;i<o;++i)r.push(n[i]);for(;s=a.pop();)e.call(t,s,++l,this);return this},eachBefore:function(e,t){for(var n,i,o=this,s=[o],r=-1;o=s.pop();)if(e.call(t,o,++r,this),n=o.children)for(i=n.length-1;i>=0;--i)s.push(n[i]);return this},find:function(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,o=i&&i.length;--o>=0;)n+=i[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),o=null;for(e=n.pop(),t=i.pop();e===t;)o=e,e=n.pop(),t=i.pop();return o}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var o=i.length;e!==n;)i.splice(o,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Vw(this).eachBefore(Uw)},[Symbol.iterator]:function*(){var e,t,n,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(yield o,t=o.children)for(n=0,i=t.length;n<i;++n)s.push(t[n])}while(s.length)}};var Qw={depth:-1},Yw={},Zw={};function Xw(e){return e.id}function Jw(e){return e.parentId}function eA(e){let t=e.length;if(t<2)return"";for(;--t>1&&!tA(e,t););return e.slice(0,t)}function tA(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function nA(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let i,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=nA(i,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=nA(i,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function iA(e,t,n){let i=[];if(!e||!e.length)return i;if(t<=0){const t=n>=0?[e[n]]:e;i=[...i,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(i=[...i,...iA(e[o].children,t-1,n)]);return i}function oA(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const i=Math.max(0,Math.min(100,t-e));return e=>iA(e.children,i-1,n)}return!1}const sA=/^qDimensionInfo(?:\/(\d+))?/,rA=/^\/?qMeasureInfo\/(\d+)/,aA=/\/qAttrExprInfo\/(\d+)/,lA=/\/qAttrDimInfo\/(\d+)/;function cA(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function dA(e,t){let n=t.cube;if(!e)return-1;let i=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,s=-1,r=-1,a=-1,l=-1,c=-1,d=-1,h=i;const u=n.qEffectiveInterColumnSortOrder,g=cA(n);return sA.test(h)&&(o=!0,s=+sA.exec(h)[1],h=i.replace(sA,"")),rA.test(h)&&("K"===n.qMode?c=+rA.exec(h)[1]:u&&-1!==u.indexOf(-1)?(c=+rA.exec(h)[1],d=0):d=+rA.exec(h)[1],h=h.replace(rA,"")),h&&(lA.exec(h)?a=+lA.exec(h)[1]:aA.exec(h)&&(r=+aA.exec(h)[1])),l=o?"S"===n.qMode?g[s]:u?u.indexOf(s):s:u&&-1!==u.indexOf(-1)?u.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:d,attrDimIdx:a,attrIdx:r}}function hA(e,t){let n,i,o=oA(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?i=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(i=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:i,valueFn:n}}function uA(e,t,n){let i=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function gA(e){let t=e.propsArr,n=e.props,i=e.item,o=e.itemData,s=e.ret,r=e.sourceKey;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields||[a];let c,d;a.fields&&(c=[],d=[]);for(let n=0;n<l.length;n++){const h=l[n];let u,g,p,m,f,b;if("primitive"===h.type?(p=h.value,b=String(h.value)):("function"==typeof h.value&&(u=e=>h.value(e,i)),"function"==typeof h.label&&(g=e=>h.label(e,i)),h.accessor?(m=h.accessor(i),Array.isArray(m)?(f=m.map(h.valueAccessor),h.attrAccessor&&(f=f.map(h.attrAccessor)),u&&(p=f.map(u),u=null),g&&(b=f.map(g),g=null),p=h.reduce?h.reduce(p):p,b=h.reduceLabel?h.reduceLabel(b,p):String(p)):(p=h.attrAccessor?h.attrAccessor(h.valueAccessor(m)):h.valueAccessor(m),b=p)):(p=o,b=o)),a.fields){const e=u?u(p):p;c.push(e),d.push(g&&null!=b?g(b):null!=b?b:String(e))}else{const n=u?u(p):p;s[t[e]]={value:n,label:g?g(b):null!=b?b:String(n)},h.field&&(s[t[e]].source={field:h.field.key(),key:r})}}c&&(s[t[e]]={value:"function"==typeof a.value?a.value(c,i):c,label:"function"==typeof a.label?a.label(d,i):d})}}const pA=(e,t,n)=>{const i="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",s=nA(i,e);return s&&s[0]?(t.tree=Vw(s[0],n.children||(e=>e[o])),t.tree):null},mA=e=>{let t=e.propsArr,n=e.props,i=e.cube;e.cache;let o=e.itemDepthObject,s=e.f;for(let e=0;e<t.length;e++){const r=n[t[e]],a=r.fields?r.fields:[r];for(let e=0;e<a.length;e++){const t=a[e];if(t.field!==s){const e=hA(o,dA(t.field,{cube:i}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function fA(){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,i=arguments.length>3?arguments[3]:void 0;const o=t.raw(),s=t.key(),r="S"===o.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map((e,t)=>t)}(e),i=e.fields(),o=e.fields().filter(e=>"dimension"===e.type()).map(e=>n.indexOf(i.indexOf(e))),s=e.fields().filter(e=>"measure"===e.type()).map(e=>n.indexOf(i.indexOf(e))),r={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let i="__root",l=!1;for(let e=0;e<o.length;e++){var a;const t=n[o[e]],s="".concat(i,"__").concat(null!==(a=t.qElemNumber)&&void 0!==a?a:t.qElemNo);r[s]||(r[s]=Lw({__id:s,__parent:i,qValues:[]},t),l=!0),i=s}if(l)for(let e=0;e<s.length;e++){const t=n[s[e]];r[i].qValues.push(t)}}const l=Object.keys(r).map(e=>r[e]);return function(){var e,t=Xw,n=Jw;function i(i){var o,s,r,a,l,c,d,h,u=Array.from(i),g=t,p=n,m=new Map;if(null!=e){const t=u.map((t,n)=>function(e){let t=(e=`${e}`).length;return tA(e,t-1)&&!tA(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,i))),n=t.map(eA),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(eA(e)),u.push(Zw));g=(e,n)=>t[n],p=(e,t)=>n[t]}for(r=0,o=u.length;r<o;++r)s=u[r],c=u[r]=new Gw(s),null!=(d=g(s,r,i))&&(d+="")&&(h=c.id=d,m.set(h,m.has(h)?Yw:c)),null!=(d=p(s,r,i))&&(d+="")&&(c.parent=d);for(r=0;r<o;++r)if(d=(c=u[r]).parent){if(!(l=m.get(d)))throw new Error("missing: "+d);if(l===Yw)throw new Error("ambiguous: "+d);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(null!=e){for(;a.data===Zw&&1===a.children.length;)a=a.children[0],--o;for(let e=u.length-1;e>=0&&(c=u[e]).data===Zw;--e)c.data=null}if(a.parent=Qw,a.eachBefore(function(e){e.depth=e.parent.depth+1,--o}).eachBefore($w),a.parent=null,o>0)throw new Error("cycle");return a}return i.id=function(e){return arguments.length?(t=Kw(e),i):t},i.parentId=function(e){return arguments.length?(n=Kw(e),i):n},i.path=function(t){return arguments.length?(e=Kw(t),i):e},i}().id(e=>e.__id).parentId(e=>e.__parent)(l)}(t):pA(o,n,e);if(!r)return null;const a=r.height,l=[];for(let s=0;s<=a;s++){let r=null;if(s>0)if("S"===o.qMode){let e=cA(o)[s-1];r=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[s-1];s>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),r=n.fields[e]}const a=i.normalizeConfig(Lw(Lw({},e),{},{field:r?r.key():void 0}),t),c=a.props,d=a.main,h=Object.keys(c);l[s]={propsArr:h,props:c,main:d};const u=r?dA(r,{cube:o}):{fieldDepth:0};mA({propsArr:h,props:c,cube:o,cache:n,itemDepthObject:u,f:r})}const c=r.copy().descendants(),d=r.descendants();for(let e=0;e<d.length;e++){const t=l[d[e].depth].propsArr,n=l[d[e].depth].props,i=l[d[e].depth].main,o=c[e],r=o.data,a=uA(i,r,{key:s});gA({propsArr:t,props:n,item:o,itemData:r,ret:a,sourceKey:s}),d[e].data=a}return r}function bA(e,t,n,i){const o=Array.isArray(e)?e:[e];let s=[];for(let r=0;r<o.length;r++)if(void 0!==o[r].field){const a=t.raw(),l=t.key();if(!pA(a,n,e))continue;const c="object"==typeof o[r].field?o[r].field:t.field(o[r].field),d=i.normalizeConfig(o[r],t),h=d.props,u=d.main,g=Object.keys(h),p=dA(c,{cube:a}),m=hA({fieldDepth:0},p),f=m.nodeFn,b=m.attrFn,v=m.valueFn;mA({propsArr:g,props:h,cube:a,cache:n,itemDepthObject:p,f:c});const C=!!o[r].trackBy,_=typeof o[r].trackBy,y={},w=[],A=f(n.tree),S=[];for(let e=0;e<A.length;e++){const t=A[e],n=b?b(v(t)):v(t);if(u.filter&&!u.filter(n))continue;const s=uA(u,n,{key:l});gA({propsArr:g,props:h,item:t,itemData:n,ret:s,sourceKey:l}),C&&i.track({cfg:o[r],itemData:n,obj:s,target:w,tracker:y,trackType:_}),S.push(s)}const x=C?i.collect(w,{main:u,propsArr:g,props:h}):S;s=[...s,...x]}return s}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var vA,CA,_A=(vA=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,i,o,s,r,a,l,c,d,h,u=e.length,g=e.search(/[0-9\-\+#]/),p=g>0?e.substring(0,g):"",m=e.split("").reverse().join(""),f=m.search(/[0-9\-\+#]/),b=u-f,v=e.substring(b,b+1),C=b+("."===v||","===v?1:0),_=f>0?e.substring(C,u):"";if(n=(t="-"===(e=e.substring(g,C)).charAt(0)?-t:+t)<0?t=-t:0,o=(i=e.match(/[^\d\-\+#]/g))&&i[i.length-1]||".",s=i&&i[1]&&i[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=a)&&(t=(+t).toFixed(a+1)),d=e[0].split(s),e[0]=d.join(""),(r=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-r;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",b=(h=t[0]).length%l,u=h.length,C=0;C<u;C++)m+=h.charAt(C),!((C-b+1)%l)&&C<u-l&&(m+=s);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(i=t.join(""))&&""!==i||(n=!1),p+(n?"-":"")+i+_}},vA(CA={exports:{}}),CA.exports);function yA(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const wA={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},AA=/%\)?$/,SA=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,xA=/^\(oct\)/i,kA=/^\(dec\)/i,LA=/^\(hex\)/i,EA=/^\(bin\)/i,DA=/^\(rom\)/i,IA=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,NA=/#|0/g;function RA(e,t,n,i){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",i||".")}function TA(e,t,n){const i=yA(e);return n?i:new RegExp(i||"",t)}function MA(e,t,n,i){let o,s,r,a,l,c,d,h,u,g=e.pattern;var p,m;i&&(e.abbreviate=!0),p=t,(m=n)&&(m=yA(m)),p&&(p=yA(p)),u=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),r=g.match(u),r=r?r[0]:"",a=r?g.substr(0,g.indexOf(r)):g,l=r?g.substring(g.indexOf(r)+r.length):"",r||(r=g?"#":"##########"),t&&t===n&&(o=r.split(n),s=o.pop(),r=o.join("")+n+s,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(r=r.replace(TA(c,"g"),t)),d=n,n=".",d&&(r=r.replace(TA(d,"g"),n)),h=r.match(/#/g),h=h?h.length:0;const f=g.split(d);let b;f[1]&&(b=f[1].match(NA)),e.prefix=a||"",e.postfix=l||"",e.pattern=g,e.maxPrecision=b?b.length:2,e.percentage=AA.test(g),e.numericPattern=r||"",e.numericRegex=new RegExp("".concat(TA(t,null,!0),"|").concat(TA(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=n,e.temp=h}class OA{constructor(e,t,n,i,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return wA;const n={};return e.qNumericalAbbreviation.split(t).forEach(e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])}),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new OA(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,i){return this.prepare(t,n,i),this.formatValue(e)}prepare(e,t,n){let i;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},i=this._prepared,e=e.split(this.patternSeparator),i.positive.pattern=e[0],i.negative.pattern=e[1],i.zero.pattern=e[2],IA.test(e[0])&&(i.positive.isFunctional=!0),e[1]?IA.test(e[1])&&(i.negative.isFunctional=!0):i.negative=!1,e[2]?IA.test(e[2])&&(i.zero.isFunctional=!0):i.zero=!1;const o="U"===this.type;i.positive.isFunctional||MA(i.positive,t,n,o),i.negative&&!i.negative.isFunctional&&MA(i.negative,t,n,o),i.zero&&!i.zero.isFunctional&&MA(i.zero,t,n,o)}formatValue(e){let t,n,i,o,s,r,a,l,c,d=this._prepared,h="",u="",g=e;if(isNaN(e))return"".concat(g);if(e=+e,!1===d.pattern)return e.toString();if(0===e&&d.zero)return d=d.zero,d.pattern;if(e<0&&d.negative?(d=d.negative,e=-e):d=d.positive,s=d.d,r=d.t,d.isFunctional)e=function(e,t,n){let i;return SA.test(t)?e=RA(e,Number(/\d{2}/.exec(t)[0]),t,n):xA.test(t)?e=RA(e,8,t,n):kA.test(t)?e=RA(e,10,t,n):LA.test(t)?e=RA(e,16,t,n):EA.test(t)?e=RA(e,2,t,n):DA.test(t)&&(i="",e<0&&(i="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,i="",o=Number(String(e).slice(-3)),s=(e-o)/1e3,r=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),a=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<r.length;n++)if(r[n]<=o){i+=a[n],o-=r[n];break}for(n=0;n<s;n++)i="M".concat(i);return t[1]!==t[1].toUpperCase()&&(i=i.toLowerCase()),i}(e,t),e=i+e):e=t+i+e.toExponential(0)),e}(e,d.pattern,s);else{if(d.percentage&&(e*=100),d.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let i,o,s=t[0];for(a=0,n=Number(Number(e).toExponential().split("e")[1]);s<=n&&a<t.length;)a++,s=t[a];a>0&&(i=t[a-1]),i&&n>0&&i>0?o=i:(n<0&&i<0||!i)&&(s<0&&s-n<=d.maxPrecision?o=s:i<=n&&!(s>0&&-n<=d.maxPrecision)&&(o=i)),o&&(h=this.abbreviations[o],e/=10**o)}if(i=Math.abs(e),t=d.temp,l=d.numericPattern,c=l.split(s)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==l.slice(-1)[0])if(i>=1e15||i>0&&i<=1e-14)e=i?i.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(s)[0];if(n+=s,e=_A(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:i%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(a=o.length;a<n;a++)o+="0";o&&(e+=s+o)}else 0===t&&(o=0)}else if(i>=10**t||i<1||i<1e-4)0===e?e="0":i<1e-4||i>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),u=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",s));else{for(l+=s,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(i)/Math.log(10)))),a=0;a<t;a++)l+="#";e=_A(l,e)}e=e.replace(d.numericRegex,e=>e===r?d.groupTemp:e===s?d.decTemp:""),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return d.prefix+e+u+h+d.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function qA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.size,i=void 0===n?5e3:n,o=t.multipleArguments,s=void 0!==o&&o,r=t.toKey,a=void 0===r?e=>e:r;let l,c,d=Object.create(null),h=Object.create(null),u=0,g=0;return l=s?function(){return c=a(...arguments),l.has(c)?l.get(c):l.set(c,e(...arguments))}:t=>(c=a(t),l.has(c)?l.get(c):l.set(c,e(t))),l.set=(e,t)=>(u>=i&&(delete d[h[g]],delete h[g],u--,g++),d[e]=t,h[u]=e,u++,t),l.get=e=>d[e],l.has=e=>e in d,l.clear=()=>{d=Object.create(null),h=Object.create(null),u=0,g=0},l.size=()=>u,l}function PA(e,t,n,i,o){const s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new OA(...t)}(o,e,t,n,i),r=qA(s.formatValue.bind(s),{toKey:e=>isNaN(e)?e:+e});function a(e){return r(e)}return a.format=function(e,t,n,i){return r.clear(),s.format(t,e,n,i)},a.pattern=function(e){return e&&(r.clear(),s.pattern=e,s.prepare()),s.pattern},a}const BA="D",FA="T",WA="TS",zA=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],VA=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],HA=["January","February","March","April","May","June","July","August","September","October","November","December"],jA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UA(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function $A(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class GA{constructor(e,t,n){const i=e||{};i.qCalendarStrings||(i.qCalendarStrings={qLongDayNames:zA,qDayNames:VA,qLongMonthNames:HA,qMonthNames:jA}),this.localeInfo=i,this.locale_days=i.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=i.qCalendarStrings.qDayNames.slice(),this.locale_months=i.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=i.qCalendarStrings.qMonthNames.slice(),t||(t={[FA]:i.qTimeFmt||"hh:mm:ss",[BA]:i.qDateFmt||"YYYY-MM-DD",[WA]:i.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new GA(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let i;e instanceof Date?i=function(e,t){let n=e.getUTCHours(),i=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),i<0&&(i=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:i,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),i=function(e,t){let n,i=function(e){const t=e,n=24*$A(t),i=60*$A(n),o=60*$A(i),s=1e3*$A(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(i),s:Math.floor(o),f:Math.round(s)}}(e),o=i.d,s=i.h,r=i.m,a=i.s,l=i.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(s+=24*o),/h+/gi.test(t)||(r+=60*s),/m+/gi.test(t)||(a+=60*r),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let d="";return n&&(d=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:s,m:r,s:a,f:l,t:d}}(e,t));const o=(s=this,r=i,{"Y+|y+":{Y:"".concat(Number("".concat(r.year).slice(-2))),YY:UA("".concat(r.year).slice(-2),2),YYY:UA("".concat(r.year).slice(-3),3),def:e=>UA("".concat(r.year),e.length)},"M+":{M:r.month+1,MM:UA("".concat(r.month+1),2),MMM:s.locale_months_abbr[r.month],def:s.locale_months[r.month]},"W+|w+":{W:r.day,WW:UA("".concat(r.day),2),WWW:s.locale_days_abbr[r.day],def:s.locale_days[r.day]},"D+|d+":{D:r.date,def:e=>UA("".concat(r.date),e.length)},"h+|H+":{h:r.h,def:e=>UA("".concat(r.h),e.length)},"m+":{m:r.m,def:e=>UA("".concat(r.m),e.length)},"s+|S+":{s:r.s,def:e=>UA("".concat(r.s),e.length)},"f+|F+":{def(e){let t="".concat(r.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=r.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var s,r;const a=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&a.push(e);const l=new RegExp(a.join("|"),"g");return t.replace(l,e=>{let t,n,i;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){i=o[n][t],void 0===i&&(i=o[n][t.toLowerCase()]);break}return void 0===i&&(i=o[n].def),"function"==typeof i&&(i=i(e)),i})}}function KA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new GA(...t)}function QA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=KA(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=qA(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return"IV"!==t?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function s(e){return e=o(e),i(e)}return s.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},s.locale=function(o){return n=KA(o,e,t),i=qA(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},s.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},s}function YA(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.meta,i=t.id,o=t.key,s=t.localeInfo,r=t.fieldExtractor,a=t.value,l=t.type,c=t.sourceField;const d=a||("dimension"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),h="dimension"===l?"first":"avg",u=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return QA(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",i=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",s="U",r=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,i=e.qNumFormat.qThou||i,o=e.qNumFormat.qDec||o,s=e.qNumFormat.qType||s,r=r&&-1===["M"].indexOf(e.qNumFormat.qType)):r=!0,(r||"U"===s)&&(n="#".concat(o,"##"),s="U"),PA(n,i,o,s,t)}(n,s),g={id:()=>i,key:()=>o,raw:()=>n,title:()=>n.qFallbackTitle||n.label,type:()=>l,origin:()=>c,items:()=>(e||(e=r(g)),e),min:()=>n.qMin,max:()=>n.qMax,value:d,label:e=>(null==e?void 0:e.qText)||"",reduce:h,reduceLabel:"dimension"===l?"first":(e,t)=>u(t),formatter:()=>u,tags:()=>n.qTags};return g}function ZA(e,t,n,i,o){return(t[e]||[]).map((t,s)=>{const r="".concat(i?"".concat(i,"/"):"").concat(e,"/").concat(s),a={instance:YA(qw({id:"".concat(n?"".concat(n,"/"):"").concat(r),key:r,meta:t},o))};return a.attrDims=ZA("qAttrDimInfo",t,n,r,qw({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),a.attrExps=ZA("qAttrExprInfo",t,n,r,qw({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),a.measures=ZA("qMeasureInfo",t,n,r,qw({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),a})}function XA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,i=e.config,o=void 0===i?{}:i;const s={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},r=n;if(!r)throw new Error('Missing "data" input');if(!r.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const a=XA.util,l={cache:s,cube:r,localeInfo:o.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:o.virtualFields},c={key:()=>t,raw:()=>r,field:e=>function(e,t){let n=t.cache;if("number"==typeof e)return n.fields[e];const i=n.allFields;if("function"==typeof e){for(let t=0;t<i.length;t++)if(e(i[t]))return i[t];return!1}if("string"==typeof e){for(let t=0;t<i.length;t++)if(i[t].key()===e||i[t].title()===e)return i[t]}else if(e&&-1!==i.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,l),fields:()=>s.fields.slice(),extract:e=>l.extractor(e,c,s,a),hierarchy:e=>l.hierarchy(e,c,s,a),_cache:()=>s};"K"===r.qMode||"T"===r.qMode||!r.qMode&&r.qNodesOnDim?(l.extractor=bA,l.hierarchy=fA,l.pages="K"===r.qMode?r.qStackedDataPages:r.qTreeDataPages):"S"===r.qMode?(l.extractor=Ww,l.pages=r.qDataPages,l.hierarchy=fA):l.extractor=()=>[],l.fieldExtractor=e=>l.extractor({field:e},c,s,a);const d="S"===r.qMode?e=>e.qElemNumber:void 0,h="S"===r.qMode?e=>e.qNum:void 0;s.wrappedFields.push(...ZA("qDimensionInfo",r,t,"",qw({},l,{value:d,type:"dimension"}))),s.wrappedFields.push(...ZA("qMeasureInfo",r,t,"",qw({},l,{value:h,type:"measure"}))),s.fields=s.wrappedFields.map(e=>e.instance);const u=e=>{e.forEach(e=>{s.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)})};return u(s.wrappedFields),(o.virtualFields||[]).forEach(e=>{const n=c.field(e.from),i=YA(Lw({meta:n.raw(),id:"".concat(t,"/").concat(e.key),sourceField:n,fieldExtractor:e=>l.extractor({field:e},c,s,a),key:e.key,type:n.type(),localeInfo:l.localeInfo,value:n.value},e.override||{}));s.virtualFields.push(i)}),s.allFields.push(...s.virtualFields),c}const JA=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],eS=/\/qDimensionInfo(?:\/(\d+))?/,tS=/\/qMeasureInfo\/(\d+)/,nS=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,iS=/\/qAttrExprInfo\/(\d+)/,oS=/\/?qHyperCube/,sS=/\/?qTreeData/,rS=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),aS=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function lS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=t.byCells,o=t.primarySource,s=[],r={},a=e.isActive();let l=!1;return e.brushes().forEach(e=>{const t=function(e,t){let n=e,i=-1,o=-1,s="",r=e=>e;oS.test(e)?(s="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),r=rS):sS.test(e)&&(s="".concat(n.substr(0,n.indexOf("qTreeData")+9)),r=aS);let a=!0;if(eS.test(e)&&(i=+eS.exec(e)[1]),tS.test(e)&&(o=+tS.exec(e)[1]),nS.test(e)){o=-1,i=0;const e=+nS.exec(n)[2];isNaN(e)||(i=e,n=n.replace(/\/\d+$/,"")),a=!1}if(iS.test(e)){const e=o;if(t){o=0;const r=nA(s,t);o+=(r.qMeasureInfo||[]).length,i>-1?(o=r.qDimensionInfo.slice(0,i).reduce((e,t)=>e+t.qAttrExprInfo.length,o),i=-1):(o=r.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,o),o=r.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,o)),o+=+iS.exec(n)[1]}else i>-1?(i=-1,o=+iS.exec(n)[1]):o+=+iS.exec(n)[1]+1}return JA.forEach(e=>{let t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,o,s,r=[],a=!0,l=!1;try{for(o=(t=t.call(e)).next,!2;!(a=(n=o.call(t)).done)&&(r.push(n.value),2!==r.length);a=!0);}catch(e){l=!0,i=e}finally{try{if(!a&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw i}}return r}}(e)||function(e){if(e){if("string"==typeof e)return Sw(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Sw(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),i=t[0],o=t[1];n=n.replace(i,o)}),a&&(n=r(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:i,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,r.multiRangeSelectTreeDataValues||(r.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>r.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,r.rangeSelectHyperCubeValues||(r.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>r.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,r.selectHyperCubeContinuousRange||(r.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>r.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}})))}if("value"===e.type&&t.dimensionIdx>-1)if(i)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const i=n.qHyperCube,s=i.qNoOfLeftDims,a=i.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(r.selectPivotCells||(r.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===s||a>=s)&&s>-1?n.forEach(e=>{r.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:a-s})}):n.forEach(e=>{r.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})}),l=!!r.selectPivotCells.cells.length}}else r.selectHyperCubeCells||(r.selectHyperCubeCells={path:t.path,cols:[]}),r.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||r.selectHyperCubeCells.values)||(r.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),l=!!r.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));l=!!n.length,s.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}}),!l&&a?[{method:"resetMadeSelections",params:[]}]:(r.rangeSelectHyperCubeValues&&s.push({method:"rangeSelectHyperCubeValues",params:[r.rangeSelectHyperCubeValues.path,r.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),r.selectHyperCubeContinuousRange&&s.push({method:"selectHyperCubeContinuousRange",params:[r.selectHyperCubeContinuousRange.path,r.selectHyperCubeContinuousRange.ranges]}),r.selectHyperCubeCells&&s.push({method:"selectHyperCubeCells",params:[r.selectHyperCubeCells.path,r.selectHyperCubeCells.values,r.selectHyperCubeCells.cols]}),r.selectPivotCells&&s.push({method:"selectPivotCells",params:[r.selectPivotCells.path,r.selectPivotCells.cells]}),r.multiRangeSelectTreeDataValues&&s.push({method:"multiRangeSelectTreeDataValues",params:[r.multiRangeSelectTreeDataValues.path,r.multiRangeSelectTreeDataValues.ranges]}),s);var c}function cS(e){XA.util=e.data("matrix").util,e.data("q",XA),e.formatter("q-number",PA),e.formatter("q-time",QA)}cS.qBrushHelper=lS,cS.selections=lS;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const dS=/,(?![^(]*\))/,hS=/\s(?![^(]*\))/,uS=/^[0-9]+[a-zA-Z%]+?$/,gS=["none","inset","initial","inherit"],pS=e=>{if(!e)return;const t=e.split(hS).filter(e=>!gS.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||uS.test(e))(t)||gS.includes(t.toLowerCase())?void 0:t;return n},mS=e=>e?e.split(dS).map(e=>e.trim()):[];function fS(e,t,n,i){return n&&i?n.getStyle(`object.${i}`,e,t):n?n.getStyle("",e,t):void 0}function bS(e,t,n,i,o){return e&&i?"none"!==e.color?i.getColorPickerColor(e):void 0:fS(t,n,i,o)}const vS={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},CS={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function _S(e,t,n,i){const o=e?.bgImage;if(o){let s="";if("media"===o.mode||"media"===e.useImage){let e;const r=o?.mediaUrl,{qUrl:a}=r?.qStaticContentUrl||{};s=a?decodeURIComponent(a):void 0,s=function(e,t,n){if(t)return n?n+t:function(e){let t,n,i,o;if(e?.session?.config){t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://";const s="/"===n.pathname?"":n.pathname.replace(/\/app\/.*$/,"");return i+n.host+s}return""}(e)+t}(t,s,i),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),s=`${s}?${e}`)}"expression"===o.mode&&(s=o.expressionUrl?decodeURIComponent(o.expressionUrl):void 0);const r=function(e){let t="center center";return e?.bgImage?.position&&(t=CS[e.bgImage.position]),t}(e),a=function(e){let t=vS.originalSize;const n=e?.bgImage?.sizing;return n&&(t=vS[n]),t}(e);return s?{url:s,pos:r,size:a}:void 0}}function yS(e,t,n){const i=e?.bgColor;return i&&t&&(i.useExpression||i.useColorExpression)?t.validateColor(i.colorExpression):bS(i?.color,"","backgroundColor",t,n)}function wS(e,t,n){const i=fS("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&gS.includes(e.toLowerCase()))return e.toLowerCase();const i=mS(e);if(1!==i.length)return e;let o=n;if(!o){const n=mS(t);if(1!==n.length)return e;o=pS(n[0])}if(!o)return e;const s=pS(i[0]);return s?e.replace(s,o):`${e} ${o}`})(e?.shadow?.boxShadow||i,i,bS(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function AS(e,t,n,i){const o=e?.title?.[t]||{},s=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||n.getStyle(`object.${i}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||n.getStyle(`object.${i}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color):n.getStyle(`object.${i}`,`title.${t}`,"color"),backgroundColor:o.backgroundColor||n.getStyle(`object.${i}`,`title.${t}`,"backgroundColor"),fontWeight:s.includes("bold")?"bold":"normal",fontStyle:s.includes("italic")?"italic":"normal",textDecoration:s.includes("underline")?"underline":"initial"}}const SS={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},xS=["theme","selections"];function kS({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:s,hostConfig:r}){return function({app:e,themeApi:t,theme:n,queryParams:i,components:o=[],checkboxes:s=!1,hostConfig:r}){const a=function(e=[]){const t={};return e.forEach(e=>{const n=e?.key;xS.includes(n)&&(t[n]=e)}),t}(o),l=(e,n)=>t.getStyle("object.listBox",e,n),c=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,d=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:i,checkboxes:o}){const s=i.theme?.content?.fontColor,r=e(s)||n("content","color")||t.palette?.text.primary,a=!o&&(i.theme?.content?.useContrastColor??!0),l=i.selections?.colors||{},c=i=>{const o="selected"===i?"main":i,s=`${i}Contrast`,c=e(l[i])||n("",`dataColors.${i}`)||"possible"===i&&n("","backgroundColor")||t.palette?.selected?.[o]||SS[i],d=a?cy(c,r):r||t.palette?.selected[`${s}Text}`];return{[i]:c,[s]:d}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:c,theme:n,getListboxStyle:l,overrides:a,checkboxes:s}),h=a.theme||{},u=c(h.header?.fontColor)||l("title.main","color"),g=function({themeApi:e,themeOverrides:t}){let n;const i=t?.background;return i?(n=i?.useExpression?yS({bgColor:i},e,"listBox"):e.getColorPickerColor(i?.color),n):n}({themeApi:t,themeOverrides:h}),p=h.background?.image?_S({bgImage:h.background.image},e,i,r?.host):void 0,m=g||l("","backgroundColor")||n.palette.background.default,f=function(e,t){const n=ry(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(m,l),b=function(e){return cy("#fff",e("content","color"))}(l),v=h.header?.fontStyle||{},C=h.content?.fontStyle||{},_=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:m,backgroundImage:p?.url&&!p?.url.startsWith("url(")?`url('${p.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p?.size,backgroundPosition:p?.pos},header:{color:u,fontSize:h.header?.fontSize||l("title.main","fontSize"),fontFamily:h.header?.fontFamily||l("title.main","fontFamily"),fontWeight:_(v.bold,"bold","normal")||l("title.main","fontWeight")||"bold",textDecoration:v.underline?"underline":"initial",fontStyle:_(v.italic,"italic","normal")||l("title.main","fontStyle")||"initial"},content:{backgroundColor:s?void 0:d.possible,color:d.possibleContrast||l("content","color"),fontSize:h.content?.fontSize||l("content","fontSize"),fontFamily:h.content?.fontFamily||l("content","fontFamily"),fontWeight:_(C.bold,"bold","normal")||l("content","fontWeight")||"normal",textDecoration:C.underline?"underline":"initial",fontStyle:_(C.italic,"italic","normal")||l("content","fontStyle")||"initial"},search:{color:b,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:f,backdropFilter:"blur(8px)"},selections:d}}({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:s,hostConfig:r})}function LS({alignTo:e,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:s,app:r,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:h,selectDisabled:u=()=>!1,sortCriteria:g=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:p="ltr"}){const m=Boolean(a?.qLibraryId),f=o&&Boolean(e.current),[b,v]=(0,t.useState)(0),C=Ur(),_=(0,t.useRef)(),[y]=pp({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:g,qFieldDefs:m?void 0:[a]},qLibraryId:m?a.qLibraryId:void 0}},r,a,l),w=(0,t.useCallback)(()=>{y.lock("/qListObjectDef")},[y]),A=(0,t.useCallback)(()=>{y.unlock("/qListObjectDef")},[y]),{translator:S,themeApi:x,keyboardNavigation:k,hostConfig:L}=(0,t.useContext)(rp),E=(0,t.useRef)(),D=(0,t.useRef)(),[I]=H_(r,y,D),[N]=Cp(y),[R]=(0,t.useState)(()=>j_({selectDisabled:u})),T=ob({containerRef:D,enabled:k}),{checkboxes:M=h}=N||{},O=kS({themeApi:x,theme:C,hostConfig:L,components:d,checkboxes:M});if((0,t.useEffect)(()=>{I&&f&&(I.isModal(y)||I.goModal("/qListObjectDef"))},[I,f]),!(y&&N&&S&&O))return null;const q=!0===N.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;I.noModal(n),s()},B=qC({layout:N,model:y,translator:S,selectionState:R,selections:I}),F=$_(N);return(0,_t.jsx)(Lm,{className:"listbox-container",open:f,onClose:P,anchorEl:e.current,anchorOrigin:n,transformOrigin:i,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0,direction:p,children:(0,_t.jsxs)(ud,{container:!0,direction:"column",gap:0,ref:D,children:[(0,_t.jsxs)(ud,{container:!0,style:{direction:p,padding:C.spacing(1)},children:[(0,_t.jsx)(ud,{children:q?(0,_t.jsx)(Uc,{onClick:A,disabled:!q,size:"large","aria-label":S.get("Listbox.Unlock"),title:S.get("Listbox.Unlock"),children:(0,_t.jsx)(Ip,{})}):(0,_t.jsx)(Uc,{onClick:w,disabled:!F,size:"large","aria-label":S.get("Listbox.Lock"),title:S.get("Listbox.Lock"),children:(0,_t.jsx)(Rp,{})})}),(0,_t.jsx)(ud,{size:"grow"}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(k_,{layout:N,more:{enabled:!q,actions:B,alignTo:E,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:I,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}})})]}),(0,_t.jsxs)(ud,{size:"grow",role:"region","aria-label":S.get("Listbox.ResultFilterLabel"),children:[(0,_t.jsx)("div",{ref:E}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(F_,{ref:_,popoverOpen:f,styles:O,visible:!0,model:y,listCount:b,selections:I,selectionState:R,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:T.focusSelection},autoFocus:c??!0,direction:p})}),(0,_t.jsx)(NC,{model:y,app:r,layout:N,selections:I,selectionState:R,direction:p,onSetListCount:e=>v(e),onCtrlF:()=>{_.current.focus()},styles:O,keyboard:T})]})]})})}const ES=function({displayName:e}){return(0,_t.jsx)(yd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600,marginTop:"8px"},children:e})};function DS({field:e,api:n,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:s=null,onClose:r=()=>{}}){const{translator:a}=(0,t.useContext)(rp),l=s||(0,t.useRef)(),c=Ur(),[d,h]=(0,t.useState)(!1);let u,g=null,p=null,m="";const f=!!e.isPinned,b=()=>{h(!1),r()};if(f)m=e.qName||e.qField,p=(0,_t.jsx)(ES,{displayName:m});else{u=e.selections[i],void 0===u.qTotal&&(u.qTotal=0);const t=u.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},o=(t.qSelected+t.qLocked)/u.qTotal,r=t.qAlternative/u.qTotal,l=(t.qExcluded+t.qLockedExcluded+t.qSelectedExcluded)/u.qTotal,d=t.qSelected+t.qSelectedExcluded+t.qLocked+t.qLockedExcluded,h=0===d&&0===u.qTotal;let g="";u.qTotal===d&&u.qTotal>1?g=a.get("CurrentSelections.All"):d>1&&u.qTotal?g=a.get("CurrentSelections.Of",[d,u.qTotal]):u.qSelectedFieldSelectionInfo&&(g=u.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[i]&&(g=`${e.states[i]}: ${g}`);const m=[{color:c.palette.selected.main,ratio:o},{color:c.palette.selected.alternative,ratio:r},{color:c.palette.selected.excluded,ratio:l}];m.forEach((e,t)=>{e.offset=t?m[t-1].offset+m[t-1].ratio:0});let f=null,b=null,v=null;s||(f=(0,_t.jsxs)(ud,{sx:{flex:1,minWidth:0,opacity:u.qLocked?"0.3":""},children:[(0,_t.jsx)(yd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label}),(0,_t.jsx)(yd,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"},children:g})]}),u.qLocked?b=(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{size:"large",children:(0,_t.jsx)(Ip,{})})}):u.qOneAndOnlyOne||(b=(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{title:a.get("Selection.Clear"),onClick:t=>{t.stopPropagation(),n.clearField(u.qField,e.states[i])},size:"large",children:(0,_t.jsx)(Zd,{})})})),v=(0,_t.jsx)("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"},children:!1===h&&m.map(e=>(0,_t.jsx)("div",{style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}},e.color))}),p=(0,_t.jsxs)(_t.Fragment,{children:[f,b,v]}))}return g=(0,_t.jsxs)(ud,{container:!0,gap:1,ref:l,"data-testid":f?`pin-item-${m}`:`selection-item-${u.qField}`,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px",height:"40px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&h(!d)})||null,children:[p,d&&(0,_t.jsx)(LS,{alignTo:l,show:d,close:b,app:n.model,fieldName:f?e.qField:u.qField,stateName:f?void 0:e.states[i]})]}),s?(0,_t.jsx)(LS,{alignTo:l,show:!0,close:b,app:n.model,fieldName:f?e.qField:u.qField,stateName:f?void 0:e.states[i]}):g}const IS=function(e){const n=t.useRef({});return t.useEffect(()=>{n.current=e}),n.current};function NS(e){return Er("MuiBadge",e)}const RS=Dr("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"]),TS=_r("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),MS=_r("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Vr(n.anchorOrigin.vertical)}${Vr(n.anchorOrigin.horizontal)}${Vr(n.overlap)}`],"default"!==n.color&&t[`color${Vr(n.color)}`],n.invisible&&t.invisible]}})(Xa(({theme:e})=>({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}),variants:[...Object.entries(e.palette).filter($l(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:t,horizontal:n}=e.anchorOrigin,i="circular"===e.overlap?"14%":0;return{"--Badge-translateX":"right"===n?"50%":"-50%","--Badge-translateY":"top"===t?"-50%":"50%",top:"top"===t?i:"initial",bottom:"bottom"===t?i:"initial",right:"right"===n?i:"initial",left:"left"===n?i:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${"right"===n?"100%":"0%"} ${"top"===t?"0%":"100%"}`,[`&.${RS.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function OS(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const qS=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:s,component:r,components:a={},componentsProps:l={},children:c,overlap:d="rectangular",color:h="default",invisible:u=!1,max:g=99,badgeContent:p,slots:m,slotProps:f,showZero:b=!1,variant:v="standard",...C}=n,{badgeContent:_,invisible:y,max:w,displayValue:A}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,s=IS({badgeContent:t,max:i});let r=n;!1!==n||0!==t||o||(r=!0);const{badgeContent:a,max:l=i}=r?s:e;return{badgeContent:a,invisible:r,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:g,invisible:u,badgeContent:p,showZero:b}),S=IS({anchorOrigin:OS(i),color:h,overlap:d,variant:v,badgeContent:p}),x=y||null==_&&"dot"!==v,{color:k=h,overlap:L=d,anchorOrigin:E,variant:D=v}=x?S:n,I=OS(E),N="dot"!==D?A:void 0,R={...n,badgeContent:_,invisible:x,max:w,displayValue:N,showZero:b,anchorOrigin:I,color:k,overlap:L,variant:D},T=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:s,classes:r={}}=e;return Lt({root:["root"],badge:["badge",s,i&&"invisible",`anchorOrigin${Vr(n.vertical)}${Vr(n.horizontal)}`,`anchorOrigin${Vr(n.vertical)}${Vr(n.horizontal)}${Vr(o)}`,`overlap${Vr(o)}`,"default"!==t&&`color${Vr(t)}`]},NS,r)})(R),M={slots:{root:m?.root??a.Root,badge:m?.badge??a.Badge},slotProps:{root:f?.root??l.root,badge:f?.badge??l.badge}},[O,q]=Nl("root",{elementType:TS,externalForwardedProps:{...M,...C},ownerState:R,className:kt(T.root,o),ref:t,additionalProps:{as:r}}),[P,B]=Nl("badge",{elementType:MS,externalForwardedProps:M,ownerState:R,className:T.badge});return(0,_t.jsxs)(O,{...q,children:[c,(0,_t.jsx)(P,{...B,children:N})]})}),PS=qS,BS=$c;function FS(e){return Er("MuiListItem",e)}function WS(e){return Er("MuiListItemSecondaryAction",e)}Dr("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),Dr("MuiListItemSecondaryAction",["root","disableGutters"]);const zS=_r("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),VS=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...s}=i,r=t.useContext(Xd),a={...i,disableGutters:r.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Lt({root:["root",t&&"disableGutters"]},WS,n)})(a);return(0,_t.jsx)(zS,{className:kt(l.root,o),ownerState:a,ref:n,...s})});VS.muiName="ListItemSecondaryAction";const HS=VS,jS=_r("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Xa(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${sh.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),US=_r("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),$S=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItem"}),{alignItems:o="center",children:s,className:r,component:a,components:l={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:h,...u}={},dense:g=!1,disableGutters:p=!1,disablePadding:m=!1,divider:f=!1,secondaryAction:b,slotProps:v={},slots:C={},..._}=i,y=t.useContext(Xd),w=t.useMemo(()=>({dense:g||y.dense||!1,alignItems:o,disableGutters:p}),[o,y.dense,g,p]),A=t.useRef(null),S=t.Children.toArray(s),x=S.length&&BS(S[S.length-1],["ListItemSecondaryAction"]),k={...i,alignItems:o,dense:w.dense,disableGutters:p,disablePadding:m,divider:f,hasSecondaryAction:x},L=(e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:s,divider:r,hasSecondaryAction:a}=e;return Lt({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",r&&"divider","flex-start"===t&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},FS,n)})(k),E=Kl(A,n),D={slots:C,slotProps:v},[I,N]=Nl("secondaryAction",{elementType:HS,externalForwardedProps:D,ownerState:k,className:L.secondaryAction}),R=C.root||l.Root||jS,T=v.root||c.root||{},M={className:kt(L.root,T.className,r),..._};let O=a||"li";return x?(O=M.component||a?O:"div","li"===d&&("li"===O?O="div":"li"===M.component&&(M.component="div")),(0,_t.jsx)(Xd.Provider,{value:w,children:(0,_t.jsxs)(US,{as:d,className:kt(L.container,h),ref:E,ownerState:k,...u,children:[(0,_t.jsx)(R,{...T,...!xl(R)&&{as:O,ownerState:{...k,...T.ownerState}},...M,children:S}),S.pop()]})})):(0,_t.jsx)(Xd.Provider,{value:w,children:(0,_t.jsxs)(R,{...T,as:O,ref:E,...!xl(R)&&{ownerState:{...k,...T.ownerState}},...M,children:[S,b&&(0,_t.jsx)(I,{...N,children:b})]})})}),GS=$S,KS=e=>Yd((e=>({...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));n.dn(KS);const QS="MultiState-item",YS=_r(ud)(({theme:e})=>({[`&.${QS}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function ZS({field:e,api:n,moreAlignTo:i=null,onClose:o=()=>{}}){const[s,r]=(0,t.useState)(!!i),[a,l]=(0,t.useState)(-1),[c,d]=(0,t.useState)(i?i.current:null),h=i||(0,t.useRef)(),{translator:u}=(0,t.useContext)(rp),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ud,{sx:{minWidth:0,flexGrow:1},children:(0,_t.jsx)(PS,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length,children:(0,_t.jsx)(yd,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)("div",{style:{width:"12px"}})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{size:"large",children:(0,_t.jsx)(KS,{})})})]}));const f=(0,_t.jsxs)(nh,{dense:!0,children:[(0,_t.jsx)(GS,{title:g,onClick:()=>{e.states.forEach(t=>n.clearField(e.name,t))},children:(0,_t.jsx)(Bu,{variant:"contained",fullWidth:!0,children:g})}),e.states.map((t,i)=>(0,_t.jsx)(GS,{title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),l(t)})(e,i),children:(0,_t.jsx)(Qa,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:(0,_t.jsx)(DS,{field:e,api:n,stateIx:i,skipHandleShowListBoxPopover:!0})})},i))]}),b=(0,_t.jsx)(Lm,{open:s,onClose:()=>{r(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:f}),v=i?b:(0,_t.jsxs)(YS,{container:!0,gap:0,className:QS,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,r(!s))},children:[m,s&&b,a>-1&&(0,_t.jsx)(LS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]})]});return i&&a>-1?(0,_t.jsx)(LS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):v}const XS="More",JS={item:`${XS}-item`,badge:`${XS}-badge`},ex=_r(ud)(({theme:e})=>({[`&.${JS.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${JS.badge}`]:{padding:e.spacing(0,1)}}));function tx({items:e=[],api:n}){const i=Ur(),[o,s]=(0,t.useState)(!1),[r,a]=(0,t.useState)(-1),[l,c]=(0,t.useState)(null),d=(0,t.useRef)(),h=()=>{a(-1)};let u=null;return r>-1&&(u=e[r].states.length>1?(0,_t.jsx)(ZS,{field:e[r],api:n,moreAlignTo:d,onClose:h}):(0,_t.jsx)(DS,{field:e[r],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),(0,_t.jsxs)(ex,{container:!0,gap:0,className:JS.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,s(!o))},children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(Qa,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText},children:(0,_t.jsxs)(yd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit",children:["+",e.length]})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{size:"large",children:(0,_t.jsx)(KS,{})})}),o&&(0,_t.jsx)(Lm,{open:o,onClose:()=>{s(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:(0,_t.jsx)(nh,{dense:!0,children:e.map((e,t)=>(0,_t.jsx)(GS,{title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),a(t)})(e,t),children:(0,_t.jsx)(Qa,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:e.states.length>1?(0,_t.jsx)(ZS,{field:e,api:n}):(0,_t.jsx)(DS,{field:e,api:n})})},t))})}),u]})}function nx({api:e,app:n}){const i=Ur(),[o]=fp(n),[s]=Cp(o),[r]=(e=>{const[t]=Sp(e,"FieldList",xp),[n]=vp(t,"getLayout"),i=(e=>{if(!e)return;const t=[];for(let n=0;n<e.length;++n){const i=e[n];if(t.push(i),i.qDerivedFieldData)for(let e=0;e<i.qDerivedFieldData.qDerivedFieldLists.length;++e){const n=i.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<n.qFieldDefs.length;++e){const o=n.qFieldDefs[e];t.push({qName:o.qName,qSrcTables:i.qSrcTables,qTags:o.qTags,isDerived:!0,sourceField:i.qName,derivedDefinitionName:n.qDerivedDefinitionName})}}}return t})(n?.qFieldList?.qItems);return[i]})(n),[a]=(e=>{const[t]=Sp(e,"DimensionList",kp),[n]=vp(t,"getLayout");return[n?.qDimensionList?.qItems]})(n),[l]=Ap(n),{modalObjectStore:c}=(0,t.useContext)(rp).selectionStore,[d,h]=yp(),u=(0,t.useMemo)(()=>{const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const i=e.qField;let o=t[i];void 0===o&&(o={name:i,label:e.qDimensionReferences?.find(e=>e.qLabel)?.qLabel||e.qReadableName||i,states:[],selections:[]},t[i]=o),o.states.push(n),o.selections.push(e)})}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach(e=>n(e.qSelectionObject,e.stateName)),Object.keys(t).map(e=>t[e]).filter(e=>!e.selections.some(e=>e.qIsHidden))}(s).sort(Dp);return((e,t,n,i)=>{if(!e||!i)return n;if(0===e.length||0===t.length&&0===n.length)return[];const o=((e,t,n)=>n.filter(n=>Lp in n&&n[Lp]?e.some(e=>e.qName===n[Lp]):!(!(Ep in n)||!n[Ep])&&t.some(e=>e.qInfo?.qId===n[Ep]&&"N"===e.qData?.grouping)))(e,i,t),s=[],r=[...n];for(let e=0;e<o.length;e++){const t=o[e],n=!(!(Ep in t)||!t[Ep]),a=n?i.find(e=>e.qInfo?.qId===t[Ep]):null,l=n?a?.qData?.info[0]?.qName:t[Lp],c=r.findIndex(e=>n&&e.selections[0].qDimensionReferences?.[0]?.qId===t[Ep]||!n&&(e.selections[0].qField===l||e.selections[0].qReadableName===l));if(-1===s.findIndex(e=>e.selections?.[0]?.qField===l&&!e.isPinned))if(-1===c){const t={...o[e],isPinned:!0,states:["$"]};n&&a&&(t.qField=l,t.qName=a.qData.labelExpression||a.qData.title||l),s.push(t)}else s.push(r[c]),r.splice(c,1)}return[...s,...r]})(r,l,e,a)},[s,r,l,a]),g=(e=>{if(!e)return 0;const{width:t}=e,n=Math.floor(t)-72;return Math.floor(n/120)})(h),{items:p,more:m}=(({currentItems:e,containerRef:t,maxItems:n,isInListboxPopover:i})=>{if(!t)return{items:[],more:[]};const o=[...e],s=t.items??[];if(i()&&o.length+1===s.length){const e=s.filter(e=>!1===o.some(t=>e.name===t.name))[0];if(e&&!e.isPinned){const{qField:t}=e.selections[0];e.selections=[{qField:t}];const n=s.indexOf(e);o.splice(n,0,e)}}let r=[];return n<o.length&&(r=o.splice(0,o.length-n)),t.items=o,{items:o,more:r}})({currentItems:u,containerRef:d,maxItems:g,isInListboxPopover:()=>{const{model:e}=c.get(n.id)||{};return"njsListbox"===e?.genericType}});return(0,_t.jsxs)(ud,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"},children:[m.length>0&&(0,_t.jsx)(ud,{style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`},children:(0,_t.jsx)(tx,{items:m,api:e})}),p.map((t,n)=>(0,_t.jsx)(ud,{style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`},children:t.states.length>1?(0,_t.jsx)(ZS,{field:t,api:e}):(0,_t.jsx)(DS,{field:t,api:e})},`${t.states.join("::")}::${t.qField??t.name}${n}`))]})}const ix=e=>Yd((e=>({...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));n.dn(ix);const ox=e=>Yd((e=>({...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 sx({api:e,app:n}){const{translator:i}=(0,t.useContext)(rp),[o]=function(e){const[n]=fp(e),[i]=Cp(n),[o]=_p(e),[s,r]=(0,t.useState)(null);return(0,t.useEffect)(()=>{o&&n&&i&&((e,t,n)=>{const i=[...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(i)}],!0)})(n,i,o)},[o,n,i]),(0,t.useEffect)(()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach(i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),r({canGoBack:e,canGoForward:t,canClear:n})},[i]),[s,n,i]}(n);return(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"},children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large",children:(0,_t.jsx)(ix,{})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large",children:(0,_t.jsx)(ox,{})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large",children:(0,_t.jsx)(ZC,{})})})]})}n.dn(ox);const rx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function ax([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function lx(){return rx.map(ax).join("")}function cx({app:e}){const t=Ur(),[n]=W_(e);return n?(0,_t.jsxs)(ud,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"},children:[(0,_t.jsx)(ud,{style:{borderRight:`1px solid ${t.palette.divider}`},children:(0,_t.jsx)(sx,{api:n,app:e})}),(0,_t.jsx)(ud,{size:"grow",style:{backgroundColor:t.palette.background.darker,overflow:"hidden"},children:(0,_t.jsx)(nx,{api:n,app:e})})]}):null}let dx;dx="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let hx=null,ux=null;const gx=dx.clearTimeout,px=dx.setTimeout,mx=dx.cancelAnimationFrame||dx.mozCancelAnimationFrame||dx.webkitCancelAnimationFrame,fx=dx.requestAnimationFrame||dx.mozRequestAnimationFrame||dx.webkitRequestAnimationFrame;null==mx||null==fx?(hx=gx,ux=function(e){return px(e,20)}):(hx=function([e,t]){mx(e),gx(t)},ux=function(e){const t=fx(function(){gx(n),e()}),n=px(function(){mx(t),e()},20);return[t,n]});class bx extends t.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),s=parseFloat(i.paddingRight||"0"),r=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-r-a,d=l.width-o-s,h=this._parentNode.offsetHeight-r-a,u=this._parentNode.offsetWidth-o-s;(e||this.state.height===h&&this.state.scaledHeight===c)&&(t||this.state.width===u&&this.state.scaledWidth===d)||(this.setState({height:h,width:u,scaledHeight:c,scaledWidth:d}),"function"==typeof n&&n({height:h,scaledHeight:c,scaledWidth:d,width:u}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,i,o,s,r,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){r=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;r(this),this.__resizeRAF__&&hx(this.__resizeRAF__),this.__resizeRAF__=ux(function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";i="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){h=c[n],l="-"+h.toLowerCase()+"-",i=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(s,c){if(l)s.attachEvent("onresize",c);else{if(!s.__resizeTriggers__){const l=s.ownerDocument,c=dx.getComputedStyle(s);c&&"static"===c.position&&(s.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(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%; }',s=n.head||n.getElementsByTagName("head")[0],r=n.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(n.createTextNode(i)),s.appendChild(r)}}(l),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const h=l.createElement("div");h.className="contract-trigger",s.__resizeTriggers__.appendChild(d),s.__resizeTriggers__.appendChild(h),s.appendChild(s.__resizeTriggers__),r(s),s.addEventListener("scroll",a,!0),i&&(s.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&r(s)},s.__resizeTriggers__.addEventListener(i,s.__resizeTriggers__.__animationListener__))}s.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:o=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:r=!1,nonce:a,onResize:l,style:c={},tagName:d="div",...h}=this.props,{height:u,scaledHeight:g,scaledWidth:p,width:m}=this.state,f={overflow:"visible"},b={};let v=!1;return o||(0===u&&(v=!0),f.height=0,b.height=u,b.scaledHeight=g),s||(0===m&&(v=!0),f.width=0,b.width=m,b.scaledWidth=p),r&&(v=!1),(0,t.createElement)(d,{ref:this._setRef,style:{...f,...c},...h},!v&&e(b))}}function vx({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:i,isModal:o,constraints:s,selections:r}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:i=!1}=t.nativeEvent,s=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case tb.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(i)ab(a)||rb(a)||cb(t,e);else if(!(lb(a)||rb(a)||ab(a)))break;s();break;case tb.ENTER:case tb.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),s();break;case tb.ESCAPE:cb(t,e),r.isActive()&&r.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=s?.select||s?.active,t=o();return e||t})())return;const{keyCode:r,ctrlKey:a=!1,shiftKey:l=!1}=e;switch(r){case tb.ARROW_UP:n({up:1});break;case tb.ARROW_DOWN:n({down:1});break;case tb.PAGE_UP:n({up:i.stop-i.start});break;case tb.PAGE_DOWN:n({down:i.stop-i.start});break;case tb.HOME:n({scrollPosition:a&&l?"overflowStart":"start"});break;case tb.END:n({scrollPosition:a&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Cx=_r("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function _x({text:e}){const{translator:n}=(0,t.useContext)(rp);return(0,_t.jsx)(Cx,{children:n.get(e)})}const yx={fontSize:"12px"},wx=_r(Lc)(({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}})),Ax=_r(ud,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})(({styles:e,isRtl:t})=>({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center",...e.header,"& *":{color:e.header.color}})),Sx=_r(yd)(({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})),xx=t.forwardRef(({translator:e,toggleLock:t,keyboard:n,isLoading:i},o)=>{const s=e.get("SelectionToolbar.ClickToUnlock");return(0,_t.jsxs)(wx,{ref:o,title:s,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i,children:[i?(0,_t.jsx)(Fc,{size:16,variant:"indeterminate",color:"primary"}):(0,_t.jsx)(Ip,{disableRipple:!0,style:yx}),!i&&(0,_t.jsx)(yd,{fontSize:"14px",children:s})]})}),kx=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));n.dn(kx);const Lx=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));n.dn(Lx);const Ex=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));n.dn(Ex);const Dx=_r(Bu)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})),Ix=function({iconData:e,translator:t,iconStyle:n,disabled:i,keyboard:o}){if(!e)return;const{icon:s,tooltip:r,onClick:a,onKeyDown:l}=e,c=s,d=t.get(r);return a?(0,_t.jsx)(Dx,{variant:"outlined",onClick:a,tabIndex:o.innerTabStops?0:-1,title:d,size:"large",disableRipple:!0,disabled:i,onKeyDown:l,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button",children:(0,_t.jsx)(c,{style:n})}):(0,_t.jsx)(c,{title:d,size:"large",style:{...n,padding:"7px"}})};let Nx=0;const Rx=function({layout:e,translator:n,styles:i,isRtl:o,showLock:s,showSearchIcon:r,constraints:a,onShowSearch:l,classes:c,containerRect:d,isPopover:h,showToolbar:u,toolbarMode:g="auto",containerRef:p,model:m,selectionState:f,isDirectQuery:b,selections:v,keyboard:C,autoConfirm:_,app:y,title:w,disablePortal:A}){const S="detach"===g,x=!(S||"attach"===g),[k,L]=(0,t.useState)(S),[E,D]=(0,t.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[I,N]=(0,t.useState)(!1);(0,t.useEffect)(()=>{D(e?.qListObject?.qDimensionInfo?.qLocked)},[e?.qListObject?.qDimensionInfo?.qLocked]);const R=(0,t.useRef)(null),T=(0,t.useRef)(null),M=(0,t.useRef)(null),O=(({dimInfo:e,app:t,selections:n,isPopover:i,active:o,keyboard:s})=>{switch(e.qGrouping){case"H":return{icon:Lx,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const r=t&&o,a=()=>{i||n.confirm(),t.getDimension(e.qLibraryId).then(e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:r?Ex:kx,tooltip:"Listbox.Cyclic",onClick:r?a:void 0,onKeyDown:r?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case tb.SPACE:case tb.ENTER:a();break;case tb.TAB:{if(!s.enabled)return;let n;n=e.shiftKey?s.focusSelection():rb(t)||ab(t),n||cb(e,s)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:y,selections:v,isPopover:h,active:!a?.active,keyboard:C}),q=s&&E,P=!s&&E,B=r||P||O,F=9-(B?7:0),W=o?9-(B?7:0):4,z=(r?28:0)+(P?28:0)+(O?28:0),V=function({isLocked:e,setLocked:t,settingLockedState:n,model:i,setSettingLockedState:o,unlockButtonRef:s,lockButtonRef:r}){return()=>{const a=new Date;if(a-Nx<500)return Promise.resolve();if(n)return()=>{};o(!0),Nx=a;const l=e?i.unlock:i.lock;return t(!e),l.call(i,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{o(!1),e?setTimeout(()=>{r.current?.focus()},0):s.current?.focus()},0)})}}({isLocked:E,setLocked:D,settingLockedState:I,setSettingLockedState:N,model:m,unlockButtonRef:T,lockButtonRef:M}),H=qC({layout:e,model:m,translator:n,selectionState:f,isDirectQuery:b,selections:v}),j=E||!s?void 0:[{key:"lock",type:void 0,label:n.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Np,enabled:()=>!I&&!f.selectDisabled()&&$_(e),action:V,ref:M}],U=a?.active?(0,_t.jsx)(T_,{title:n.get("Listbox.Search"),size:"large",style:{...yx,padding:"7px"}}):(0,_t.jsx)(Uc,{onClick:l,tabIndex:-1,title:n.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn",children:(0,_t.jsx)(T_,{style:yx})});(0,t.useEffect)(()=>{if(!x)return;if(!R.current||!d)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:i,paddingRight:o}){const s=i+o;return!!(e.width<(t?.current?.clientWidth??0)+n+s+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:d,titleRef:R,iconsWidth:z,paddingLeft:F,paddingRight:W});L(e)},[x,z,F,W,R.current,d?.width,d?.height]);const $=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,extraItems:s,selections:r,keyboard:a,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:s,more:{enabled:!i,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:c},selections:{show:t,api:r,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!h&&k,showToolbar:u,containerRef:p,isPopover:h,isLocked:E,extraItems:j,listboxSelectionToolbarItems:H,selections:v,keyboard:C,autoConfirm:_,disablePortal:A}),G=(0,_t.jsx)(k_,{isRtl:o,layout:e,...$});if(S)return G;const K=P?(0,_t.jsx)(Ip,{size:"large",style:{...yx,padding:"7px"}}):void 0;return(0,_t.jsxs)(Ax,{item:!0,container:!0,styles:i,isRtl:o,marginY:1,paddingLeft:`${F}px`,paddingRight:`${W}px`,className:"header-container",children:[q&&(0,_t.jsx)(xx,{isLoading:I,translator:n,toggleLock:V,keyboard:C,ref:T}),B&&(0,_t.jsxs)(ud,{container:!0,alignItems:"center",width:z,className:"header-action-container",children:[K||r&&U,(0,_t.jsx)(Ix,{iconData:O,iconStyle:yx,disabled:v.isActive()&&h,translator:n,keyboard:C})]}),(0,_t.jsx)(ud,{size:"grow",sx:{minWidth:0},justifyContent:o?"flex-end":"flex-start",className:c.listBoxHeader,children:(0,_t.jsx)(Sx,{variant:"h6",noWrap:!0,ref:R,title:w??e.title,styles:i,children:w??e.title})}),(0,_t.jsx)(ud,{display:"flex",children:G})]})},Tx=_r("div")(({theme:e,width:t,height:n})=>({position:"absolute",pointerEvents:"none",zIndex:1,width:t,height:n,boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`}));function Mx({width:e,height:n,disabled:i,childNode:o,containerNode:s}){const[r,a]=(0,t.useState)(!1),l=(0,t.useCallback)(()=>{const e=s&&s.contains(document.activeElement),t=o&&o.contains(document.activeElement);a(e&&!t)},[s,o]);return(0,t.useEffect)(()=>{if(s)return s.addEventListener("focusin",l),s.addEventListener("focusout",l),l(),()=>{s.removeEventListener("focusin",l),s.removeEventListener("focusout",l)}},[l,s]),!i&&r?(0,_t.jsx)(Tx,{"aria-hidden":"true",width:e,height:n}):null}const Ox="ListBoxInline",qx={listBoxHeader:`${Ox}-listBoxHeader`,screenReaderOnly:`${Ox}-screenReaderOnly`,listboxWrapper:`${Ox}-listboxWrapper`},Px=_r(ud,{shouldForwardProp:e=>!["containerPadding","styles"].includes(e)})(({containerPadding:e,styles:t})=>({...t.background,[`& .${qx.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${qx.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${qx.listboxWrapper}`]:{padding:e},"&:focus-visible":{outline:"none"}}));function Bx({options:e,layout:n}){const{app:i,direction:o,frequencyMode:s,checkboxes:r,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:b,renderedCallback:v,toolbar:C=!0,toolbarMode:_="auto",isPopover:y=!1,showLock:w=!1,components:A,selectDisabled:S=()=>!1,disablePortal:x=!0,flags:k}=e,L=Ur(),{translator:E,keyboardNavigation:D,themeApi:I,queryParams:N,constraints:R,hostConfig:T}=(0,t.useContext)(rp),{checkboxes:M=r}=n||{},O=kS({app:i,themeApi:I,theme:L,queryParams:N,components:A,checkboxes:M,hostConfig:T}),q=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),P=(0,t.useRef)(),B=(0,t.useRef)(),[F,W,z]=yp(),[V,H]=(0,t.useState)(!1),[j,U]=(0,t.useState)(!1),$=(0,t.useRef)(!1),[G,K]=(0,t.useState)({down:0,up:0,scrollPosition:""}),Q=e=>K(t=>({...t,...e})),[Y,Z]=(0,t.useState)({start:0,stop:0}),[X]=W_(i),[J]=(0,t.useState)(()=>j_({selectDisabled:S})),ee=ob({containerRef:P,enabled:D}),te=(0,t.useCallback)(()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:X}),[i,X]),ne=n?.qListObject.qDimensionInfo.qError,ie=ne&&R.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[,oe]=(0,t.useState)(!1),[se,re]=(0,t.useState)(null),ae=(0,t.useCallback)(e=>{re(e)},[]),{handleKeyDown:le,handleOnMouseEnter:ce,handleOnMouseLeave:de,globalKeyDown:he}=(0,t.useMemo)(()=>vx({keyboard:ee,hovering:$,updateKeyScroll:Q,containerRef:P,currentScrollIndex:Y,app:i,appSelections:X,constraints:R,isModal:te,selections:h}),[ee,$,Q,P,Y,i,X,R,te]);(0,t.useEffect)(()=>(document.addEventListener("keydown",he),()=>{document.removeEventListener("keydown",he)}),[he]),(0,t.useEffect)(()=>{!0===a&&U(!0);const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===a&&U(!1)};return y&&(h.isActive()||(h.on("activated",e),h.on("deactivated",t)),H(y)),C&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),H(y||h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}},[C,h,y]);const{wildCardSearch:ue,searchEnabled:ge,autoConfirm:pe=!1,layoutOptions:me={}}=n??{},fe=n?.qListObject?.qDimensionInfo?.qLocked,be=!1!==ge&&"toggle"===a&&!fe,ve=n?.qListObject?.qDimensionInfo,Ce=k.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT")?n?.title??ve?.qFallbackTitle:n?.title,_e=Ce?.length&&!1!==n?.showTitle,ye=["attach","detach","auto"].includes(_)?_:"auto",we=C||y,Ae=function({toolbarMode:e,canShowTitle:t,isPopover:n}){return"auto"!==e?e:t||n?"attach":"detach"}({toolbarMode:ye,canShowTitle:_e,isPopover:y}),Se=we&&"detach"===Ae,xe="rtl"===o;if(!(d&&n&&E&&O))return null;const ke=!0===a||"toggle"===a&&j&&!1!==ge,Le=me.dense??!1,Ee=()=>{const e=!j;U(e),e&&P.current?.scrollIntoView&&P.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"instant"})},De=()=>{"toggle"===a?Ee():B.current.focus()},Ie=ke&&("toggle"===a||l),Ne=function({isGridMode:e,dense:t,height:n,layoutOrder:i}){let o;if(e){let s;s=Fb({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===i?`${s} 4px`:`${s} 6px ${s} 4px`}else o=void 0;return o}({isGridMode:"grid"===me?.dataLayout,dense:Le,height:P.current?.clientHeight,layoutOrder:me.layoutOrder});ne&&v?.();const Re=we&&!Se?30:0,Te=(0,_t.jsx)(Rx,{app:i,showSearchIcon:be,onShowSearch:Ee,isPopover:y,showToolbar:V,isDirectQuery:q,autoConfirm:pe,toolbarMode:Se?"detach":ye,title:Ce,layout:n,translator:E,styles:O,isRtl:xe,showLock:w,constraints:R,classes:qx,containerRect:W,containerRef:P,model:d,selectionState:J,selections:h,keyboard:ee,disablePortal:x});return(0,_t.jsxs)(_t.Fragment,{children:[Se&&Te,(0,_t.jsxs)(Px,{className:"listbox-container",container:!0,tabIndex:ee.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ne,styles:O,style:{height:"100%",width:"100%",flexFlow:"column nowrap"},onKeyDown:le,onMouseEnter:ce,onMouseLeave:de,ref:e=>{P.current=e,F?.(e)},"aria-label":ee.active?E.get("Listbox.ScreenReaderInstructions"):"",onFocus:()=>oe(!0),onBlur:()=>oe(!1),children:[(0,_t.jsx)(Mx,{width:W?.width,height:W?.height,disabled:te()||y,childNode:se,containerNode:z}),we&&!Se&&Te,(0,_t.jsxs)(ud,{container:!0,direction:"column",height:"100%",minHeight:Re,role:"region","aria-label":E.get("Listbox.ResultFilterLabel"),ref:ae,children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(F_,{ref:B,selections:h,selectionState:J,model:d,dense:Le,keyboard:ee,visible:ke,search:a,autoFocus:Ie,beginSelectionOnFocus:!y,wildCardSearch:ue,searchEnabled:ge,direction:o,hide:be&&Ee,styles:O})}),(0,_t.jsx)(ud,{size:"grow",className:qx.listboxWrapper,children:ne?(0,_t.jsx)(_x,{text:ie}):(0,_t.jsx)(bx,{children:({height:e,width:t})=>(0,_t.jsx)(NC,{model:d,app:i,constraints:R,layout:n,selections:h,selectionState:J,direction:o,frequencyMode:s,rangeSelect:c,checkboxes:M,height:e,width:t,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:ee,showGray:f,scrollState:b,keyScroll:{state:G,reset:()=>K({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:Z},renderedCallback:v,onCtrlF:De,isModal:te,styles:O})})})]})]})]})}const Fx=t.memo(Bx),Wx=function({options:e={}}){const{model:t}=e,[n]=Cp(t);return(0,_t.jsx)(Fx,{options:e,layout:n})};const zx={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function Vx(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const Hx=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}},jx=(0,t.forwardRef)(({app:e,fieldIdentifier:n,qId:i,stateName:o,element:s,initialOptions:r,renderedCallback:a,flags:l},c)=>{const[d,h]=(0,t.useState)(r),{isExistingObject:u,hasExternalSelectionsApi:g}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:d});u||Object.assign(d,{frequencyMode:Vx(d.frequencyMode)});const[p,m]=(0,t.useState)(0);(0,t.useEffect)(()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(p+1)},[u,g]);const f=u?function({app:e,qId:n,options:i={}}){const[o,s]=(0,t.useState)(),[r]=gp(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter(e=>l.includes(e));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,t.useEffect)(()=>{let t=!1,i=()=>{};return async function(){const o=await Promise.resolve(a||async function(t){return r.get(t)||await e.getObject(t)}(n));if(!t){if(!r.get(o.id)){r.set(o.id,o);const e=()=>{r.clear(o.id)};o.once("closed",e),i=()=>{o.removeListener("closed",e)}}s(o)}}(),()=>{t=!0,i()}},[]),o}({app:e,qId:i,options:d}):function({app:e,fieldIdentifier:n,stateName:i,options:o={}}){const[s,r]=(0,t.useState)(""),[a,l]=(0,t.useState)(!0),[c,d]=(0,t.useState)(),[h,u]=(0,t.useState)(),g=o.title??h;let{histogram:p=!1,frequencyMode:m="N"}=o;s&&s.failedToFetchFieldDef&&(p=!1,m="N"),(0,t.useEffect)(()=>{const t=p||"N"!==m;n.qLibraryId&&t?async function(){try{const t=await e.getDimension(n.qLibraryId),i=await t.getLayout();u(i.qDim.title),"N"===i.qDim.qGrouping?r(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""):r({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),r({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),u(n))},[]);const{dense:f,checkboxes:b,listLayout:v,properties:C={}}=o,_={dense:f};"horizontal"===v&&(_.dataLayout="grid",_.layoutOrder="column",_.maxVisibleColumns={auto:!0},_.maxVisibleRows={auto:!1,maxRows:1});const y=(0,t.useRef)();y.current||(y.current=lx());const w=Mg()(!0,{},zx,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:b,layoutOptions:_,title:g});let A;if(Mg()(!0,w,C),n.qLibraryId?(w.qListObjectDef.qLibraryId=n.qLibraryId,A=n.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[n],A=n),"P"!==m&&p)if(s?.multiFieldDim)w.frequencyMax="fetch";else{const e=n.qLibraryId?s:A;w.frequencyMax={qValueExpression:DC(e)}}const[S]=pp(w,a?null:e,A,i);return(0,t.useEffect)(()=>{S&&d(S)},[S]),c}({app:e,fieldIdentifier:n,stateName:o,options:d}),b=(0,t.useRef)(s),v=g?d.selectionsApi:H_(e,f,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],d)[0],C=(0,t.useMemo)(()=>({...d,selections:v,model:f,app:e,renderedCallback:a,flags:l}),[d,v,f,e]);return(0,t.useImperativeHandle)(c,()=>({setOptions:e=>h(e)}),[]),v&&f?(0,_t.jsx)(Wx,{options:C}):null}),Ux={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function $x({app:e,fieldIdentifier:n,stateName:i,element:o,options:s={}}){const[r,a]=(0,t.useState)(!!s.show);return(0,_t.jsx)(LS,{show:r,app:e,alignTo:{current:o},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{a(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:n,stateName:i,autoFocus:s.autoFocus,components:s.components,sortCriteria:s.sortCriteria,direction:s.direction})}function Gx(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Kx(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function Qx({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const s="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return s.qDef.cId=s.qDef.cId||lx(),s.qDef.qSortCriterias=s.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],s.qOtherTotalSpec=s.qOtherTotalSpec||{},s.qAttributeExpressions=s.qAttributeExpressions||[],s.qAttributeDimensions=s.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(s),Gx(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(s,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)),s},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Kx(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const s="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};s.qDef.cId=s.qDef.cId||lx(),s.qSortBy=s.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},s.qAttributeDimensions=s.qAttributeDimensions||[],s.qAttributeExpressions=s.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(s),Gx(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(s,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(s))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Kx(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}function Yx({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||lx(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach(t=>{e[t]=o[t]}),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const Zx=e=>({qDef:{qFieldDefs:[e]}});function Xx({children:e,halo:t}){const n={async addDimension(n){const i=(e=>{let t;return t="string"==typeof e?Mg()(!0,{},zx,{qListObjectDef:Zx(e)}):e.qListObjectDef?Mg()(!0,{},zx,e):Mg()(!0,{},zx,{qListObjectDef:e}),t})(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||lx(),!i.title)if(t.public.galaxy.flags.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT"))i.title=void 0;else if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?i.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:i.title=n.qDim.title}else i.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:i,qChildren:[]})},addMeasure(){}};return n}function Jx(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function ek({sn:e,properties:t,fields:n,children:i},o){if(!n.length)return;const s=e.qae.data.targets[0];if(!s)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:r}=s,a=r.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?Yx:e.match("/qChildListDef")?Xx:Qx}(r),d=c({dc:l,def:s,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===Jx(t)?await d.addMeasure(t):await d.addDimension(t)}}const tk=e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e,nk={getValue:(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let s=e;for(let e=0;e<i.length-1;++e){const t=i[e];if(!tk(t))return;void 0!==s[t]&&null!==s[t]||(s[t]=Number.isNaN(+i[e+1])?{}:[]),s=s[t]}tk(o)&&(void 0!==n?s[o]=n:delete s[o])},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},ik=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},ok=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},sk=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},rk=function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const i=e.at(t);e.splice(t,1),e.splice(n,0,i)},ak=2**53-1;function lk(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function ck(e,t){const n=Mg()(!0,{},t,e);return nk.getValue(n,"qOtherTotalSpec.qOtherCounted")||nk.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),nk.getValue(n,"qOtherTotalSpec.qOtherLimit")||nk.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function dk(e,t){return Mg()(!0,{},t,e)}function hk(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const uk={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===nk.getValue(e,t)&&nk.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:lk,importCommonProperties:function(e,t,n){const i="masterobject"===nk.getValue(t,"properties.qInfo.qType")?"masterobject":nk.getValue(n,"qInfo.qType");nk.setValue(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:ck,createDefaultMeasure:dk,resolveValue:hk,getHypercubePath:function(e){const t=nk.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(ok(t.qInterColumnSortOrder,o),++o):(--o,sk(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Mg()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?nk.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||lk(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]}),i=Mg()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},s=hk(o.max,n.dimensions.length,ak),r=hk(o.min,n.dimensions.length,0);return{maxDimensions:hk(i.max,s,ak),minDimensions:hk(i.min,r,0),maxMeasures:s,minMeasures:r}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const s=e.data[0];return s.dimensions.length>t&&t>0||s.measures.length>i&&i>0||s.excludedDimensions.length>0&&s.dimensions.length+s.excludedDimensions.length>n||s.excludedMeasures.length>0&&s.measures.length+s.excludedMeasures.length>o||!i&&s.measures.length>0||!t&&s.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:s}){const r=e.data[0];s.qLayoutExclude||(s.qLayoutExclude={}),s.qLayoutExclude.qHyperCubeDef||(s.qLayoutExclude.qHyperCubeDef={}),(r.dimensions.length>t&&t>0||r.excludedDimensions&&r.excludedDimensions.length&&r.dimensions.length+r.excludedDimensions.length>n)&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(r.measures.length>i&&i>0||r.excludedMeasures&&r.excludedMeasures.length&&r.measures.length+r.excludedMeasures.length>o)&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&r.measures.length&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&r.dimensions.length&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.dimensions.length;++r)i.qDimensions.length<t?i.qDimensions.push(ck(s.dimensions[r],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(ck(s.dimensions[r],o));else if(s.dimensions.length)for(r=0;r<s.dimensions.length;++r)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(ck(s.dimensions[r],o));if(s.excludedDimensions.length)for(r=0;r<s.excludedDimensions.length;++r)i.qDimensions.length<n?i.qDimensions.push(ck(s.excludedDimensions[r],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(ck(s.excludedDimensions[r],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.measures.length;++r)i.qMeasures.length<t?i.qMeasures.push(dk(s.measures[r],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(dk(s.measures[r],o));else if(s.measures.length)for(r=0;r<s.measures.length;++r)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(dk(s.measures[r],o));if(s.excludedMeasures.length)for(r=0;r<s.excludedMeasures.length;++r)i.qMeasures.length<n?i.qMeasures.push(dk(s.excludedMeasures[r],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(dk(s.excludedMeasures[r],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=nk.getValue(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach(n=>{i.qDimensions.push(n),t.dimensions.added(n,e)})}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=nk.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach(n=>{i.qMeasures.push(n),t.measures.added(n,e)})}}},gk={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=nk.getValue(i,t||""),s=o.qHyperCubeDef,r=n.data[0];if(s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),r.dimensions.push(...s.qDimensions),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qDimensions&&r.excludedDimensions.push(...s.qLayoutExclude.qHyperCubeDef.qDimensions),r.measures.push(...s.qMeasures),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qMeasures&&r.excludedMeasures.push(...s.qLayoutExclude.qHyperCubeDef.qMeasures),r.interColumnSortOrder=s.qInterColumnSortOrder.concat(),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ik(e,r.interColumnSortOrder)&&(r.interColumnSortOrder=e)}return delete s.qLayoutExclude,Object.keys(i).forEach(e=>{n.properties[e]=i[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])}),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(uk.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!nk.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const s={qChildren:[]},r=uk.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=nk.getValue(t,o||"").qHyperCubeDef,l=nk.getValue(r,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=uk.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=uk.getDefaultDimension(),defaultMeasure:p=uk.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,uk.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&uk.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),uk.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),uk.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),uk.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),uk.copyPropertyIfExist("qMaxStackedCells",a,l),uk.copyPropertyIfExist("qNoOfLeftDims",a,l),uk.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),uk.copyPropertyOrSetDefault("qMode",a,l,"S"),uk.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),uk.copyPropertyOrSetDefault("qSortbyYValue",a,l),uk.copyPropertyOrSetDefault("qIndentMode",a,l),uk.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),uk.importCommonProperties(r,e,t),uk.updateDimensionsOnAdded({newProperties:r,dataDefinition:n,hypercubePath:o}),uk.updateMeasuresOnAdded({newProperties:r,dataDefinition:n,hypercubePath:o}),s.qProperty=r,s}(e)},pk=e=>nk.getValue(e,"data.targets.0.propertyPath"),mk=async({halo:e,model:t,cellRef:n,newType:i,properties:o,viewDataMode:s=!1})=>{const r=o?{qProperty:o}:await t.getFullPropertyTree(),a=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gk.exportProperties})(pk(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),d=c.qae,h=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gk.importProperties})(pk(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:r,hypercubePath:uk.getHypercubePath(a),viewDataMode:s}),initialProperties:{qInfo:{qType:i},visualization:i,...nk.getValue(d,"properties.initial",{})},dataDefinition:nk.getValue(d,"data.targets.0.",{}),hypercubePath:uk.getHypercubePath(d),viewDataMode:s})},fk={hypercube:gk},bk=Mg().bind(null,!0),vk={},{isArray:Ck}=Array;function _k(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function yk(e){return void 0===e}function wk(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ak(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function Sk(e,t){let n;return t.substring(1).split("/").slice(0,-1).forEach(t=>{if(!Ak(t))throw new Error(`Unsafe key in path: ${t}`);n=+t;const i=isNaN(n)?{}:[];e[n||t]=yk(e[n||t])?i:e[t],e=e[n||t]}),e}function xk(e,t){let n=!0;if(_k(e)&&_k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(i=>{xk(e[i],t[i])||(n=!1)}),n);if(Ck(e)&&Ck(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!xk(e[n],t[n]))return!1;return!0}return e===t}vk.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach(o=>{const s=function(e){return e?bk({},{val:e}).val:e}(t[o]),r=e[o],a=`${n}/${o}`;xk(s,r)||wk(t,o)||(yk(r)?i.push({op:"add",path:a,value:s}):_k(s)&&_k(r)?i=i.concat(vk.generate(r,s,a)):Ck(s)&&Ck(r)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let s=-1;function r(e,t,n){if(e[n]&&yk(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(xk(t,o))return i;if(!yk(t[0])&&yk(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)s=r(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===s?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(vk.generate(o[e],t[s],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)s=r(o,t[e].qInfo&&t[e].qInfo.qId),-1===s?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):s!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${s}`}),o.splice(e,0,o.splice(s,1)[0]));return i}(r,s,a)):i.push({op:"replace",path:`${n}/${o}`,value:s}))}),Object.keys(e).forEach(o=>{yk(t[o])&&!wk(e,o)&&i.push({op:"remove",path:`${n}/${o}`})}),i},vk.apply=function(e,t){t.forEach(t=>{let n=Sk(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const s=t.from?t.from.split("/").splice(-1)[0]:null;if(!Ak(i)||null!==s&&!Ak(s)){const e=Ak(i)?s:i;throw new Error(`Unsafe key in patch path: ${e}`)}if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Ck(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(Ck(o)&&Ck(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(_k(o)&&_k(t.value))r=o,Object.keys(r).forEach(e=>{Object.getOwnPropertyDescriptor(r,e).configurable&&!wk(r,e)&&Ak(e)&&delete r[e]}),bk(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=Sk(e,t.from);Ck(n)?n.splice(+i,0,o.splice(+s,1)[0]):(n[i]=o[s],delete o[s])}else"remove"===t.op&&(Ck(n)?n.splice(+i,1):delete n[i]);var r})},vk.clone=function(e){return bk({},e)},vk.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},vk.updateObject=function(e,t){Object.keys(e).length?vk.apply(e,vk.generate(e,t)):bk(e,t)};const kk=vk;n.dn(Ek);const Lk=e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(Xu().prototype).forEach(e=>{i[e]=Xu().prototype[e]}),Xu().init(i),i);var i;return n};function Ek({sn:e,component:t}){const n={},i=[],o=Lk(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,i.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}let Dk,Ik;function Nk(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 Rk(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function Tk(e){Ok(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 Mk(e){if(e.__hooks.obsolete)return Promise.resolve();Ik=-1,Dk=e;let t=-1;Dk.__hooks.initiated&&(t=Dk.__hooks.list.length);try{Dk.fn.call(null)}catch(e){console.error(e)}Dk.__hooks.initiated=!0,t>-1&&t!==Dk.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=Dk.__hooks;return Fk(Dk),Ik=void 0,Dk=void 0,n.chain.promise||(n.chain.promise=new Promise(e=>{n.chain.resolve=e})),function(e){Ok(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame(()=>{!function(e){Ok(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)}))}(n),n.chain.promise}function Ok(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 qk(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 Pk(e,t,n,i){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,i)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function Bk(e){return e.__hooks.imperativeHandle}function Fk(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Wk(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Fk(e))}function zk(e){if(void 0===Dk)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Dk.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Vk(e){return zk(++Ik),Dk.context[e]}function Hk(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function jk(e){return{__hooked:!0,fn:e,initiate:Rk,run:Mk,teardown:Tk,runSnaps:qk,runMenu:Pk,focus:wL,blur:AL,observeActions:Wk,getImperativeHandle:Bk,updateRectOnNextRun:Hk}}function Uk(e){const t=zk(++Ik);if(!t.value){t.component=Dk;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout(()=>{i.__hooks.micro=null,Mk(i)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function $k(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=zk(++Ik);Nk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Dk.__hooks.pendingEffects.indexOf(n)&&Dk.__hooks.pendingEffects.push(n))}function Gk(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=zk(++Ik);Nk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Dk.__hooks.pendingLayoutEffects.push(n))}function Kk(e,t){t||console.warn("useMemo called without dependencies.");const n=zk(++Ik);return Nk(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Qk(e){return Kk(()=>({current:e}),[])}function Yk(e,t){const[n,i]=Uk(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=zk(++Ik);return o.component||(o.component=Dk),Gk(()=>{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(),i({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]}function Zk(){return Vk("element")}function Xk(){const e=Zk(),t=Dk.__hooks.resizer,[n,i]=Uk(()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}});return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),Gk(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:s}=e.getBoundingClientRect(),r=t.current;r.width===o&&r.height===s&&r.left===n&&r.top===i||t.setters.forEach(e=>e({left:n,top:i,width:o,height:s}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}},[e]),n}function Jk(){return Vk("layout")}function eL(){const e=Vk("layout"),[t]=Uk({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function tL(){return Vk("appLayout")}function nL(){const e=Vk("model");return e&&e.session?e:void 0}function iL(){const e=Vk("app");return e&&e.session?e:void 0}function oL(){const e=Vk("global");return e&&e.session?e:void 0}function sL(){return Vk("selections")}function rL(){return Vk("theme")}function aL(){return Vk("nebbie")}function lL(){return Vk("translator")}function cL(){return Vk("deviceType")}function dL(){return Vk("navigation")}function hL(){return Vk("plugins")}function uL(e,t){const[n]=Uk({action(){n._config.action.call(null)}});return n.component||(n.component=Dk,Dk.__hooks.actions.list.push(n)),Kk(()=>{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}function gL(){return Dk.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),Dk.__hooks.contraintsWarning=!1),Vk("constraints")}function pL(){return Vk("interactions")}function mL(){return Vk("options")}function fL(e,t){const n=zk(++Ik);if(!n.imperative){if(Dk.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(Nk(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],Dk.__hooks.imperativeHandle=i}}function bL(e){const t=zk(++Ik);t.value||(t.value=1,Dk.__hooks.snaps.push(t)),t.fn=e}function vL(e){const t=zk(++Ik);t.value||(t.value=1,Dk.__hooks.menus.push(t)),t.fn=e}function CL(){zk(++Ik);const e=Dk.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function _L(){return Vk("emitter")}function yL(){const e=Vk("keyboardNavigation"),t=Vk("focusHandler");if(!Dk.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(AL(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Dk);Dk.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),wL(this))}.bind(Dk);Dk.__hooks.accessibility.focusFunction=n;const i=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Dk);Dk.__hooks.accessibility.focusSelectionFunction=i}const n=Dk.__hooks.accessibility.focusFunction,i=Dk.__hooks.accessibility.exitFunction,o=Dk.__hooks.accessibility.focusSelectionFunction,[s,r]=Uk({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return Dk.__hooks.accessibility.setter=r,Dk.__hooks.accessibility.enabled=e,$k(()=>r({active:!1,enabled:e,blur:i,focus:n,focusSelection:o}),[e]),s}function wL(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 AL(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 SL={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},xL=Object.keys(SL);function kL(e,t,n){"function"==typeof e.component&&(e.component=jk(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==Mk&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const s={},r=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:i,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)}),i&&(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)}r.forEach(e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),"interactions"===e&&(t=JSON.stringify({...i[e],...l})),t!==s[e]&&(n=!0,s[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==s.themeName&&(n=!0,s.themeName=this.context.theme.name()),this.context.translator.language()!==s.language&&(n=!0,s.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,i){return e.component.runMenu(this,t,n,i)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?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 r.forEach(e=>{s[e]=JSON.stringify(c.context[e])}),s.themeName=c.context.theme?c.context.theme.name():void 0,s.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):function(e,t){console.warn("Obsolete API - time to get hooked!");const n={...SL};var i;i=n,Object.keys(Xu().prototype).forEach(e=>{i[e]=Xu().prototype[e]}),Xu().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==xL.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const s=Ek({sn:e,component:o}),r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:r,selections:t.selections,actions:s.actions}),Object.assign(n,{actions:s.actions,model:t.model,app:t.app,selections:t.selections}),[n,s]}(e,t),s=[];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(...n){try{e.qae.properties.onChange.call({model:t.model},...n)}catch{console.warn("Error in chart setProperties interceptor onChange call ")}return t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const s=kk.clone(o),r=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));kk.apply(o,r);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const a=kk.generate(s,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,a,i)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},s.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){s.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const LL=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],EL=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map(([e,t])=>e+(Math.random()*(t-e)|0).toString(32)).join(""),DL=(e,t)=>e&&e.find(e=>e.qDef?.cId===t)||null,IL=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??EL()}}),NL=e=>({...IL(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),RL=(e,t,n)=>{const i=t;e.forEach((e,t)=>{const o=e.qTags,s={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(i,n.properties,o,s,n):(s.qSortByNumeric=1,s.qSortByAscii=1),i.qDef.qSortCriterias?i.qDef.qSortCriterias[t]=s:i.qDef.qSortCriterias=[s]})},TL=new Error("Not supported in this object, need to implement in subclass."),ML=e=>e?[...e].map(e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e):[],OL=(e,t)=>{if(e)return t&&nk.getValue(e,t)?nk.getValue(e,t).qHyperCube:e.qHyperCube};function qL(e,t){return e.filter((e,n)=>t.includes(n))}function PL(e,t,n=void 0){const i=e.getAlternativeDimensions(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function BL(e,t,n){ok(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function FL(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then(()=>t):Promise.resolve(t)}function WL(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function zL(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function VL(e,t,n,i,o,s){await e.autoSortDimension(t),ok(e.hcProperties.qInterColumnSortOrder,n+s),i.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function HL(e,t,n=void 0){const i=e.getAlternativeMeasures(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function jL(e,t){ok(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function UL(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<1e3}function $L(e,t,n,i){const o=e-n.length;let[s]=n.splice(n.length-1,1);return i.splice(0,0,s),[s]=i.splice(o+1,1),n.splice(t,0,s),Promise.resolve(s)}const GL=class{constructor(e){const t=e||{};this.dimensionDefinition=t.dimensionDefinition||{max:0},this.measureDefinition=t.measureDefinition||{max:0},this.dimensionProperties=t.dimensionProperties??{},this.measureProperties=t.measureProperties??{},this.globalChangeListeners=t.globalChangeListeners,this.app=t.app}setProperties(e){this.properties=e,this.isAnalysisType=this.properties?.metaData?.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}type(){throw new Error("Must override this method")}getDimensions(){return[]}getDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions();return DL(t,e)??DL(n,e)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw TL}addDimensions(){throw TL}removeDimension(){throw TL}removeDimensions(){throw TL}autoSortDimension(){throw TL}replaceDimension(){throw TL}getSorting(){throw TL}createLibraryDimension(e,t){let n=Mg()(!0,{},this.dimensionProperties||{},t||{});return n=NL(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=LL,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let i=Mg()(!0,{},this.dimensionProperties||{},n||{});return i=NL(i),e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=LL,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const i=this.createFieldDimension(e,t,n);return this.addDimension(i)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){const e=[t];return this.dimensionDefinition.max?.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasures(){return[]}getAlternativeMeasures(){throw new Error("Method not implemented.")}addMeasure(){throw TL}addMeasures(){throw TL}removeMeasure(){throw TL}removeMeasures(){throw TL}autoSortMeasure(){throw TL}replaceMeasure(){throw TL}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return DL(t,e)??DL(n,e)}createExpressionMeasure(e,t,n){const i=Mg()(!0,{},this.measureProperties||{},n||{});return i.qDef=i.qDef??{},i.qDef.qNumFormat=i.qDef.qNumFormat??{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t,!1)}createLibraryMeasure(e,t){const n=Mg()(!0,{},this.measureProperties||{},t||{});return n.qDef=n.qDef??{},n.qDef.qNumFormat=n.qDef.qNumFormat??{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(n.qDef),n.qLibraryId=e,n.qDef.autoSort=!0,delete n.qDef.qDef,delete n.qDef.qLabel,n}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!1)}addAltLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure({expression:e}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=[this.getDimensions().length-e];return this.measureDefinition.max.apply(null,t)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}},KL=function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?function(e,t,n){const i=e.getDimensions();return i.splice(n,0,t),e.autoSortDimension(t).then(async()=>(BL(e,i,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then(()=>t):Promise.resolve(t)}(e,t),t))}(e,t,o):Promise.resolve(t)},QL=async function(e,t){!function(e,t){sk(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},YL=async function(e,t){!function(e,t){sk(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},ZL=function(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then(()=>{delete n.isAlternative})},XL=class extends GL{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?nk.getValue(e,`${this.path}.qHyperCubeDef`):e.qHyperCubeDef,this.hcProperties&&(function(e){const t=e;t.hcProperties.qDimensions=t.getDimensions()??[],t.hcProperties.qMeasures=t.getMeasures()??[],t.hcProperties.qInterColumnSortOrder=t.hcProperties.qInterColumnSortOrder??[],t.hcProperties.qLayoutExclude=t.hcProperties.qLayoutExclude??{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},t.hcProperties.qLayoutExclude.qHyperCubeDef=t.hcProperties.qLayoutExclude.qHyperCubeDef??{qDimensions:[],qMeasures:[]},t.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=t.getAlternativeDimensions()??[],t.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=t.getAlternativeMeasures()??[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=ML(this.hcProperties.qDimensions),this.hcProperties.qMeasures=ML(this.hcProperties.qMeasures)))}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qDimensions??[]}getDimensionLayout(e){return this.getDimensionLayouts().filter(t=>e===t.cId)[0]}getDimensionLayouts(){const e=OL(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const i=NL(e);return zL(this,t)?PL(this,i,n):KL(this,i,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),i=n.length,o=[];let s=0;for await(const r of e){if(WL(this,n))return o;const e=NL(r);if(zL(this,t)){const t=await PL(this,e);o.push(t)}else n.length<this.maxDimensions()&&(await VL(this,e,i,n,o,s),s++)}return o}removeDimension(e,t){return t?ZL(this,e):QL(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),i=this.getDimensions();if(0===e.length)return[];let o=[];const s=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=qL(n,e);for await(const e of s)await ZL(this,e)}else if(i.length>0){o=qL(i,e);for await(const e of s)await QL(this,e)}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const i=e.getDimensions(),o=i[t],s={...n,qDef:{...n.qDef,cId:EL()}};return i[t]=s,s&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,s,o,t,e.properties,e),s}(this,e,t))}reinsertDimension(e,t,n){const i=IL(e);return zL(this,t)?PL(this,i,n).then(()=>{FL(this,i)}):function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?(i.splice(o,0,t),BL(e,i),FL(e,t)):Promise.resolve(t)}(this,i,n)}moveDimension(e,t){const n=this.getDimensions(),i=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(rk(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[s]=i.splice(0,1);return n.push(s),[s]=n.splice(e,1),i.splice(o,0,s),Promise.resolve(s)}(e,t,n,i):e>=n.length&&t<n.length?Promise.resolve($L(e,t,n,i)):Promise.resolve(function(e,t,n,i){const o=e-n.length,s=t-n.length;rk(i,o,s)}(e,t,n,i))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const i=t?.qLibraryId&&(o=t.qLibraryId,(s=n)&&s.find(e=>e.qInfo.qId===o)||null);var o,s;return i&&RL(i.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{const i=t?.qDef?.qFieldDefs&&((e,t)=>{const n=(e=>{const t=[];return e.forEach(e=>{t.push((e=>{const t=e;return t.isDateField=(e=>e?.qDerivedFieldData&&(e?.qTags?.indexOf("$date")>-1||e?.qTags?.indexOf("$timestamp")>-1))(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach(n=>{n.qFieldDefs.forEach(i=>{var o;t.push({qName:i.qName,displayName:(o=i.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:i.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),i=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find(t=>t.qName===e)||null)(i,n)||null})(t.qDef.qFieldDefs[0],n);return i&&RL([i],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=OL(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const i=IL(e);return UL(this,t)?HL(this,i,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),e.autoSortMeasure(t).then(()=>(jL(e,i),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then(()=>t),t))):Promise.resolve()}(this,i,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),i=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,n))return!1;const s=IL(e);return UL(this,t||!1)?(HL(this,s),i.push(s)):n.length<this.maxMeasures()&&(await function(e,t,n,i,o){const s=e.getDimensions(),r={...t};return r.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},ok(e.hcProperties.qInterColumnSortOrder,s.length+n.length+o),n.push(r),i.push(r),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,r,e.properties,e),Promise.resolve(i)}(this,s,n,i,o),o++),!0}),i}removeMeasure(e,t){return t?function(e,t){return e.getAlternativeMeasures().splice(t,1)}(this,e):YL(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();let o=[];if(0===e.length)return o;if(t&&i.length>0)o=qL(i,e),function(e,t){const n=e,i=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=i}(this,e);else if(n.length>0){o=qL(n,e);const t=[...e].sort((e,t)=>t-e);for await(const e of t)await YL(this,e)}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const i=e.getMeasures(),o=i[t],s={...n,qDef:{...n.qDef,cId:EL()}};return i[t]=s,s&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,s,o,t,e.properties,e),s}(this,e,t))}reinsertMeasure(e,t,n){const i=IL(e);return UL(this,t)?HL(this,i,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),jL(e,i),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then(()=>t):Promise.resolve(t)}(e,t)):Promise.resolve(t)}(this,i,n)}moveMeasure(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(rk(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[s]=i.splice(0,1);return n.push(s),[s]=n.splice(e,1),i.splice(o,0,s),Promise.resolve(s)}(e,t,n,i):e>=n.length&&t<n.length?$L(e,t,n,i):Promise.resolve(function(e,t,n,i){const o=e-n.length,s=t-n.length;rk(i,o,s)}(e,t,n,i))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){nk.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},JL=()=>{};function eE(e,t){return void 0===e?()=>t:()=>e}function tE(e){const t=e||{};return{min:"function"==typeof t.min?t.min:eE(t.min,0),max:"function"==typeof t.max?t.max:eE(t.max,1e3),added:t.added||t.add||JL,description:t.description||JL,moved:t.moved||t.move||JL,removed:t.removed||t.remove||JL,replaced:t.replaced||t.replace||JL,isDefined:()=>!!e}}function nE(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:tE(e.dimensions),measures:tE(e.measures)}}function iE(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(nE)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function oE(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:iE(n.qae),component:n.component||{},create:e=>kL(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:n?.dataHandler??(e=>new XL(e))}:{}};return Object.keys(n).forEach(e=>{i[e]||(i.definition[e]=n[e])}),i}function sE(e){return Er("MuiIcon",e)}Dr("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rE=_r("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Vr(n.color)}`],t[`fontSize${Vr(n.fontSize)}`]]}})(Xa(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),aE=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:s="inherit",component:r="span",fontSize:a="medium",...l}=n,c={...n,baseClassName:i,color:s,component:r,fontSize:a},d=(e=>{const{color:t,fontSize:n,classes:i}=e;return Lt({root:["root","inherit"!==t&&`color${Vr(t)}`,`fontSize${Vr(n)}`]},sE,i)})(c);return(0,_t.jsx)(rE,{as:r,className:kt(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})});aE.muiName="Icon";const lE=aE,cE=e=>Yd((e=>({...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 dE({d:e}){const t=Ur();let n="inherit",i=t.palette.success.main;e.missing?i=t.palette.warning.main:e.error&&(n="error",i=t.palette.error.main);const o={color:i},s=(0,_t.jsx)(yd,{style:{lineHeight:"30px",paddingRight:t.spacing(1)},children:(0,_t.jsx)(lE,{children:e.missing||e.error?(0,_t.jsx)(cE,{style:o}):(0,_t.jsx)(Wm,{style:o})})});return(0,_t.jsxs)(ud,{container:!0,alignItems:"center",wrap:"nowrap",children:[(0,_t.jsx)(ud,{children:s}),(0,_t.jsx)(ud,{container:!0,sx:{minWidth:0},wrap:"nowrap",children:(0,_t.jsxs)(yd,{noWrap:!0,component:"p",children:[(0,_t.jsx)(yd,{component:"span",variant:"subtitle2",color:n,children:e.description}),(0,_t.jsx)(yd,{component:"span",children:" "}),(0,_t.jsx)(yd,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400},children:e.label})]})})]})}function hE({data:e}){const t=Ur();return(0,_t.jsx)(ud,{container:!0,style:{maxWidth:"300px",overflow:"hidden"},children:e.map((e,n)=>{const i=e.descriptions.map((e,t)=>(0,_t.jsx)(dE,{d:e},t));return i.length>0&&(0,_t.jsxs)(ud,{container:!0,direction:"column",style:{paddingBottom:t.spacing(2)},children:[(0,_t.jsx)(yd,{noWrap:!0,variant:"subtitle1",align:"left",color:"textSecondary",children:e.title},n),i]},n)})})}function uE({title:e="Error",message:t="",data:n=[]}){const[i,o]=yp(),[s,r]=yp(),[a,l]=yp(),c=n.some(e=>e.descriptions&&e.descriptions.length>0),d=!!o&&!!r&&!!l&&r.height+l.height>o.height,h=!!o&&!!r&&!!l&&r.width+l.width<=o.width,u=c&&!!o&&!!r&&!!l&&(!d||h);return(0,_t.jsxs)(ud,{ref:i,container:!0,direction:"column",wrap:"wrap",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"},children:[(0,_t.jsxs)(ud,{ref:s,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(cE,{style:{fontSize:"38px"}})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"h6",align:"center","data-tid":"error-title",children:e})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"subtitle1",align:"center","data-tid":"error-message",children:t})})]}),u?(0,_t.jsx)(hE,{data:n}):null,c?(0,_t.jsx)(ud,{ref:a,"aria-hidden":!0,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,top:0},children:(0,_t.jsx)(hE,{data:n})}):null]})}n.dn(cE);const gE="Progress",pE={root:`${gE}-root`,front:`${gE}-front`,back:`${gE}-back`},mE=_r("div")(({theme:e})=>({[`&.${pE.root}`]:{position:"relative",display:"inline-block"},[`& .${pE.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${pE.back}`]:{color:e.palette.divider}})),fE={small:16,medium:32,large:64,xlarge:128};function bE({size:e="medium",...t}){const n=fE[e];return(0,_t.jsxs)(mE,{className:pE.root,children:[(0,_t.jsx)(Fc,{variant:"determinate",value:100,className:pE.back,size:n,thickness:3,...t}),(0,_t.jsx)(Fc,{variant:"indeterminate",disableShrink:!0,className:pE.front,size:n,thickness:3,...t})]})}const vE={stripes:"LongRunningQuery-stripes"},CE=_r(ud)(()=>({[`& .${vE.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 _E({cancel:e,translator:t,...n}){return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsxs)(CE,{container:!0,direction:"column",alignItems:"center",gap:2,children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(bE,{})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"h6",align:"center","data-tid":"update-active",children:t.get("Object.Update.Active")})})]}),(0,_t.jsx)(ud,{...n,children:(0,_t.jsx)(Bu,{variant:"contained",onClick:e,children:t.get("Cancel")})})]})}function yE({retry:e,translator:t,...n}){return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(cE,{style:{fontSize:"38px"}})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"h6",align:"center","data-tid":"update-cancelled",children:t.get("Object.Update.Cancelled")})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Bu,{variant:"contained",onClick:e,...n,children:t.get("Retry")})})]})}function wE({canCancel:e,canRetry:n,api:i}){const{translator:o}=(0,t.useContext)(rp);return(0,_t.jsxs)(ud,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:vE.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:[e&&(0,_t.jsx)(_E,{cancel:i.cancel,translator:o,className:vE.cancel}),n&&(0,_t.jsx)(yE,{retry:i.retry,translator:o,className:vE.retry})]})}function AE(){return(0,_t.jsx)(ud,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:(0,_t.jsx)(bE,{size:"large"})})}const SE={width:0,height:0},xE="Header",kE={containerStyle:`${xE}-containerStyle`,containerTitleStyle:`${xE}-containerTitleStyle`},LE=_r(ud)(({theme:e})=>({[`&.${kE.containerStyle}`]:{flexGrow:0},[`&.${kE.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),EE=function({id:e,layout:n,sn:i,anchorEl:o,hovering:s,focusHandler:r,titleStyles:a={},isRtl:l,translator:c}){const d=n.showTitles&&!!n.title,h=n.showTitles&&!!n.subtitle,u=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[g,p]=(0,t.useState)([]);(0,t.useEffect)(()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions(e=>{p([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])})},[i]);const m=[kE.containerStyle,...d||h?[kE.containerTitleStyle]:[]],f=s||u,b=(0,_t.jsx)(k_,{show:!1,selections:{show:u,api:i.component.selections,onKeyDeactivate:r.refocusContent},actions:g,popover:{show:f,anchorEl:o},focusHandler:r,layout:n,isRtl:l});return(0,_t.jsxs)(LE,{container:!0,wrap:"nowrap",className:m.join(" "),children:[(0,_t.jsx)(ud,{size:"grow",sx:{minWidth:0},dir:l?"rtl":"ltr",children:(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",direction:"column",children:[d?(0,_t.jsx)(vC,{title:n.title,children:(0,_t.jsx)(yd,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:a.main,children:n.title})}):(0,_t.jsx)("div",{id:`${e}_title`,style:SE,"aria-label":c.get("Accessibility.Object.NoTitle")}),h&&(0,_t.jsx)(vC,{title:n.subtitle,children:(0,_t.jsx)(yd,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:a.subTitle,children:n.subtitle})})]})}),(0,_t.jsx)(ud,{children:b})]})},DE=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude");return e.filter(e=>!1!==e.showInFooter).map(e=>{let i="";switch(e.type){case"search":i+=(e=>{let t="",n="";const i=e.options?.mode;switch(i){case"beginning_of_word":t="*^",n="*";break;case"ends_with":t="*";break;case"starts_with":n="*";break;case"matches_exactly":break;default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case"condition":i+=(e=>{const{options:t}=e,n="general"===t?.mode,i="fixed_value"===t?.modifier?.type,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!i&&(!t.firstValue?.aggregator||!t.firstValue?.field)||i&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let s,r,a="=";n&&i?(s=`${t.conditionField?.aggregator}(${EC(t.conditionField?.field)})`,r=`${t.firstValue?.fixedValue}`):!n&&i?(s="",r=`${t.firstValue?.fixedValue}`,a=""):n||i?(s=`${t.conditionField?.aggregator}(${EC(t.conditionField?.field)})`,r=`${t.firstValue?.aggregator}(${EC(t.firstValue?.field)})`):(s=`${EC(e.field)}`,r=`${t.firstValue?.aggregator}(total ${EC(t.firstValue?.field)})`);const l=`${a}${s}${o[0]}${r}`;let c="";if(o.length>1){if(!i&&(!t.secondValue?.aggregator||!t.secondValue?.field)||i&&!t.secondValue?.fixedValue)return"";let e,r;n&&i?(e=`${t.secondValue?.fixedValue}`,r=` and ${s}`):!n&&i?(e=`${t.secondValue?.fixedValue}`,r=""):n||i?(e=`${t.secondValue?.aggregator}(${EC(t.secondValue?.field)})`,r=` and ${s}`):(e=`${t.secondValue?.aggregator}(total ${EC(t.secondValue?.field)})`,r=` and ${s}`),c=`${r}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case"clear_selection":i+=t.get("Object.FilterLabel.All");break;default:i+=e.options?.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==i&&(i=i.replace(/^"|"$/g,""),e.exclude&&(i=`${n} ${i}`)),{field:e.field,label:i}}).filter(e=>""!==e.label)},IE=(e,t)=>DE(e,t).map(e=>`${e.field}: ${e.label}`).join("; "),NE=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function RE({styles:e,children:t}){return(0,_t.jsx)(yd,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"},children:t})}n.dn(NE);const TE=function({layout:e,translator:t,filtersFootnoteString:n,footerStyle:i,isRtl:o}){const s=DE(e?.filters??[],t),r={color:i?.color,fontFamily:i?.fontFamily,fontSize:i?.fontSize,fontWeight:i?.fontWeight};return(0,_t.jsx)(vC,{title:n,children:(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",sx:{backgroundColor:i?.backgroundColor,padding:i?.padding,borderTop:i?.borderTop},"data-testid":"filters-footnote",justifyContent:o?"flex-end":"flex-start",children:[(0,_t.jsxs)(ud,{sx:{display:"flex"},children:[(0,_t.jsx)(NE,{style:{fontSize:"12px",color:i.color,margin:"auto"}}),(0,_t.jsxs)(RE,{styles:{...r,marginLeft:"2px"},children:[t.get("Object.FiltersApplied"),"  "]})]}),(0,_t.jsx)(ud,{sx:{display:"flex"},children:s.map(e=>(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",children:[(0,_t.jsx)(RE,{styles:{...r,fontWeight:"bold"},children:`${e.field}:`}),(0,_t.jsxs)(RE,{styles:r,children:["   ",e.label,"  "]})]},`${e.field}-${e.label}`))})]})})},ME="Footer-itemStyle",OE=_r(ud)(()=>({[`& .${ME}`]:{minWidth:0,width:"100%"}})),qE="njs-cell-footer",PE=function({layout:e,titleStyles:t={},translator:n,flags:i,isCardTheme:o,isRtl:s}){const r=t.footer,a=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,l=IE(e?.filters??[],n),c=!e?.footnote&&a&&l,d=i?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),h=o?"1px":"6px";return e&&e.showTitles&&(e.footnote||c)?(0,_t.jsx)(OE,{container:!0,children:(0,_t.jsxs)(ud,{className:ME,"data-testid":qE,sx:{paddingTop:e=>d?h:e.spacing(1)},children:[e.footnote&&(0,_t.jsx)(vC,{title:e.footnote,children:(0,_t.jsx)(yd,{noWrap:!0,variant:"body2",className:qE,style:r,align:s?"right":"left",children:e.footnote})}),c&&(0,_t.jsx)(TE,{layout:e,translator:n,filtersFootnoteString:l,footerStyle:r,isRtl:s})]})}):null};class BE{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 FE=function({sn:e,snOptions:n,snPlugins:i,layout:o,appLayout:s,halo:r,cellId:a}){const{component:l}=e,{theme:c,language:d,constraints:h,interactions:u,keyboardNavigation:g}=(0,t.useContext)(rp),[p]=(0,t.useState)(()=>new BE),[m,f]=(0,t.useState)(!1),[b,v]=(0,t.useState)(0),[C,_,y]=yp(),[w,A]=(0,t.useState)(null),S=(0,t.useCallback)(e=>{e&&A(e)},[]);return(0,t.useEffect)(()=>{if(w)return l.created({options:n}),l.mounted(w),f(!0),()=>{p.stop(),l.willUnmount()}},[w,l]),(0,t.useEffect)(()=>{m&&w&&_&&(!l.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||p.schedule(()=>{const t=[];return h.passive||t.push("passive"),h.active||t.push("interact"),h.select||t.push("select"),h.edit||t.push("edit"),r.app&&r.app.session&&t.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:i,embed:r.public.nebbie,context:{constraints:h,interactions:u,theme:r.public.theme,appLayout:s,keyboardNavigation:g,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(s||{}).qLocaleInfo,permissions:t}}})).then(e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(b+1))})}))},[_,n,i,w,y,o,s,c,d,h,u,m,g]),(0,_t.jsx)("div",{ref:C,"data-render-count":b,style:{position:"relative",height:"100%"},className:"njs-viz",children:(0,_t.jsx)("div",{ref:S,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}})})},WE={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart","sn-table":"straightTableV2",waterfallchart:"waterfallChart","sn-tabbed-container":"tabContainer","sn-slider":"slider"};class zE extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const VE=["action-button","sn-nav-menu","filterpane","sn-shape"],HE=[...VE,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],jE=e=>-1===VE.indexOf(e),UE=e=>jE(e)?"10px 10px 0":"10px 0 0",$E=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach(([e,t])=>{$E.set(e,t)});const GE=$E,KE=(e,t)=>{switch(t.type){case"LOADING":return{...e,loading:!0};case"LOADED":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization};case"RENDER":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null};case"LONG_RUNNING_QUERY":return{...e,longRunningQuery:!0};case"ERROR":return{...e,loading:!1,longRunningQuery:!1,error:t.error};default:throw new Error(`Unhandled type: ${t.type}`)}};function QE({delay:e=750}){const[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const t=setTimeout(()=>i(!0),e);return()=>clearTimeout(t)},[]),n?(0,_t.jsx)(AE,{}):null}const YE=e=>!e.qError||7005===e.qError.qErrorCode,ZE=e=>e&&e.qError&&7005!==e.qError.qErrorCode,XE=(e,t,n,i,o)=>[...Array(Math.max(e,t.length)).keys()].map(e=>{const s=!(!t||!t[e]),r=s&&t[e].qError&&7005===t[e].qError.qErrorCode,a=s&&!r&&t[e].qError,l=r&&t[e].qCalcCondMsg,c=`${a?i:r?l||o:s&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!s&&!a&&e>=t.length||r,error:a}}),JE=e=>e&&(Array.isArray(e)?e:[e])||[],eD=(e,t,n,i)=>{const o=i.dimensions.min(),s=i.measures.min(),r=i.resolveLayout(t),a=XE(o,JE(r.qDimensionInfo||r.qItems),e=>i.dimensions.description(n,e,{}),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=XE(s,JE(r.qMeasureInfo),e=>i.measures.description(n,e,{}),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:a,reqMeasErrors:l}};function tD(){return new(Xu())}const nD=(0,t.forwardRef)(({halo:e,model:n,initialSnOptions:i,initialSnPlugins:o,initialError:s,onMount:r,currentId:a,emitter:l,navigation:c,onError:d},h)=>{const{app:u,types:g}=e,{nebbie:p}=e.public,{theme:m,translator:f,language:b,keyboardNavigation:v,externalFocusManagement:C,disableCellPadding:_=!1,navigation:y,queryParams:w}=(0,t.useContext)(rp),[A]=(0,t.useState)(l||tD),S=Ur(),[x,k,L]=yp(),[E,D]=(0,t.useReducer)(KE,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=s)?{title:I.message}:null,sn:null,visualization:null});var I;const[N,R]=(0,t.useState)(n),[T,{validating:M,canCancel:O,canRetry:q},P]=Cp(N),[B]=_p(u),[F,W,z]=yp(),[V,H]=(0,t.useState)(i),[j,U]=(0,t.useState)(o),$=`njs-cell-${a}`,[G]=H_(u,N,[`#${$}`,".njs-action-toolbar-popover"]),[K,Q]=(0,t.useState)(!1),Y=(0,t.useRef)({enter:null,leave:null}),{titleStyles:Z,bgColor:X,bgImage:J,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:n,app:i,themeName:o,disableThemeBorder:s,queryParams:r})=>{const{hostConfig:a}=(0,t.useContext)(rp),l=(0,t.useMemo)(()=>{if(e&&n){const o=e.components?e.components.find(e=>"general"===e.key):null,l=(t=e.visualization,WE[t.toLowerCase()]?WE[t.toLowerCase()]:t),c={main:AS(o,"main",n,l),footer:AS(o,"footer",n,l),subTitle:AS(o,"subTitle",n,l)},d=yS(o,n,l),h=_S(o,i,r,a?.host),u=function(e,t,n,i){const o=bS(e?.borderColor,"","borderColor",t,n);let s=e?.borderWidth;return!s&&!i&&(s=fS("","borderWidth",t,n)),s&&o?`${s} solid ${o}`:void 0}(o,n,l,s),g=function(e,t,n){return e?.borderRadius||fS("","borderRadius",t,n)}(o,n,l);return{titleStyles:c,bgColor:d,bgImage:h,border:u,borderRadius:g,boxShadow:wS(o,n,l)}}var t;return{}},[e,n,i,o,s]);return l})({layout:T,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:V?.disableThemeBorder,queryParams:w}),ie=!("rtl"!==V?.direction),oe=(0,t.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,t.useEffect)(()=>{z_(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&z&&z.focus())},oe.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()}},[]),(0,t.useEffect)(()=>{if(s)return void r();if(!B||!T)return;if(E.visualization===T.visualization&&E.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:s,aggMinM:r,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,s=0,r=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],h=d.dimensions.min(),u=d.measures.min(),g=d.resolveLayout(n),p=JE(g.qDimensionInfo||g.qItems),m=JE(g.qMeasureInfo),f=p.filter(YE),b=m.filter(YE);if(o+=h,s+=u,(f.length<h||b.length<u)&&(i=!0),i=i||p.some(ZE)||m.some(ZE),g.qError){r=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:s,hasLayoutErrors:r,layoutErrors:l}})(e,n,t),c=[],d=[];let h=null;for(let s=0;s<n.length;++s){const r=n[s];if(!a&&o){const n=h||await i.getProperties();h=n;const o=eD(e,t,n,r);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const u=c.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Dimensions",[u,s]),p=d.filter(e=>!(e.missing||e.error)).length,m=e.get("Visualization.Incomplete.Measures",[p,r]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],b=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:b}]})(f,T,e.generator.qae.data,N);D(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:E.sn,layout:T,model:N})})(E.sn);const e=g.getSupportedVersion(T.visualization,T.version);return(async(e,t)=>{D({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c,onMount:d,navigation:h})=>{try{const u=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i}),g=u.create({model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c,navigation:h});g&&(e({type:"LOADED",sn:g,visualization:n}),d())}catch(t){e(i?{type:"ERROR",error:{title:t.message,errorObject:t}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}}),d()}})({dispatch:D,types:g,visualization:e,version:t,model:N,app:u,selections:G,nebbie:p,focusHandler:oe.current,emitter:A,onMount:r,navigation:c??y})})(T.visualization,e),()=>{}},[g,E.sn,N,G,T,B,b]),(0,t.useEffect)(()=>{if(!M)return;const e=setTimeout(()=>D({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[M]),(0,t.useImperativeHandle)(h,()=>({getQae:()=>E.sn.generator.qae,getExtensionDefinition:()=>E.sn.generator.definition.ext,support(e,t,n){if(T&&E.loaded&&!E.error){const i=t||E.sn.generator.definition.ext?.support;if(i)return function(e,t,n){const i=t[e];return"function"==typeof i?i.call(null,n):"boolean"==typeof i&&i}(e,i,n||T)}return!1},toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:H,setSnPlugins:U,setModel:R,getImperativeHandle:()=>E.sn?.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>E.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=k;let n=JSON.parse(JSON.stringify(T));return"function"==typeof E.sn.component.setSnapshotData&&(n.snapshotData||(n.snapshotData={}),n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:f.language(),theme:S.name,appLayout:B,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)},getHypercubePath:()=>E.sn.generator.definition.ext?.options?.hypercubePath}),[E.sn,W,k,T,S.name,B]);let se=null;E.loading&&!E.longRunningQuery?se=(0,_t.jsx)(QE,{}):E.error?(d&&d(E.error.errorObject?E.error.errorObject:new zE(E.error.title)),se=(0,_t.jsx)(uE,{...E.error})):E.loaded&&(se=(0,_t.jsx)(FE,{sn:E.sn,halo:e,snOptions:V,snPlugins:j,layout:T,appLayout:B,cellId:a},T.visualization));const re=!!e.public.theme?.getStyle("","","_cards"),ae=e.public.galaxy?.flags;let le,ce;_?(le=!1,ce=void 0):ae?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(le=!1,ce=(({layout:e,isError:t,isCardTheme:n,titleStyles:i,translator:o})=>{if(n){const n=e?.showTitles&&!!e?.title,s=e?.showTitles&&!!e?.subtitle,r=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,a=e?.visualization,l=IE(e?.filters??[],o),c=!e?.footnote&&r&&l,d=e?.showTitles&&(!!e?.footnote||c);let h;return n&&(i.main.padding=UE(a)),s&&(i.subTitle.padding=((e,t)=>{const n=jE(e);return t?n?"0 10px":"0":UE(e)})(a,n)),d&&(-1===VE.indexOf(a)&&(i.footer.borderTop="1px solid #d9d9d9"),i.footer.padding="6px 10px"),(t||-1===HE.indexOf(a))&&(h=`${n||s?"0":"10px"} 10px ${d?"0":"5px"}`),h}})({layout:T,isError:E.error,isCardTheme:re,titleStyles:Z,translator:f})):(le=!0,ce=void 0);const de=GE.get(T?.visualization),he=f.get(de);return(0,_t.jsxs)(bm,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:X||"unset",backgroundImage:J&&J.url?`url(${J.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:J&&J.size,backgroundPosition:J&&J.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:x,id:$,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout(()=>{Q(!0),Y.current.enter=null},250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout(()=>{Q(!1),Y.current.leave=null},750))},children:[(0,_t.jsxs)(ud,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:S.spacing(1)}:{},...E.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${a}_title ${a}_type ${a}_content`,children:[T&&(0,_t.jsx)("div",{id:`${a}_type`,style:SE,"aria-label":he??T.visualization}),L&&T&&E.sn&&(0,_t.jsx)(EE,{layout:T,sn:E.sn,anchorEl:L,hovering:K,focusHandler:oe.current,titleStyles:Z,isRtl:ie,id:a,translator:f,children:" "}),(0,_t.jsx)(ud,{tabIndex:v&&!C?0:-1,onKeyDown:v&&!C?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,size:"grow",className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:F,children:se}),L&&T&&E.sn&&(0,_t.jsx)(PE,{layout:T,titleStyles:Z,translator:f,flags:ae,isCardTheme:re,isRtl:ie})]}),E.longRunningQuery&&(0,_t.jsx)(wE,{canCancel:O,canRetry:q,api:P})]})}),iD=nD;function oD(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function sD(e="/",t,n){const i=[];return Object.keys(t).forEach(o=>{const s=t[o];var r,a;"object"!=typeof n[o]||"object"!=typeof s||Array.isArray(s)?(r=s,a=n[o],(oD(r)&&oD(a)?JSON.stringify(r)===JSON.stringify(a):!Array.isArray(r)&&!Array.isArray(a)&&r===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...sD(`${e}${o}/`,t[o],n[o]))}),i}function rD(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 "${e.info.name}" has no "fn" function`)})}const aD=(e,t,n)=>{if(!e)return Promise.resolve();let i=kk.generate(t,n);return Mg()(!0,t,n),i&&i.length?(i=i.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,i,!0):e.applyPatches(i,!0)):Promise.resolve()},lD=()=>{};async function cD(e,n,i,o,s,r=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:s=async()=>{},onRender:r=()=>{},onError:a=()=>{}}={}){let l,c,d,h=lD,u=null,g=null,p=null,m=null,f=!1;const b=new Promise(e=>{p=e}),v=new Promise(e=>{m=e}),C=e=>()=>{e?.(),m(),r(),f=!0};let _={},y=[];const w=new(Xu());let A={};n.context?.enablePrivateExperimental&&(A={support:e=>!(!g||!f)&&u.current.support(e,c?.support,d),getPropertyPanelDefinition:()=>!(!g||!f)&&(c?c.definition:u.current.getExtensionDefinition().definition),async getHypercubePropertyHandler(){await v;const t=u.current.getExtensionDefinition(),n=t.data,i=await e.getEffectiveProperties();if(n){const o={app:e.app,dimensionDefinition:n.dimensions,measureDefinition:n.measures,dimensionProperties:i.qHyperCubeDef?.qDimensions?.[0]||uk.getDefaultDimension(),measureProperties:i.qHyperCubeDef?.qMeasures?.[0]||uk.getDefaultMeasure(),globalChangeListeners:void 0,path:u.current.getHypercubePath()};return"function"==typeof t.propertyHandler?t.propertyHandler(o):new XL(o)}},toggleFocus(e){u.current.toggleFocus(e)},setOnBlurHandler(e){u.current.setOnBlurHandler(e)},onContextMenu:(...e)=>u.current.onContextMenu(...e)});const S={id:e.id,model:e,async destroy(){await s(),h(),h=lD},async convertTo(t,i=!0,o=!1){if(i){if((s=await e.getLayout())&&!s.qHasSoftPatches&&!s.qExtendsId&&(s.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const i=await mk({halo:n,model:e,cellRef:u,newType:t});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,i.qProperty),i}const i=await e.getEffectiveProperties(),r=await mk({halo:n,model:e,cellRef:u,newType:t,properties:i}),a=r.qProperty;return await aD(e,i,a),r}var s;return await mk({halo:n,model:e,cellRef:u,newType:t})},async toggleDataView(t){let i;if(l||!1===t)l&&!0!==t&&(i=e,await n.app.destroySessionObject(l),l=void 0,c=void 0,d=void 0);else{let t=n.context.dataViewType;const o=await e.getEffectiveProperties();if(!n.types.getSupportedVersion(t)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const s=await mk({halo:n,model:e,cellRef:u,newType:t,properties:o,viewDataMode:!0});i=await n.app.createSessionObject(s.qProperty),l=i.id,c=u.current.getExtensionDefinition(),d=await e.getLayout()}i&&u.current.setModel(i)},get viewDataToggled(){return void 0!==l},addListener(e,t){w.addListener(e,t)},removeListener(e,t){w.removeListener(e,t)},getImperativeHandle:async()=>(await v,u.current.getImperativeHandle()),takeSnapshot:async()=>(await v,u.current.takeSnapshot()),...A,__DO_NOT_USE__:{mount(s){if(g)throw new Error("Already mounted");if(!(s instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return g=s,[h,u]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:s,onMount:r,emitter:a,initialError:l,navigation:c,onError:d}){const{root:h}=e,u=t.createRef(),g=lx(),p=Dd.createPortal((0,_t.jsx)(iD,{ref:u,halo:e,model:i,currentId:g,initialSnOptions:o,initialSnPlugins:s,initialError:l,onMount:r,emitter:a,navigation:c,onError:d}),n,g),m=()=>{h.remove(p),i.removeListener("closed",m)};return i.on("closed",m),h.addCell(g,u),(async()=>{try{await h.add(p,m)}catch(e){m(),r(),d(e)}})(),[m,u]}({halo:n,element:s,model:e,initialSnOptions:_,initialSnPlugins:y,initialError:o,onMount:p,emitter:w,navigation:i,onError:a}),b},async applyProperties(t){const n=sD("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;g?(async()=>{await b,u.current.setSnOptions({..._,...e,onInitialRender:C(t)})})():_={..._,...e,onInitialRender:C(t)}})(e)},plugins(e){(async e=>{rD(e),g?(async()=>{await b,u.current.setSnPlugins(e)})():y=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>e,convert:{async toType(t){const i=await e.getEffectiveProperties(),o=await mk({halo:n,model:e,cellRef:u,newType:t,properties:i}),s=o.qProperty;return await aD(e,i,s),o},async revert(){await e.clearSoftPatches()}}}};return S}({model:e,halo:i,navigation:o,initialError:s,onDestroy:r,onRender:a,onError:l});return c.__DO_NOT_USE__.options(n.options||{}),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}async function dD({type:e,version:t,fields:n,properties:i,extendProperties:o},s,r,a){let l={};const c=[],{modelStore:d}=a;try{const r=s.types.get({name:e,version:t});l=await r.initialProperties(i,o);const a=await r.supernova();n&&await ek({sn:a,properties:l,fields:n,children:c},s),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},l)}catch(t){l=r?null:{qInfo:{qType:e},visualization:e}}if(!r){const e=await s.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),d.set(e.id,e),e}return l}function hD(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const uD=(0,t.forwardRef)(({model:e,halo:n,initialSnOptions:i,initialSnPlugins:o,initialError:s,onMount:r,unmount:a,navigation:l,onError:c},d)=>{const{root:h}=n,[u,g]=(0,t.useState)(e),[p]=Cp(u),{theme:m,modelStore:f}=(0,t.useContext)(rp),[b,v]=(0,t.useState)([]),[C,_]=(0,t.useState)(void 0),[y,w]=(0,t.useState)(void 0),[A,S]=(0,t.useState)(""),x=(0,t.useRef)({cellCount:0,cellsRendered:0,initialRender:!1});l?.setCurrentSheetId?.(u.id),(0,t.useEffect)(()=>{if(p){const e=JSON.stringify(p.cells);if(e===A)return;S(e);const o=async()=>{b.forEach(e=>{h.removeCell(e.currentId)});const e=p.cells;x.cellCount=e.length,x.cellsRendered=0;const o=()=>{x.cellsRendered++,x.cellsRendered!==x.cellCount||x.initialRender||(x.initialRender=!0,i.onInitialRender())},{columns:s,rows:r}=p,a=await Promise.all(e.map(async e=>{let a;const l=new Promise(e=>{a=e}),c=b.find(t=>t.id===e.name);if(c)return c.bounds=hD(e,s,r),delete c.mountedPromise,c;const d=await async function({id:e,options:t,plugins:n,element:i},o,s){const{modelStore:r,rpcRequestModelStore:a}=s,l=`${e}`;let c=a.get(l);c||(c=o.app.getObject(e),a.set(l,c));const d=await c;return r.set(l,d),cD(d,{options:t,plugins:n,element:i},o)}({id:e.name},n,f);return{model:d.model,id:e.name,bounds:hD(e,s,r),cellRef:t.createRef(),currentId:lx(),mounted:a,mountedPromise:l,options:{...i,onInitialRender:o}}}));a.forEach(e=>h.addCell(e.currentId,e.cellRef)),v(a)};o()}},[p]),(0,t.useEffect)(()=>{const e=()=>{u.removeListener("closed",e),a()};return u.on("closed",e),()=>u.removeListener("closed",e)},[u]);const k=(0,t.useMemo)(()=>b?b.map(e=>function(e,t,n,i,o,s,r,a){const{x:l,y:c,width:d,height:h}=e.bounds,u={left:`${l}%`,top:`${c}%`,width:`${d}%`,height:`${h}%`,position:"absolute"},g=t.public.galaxy?.flags;return g?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(u.boxSizing="border-box",u.padding="4px"),(0,_t.jsx)("div",{style:u,children:(0,_t.jsx)(iD,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:i,initialError:o,onMount:s,navigation:r,onError:a})},e.model.id)}(e,n,e.options,o,s,e.mounted,l,c)):[],[b]);(0,t.useEffect)(()=>{const e=p?.components?p.components.find(e=>"general"===e.key):null;_(yS(e,n.public.theme)),w(_S(e,n.app))},[p,n.public.theme,n.app,m]),(0,t.useImperativeHandle)(d,()=>({setModel:g}),[]);const L=!p||void 0===p.height||Number.isNaN(p.height)?"100%":`${Number(p.height)}%`,E=b.map(e=>e.mountedPromise),D=E.filter(e=>!!e);return D.length&&Promise.all(E).then(()=>{r()}),(0,_t.jsx)("div",{className:"njs-sheet",style:{width:"100%",height:L,position:"relative",backgroundColor:C,backgroundImage:y&&y.url?`url(${y.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:y&&y.size,backgroundPosition:y&&y.pos},children:k})}),gD=uD,pD=()=>{};async function mD({id:e,options:n,plugins:i,element:o,onRender:s,onError:r,navigation:a},l,c){const{modelStore:d,rpcRequestModelStore:h}=c,u=`${e}`;let g=h.get(u);g||(g=l.app.getObject(e),h.set(u,g));const p=await g;d.set(u,p);const m=a||("sheet"===p.genericType?function(e,t,n){const{galaxy:i}=e.public;if(i.anything?.sense?.navigation)return i.anything?.sense?.navigation;const o={model:n},s={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:i,rpcRequestModelStore:r}=t,a=`${n}`;let l,c=r.get(a);c||(c=e.app.getObject(n),r.set(a,c));try{if(l=await c,"sheet"!==l.genericType)return}catch(e){return}i.set(a,l),o.sheetRef?.current?.setModel?.(l),o.model=l,s.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return z_(s),s}(l,c,p):void 0);return"sheet"===p.genericType?async function(e,n,i,o,s,r=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:s=async()=>{},onRender:r=()=>{},onError:a=()=>{}}={}){let l=pD,c=null,d=null,h=null,u=null;const g=new Promise(e=>{h=e}),p=new Promise(e=>{u=e}),m=e=>()=>{e?.(),u(),r()};let f={},b=[];const v={id:e.id,model:e,navigation:i,getImperativeHandle:async()=>(await p,c.current.getImperativeHandle()),async destroy(){await s(),l(),l=pD},__DO_NOT_USE__:{mount(s){if(d)throw new Error("Already mounted");if(!(s instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=s,[l,c]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:s,onMount:r,initialError:a,navigation:l,onError:c}){const{root:d}=e,h=t.createRef();let u;const g=()=>{d.remove(u)};return u=Dd.createPortal((0,_t.jsx)(gD,{ref:h,halo:e,model:i,initialSnOptions:o,initialSnPlugins:s,initialError:a,onMount:r,unmount:g,navigation:l,onError:c}),n,i.id),l.setSheetRef(h),d.add(u,g),[g,h]}({halo:n,element:s,model:e,initialSnOptions:f,initialSnPlugins:b,initialError:o,onMount:h,navigation:i,onError:a}),g},async applyProperties(t){const n=sD("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await g,c.current.setSnOptions({...f,...e,onInitialRender:m(t)})})():f={...f,...e,onInitialRender:m(t)}})(e)},plugins(e){(async e=>{rD(e),d?(async()=>{await g,c.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}({model:e,halo:i,navigation:o,initialError:s,onDestroy:r,onRender:a,onError:l});return n.options&&c.__DO_NOT_USE__.options(n.options),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}(p,{options:n,plugins:i,element:o,onRender:s,onError:r},l,m):cD(p,{options:n,plugins:i,element:o,onRender:s,onError:r},l,m)}function fD(e={}){return{isEnabled:t=>!0===e[t]}}n.dn(fD);var bD=n(77843),vD=n.n(bD);const CD={};function _D(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,s)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:s}=n,r={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&s&&s.deps&&s.deps.properties)||vD()(e,s.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!CD[o]){const s=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${s}' is not a fuction, wrap load promise in function`);const r=(i||n.load)({name:e,version:t}),a=Promise.resolve(r);CD[o]=a.then(e=>{if(!e)throw new Error(`load() of visualization '${s}' resolved to an invalid object`);return e}).catch(e=>{throw console.warn(e),new zE(`Failed to load visualization: '${s}'`,e)})}return CD[o]}(r.name,r.version,t,n.load).then(e=>(i=i||oE(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n={qInfo:{qType:r.name},visualization:r.name,version:r.version,showTitles:!0,...JSON.parse(o)};return t?(Mg()(!0,n,e),n):{...n,...e}})}};return r}({name:e,version:o},t,s),i=null},getMatchingVersionFromProperties:e=>{i||(i=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=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const yD={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${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())}};yD.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const wD=(e={},t={})=>({...e,...t}),AD=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t),SD=function e(n={}){const i=function(e){const t=Qu({initial:e});return Object.keys(Yu).forEach(e=>{t.translator.add(Yu[e])}),{translator:t.translator}}(n.context.language);function s(e,r){if(r)return s.createConfiguration(r)(e);let a={...n.context,translator:i.translator,hostConfig:n.hostConfig};const[l,c]=function({app:e,context:n}){let i,s=!1;const r=new Promise(e=>{i=e}),a=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","7.3.0"),l.setAttribute("data-app-id",e.id),document.body.appendChild(l),n&&lp(n);const c=dp(e.id),d=hp(e.id),h=o.createRoot(l);h.render((0,_t.jsx)(up,{ref:a,initialContext:n,renderCallback:i,modelStore:c,selectionStore:d}));const u={},g=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach(t=>{u[t].current?.toggleFocus(t===e)})},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add:(e,t)=>(async()=>{await r,p.push(e),g.push(t),a?.current?.setComps(p)})(),remove(e){s||(async()=>{await r;const t=p.indexOf(e);-1!==t&&(g[t]?.(),p.splice(t,1),g.splice(t,1)),a?.current?.setComps(p)})()},setMuiThemeName(e){(async()=>{await r,a?.current?.setMuiThemeName(e)})()},context(e){(async()=>{await r,e&&lp(e),a?.current?.setContext(e)})()},destroy(){s=!0,g.forEach(e=>{e&&e()}),c.destroy(),h.unmount(),document.body.removeChild(l)}},c,d,a,r]}({app:e,context:a}),d=function({themes:e=[],loadTheme:t,root:n}={}){const i=op();return{setTheme:async o=>{let s=e.filter(e=>e.id===o)[0],r="dark"===o?"dark":"light";if(!s&&t&&(s={load:t}),s&&s.load)try{const e=await Promise.race([s.load(o),sp(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(r="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(r))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:r},o),n.setMuiThemeName(r)},externalAPI:i.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:l});a.themeApi=d.externalAPI;const h={galaxy:{translator:i.translator,theme:d.externalAPI,flags:fD(n.flags),deviceType:(p=n.context.deviceType,"auto"!==p?p:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"),hostConfig:n.hostConfig,anything:n.anything},theme:d.externalAPI,translator:i.translator,nebbie:null},u={app:e,root:l,config:n,public:h,context:a,types:null},g=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=_D(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>{if(n[e])return n[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map(e=>({name:e,versions:Object.keys(n[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(CD).forEach(t=>{t.split("__")[0]===e&&(CD[t]=void 0)})}(e)}}}({halo:u});var p;n.types.forEach(e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let m=new Promise(e=>{(async()=>{if(await d.setTheme(n.context.theme),n.hostConfig&&it&&it.getWebResourceAuthParams){const{queryParams:e}=await it.getWebResourceAuthParams({hostConfig:n.hostConfig});a.queryParams=e,l.context(a)}})().then(e)}),f=null,b=null;const v={render:async e=>{await m,e.signal?.throwIfAborted();const t=e.id?mD(e,u,c):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:s,element:r,extendProperties:a,navigation:l,onRender:c,onError:d},h,u){let g={};const p=[],{modelStore:m,subscribe:f}=u;let b;try{const o=h.types.get({name:e,version:t});g=await o.initialProperties(i,a);const s=await o.supernova();n&&await ek({sn:s,properties:g,fields:n,children:p},h),i&&s&&s.qae.properties.onChange&&s.qae.properties.onChange.call({},g)}catch(t){b=t,g={qInfo:{qType:e},visualization:e}}const v=await h.app.createSessionObject(g);p.length>0&&await v.setFullPropertyTree({qProperty:g,qChildren:p}),m.set(v.id,v);const C=f(v);return cD(v,{options:o,plugins:s,element:r,onRender:c,onError:d},h,l,b,async()=>{await h.app.destroySessionObject(v.id),C()})}(e,u,c);if(e.signal){const n=()=>{t.then(e=>e?.destroy()).catch(()=>{})};return e.signal.addEventListener("abort",n,{once:!0}),function(e,t){if(!t)return e;let n;"function"==typeof t.throwIfAborted&&t.throwIfAborted();const i=new Promise((e,t)=>{n=t}),o=()=>n?.(t.reason);return t.addEventListener("abort",o,{once:!0}),Promise.race([e,i]).finally(()=>{t.removeEventListener("abort",o)})}(t,e.signal).finally(()=>{e.signal.removeEventListener("abort",n)})}return t},destroy:async()=>{l.destroy()},create:async e=>dD(e,u,!1,c),generateProperties:async e=>dD(e,u,!0,c),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])}),t&&(a={...a,...t,translator:i.translator},t.theme&&(await m,m=d.setTheme(t.theme),await m),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){b?console.error("Already mounted"):(b=function({element:e,app:t}){return Dd.createPortal((0,_t.jsx)(cx,{app:t}),e,lx())}({element:t,app:e}),l.add(b))},unmount(){b&&(l.remove(b),b=null)}}),f),field:async n=>{let i;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)i=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const s={fieldName:o,async mount(r,a={}){if(!r)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>s.emit("selectionActivated"),d=()=>s.emit("selectionDeactivated");return new Promise(o=>{[this._instance,this._ref]=function({element:e,app:n,fieldIdentifier:i,qId:o,stateName:s="$",options:r={},renderedCallback:a,flags:l}){const c=t.createRef();return[Dd.createPortal((0,_t.jsx)(jx,{ref:c,app:n,element:e,fieldIdentifier:i,qId:o,stateName:s,initialOptions:r,renderedCallback:a,flags:l}),e,lx()),c]}({element:r,app:e,fieldIdentifier:n,qId:i,options:Hx({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o,flags:u.public.galaxy.flags}),l.add(this._instance)})},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>s.emit("selectionActivated"),n=()=>s.emit("selectionDeactivated");if(s._ref?.current){const i=Hx({onSelectionActivated:t,onSelectionDeactivated:n,...e});s._ref.current.setOptions(i)}}}};return z_(s),s},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(n,i,o){v._popoverInstance&&(l.remove(v._popoverInstance),v._popoverInstance=null);const s=((e={})=>{const t={...Ux};return Mg()(!0,t,e),t})({onPopoverClose:()=>v.emit("fieldPopoverClose"),...o});v._popoverInstance=t.createElement($x,{element:n,key:lx(),app:e,fieldIdentifier:i,options:s,stateName:o.stateName||"$"}),l.add(v._popoverInstance)}}};return u.public.nebbie=v,u.types=g,z_(v),v}return s.createConfiguration=t=>e(((e,t)=>({context:wD(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:AD(e.types,t.types),themes:AD(e.themes,t.themes),flags:wD(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:wD(e.anything,t.anything)}))(n,t)),s.config=n,s}(yD),xD=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},kD=globalThis.crypto||{getRandomValues:()=>123456},LD=function(e){return t=>{const n=Mg()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^kD.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const i=n._mock;let o=n;return i&&(delete n._mock,o=Mg()({},n,i)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}},ED=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,DD=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const s=ED(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(s),i)}):s},ID=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ND(e){return!ID.includes(e)}function RD(e){const t=ED(e.getLayout);return t.qInfo&&t.qInfo.qId}function TD(e,t){let n=RD(e);const{delay:i}=t,{id:o,session:s,...r}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);n=n||o||"object - "+ +Date.now();const a={id:n,session:ED(s,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(r).reduce((e,[t,n])=>({...e,[t]:DD(n,{async:ND(t),delay:i})}),{}),genericType:e.type};return{[n]:a}}function MD(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!RD(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const OD=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(MD);const n=function(e,t){return e.reduce((e,n)=>({...e,...TD(n,t)}),{})}(e,t);return async e=>Promise.resolve(n[e])},qD=function(e){return()=>Promise.resolve({id:"app-layout",qLocaleInfo:e?.appLocaleInfo})},PD={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new xD,i=new LD(n),o=new OD(e,t),s=new qD(t),r={...t.appMethods||{},id:"app - "+ +Date.now(),session:n,createSessionObject:i,destroySessionObject:async()=>{},getObject:o,getAppLayout:s,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(r)}(e,t)},BD=PD,FD={generator:oE,hook:jk,theme:op,locale:Qu},WD=ul((0,_t.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),zD=ul((0,_t.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"})),VD=ul((0,_t.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"})),HD=ul((0,_t.jsx)("path",{d:"M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54s-2.94 8.27-7 9.54c.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2"})),jD=ul((0,_t.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}));function UD(e){return Er("MuiToolbar",e)}Dr("MuiToolbar",["root","gutters","regular","dense"]);const $D=_r("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Xa(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),GD=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:r="regular",...a}=n,l={...n,component:o,disableGutters:s,variant:r},c=(e=>{const{classes:t,disableGutters:n,variant:i}=e;return Lt({root:["root",!n&&"gutters",i]},UD,t)})(l);return(0,_t.jsx)($D,{as:o,className:kt(c.root,i),ref:t,ownerState:l,...a})}),KD=GD;function QD(e){return Er("MuiToggleButtonGroup",e)}const YD=Dr("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ZD=t.createContext({}),XD=t.createContext(void 0);function JD(e){return Er("MuiToggleButton",e)}const eI=Dr("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),tI=_r("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${YD.grouped}`]:t.grouped},{[`& .${YD.grouped}`]:t[`grouped${Vr(n.orientation)}`]},{[`& .${YD.firstButton}`]:t.firstButton},{[`& .${YD.lastButton}`]:t.lastButton},{[`& .${YD.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(Xa(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${YD.grouped}`]:{[`&.${YD.selected} + .${YD.grouped}.${YD.selected}`]:{borderTop:0,marginTop:0}},[`& .${YD.firstButton},& .${YD.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${YD.lastButton},& .${YD.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${YD.lastButton}.${eI.disabled},& .${YD.middleButton}.${eI.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${YD.grouped}`]:{[`&.${YD.selected} + .${YD.grouped}.${YD.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${YD.firstButton},& .${YD.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${YD.lastButton},& .${YD.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${YD.lastButton}.${eI.disabled},& .${YD.middleButton}.${eI.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),nI=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:r="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:u="medium",value:g,...p}=i,m={...i,disabled:a,fullWidth:c,orientation:h,size:u},f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e;return Lt({root:["root",n,i&&"fullWidth"],grouped:["grouped",`grouped${Vr(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},QD,t)})(m),b=t.useCallback((e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},[d,g]),v=t.useCallback((e,t)=>{d&&d(e,g===t?null:t)},[d,g]),C=t.useMemo(()=>({className:f.grouped,onChange:l?v:b,value:g,size:u,fullWidth:c,color:r,disabled:a}),[f.grouped,l,v,b,g,u,c,r,a]),_=function(e){return t.Children.toArray(e).filter(e=>t.isValidElement(e))}(o),y=_.length,w=e=>{const t=0===e,n=e===y-1;return t&&n?"":t?f.firstButton:n?f.lastButton:f.middleButton};return(0,_t.jsx)(tI,{role:"group",className:kt(f.root,s),ref:n,ownerState:m,...p,children:(0,_t.jsx)(ZD.Provider,{value:C,children:_.map((e,t)=>(0,_t.jsx)(XD.Provider,{value:w(t),children:e},t))})})}),iI=nI;function oI(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const sI=_r(Lc,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Vr(n.size)}`]]}})(Xa(({theme:e})=>({...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,[`&.${eI.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${eI.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${eI.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),rI=t.forwardRef(function(e,n){const{value:i,...o}=t.useContext(ZD),s=t.useContext(XD),r=Sr({props:yr({...o,selected:oI(e.value,i)},e),name:"MuiToggleButton"}),{children:a,className:l,color:c="standard",disabled:d=!1,disableFocusRipple:h=!1,fullWidth:u=!1,onChange:g,onClick:p,selected:m,size:f="medium",value:b,...v}=r,C={...r,color:c,disabled:d,disableFocusRipple:h,fullWidth:u,size:f},_=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:s,color:r}=e;return Lt({root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${Vr(s)}`,r]},JD,t)})(C),y=s||"";return(0,_t.jsx)(sI,{className:kt(o.className,_.root,l,y),disabled:d,focusRipple:!h,ref:n,onClick:e=>{p&&(p(e,b),e.defaultPrevented)||g&&g(e,b)},onChange:g,value:b,ownerState:C,"aria-pressed":m,...v,children:a})}),aI=rI;function lI(e){return Er("MuiMenu",e)}Dr("MuiMenu",["root","paper","list"]);const cI={vertical:"top",horizontal:"right"},dI={vertical:"top",horizontal:"left"},hI=_r(Lm,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),uI=_r(xm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gI=_r(f_,{name:"MuiMenu",slot:"List"})({outline:0}),pI=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:r,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:h={},PopoverClasses:u,transitionDuration:g="auto",TransitionProps:{onEntering:p,...m}={},variant:f="selectedMenu",slots:b={},slotProps:v={},...C}=i,_=Zr(),y={...i,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:h,transitionDuration:g,TransitionProps:m,variant:f},w=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"],list:["list"]},lI,t)})(y),A=o&&!a&&d,S=t.useRef(null);let x=-1;t.Children.map(s,(e,n)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===x)&&(x=n))});const k={slots:b,slotProps:{list:l,transition:m,paper:h,...v}},L=fh({elementType:b.root,externalSlotProps:v.root,ownerState:y,className:[w.root,r]}),[E,D]=Nl("paper",{className:w.paper,elementType:uI,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:y}),[I,N]=Nl("list",{className:kt(w.list,l.className),elementType:gI,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:y}),R="function"==typeof k.slotProps.transition?k.slotProps.transition(y):k.slotProps.transition;return(0,_t.jsx)(hI,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?cI:dI,slots:{root:b.root,paper:E,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:L,paper:D,backdrop:"function"==typeof v.backdrop?v.backdrop(y):v.backdrop,transition:{...R,onEntering:(...e)=>{((e,t)=>{S.current&&S.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),p&&p(e,t)})(...e),R?.onEntering?.(...e)}}},open:d,ref:n,transitionDuration:g,ownerState:y,...C,classes:u,children:(0,_t.jsx)(I,{actions:S,autoFocus:o&&(-1===x||a),autoFocusItem:A,variant:f,...N,children:s})})}),mI=pI,fI=new Map,bI=[],vI=bI.map,CI=bI.some,_I=bI.hasOwnProperty,yI=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,wI=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,AI=/(?:\.[^/]*|\/)$/;class SI extends Error{constructor(e){super(e)}}function xI(e){const t=yI.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function kI(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(bI.pop()(o(e)))}catch(e){n(new SI("invalid module"))}i.remove()},i.onerror=()=>{n(new SI("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=II,document.head.appendChild(i)})),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function s(e){return arguments.length>1?Promise.all(vI.call(arguments,n)).then(LI):n(e)}return s.alias=function(t){return kI((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i))},s.resolve=e,s}function LI(e){const t={};for(const n of e)for(const e in n)_I.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:EI(n,e)}):t[e]=n[e]);return t}function EI(e,t){return()=>e[t]}function DI(e){return"exports"==(e+="")||"module"===e}function II(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),bI.push(CI.call(t,DI)?e=>{const i={},o={exports:i};return Promise.all(vI.call(t,t=>"exports"==(t+="")?i:"module"===t?o:e(t))).then(e=>(n.apply(null,e),o.exports))}:e=>Promise.all(vI.call(t,e)).then(e=>"function"==typeof n?n.apply(null,e):n))}SI.prototype.name=SI.name,kI(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=fI.get(n);return i||fI.set(n,i=fetch(n).then(e=>{if(!e.ok)throw new SI("unable to load package.json");return e.redirected&&!fI.has(e.url)&&fI.set(e.url,i),e.json()})),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,o??location).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new SI("illegal name");const s=xI(i);if(!s)return`${e}${i}`;if(!s.version&&null!=o&&o.startsWith(e)){const t=await n(xI(o.substring(e.length)));s.version=t.dependencies&&t.dependencies[s.name]||t.peerDependencies&&t.peerDependencies[s.name]}if(s.path&&!AI.test(s.path)&&(s.path+=".js"),s.path&&s.version&&wI.test(s.version))return`${e}${s.name}@${s.version}/${s.path}`;const r=await n(s);return`${e}${r.name}@${r.version}/${s.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),AI.test(t)?t:`${t}.js`}}(r)||"index.js"}`}}()),II.amd={};const NI=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=kI(async e=>i(e));return o.alias({"@nebula.js/stardust":e})(n||t)},RI={};function TI(e){const[n,i]=(0,t.useState)();return(0,t.useEffect)(()=>{if(e){const t=()=>{e.getProperties().then(e=>{i({...e})})};return e.on("changed",t),t(),()=>{e.removeListener("changed",t)}}return()=>{}},[e,i]),[n,t=>e.setProperties(t)]}window.onHotChange=(e,t)=>(RI[e]||(RI[e]=[]),RI[e].push(t),window[e]&&t(),()=>{const n=RI[e].indexOf(t);RI[e].splice(n,1)});const MI=t.createContext();function OI({dc:e,def:t,properties:n,dimensions:i}){const o=n,s={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||lx(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>s.dimensions().length<s.maxDimensions(),canAddMeasure:()=>!1};return s}const qI={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},PI={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function BI(e,t="dimension"){const n="dimension"===t?qI:PI,[i]=pp(n,e),[o]=Cp(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function FI(e){return Er("MuiListSubheader",e)}Dr("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const WI=_r("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Vr(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Xa(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),zI=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:r=!1,disableSticky:a=!1,inset:l=!1,...c}=n,d={...n,color:o,component:s,disableGutters:r,disableSticky:a,inset:l},h=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:s}=e;return Lt({root:["root","default"!==n&&`color${Vr(n)}`,!i&&"gutters",o&&"inset",!s&&"sticky"]},FI,t)})(d);return(0,_t.jsx)(WI,{as:s,className:kt(h.root,i),ref:t,ownerState:d,...c})});zI&&(zI.muiSkipListHighlight=!0);const VI=zI;var HI=n(98586),jI=n.n(HI),UI=n(18428),$I=n.n(UI);const GI=ul((0,_t.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),KI=ul((0,_t.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}));function QI(e){return Er("MuiInput",e)}const YI={...ou,...Dr("MuiInput",["root","underline","input"])},ZI=_r(Cu,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bu(e,t),!n.disableUnderline&&t.underline]}})(Xa(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${YI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${YI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${YI.disabled}, .${YI.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${YI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),XI=_r(_u,{name:"MuiInput",slot:"Input",overridesResolver:vu})({}),JI=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:s,fullWidth:r=!1,inputComponent:a="input",multiline:l=!1,slotProps:c,slots:d={},type:h="text",...u}=n,g=(e=>{const{classes:t,disableUnderline:n}=e,i=Lt({root:["root",!n&&"underline"],input:["input"]},QI,t);return{...t,...i}})(n),p={root:{ownerState:{disableUnderline:i}}},m=c??s?Ci(c??s,p):p,f=d.root??o.Root??ZI,b=d.input??o.Input??XI;return(0,_t.jsx)(Au,{slots:{root:f,input:b},slotProps:m,fullWidth:r,inputComponent:a,multiline:l,ref:t,type:h,...u,classes:g})});JI.muiName="Input";const eN=JI;function tN(e){return Er("MuiFilledInput",e)}const nN={...ou,...Dr("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},iN=_r(Cu,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bu(e,t),!n.disableUnderline&&t.underline]}})(Xa(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${nN.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${nN.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nN.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nN.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${nN.disabled}, .${nN.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nN.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),oN=_r(_u,{name:"MuiFilledInput",slot:"Input",overridesResolver:vu})(Xa(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),sN=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:s,fullWidth:r=!1,hiddenLabel:a,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:h={},type:u="text",...g}=n,p={...n,disableUnderline:i,fullWidth:r,inputComponent:l,multiline:c,type:u},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:s,hiddenLabel:r,multiline:a}=e,l=Lt({root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd","small"===s&&`size${Vr(s)}`,r&&"hiddenLabel",a&&"multiline"],input:["input"]},tN,t);return{...t,...l}})(n),f={root:{ownerState:p},input:{ownerState:p}},b=d??s?Ci(f,d??s):f,v=h.root??o.Root??iN,C=h.input??o.Input??oN;return(0,_t.jsx)(Au,{slots:{root:v,input:C},slotProps:b,fullWidth:r,inputComponent:l,multiline:c,ref:t,type:u,...g,classes:m})});sN.muiName="Input";const rN=sN;function aN(e){return Er("MuiFormLabel",e)}const lN=Dr("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cN=_r("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${lN.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lN.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dN=_r("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xa(({theme:e})=>({[`&.${lN.error}`]:{color:(e.vars||e).palette.error.main}}))),hN=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiFormLabel"}),{children:i,className:o,color:s,component:r="label",disabled:a,error:l,filled:c,focused:d,required:h,...u}=n,g=nu({props:n,muiFormControl:tu(),states:["color","required","focused","disabled","error","filled"]}),p={...n,color:g.color||"primary",component:r,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},m=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:s,filled:r,required:a}=e;return Lt({root:["root",`color${Vr(n)}`,o&&"disabled",s&&"error",r&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]},aN,t)})(p);return(0,_t.jsxs)(cN,{as:r,ownerState:p,className:kt(m.root,o),ref:t,...u,children:[i,g.required&&(0,_t.jsxs)(dN,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),uN=hN;function gN(e){return Er("MuiInputLabel",e)}Dr("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const pN=_r(uN,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lN.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Xa(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),mN=t.forwardRef(function(e,t){const n=Sr({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,margin:o,shrink:s,variant:r,className:a,...l}=n,c=tu();let d=s;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const h=nu({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),u={...n,disableAnimation:i,formControl:c,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:s,variant:r,required:a}=e,l=Lt({root:["root",n&&"formControl",!s&&"animated",o&&"shrink",i&&"medium"!==i&&`size${Vr(i)}`,r],asterisk:[a&&"asterisk"]},gN,t);return{...t,...l}})(u);return(0,_t.jsx)(pN,{"data-shrink":d,ref:t,className:kt(g.root,a),...l,ownerState:u,classes:g})}),fN=mN;function bN(e){return Er("MuiFormControl",e)}Dr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const vN=_r("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Vr(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),CN=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiFormControl"}),{children:o,className:s,color:r="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:u=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined",...b}=i,v={...i,color:r,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f},C=(e=>{const{classes:t,margin:n,fullWidth:i}=e;return Lt({root:["root","none"!==n&&`margin${Vr(n)}`,i&&"fullWidth"]},bN,t)})(v),[_,y]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{if(!BS(t,["Input","Select"]))return;const n=BS(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[w,A]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{BS(t,["Input","Select"])&&(gu(t.props,!0)||gu(t.props.inputProps,!0))&&(e=!0)}),e}),[S,x]=t.useState(!1);l&&S&&x(!1);const k=void 0===d||l?S:d;let L;t.useRef(!1);const E=t.useCallback(()=>{A(!0)},[]),D=t.useCallback(()=>{A(!1)},[]),I=t.useMemo(()=>({adornedStart:_,setAdornedStart:y,color:r,disabled:l,error:c,filled:w,focused:k,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{x(!1)},onFocus:()=>{x(!0)},onEmpty:D,onFilled:E,registerEffect:L,required:p,variant:f}),[_,r,l,c,w,k,h,u,L,D,E,p,m,f]);return(0,_t.jsx)(eu.Provider,{value:I,children:(0,_t.jsx)(vN,{as:a,ownerState:v,className:kt(C.root,s),ref:n,...b,children:o})})}),_N=CN;function yN(e){return Er("MuiFormHelperText",e)}const wN=Dr("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var AN;const SN=_r("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Vr(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wN.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),xN=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p",disabled:r,error:a,filled:l,focused:c,margin:d,required:h,variant:u,...g}=n,p=nu({props:n,muiFormControl:tu(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:s,contained:"filled"===p.variant||"outlined"===p.variant,variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete m.ownerState;const f=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:s,filled:r,focused:a,required:l}=e;return Lt({root:["root",o&&"disabled",s&&"error",i&&`size${Vr(i)}`,n&&"contained",a&&"focused",r&&"filled",l&&"required"]},yN,t)})(m);return(0,_t.jsx)(SN,{as:s,className:kt(f.root,o),ref:t,...g,ownerState:m,children:" "===i?AN||(AN=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})}),kN=xN;function LN(e){return Er("MuiNativeSelect",e)}const EN=Dr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),DN=_r("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${EN.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),IN=_r(DN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${EN.multiple}`]:t.multiple}]}})({}),NN=_r("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${EN.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),RN=_r(NN,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Vr(n.variant)}`],n.open&&t.iconOpen]}})({}),TN=t.forwardRef(function(e,n){const{className:i,disabled:o,error:s,IconComponent:r,inputRef:a,variant:l="standard",...c}=e,d={...e,disabled:o,variant:l,error:s},h=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:r}=e;return Lt({select:["select",n,i&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${Vr(n)}`,s&&"iconOpen",i&&"disabled"]},LN,t)})(d);return(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)(IN,{ownerState:d,className:kt(h.select,i),disabled:o,ref:a||n,...c}),e.multiple?null:(0,_t.jsx)(RN,{as:r,ownerState:d,className:h.icon})]})}),MN=TN;function ON(e){return Er("MuiSelect",e)}const qN=Dr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function PN(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function BN(e){return null==e||"string"==typeof e&&!e.trim()}var FN;const WN=_r(DN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qN.select}`]:t.select},{[`&.${qN.select}`]:t[n.variant]},{[`&.${qN.error}`]:t.error},{[`&.${qN.multiple}`]:t.multiple}]}})({[`&.${qN.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zN=_r(NN,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Vr(n.variant)}`],n.open&&t.iconOpen]}})({}),VN=_r("input",{shouldForwardProp:e=>vr(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),HN=t.forwardRef(function(e,n){const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:r,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:u,error:g=!1,IconComponent:p,inputRef:m,labelId:f,MenuProps:b={},multiple:v,name:C,onBlur:_,onChange:y,onClose:w,onFocus:A,onKeyDown:S,onMouseDown:x,onOpen:k,open:L,readOnly:E,renderValue:D,required:I,SelectDisplayProps:N={},tabIndex:R,type:T,value:M,variant:O="standard",...q}=e,[P,B]=of({controlled:M,default:d,name:"Select"}),[F,W]=of({controlled:L,default:c,name:"Select"}),z=t.useRef(null),V=t.useRef(null),[H,j]=t.useState(null),{current:U}=t.useRef(null!=L),[$,G]=t.useState(),[K,Q]=t.useState(null),Y=Kl(n,m),Z=t.useCallback(e=>{V.current=e,e&&j(e)},[]),X=H?.parentNode;t.useImperativeHandle(Y,()=>({focus:()=>{V.current.focus()},node:z.current,value:P}),[P]);const J=null!==H&&F;t.useEffect(()=>{if(!J||!X||r)return;if("undefined"==typeof ResizeObserver)return;const e=new ResizeObserver(()=>{G(X.clientWidth)});return e.observe(X),()=>{e.disconnect()}},[J,X,r]),t.useEffect(()=>{c&&F&&H&&!U&&(G(r?null:X.clientWidth),V.current.focus())},[H,r]),t.useEffect(()=>{s&&V.current.focus()},[s]),t.useEffect(()=>{if(!f)return;const e=Th(V.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&V.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[f]);const ee=(e,t)=>{e?(Q(function(e){return e?"mousedown"===e.type||"pointerdown"===e.type||"touchstart"===e.type?"pointer":"keydown"===e.type||"click"===e.type&&0===e.detail?"keyboard":null:null}(t)),k&&k(t)):(Q(null),w&&w(t)),U||(G(r?null:X.clientWidth),W(e))},te=t.Children.toArray(a),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(P)?P.slice():[];const t=P.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),P!==n&&(B(n),y)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:C}}),y(o,e)}v||ee(!1,t)}};let ie,oe;delete q["aria-invalid"];const se=[];let re=!1,ae=!1;(gu({value:P})||u)&&(D?ie=D(P):re=!0);const le=te.map(e=>{if(!t.isValidElement(e))return null;let n;if(v){if(!Array.isArray(P))throw new Error(Ei(2));n=P.some(t=>PN(t,e.props.value)),n&&re&&se.push(e.props.children)}else n=PN(P,e.props.value),n&&re&&(oe=e.props.children);return n&&(ae=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:ne(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})});re&&(ie=v?0===se.length?null:se.reduce((e,t,n)=>(e.push(t),n<se.length-1&&e.push(", "),e),[]):oe);let ce,de=$;!r&&U&&H&&(de=X.clientWidth),ce=void 0!==R?R:h?null:0;const he=N.id||(C?`mui-component-select-${C}`:void 0),ue={...e,variant:O,value:P,open:J,error:g},ge=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:r}=e;return Lt({select:["select",n,i&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${Vr(n)}`,s&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]},ON,t)})(ue),pe={...b.PaperProps,..."function"==typeof b.slotProps?.paper?b.slotProps.paper(ue):b.slotProps?.paper},me={...b.MenuListProps,..."function"==typeof b.slotProps?.list?b.slotProps.list(ue):b.slotProps?.list},fe=na();return(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)(WN,{as:"div",ref:Z,tabIndex:ce,role:"combobox","aria-controls":J?fe:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[f,he].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":I?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:e=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),ee(!0,e)),S?.(e))},onMouseDown:h||E?null:e=>{x?.(e),0===e.button&&(e.preventDefault(),V.current.focus(),ee(!0,e))},onBlur:e=>{!J&&_&&(Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:C}}),_(e))},onFocus:A,...N,ownerState:ue,className:kt(N.className,ge.select,l),id:he,children:BN(ie)?FN||(FN=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ie}),(0,_t.jsx)(VN,{"aria-invalid":g,value:Array.isArray(P)?P.join(","):P,name:C,ref:z,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(B(t.props.value),y&&y(e,t))},tabIndex:-1,disabled:h,className:ge.nativeInput,autoFocus:s,required:I,...q,ownerState:ue}),(0,_t.jsx)(zN,{as:p,className:ge.icon,ownerState:ue}),(0,_t.jsx)(i_,{value:K,children:(0,_t.jsx)(mI,{id:`menu-${C||""}`,anchorEl:X,open:J,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":f,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:fe,...me},paper:{...pe,style:{minWidth:de,...null!=pe?pe.style:null}}},children:le})})]})}),jN=HN,UN=ul((0,_t.jsx)("path",{d:"M7 10l5 5 5-5z"})),$N={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Cr(e)&&"variant"!==e},GN=_r(eN,$N)(""),KN=_r(Eu,$N)(""),QN=_r(rN,$N)(""),YN=t.forwardRef(function(e,n){const i=Sr({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:r={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=UN,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:b=!1,native:v=!1,onClose:C,onOpen:_,open:y,renderValue:w,SelectDisplayProps:A,variant:S="outlined",...x}=i,k=v?MN:jN,L=nu({props:i,muiFormControl:tu(),states:["variant","error"]}),E=L.variant||S,D={...i,variant:E,classes:r},I=(e=>{const{classes:t}=e,n=Lt({root:["root"]},ON,t);return{...t,...n}})(D),{root:N,...R}=I,T=u||{standard:(0,_t.jsx)(GN,{ownerState:D}),outlined:(0,_t.jsx)(KN,{label:p,ownerState:D}),filled:(0,_t.jsx)(QN,{ownerState:D})}[E],M=Kl(n,Tp(T));return(0,_t.jsx)(t.Fragment,{children:t.cloneElement(T,{inputComponent:k,inputProps:{children:s,error:L.error,IconComponent:d,variant:E,type:void 0,multiple:b,...v?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:C,onOpen:_,open:y,renderValue:w,SelectDisplayProps:{id:h,...A}},...g,classes:g?Ci(R,g.classes):R,...u?u.props.inputProps:{}},...(b&&v||c)&&"outlined"===E?{notched:!0}:{},ref:M,className:kt(T.props.className,a,I.root),...!u&&{variant:E},...x})})});YN.muiName="Select";const ZN=YN;function XN(e){return Er("MuiTextField",e)}Dr("MuiTextField",["root"]);const JN={standard:eN,filled:rN,outlined:Eu},eR=_r(_N,{name:"MuiTextField",slot:"Root"})({}),tR=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:r,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:u=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:b,inputRef:v,label:C,maxRows:_,minRows:y,multiline:w=!1,name:A,onBlur:S,onChange:x,onFocus:k,placeholder:L,required:E=!1,rows:D,select:I=!1,SelectProps:N,slots:R={},slotProps:T={},type:M,value:O,variant:q="outlined",...P}=n,B={...n,autoFocus:o,color:a,disabled:c,error:d,fullWidth:u,multiline:w,required:E,select:I,variant:q},F=(e=>{const{classes:t}=e;return Lt({root:["root"]},XN,t)})(B),W=na(p),z=g&&W?`${W}-helper-text`:void 0,V=C&&W?`${W}-label`:void 0,H=JN[q],j={slots:R,slotProps:{input:b,inputLabel:m,htmlInput:f,formHelperText:h,select:N,...T}},U={},$=j.slotProps.inputLabel;"outlined"===q&&($&&void 0!==$.shrink&&(U.notched=$.shrink),U.label=C),I&&(N&&N.native||(U.id=void 0),U["aria-describedby"]=void 0);const[G,K]=Nl("root",{elementType:eR,shouldForwardComponentProp:!0,externalForwardedProps:{...j,...P},ownerState:B,className:kt(F.root,r),ref:t,additionalProps:{disabled:c,error:d,fullWidth:u,required:E,color:a,variant:q}}),[Q,Y]=Nl("input",{elementType:H,externalForwardedProps:j,additionalProps:U,ownerState:B}),[Z,X]=Nl("inputLabel",{elementType:fN,externalForwardedProps:j,ownerState:B}),[J,ee]=Nl("htmlInput",{elementType:"input",externalForwardedProps:j,ownerState:B}),[te,ne]=Nl("formHelperText",{elementType:kN,externalForwardedProps:j,ownerState:B}),[ie,oe]=Nl("select",{elementType:ZN,externalForwardedProps:j,ownerState:B}),se=(0,_t.jsx)(Q,{"aria-describedby":z,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:u,multiline:w,name:A,rows:D,maxRows:_,minRows:y,type:M,value:O,id:W,inputRef:v,onBlur:S,onChange:x,onFocus:k,placeholder:L,inputProps:ee,slots:{input:R.htmlInput?J:void 0},...Y});return(0,_t.jsxs)(G,{...K,children:[null!=C&&""!==C&&(0,_t.jsx)(Z,{htmlFor:W,id:V,...X,children:C}),I?(0,_t.jsx)(ie,{"aria-describedby":z,id:W,labelId:V,value:O,input:se,...oe,children:s}):se,g&&(0,_t.jsx)(te,{id:z,...ne,children:g})]})}),nR=tR,iR="Search",oR={gridContainer:`${iR}-gridContainer`,gridItem:`${iR}-gridItem`},sR=_r(ud)(({theme:e})=>({[`& .${oR.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${oR.gridItem}`]:{padding:e.spacing(0,1,0,1)}}));function rR(){const e=document.querySelector('meta[name="viewport"]');e instanceof HTMLMetaElement&&(e.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0")}function aR({onChange:e=()=>{},onEnter:n=()=>{},onEscape:i=()=>{}}){const[o,s]=(0,t.useState)("");return(0,_t.jsxs)(sR,{className:oR.gridContainer,container:!0,direction:"row",alignItems:"center",children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(T_,{})}),(0,_t.jsx)(ud,{className:oR.gridItem,sx:{flex:1},children:(0,_t.jsx)(nR,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{s(t.target.value),e(t.target.value)},onFocus:rR,onKeyDown:e=>{switch(e.key){case"Enter":n(),s("");break;case"Escape":i()}}})})]})}function lR({field:e,onSelect:t,sub:n,parts:i}){return(0,_t.jsxs)(lh,{onClick:()=>t(e.qName),"data-key":e.qName,children:[(0,_t.jsx)(gh,{children:i.map((e,t)=>(0,_t.jsx)("span",{style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"},children:e.text},t))}),n&&(0,_t.jsx)(GI,{fontSize:"small"})]})}function cR({item:e,onSelect:t,parts:n}){return(0,_t.jsx)(lh,{onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId,children:(0,_t.jsx)(gh,{children:n.map((e,t)=>(0,_t.jsx)("span",{style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"},children:e.text},t))})})}function dR({aggr:e,field:t,onSelect:n}){return(0,_t.jsx)(lh,{onClick:()=>n(e),"data-key":e,children:(0,_t.jsx)(gh,{children:`${e}(${t})`})})}function hR({app:e,onSelect:n,title:i="",type:o="dimension",searchTerm:s=""}){const[r]=BI(e,o),a=(0,t.useMemo)(()=>r.slice().sort((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())),[r]);return r.length>0?(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(VI,{component:"div",style:{backgroundColor:"inherit"},children:i}),a.map(e=>{const t=$I()(e.qData.title,s),i=jI()(e.qData.title,t);return s&&0===t.length?null:(0,_t.jsx)(cR,{item:e,onSelect:n,parts:i},e.qInfo.qId)})]}):null}function uR({alignTo:e,show:n,close:i,onSelected:o,type:s}){const r=(0,t.useContext)(MI),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(""),h=Ur(),[u]=pp({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},r),[g]=Cp(u),p=(0,t.useMemo)(()=>(g&&g.qFieldList.qItems||[]).slice().sort((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===s?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return(0,_t.jsxs)(Lm,{open:n,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:h.palette.background.lightest}},children:[!a&&(0,_t.jsx)(aR,{onChange:d}),a&&(0,_t.jsxs)(nh,{dense:!0,component:"nav",children:[(0,_t.jsxs)(lh,{onClick:()=>l(null),children:[(0,_t.jsx)(c_,{children:(0,_t.jsx)(KI,{})}),(0,_t.jsx)(gh,{children:"Back"})]}),(0,_t.jsx)(VC,{}),(0,_t.jsx)(VI,{component:"div",children:"Aggregation"}),["sum","count","avg","min","max"].map(e=>(0,_t.jsx)(dR,{aggr:e,field:a,onSelect:f},e))]}),!a&&p.length>0&&(0,_t.jsxs)(nh,{dense:!0,component:"nav",style:{background:h.palette.background.lightest},children:[(0,_t.jsx)(hR,{app:r,onSelect:m,type:s,title:"measure"===s?"Measures":"Dimensions",searchTerm:c}),(0,_t.jsx)(VI,{component:"div",style:{backgroundColor:"inherit"},children:"Fields"}),p.map(e=>{const t=$I()(e.qName,c),n=jI()(e.qName,t);return c&&0===t.length?null:(0,_t.jsx)(lR,{field:e,onSelect:m,sub:"measure"===s,parts:n},e.qName)})]})]})}const gR=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter(t=>t.qInfo.qId===e.qLibraryId)[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function pR({items:e,type:n="dimension",label:i="",addLabel:o="Add",onAdded:s,onRemoved:r,canAdd:a=!0}){const[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(null),h=(0,t.useContext)(MI),[u]=BI(h,n);return(0,_t.jsxs)("div",{children:[(0,_t.jsx)(yd,{variant:"overline",children:i}),(0,_t.jsx)(nh,{dense:!0,children:e.map((e,t)=>(0,_t.jsx)(GS,{disableGutters:!0,secondaryAction:(0,_t.jsx)(Uc,{onClick:()=>{r(t)},size:"large",children:(0,_t.jsx)(Zd,{})}),children:(0,_t.jsx)(gh,{children:(0,_t.jsx)(gR,{field:e,libraryItems:u,type:n})})},e.qDef&&e.qDef.cId||t))}),(0,_t.jsx)(Bu,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a,children:o}),l&&(0,_t.jsx)(uR,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?s(e):e&&s("dimension"===n?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:n})]})}function mR({setProperties:e,target:n,properties:i}){const[o,s]=(0,t.useState)([]),r=n.dimensions&&n.dimensions.max&&n.dimensions.max()>1?OI:Yx,a=n.propertyPath.match("/qHyperCube")?Qx:r,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,n.propertyPath),c=(0,t.useMemo)(()=>a({def:n,dc:l,properties:i,dimensions:o}),[l,n,i,o]);return(0,_t.jsxs)("div",{style:{width:"100%"},children:[(0,_t.jsx)(yd,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"},children:n.propertyPath}),(0,_t.jsx)(pR,{onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,r=c.addDimension(n);e(i).then(()=>{s([...o,r])})},onRemoved:t=>{c.removeDimension(t),e(i).then(()=>{s([...o.slice(0,t),...o.slice(t+1)])})},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"},"dimensions"),(0,_t.jsx)(pR,{onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"},"measures")]})}function fR({setProperties:e,sn:t,properties:n}){if(!t)return null;const{targets:i}=t.qae.data;return i.length?(0,_t.jsx)(nh,{children:i.map(t=>(0,_t.jsx)(GS,{divider:!0,disableGutters:!0,children:(0,_t.jsx)(mR,{target:t,properties:n,setProperties:e})},t.propertyPath))}):(0,_t.jsx)(yd,{children:"No data targets found"})}const bR=t.createContext({});function vR(e){return Er("MuiAccordion",e)}const CR=Dr("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),_R=_r(bm,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${CR.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Xa(({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"}},[`&.${CR.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${CR.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Xa(({theme:e})=>({variants:[{props:e=>!e.square,style:{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}}}},{props:e=>!e.disableGutters,style:{[`&.${CR.expanded}`]:{margin:"16px 0"}}}]}))),yR=_r("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),wR=_r("div",{name:"MuiAccordion",slot:"Region"})({}),AR=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:r=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,slots:h={},slotProps:u={},TransitionComponent:g,TransitionProps:p,...m}=i,[f,b]=of({controlled:c,default:r,name:"Accordion",state:"expanded"}),v=t.useCallback(e=>{b(!f),d&&d(e,!f)},[f,d,b]),[C,..._]=t.Children.toArray(o),y=t.useMemo(()=>({expanded:f,disabled:a,disableGutters:l,toggle:v}),[f,a,l,v]),w={...i,disabled:a,disableGutters:l,expanded:f},A=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:s}=e;return Lt({root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},vR,t)})(w),S={slots:{transition:g,...h},slotProps:{transition:p,...u}},[x,k]=Nl("root",{elementType:_R,externalForwardedProps:{...S,...m},className:kt(A.root,s),shouldForwardComponentProp:!0,ownerState:w,ref:n}),[L,E]=Nl("heading",{elementType:yR,externalForwardedProps:S,className:A.heading,ownerState:w}),[D,I]=Nl("transition",{elementType:Gd,externalForwardedProps:S,ownerState:w}),[N,R]=Nl("region",{elementType:wR,externalForwardedProps:S,ownerState:w,className:A.region,additionalProps:{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region"}});return(0,_t.jsxs)(x,{...k,children:[(0,_t.jsx)(L,{...E,children:(0,_t.jsx)(bR.Provider,{value:y,children:C})}),(0,_t.jsx)(D,{in:f,timeout:"auto",...I,children:(0,_t.jsx)(N,{...R,children:_})})]})}),SR=AR;function xR(e){return Er("MuiAccordionSummary",e)}const kR=Dr("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),LR=_r(Lc,{name:"MuiAccordionSummary",slot:"Root"})(Xa(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${kR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${kR.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${kR.expanded}`]:{minHeight:64}}}]}})),ER=_r("span",{name:"MuiAccordionSummary",slot:"Content"})(Xa(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${kR.expanded}`]:{margin:"20px 0"}}}]}))),DR=_r("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(Xa(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${kR.expanded}`]:{transform:"rotate(180deg)"}}))),IR=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:r,focusVisibleClassName:a,onClick:l,slots:c,slotProps:d,...h}=i,{disabled:u=!1,disableGutters:g,expanded:p,toggle:m}=t.useContext(bR),f={...i,expanded:p,disabled:u,disableGutters:g},b=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e;return Lt({root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},xR,t)})(f),v={slots:c,slotProps:d},[C,_]=Nl("root",{ref:n,shouldForwardComponentProp:!0,className:kt(b.root,s),elementType:LR,externalForwardedProps:{...v,...h},ownerState:f,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:u,"aria-expanded":p,focusVisibleClassName:kt(b.focusVisible,a)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{m&&m(e),l&&l(e)})(t)}})}),[y,w]=Nl("content",{className:b.content,elementType:ER,externalForwardedProps:v,ownerState:f}),[A,S]=Nl("expandIconWrapper",{className:b.expandIconWrapper,elementType:DR,externalForwardedProps:v,ownerState:f});return(0,_t.jsxs)(C,{..._,children:[(0,_t.jsx)(y,{...w,children:o}),r&&(0,_t.jsx)(A,{...S,children:r})]})}),NR=IR;function RR(e){return Er("MuiAccordionDetails",e)}Dr("MuiAccordionDetails",["root"]);const TR=_r("div",{name:"MuiAccordionDetails",slot:"Root"})(Xa(({theme:e})=>({padding:e.spacing(1,2,2)}))),MR=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiAccordionDetails"}),{className:i,...o}=n,s=n,r=(e=>{const{classes:t}=e;return Lt({root:["root"]},RR,t)})(s);return(0,_t.jsx)(TR,{className:kt(r.root,i),ref:t,ownerState:s,...o})}),OR=MR,qR=ul((0,_t.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));let PR=null;const BR="AutoComponents",FR={summary:`${BR}-summary`,details:`${BR}-details`,root:`${BR}-root`},WR=_r(ud)(({theme:e})=>({[`& .${FR.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${FR.details}`]:{padding:e.spacing(1)}})),zR=_r(SR)(({theme:e})=>({[`& .${FR.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}})),VR={boolean:function({property:e,value:t,target:n,changed:i}){return(0,_t.jsx)(nf,{control:(0,_t.jsx)(_f,{checked:t,onChange:t=>{n[e]=t.target.checked,i()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:n,target:i,changed:o}){const[s,r]=(0,t.useState)(n);return(0,_t.jsx)(nR,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==n&&(i[e]=s,o())},label:e,value:s})},object:function({property:e,value:t,changed:n,app:i}){return(0,_t.jsxs)(zR,{square:!0,className:FR.root,children:[(0,_t.jsx)(NR,{expandIcon:(0,_t.jsx)(qR,{}),className:FR.summary,children:(0,_t.jsx)(yd,{children:e})}),(0,_t.jsx)(OR,{className:FR.details,children:UR(t,n,i)})]})},number:function({property:e,value:n,target:i,changed:o}){const[s,r]=(0,t.useState)(+n);return(0,_t.jsx)(nR,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==n&&(i[e]=+s,o())},label:e,value:s})},expression:function({property:e,value:n,target:i,changed:o}){const s=n.qStringExpression&&n.qStringExpression.qExpr?n.qStringExpression.qExpr:"",[r,a]=(0,t.useState)(s);return(0,_t.jsx)(nR,{variant:"standard",InputProps:{startAdornment:(0,_t.jsx)(R_,{position:"start",children:"="})},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{r!==n&&(i[e].qStringExpression={qExpr:`=${r}`},o())},label:e,value:r})},variable:function({property:e,value:n,target:i,changed:o,app:s}){const[r,a]=(0,t.useState)(n.name),[l,c]=(0,t.useState)([]);return(0,t.useEffect)(()=>{!async function(){const e=await async function(e){return PR||(PR=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await PR.getLayout()).qVariableList.qItems.map(e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName}))}(s);c(e)}()},[]),0===l.length?(0,_t.jsx)("em",{children:"No variables in app"}):(0,_t.jsx)(_N,{size:"small",fullWidth:!0,children:(0,_t.jsx)(ZN,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:r,renderValue:e=>0===e.length?(0,_t.jsx)("em",{children:"Select a variable"}):e,children:l.map(e=>(0,_t.jsx)(r_,{value:e.value,children:e.label},e.value))})})}},HR=/^q[A-Z]/;let jR=!1;function UR(e,t,n,i){i&&i.PP_EXPRESSIONS&&(jR=!0);const o=Object.keys(e).map(t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(HR.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":jR&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":jR&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown")(e[t],t);return!!VR[n]&&{Component:VR[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}}).filter(Boolean);return(0,_t.jsx)(WR,{container:!0,direction:"column",gap:0,alignItems:"stretch",children:o.map(i=>(0,_t.jsx)(ud,{style:{width:"100%"},children:(0,_t.jsx)(i.Component,{app:n,property:i.property,value:i.value,target:e,changed:t},i.key)},i.key))})}function $R({viz:e,sn:n,isTemp:i,storage:o,flags:s}){const[r,a]=TI(e?.model),l=(0,t.useContext)(MI),[c,d]=(0,t.useState)(!1!==o.get("readFromCache")),h=(0,t.useCallback)(()=>{a(r)},[e,n,r]);return n&&e&&r?(0,_t.jsxs)("div",{style:{minWidth:"250px",padding:"8px"},children:[i&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ud,{item:!0,container:!0,alignItems:"center",children:(0,_t.jsx)(nf,{control:(0,_t.jsx)(_f,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})}),(0,_t.jsx)(VC,{})]}),(0,_t.jsx)(fR,{properties:r,setProperties:a,sn:n}),UR(r,h,l,s)]}):null}function GR(e){return Er("MuiDialog",e)}const KR=Dr("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),QR=t.createContext({}),YR=_r(em,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),ZR=_r(gm,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),XR=_r("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Vr(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),JR=_r(bm,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Vr(n.scroll)}`],t[`paperWidth${Vr(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Xa(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${KR.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${KR.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${KR.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),eT=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiDialog"}),o=Ur(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":r,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:d,children:h,className:u,disableEscapeKeyDown:g=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:f="sm",onClick:b,onClose:v,open:C,PaperComponent:_=bm,PaperProps:y={},role:w="dialog",scroll:A="paper",slots:S={},slotProps:x={},TransitionComponent:k=Yp,transitionDuration:L=s,TransitionProps:E,...D}=i,I={...i,disableEscapeKeyDown:g,fullScreen:p,fullWidth:m,maxWidth:f,scroll:A},N=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:s}=e;return Lt({root:["root"],backdrop:["backdrop"],container:["container",`scroll${Vr(n)}`],paper:["paper",`paperScroll${Vr(n)}`,`paperWidth${Vr(String(i))}`,o&&"paperFullWidth",s&&"paperFullScreen"]},GR,t)})(I),R=t.useRef(),T=na(a),M=t.useMemo(()=>({titleId:T}),[T]),O={slots:{transition:k,...S},slotProps:{transition:E,paper:y,backdrop:d,...x}},[q,P]=Nl("root",{elementType:ZR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:kt(N.root,u),ref:n}),[B,F]=Nl("backdrop",{elementType:YR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:N.backdrop}),[W,z]=Nl("paper",{elementType:JR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:N.paper,additionalProps:{elevation:24,role:w,"aria-describedby":r,"aria-labelledby":T,"aria-modal":l,tabIndex:-1,[Wp]:""}}),[V,H]=Nl("container",{elementType:XR,externalForwardedProps:O,ownerState:I,className:N.container}),[j,U]=Nl("transition",{elementType:Yp,externalForwardedProps:O,ownerState:I,additionalProps:{appear:!0,in:C,timeout:L,role:"presentation"}});return(0,_t.jsx)(q,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:L,as:c,...F}},disableEscapeKeyDown:g,onClose:v,open:C,onClick:e=>{b&&b(e),R.current&&(R.current=null,v&&v(e,"backdropClick"))},...P,...D,children:(0,_t.jsx)(j,{...U,children:(0,_t.jsx)(V,{onMouseDown:e=>{R.current=e.target===e.currentTarget},...H,children:(0,_t.jsx)(W,{as:_,...z,children:(0,_t.jsx)(QR.Provider,{value:M,children:h})})})})})}),tT=eT;function nT(e){return Er("MuiDialogTitle",e)}const iT=Dr("MuiDialogTitle",["root"]),oT=_r(yd,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),sT=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiDialogTitle"}),{className:o,id:s,...r}=i,a=i,l=(e=>{const{classes:t}=e;return Lt({root:["root"]},nT,t)})(a),{titleId:c=s}=t.useContext(QR);return(0,_t.jsx)(oT,{component:"h2",className:kt(l.root,o),ownerState:a,ref:n,variant:"h6",id:s??c,...r})}),rT=sT;function aT(e){return Er("MuiDialogContent",e)}Dr("MuiDialogContent",["root","dividers"]);const lT=_r("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xa(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${iT.root} + &`]:{paddingTop:0}}}]}))),cT=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=n,r={...n,dividers:o},a=(e=>{const{classes:t,dividers:n}=e;return Lt({root:["root",n&&"dividers"]},aT,t)})(r);return(0,_t.jsx)(lT,{className:kt(a.root,i),ownerState:r,ref:t,...s})}),dT=cT;function hT(e){return Er("MuiDialogActions",e)}Dr("MuiDialogActions",["root","spacing"]);const uT=_r("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),gT=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=n,r={...n,disableSpacing:o},a=(e=>{const{classes:t,disableSpacing:n}=e;return Lt({root:["root",!n&&"spacing"]},hT,t)})(r);return(0,_t.jsx)(uT,{className:kt(a.root,i),ownerState:r,ref:t,...s})}),pT=gT;n(13007),n(57625),n(58632),n(12436),n(75158),n(43372),n(48157),n(61139),n(81945),n(82481),n(62653),n(67669),n(66047),n(44551),n(66164),n(17616),n(21418),n(69720),n(45214),n(1023),n(93006),n(89359),n(40281),n(43950),n(18601),n(39640),n(16794),n(73538),n(26472),n(15045),n(2827),n(97731),n(7543),n(27873),n(57359),n(25951),n(99327),n(13232),n(65967),n(22384),n(85423),n(65241),n(62135),n(42568),n(13729),n(57334),n(45069),n(25864),n(63997),n(86607),n(84677),n(66215),n(12345),n(6803),n(31672),n(16013),n(15521),n(67607),n(34917),n(64910),n(27937),n(6469),n(42900),n(44043),n(65418),n(49289),n(55020),n(97293),n(77664),n(6291),n(81182),n(23316),n(62283);var mT,fT,bT,vT,CT,_T,yT,wT=n(6085),AT=Object.defineProperty,ST=(e,t,n)=>((e,t,n)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);(_T||(_T={})).create=function(e){return e},function(e){function t(e){return-32099<=e&&e<=-32e3}e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603,e.isServerError=t,e.serverError=function(e){if(!t(e))throw new Error("Invalid range for a server error.");return e},e.unexpectedServerError=-32e3,e.isApplicationError=function(e){return!0},e.applicationError=function(e){return e},e.genericApplicationError=-320100}(yT||(yT={}));var xT=class{constructor(){ST(this,"listeners",new Set),ST(this,"event",e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},kT=class{constructor(e){ST(this,"_value"),ST(this,"eventEmitter"),this._value=e,this.eventEmitter=new xT}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function LT(e,t,n){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,n),{dispose:()=>e.delete(t)})}var ET,DT,IT=class{constructor(){ST(this,"_state","none"),ST(this,"promise"),ST(this,"resolve",()=>{}),ST(this,"reject",()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}},NT=(mT=class{constructor(){ST(this,"_unprocessedMessages",[]),ST(this,"_messageListener"),ST(this,"id",mT.id++),ST(this,"_state",new kT({state:"open"})),ST(this,"state",this._state)}setListener(e){if(this._messageListener=e,e)for(;this._unprocessedMessages.length>0&&void 0!==this._messageListener;){const e=this._unprocessedMessages.shift();this._messageListener(e)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){0===this._unprocessedMessages.length&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:"closed",error:void 0}}log(e){return new NT(this,e??new RT)}},ST(mT,"id",0),class{constructor(e,t){ST(this,"baseStream"),ST(this,"logger"),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){void 0!==e?this.baseStream.setListener(t=>{this.logger.log(this.baseStream,"incoming",t),e(t)}):this.baseStream.setListener(void 0)}send(e){return this.logger.log(this.baseStream,"outgoing",e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}}),RT=class{log(e,t,n){const i="incoming"===t?"<-":"->";console.log(`${i} [${e.toString()}] ${JSON.stringify(n)}`)}},TT=class e{constructor(e){ST(this,"connect"),this.connect=e}mapContext(t){return new e(e=>this.connect(e?function(e,t){return{handleNotification:(n,i)=>e.handleNotification(n,t(i)),handleRequest:(n,i,o)=>e.handleRequest(n,i,t(o))}}(e,t):void 0))}},MT=class e{constructor(e,t,n){ST(this,"_stream"),ST(this,"_listener"),ST(this,"_logger"),ST(this,"_unprocessedResponses",new Map),ST(this,"_lastUsedRequestId",0),this._stream=e,this._listener=t,this._logger=n,this._stream.setListener(e=>{void 0!==e.method?void 0===e.id?this._processNotification(e):this._processRequest(e):this._processResponse(e)})}static createChannel(t,n){let i=!1;return new TT(o=>{if(i)throw new Error(`A channel to the stream ${t} was already constructed!`);return i=!0,new e(t,o,n)})}get state(){return this._stream.state}async _processNotification(e){if(void 0!==e.id)throw new Error;if(this._listener)try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}else this._logger&&this._logger.debug({text:"Notification ignored",message:e})}async _processRequest(e){if(void 0===e.id)throw new Error;let t,n;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:yT.internalError,message:"An unexpected exception was thrown.",data:void 0}}}else this._logger&&this._logger.debug({text:"Received request even though not listening for requests",message:e}),t={error:{code:yT.methodNotFound,message:"This endpoint does not listen for requests or notifications.",data:void 0}};n="result"in t?{jsonrpc:"2.0",id:e.id,result:t.result}:{jsonrpc:"2.0",id:e.id,error:t.error},await this._stream.send(n)}_processResponse(e){const t=""+e.id,n=this._unprocessedResponses.get(t);n?(this._unprocessedResponses.delete(t),n(e)):this._logger&&this._logger.debug({text:"Got an unexpected response message",message:e})}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,n){const i={jsonrpc:"2.0",id:this._newRequestId(),method:e.method,params:e.params||void 0};return n&&n(i.id),new Promise((e,t)=>{const n=""+i.id;this._unprocessedResponses.set(n,n=>{"result"in n?e({result:n.result}):(n.error||t(new Error("Response had neither 'result' nor 'error' field set.")),e({error:n.error}))}),this._stream.send(i).then(void 0,e=>{this._unprocessedResponses.delete(n),t(e)})})}sendNotification(e,t){const n={jsonrpc:"2.0",id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(n)}toString(){return"StreamChannel/"+this._stream.toString()}};(DT=ET||(ET={})).sAny=function(){return{deserializeFromJson:e=>({hasErrors:!1,value:e}),serializeToJson:e=>e}},DT.sEmptyObject=function(){return{deserializeFromJson:e=>({hasErrors:!1,value:{}}),serializeToJson:e=>({})}},DT.sVoidFromNull=function(){return{deserializeFromJson:e=>({hasErrors:!1,value:void 0}),serializeToJson:e=>null}};const OT=Symbol("OptionalMethodNotFound");var qT=class{contextualize(e){return new PT(this,e)}},PT=class extends qT{constructor(e,t){super(),ST(this,"underylingTypedChannel"),ST(this,"converters"),this.underylingTypedChannel=e,this.converters=t}async request(e,t,n){const i=await this.converters.getSendContext(n);return this.underylingTypedChannel.request(e,t,i)}async notify(e,t,n){const i=await this.converters.getSendContext(n);return this.underylingTypedChannel.notify(e,t,i)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(e,n)=>await t(e,await this.converters.getNewContext(n)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(e,n,i)=>await t(e,n,await this.converters.getNewContext(i)))}},BT=class e extends qT{constructor(e,t={}){super(),ST(this,"channelCtor"),ST(this,"_requestSender"),ST(this,"_handler",new Map),ST(this,"_unknownNotificationHandler",new Set),ST(this,"_timeout"),ST(this,"sendExceptionDetails",!1),ST(this,"_logger"),ST(this,"listeningDeferred",new IT),ST(this,"onListening",this.listeningDeferred.promise),ST(this,"_requestDidErrorEventEmitter",new xT),ST(this,"onRequestDidError",this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=function(e,t){const n=setTimeout(t,1e3);return{dispose:()=>clearTimeout(n)}}(0,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,n={}){return new e(MT.createChannel(t,n.logger),n)}startListen(){if(this._requestSender)throw new Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&(this._timeout.dispose(),this._timeout=void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,n)=>this.handleRequest(e,t,n),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw new Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,n){const i=this._handler.get(e.method);if(!i)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:yT.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if("request"!=i.kind){const t=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e}}),{error:{code:yT.invalidRequest,message:t,data:{method:e.method}}}}const o=i.requestType.paramsSerializer.deserializeFromJson(e.params);if(o.hasErrors){const t=`Got invalid params: ${o.errorMessage}`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e,errorMessage:o.errorMessage}}),{error:{code:yT.invalidParams,message:t,data:{errors:o.errorMessage}}}}{const s=o.value;let r;try{const e=await i.handler(s,t,n);if("error"in e||"errorMessage"in e){const t=e.error?i.requestType.errorSerializer.serializeToJson(e.error):void 0;r={error:{code:e.errorCode||yT.genericApplicationError,message:e.errorMessage||"An error was returned",data:t}}}else r={result:i.requestType.resultSerializer.serializeToJson(e.ok)}}catch(t){t instanceof WT?r={error:{code:t.code,message:t.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${t}.`,exception:t,data:{requestObject:e}}),r={error:{code:yT.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${t}.`:"Server has thrown an unexpected exception"}})}return r}}async handleNotification(e,t){const n=this._handler.get(e.method);if(!n){for(const t of this._unknownNotificationHandler)t(e);return void(0===this._unknownNotificationHandler.size&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}}))}if("notification"!=n.kind)return void(this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}}));const i=n.notificationType.paramsSerializer.deserializeFromJson(e.params);if(i.hasErrors)return void(this._logger&&this._logger.debug({text:`Got invalid params: ${i}`,data:{requestObject:e,errorMessage:i.errorMessage}}));const o=i.value;for(const i of n.handlers)try{i(o,t)}catch(t){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${t}.`,exception:t,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return LT(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw new Error(`Handler with method "${e.method}" already registered.`);return LT(this._handler,e.method,{kind:"request",requestType:e,handler:t})}registerNotificationHandler(e,t){let n=this._handler.get(e.method);if(n){if("notification"!==n.kind)throw new Error(`Method "${e.method}" was already registered as request handler.`);if(n.notificationType!==e)throw new Error(`Method "${e.method}" was registered for a different type.`)}else n={kind:"notification",notificationType:e,handlers:new Set},this._handler.set(e.method,n);return LT(n.handlers,t)}getRegisteredTypes(){const e=[];for(const t of this._handler.values())"notification"===t.kind?e.push(t.notificationType):"request"===t.kind&&e.push(t.requestType);return e}async request(e,t,n){if(!this.checkChannel(this._requestSender))throw new Error("Impossible");const i=e.paramsSerializer.serializeToJson(t);FT(i);const o=await this._requestSender.sendRequest({method:e.method,params:i},n);if("error"in o){if(e.isOptional&&o.error.code===yT.methodNotFound)return OT;let t;if(void 0!==o.error.data){const n=e.errorSerializer.deserializeFromJson(o.error.data);if(n.hasErrors)throw new Error(n.errorMessage);t=n.value}else t=void 0;const n=new WT(o.error.message,t,o.error.code);throw this._requestDidErrorEventEmitter.fire({error:n}),n}{const t=e.resultSerializer.deserializeFromJson(o.result);if(t.hasErrors)throw new Error("Could not deserialize response: "+t.errorMessage+`\n\n${JSON.stringify(o,null,2)}`);return t.value}}async notify(e,t,n){if(!this.checkChannel(this._requestSender))throw new Error;const i=e.paramsSerializer.serializeToJson(t);FT(i),this._requestSender.sendNotification({method:e.method,params:i},n)}};function FT(e){if(null!==e&&Array.isArray(e)&&"object"!=typeof e)throw new Error("Invalid value! Only null, array and object is allowed.")}var WT=class e extends Error{constructor(t,n,i=yT.genericApplicationError){super(t),ST(this,"data"),ST(this,"code"),this.data=n,this.code=i,Object.setPrototypeOf(this,e.prototype)}},zT=class e{constructor(e,t,n,i,o=!1){ST(this,"method"),ST(this,"paramsSerializer"),ST(this,"resultSerializer"),ST(this,"errorSerializer"),ST(this,"isOptional"),ST(this,"kind","request"),this.method=e,this.paramsSerializer=t,this.resultSerializer=n,this.errorSerializer=i,this.isOptional=o}withMethod(t){return new e(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new e(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},VT=class e{constructor(e,t){ST(this,"method"),ST(this,"paramsSerializer"),ST(this,"kind","notification"),this.method=e,this.paramsSerializer=t}withMethod(t){return new e(t,this.paramsSerializer)}};function HT(e){return new zT((e||{}).method,ET.sAny(),ET.sAny(),ET.sAny())}function jT(e){return new VT((e||{}).method,ET.sAny())}const UT=Symbol();var $T=(fT=UT,bT=class{constructor(e){ST(this,"error"),ST(this,fT),this.error=e}},ST(bT,"factory",e=>new bT(e)),bT);function GT(e){const t={};for(const[n,i]of Object.entries(e)){const e=i.method?i.method:n;t[n]=i.withMethod(e)}return t}var KT=class e{constructor(e=[],t,n){ST(this,"tags"),ST(this,"server"),ST(this,"client"),this.tags=e,this.server=t,this.client=n}_onlyDesignTime(){return new Error("This property is not meant to be accessed at runtime")}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,n,i){const o=this.buildCounterpart(e,n),s=this.registerHandlers(e,t,i,o);return{counterpart:o,dispose:()=>s.dispose()}}buildCounterpart(e,t){const n={};for(const[i,o]of Object.entries(t)){let t;t="request"===o.kind?o.isOptional?async(t,n)=>{void 0===t&&(t={});try{return await e.request(o,t,n)}catch(e){if(e&&e.code===yT.methodNotFound)return OT;throw e}}:(t,n)=>(void 0===t&&(t={}),e.request(o,t,n)):(t,n)=>(void 0===t&&(t={}),e.notify(o,t,n)),n[i]=t}return n}registerHandlers(e,t,n,i){const o=[];for(const[s,r]of Object.entries(t))if("request"===r.kind){let t=n[s];if(!t)continue;const a=this.createRequestHandler(i,t);o.push(e.registerRequestHandler(r,a))}else{const t=n[s];t&&o.push(e.registerNotificationHandler(r,(e,n)=>{t(e,{context:n,counterpart:i})}))}return{dispose:()=>o.forEach(e=>e.dispose())}}createRequestHandler(e,t){return async(n,i,o)=>{const s=await t(n,{context:o,counterpart:e,newErr:$T.factory,requestId:i});return s instanceof $T?s.error:{ok:s}}}static getServerFromStream(e,t,n,i){const o=BT.fromTransport(t,n),{server:s}=e.getServer(o,i);return o.startListen(),{channel:o,server:s}}static registerServerToStream(e,t,n,i){const o=BT.fromTransport(t,n),{client:s}=e.registerServer(o,i);return o.startListen(),{channel:o,client:s}}getServer(e,t){const{counterpart:n,dispose:i}=this.getInterface(e,this.client,this.server,t);return{server:n,dispose:i}}registerServer(e,t){const{counterpart:n,dispose:i}=this.getInterface(e,this.server,this.client,t);return{client:n,dispose:i}}withContext(){return new e(this.tags,this.server,this.client)}};let QT=function(e){return e.Comment="comment",e.Imports="imports",e.Region="region",e}({}),YT=function(e){return e[e.File=1]="File",e[e.Module=2]="Module",e[e.Namespace=3]="Namespace",e[e.Package=4]="Package",e[e.Class=5]="Class",e[e.Method=6]="Method",e[e.Property=7]="Property",e[e.Field=8]="Field",e[e.Constructor=9]="Constructor",e[e.Enum=10]="Enum",e[e.Interface=11]="Interface",e[e.Function=12]="Function",e[e.Variable=13]="Variable",e[e.Constant=14]="Constant",e[e.String=15]="String",e[e.Number=16]="Number",e[e.Boolean=17]="Boolean",e[e.Array=18]="Array",e[e.Object=19]="Object",e[e.Key=20]="Key",e[e.Null=21]="Null",e[e.EnumMember=22]="EnumMember",e[e.Struct=23]="Struct",e[e.Event=24]="Event",e[e.Operator=25]="Operator",e[e.TypeParameter=26]="TypeParameter",e}({}),ZT=function(e){return e[e.Deprecated=1]="Deprecated",e}({}),XT=function(e){return e[e.Type=1]="Type",e[e.Parameter=2]="Parameter",e}({}),JT=function(e){return e[e.Text=1]="Text",e[e.Method=2]="Method",e[e.Function=3]="Function",e[e.Constructor=4]="Constructor",e[e.Field=5]="Field",e[e.Variable=6]="Variable",e[e.Class=7]="Class",e[e.Interface=8]="Interface",e[e.Module=9]="Module",e[e.Property=10]="Property",e[e.Unit=11]="Unit",e[e.Value=12]="Value",e[e.Enum=13]="Enum",e[e.Keyword=14]="Keyword",e[e.Snippet=15]="Snippet",e[e.Color=16]="Color",e[e.File=17]="File",e[e.Reference=18]="Reference",e[e.Folder=19]="Folder",e[e.EnumMember=20]="EnumMember",e[e.Constant=21]="Constant",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter",e}({}),eM=function(e){return e[e.Deprecated=1]="Deprecated",e}({}),tM=function(e){return e[e.PlainText=1]="PlainText",e[e.Snippet=2]="Snippet",e}({}),nM=function(e){return e[e.Text=1]="Text",e[e.Read=2]="Read",e[e.Write=3]="Write",e}({}),iM=function(e){return e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e}({}),oM=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e}({}),sM=function(e){return e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated",e}({}),rM=function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e}({}),aM=function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange",e}({}),lM=function(e){return e[e.Invoked=1]="Invoked",e[e.Automatic=2]="Automatic",e}({});var cM=class{constructor(e){this.method=e}};const dM={textDocumentImplementation:new cM("textDocument/implementation"),textDocumentTypeDefinition:new cM("textDocument/typeDefinition"),textDocumentDocumentColor:new cM("textDocument/documentColor"),textDocumentColorPresentation:new cM("textDocument/colorPresentation"),textDocumentFoldingRange:new cM("textDocument/foldingRange"),textDocumentDeclaration:new cM("textDocument/declaration"),textDocumentSelectionRange:new cM("textDocument/selectionRange"),textDocumentPrepareCallHierarchy:new cM("textDocument/prepareCallHierarchy"),textDocumentSemanticTokensFull:new cM("textDocument/semanticTokens/full"),textDocumentSemanticTokensFullDelta:new cM("textDocument/semanticTokens/full/delta"),textDocumentLinkedEditingRange:new cM("textDocument/linkedEditingRange"),workspaceWillCreateFiles:new cM("workspace/willCreateFiles"),workspaceWillRenameFiles:new cM("workspace/willRenameFiles"),workspaceWillDeleteFiles:new cM("workspace/willDeleteFiles"),textDocumentMoniker:new cM("textDocument/moniker"),textDocumentPrepareTypeHierarchy:new cM("textDocument/prepareTypeHierarchy"),textDocumentInlineValue:new cM("textDocument/inlineValue"),textDocumentInlayHint:new cM("textDocument/inlayHint"),textDocumentDiagnostic:new cM("textDocument/diagnostic"),textDocumentInlineCompletion:new cM("textDocument/inlineCompletion"),textDocumentWillSaveWaitUntil:new cM("textDocument/willSaveWaitUntil"),textDocumentCompletion:new cM("textDocument/completion"),textDocumentHover:new cM("textDocument/hover"),textDocumentSignatureHelp:new cM("textDocument/signatureHelp"),textDocumentDefinition:new cM("textDocument/definition"),textDocumentReferences:new cM("textDocument/references"),textDocumentDocumentHighlight:new cM("textDocument/documentHighlight"),textDocumentDocumentSymbol:new cM("textDocument/documentSymbol"),textDocumentCodeAction:new cM("textDocument/codeAction"),workspaceSymbol:new cM("workspace/symbol"),textDocumentCodeLens:new cM("textDocument/codeLens"),textDocumentDocumentLink:new cM("textDocument/documentLink"),textDocumentFormatting:new cM("textDocument/formatting"),textDocumentRangeFormatting:new cM("textDocument/rangeFormatting"),textDocumentRangesFormatting:new cM("textDocument/rangesFormatting"),textDocumentOnTypeFormatting:new cM("textDocument/onTypeFormatting"),textDocumentRename:new cM("textDocument/rename"),workspaceExecuteCommand:new cM("workspace/executeCommand"),workspaceDidCreateFiles:new cM("workspace/didCreateFiles"),workspaceDidRenameFiles:new cM("workspace/didRenameFiles"),workspaceDidDeleteFiles:new cM("workspace/didDeleteFiles"),workspaceDidChangeConfiguration:new cM("workspace/didChangeConfiguration"),textDocumentDidOpen:new cM("textDocument/didOpen"),textDocumentDidChange:new cM("textDocument/didChange"),textDocumentDidClose:new cM("textDocument/didClose"),textDocumentDidSave:new cM("textDocument/didSave"),textDocumentWillSave:new cM("textDocument/willSave"),workspaceDidChangeWatchedFiles:new cM("workspace/didChangeWatchedFiles")};!function(e){const t=GT(e.server),n=GT(e.client);new KT(e.tags||[],t,n)}({server:{textDocumentImplementation:HT({method:"textDocument/implementation"}),textDocumentTypeDefinition:HT({method:"textDocument/typeDefinition"}),textDocumentDocumentColor:HT({method:"textDocument/documentColor"}),textDocumentColorPresentation:HT({method:"textDocument/colorPresentation"}),textDocumentFoldingRange:HT({method:"textDocument/foldingRange"}),textDocumentDeclaration:HT({method:"textDocument/declaration"}),textDocumentSelectionRange:HT({method:"textDocument/selectionRange"}),textDocumentPrepareCallHierarchy:HT({method:"textDocument/prepareCallHierarchy"}),callHierarchyIncomingCalls:HT({method:"callHierarchy/incomingCalls"}),callHierarchyOutgoingCalls:HT({method:"callHierarchy/outgoingCalls"}),textDocumentSemanticTokensFull:HT({method:"textDocument/semanticTokens/full"}),textDocumentSemanticTokensFullDelta:HT({method:"textDocument/semanticTokens/full/delta"}),textDocumentSemanticTokensRange:HT({method:"textDocument/semanticTokens/range"}),textDocumentLinkedEditingRange:HT({method:"textDocument/linkedEditingRange"}),workspaceWillCreateFiles:HT({method:"workspace/willCreateFiles"}),workspaceWillRenameFiles:HT({method:"workspace/willRenameFiles"}),workspaceWillDeleteFiles:HT({method:"workspace/willDeleteFiles"}),textDocumentMoniker:HT({method:"textDocument/moniker"}),textDocumentPrepareTypeHierarchy:HT({method:"textDocument/prepareTypeHierarchy"}),typeHierarchySupertypes:HT({method:"typeHierarchy/supertypes"}),typeHierarchySubtypes:HT({method:"typeHierarchy/subtypes"}),textDocumentInlineValue:HT({method:"textDocument/inlineValue"}),textDocumentInlayHint:HT({method:"textDocument/inlayHint"}),inlayHintResolve:HT({method:"inlayHint/resolve"}),textDocumentDiagnostic:HT({method:"textDocument/diagnostic"}),workspaceDiagnostic:HT({method:"workspace/diagnostic"}),textDocumentInlineCompletion:HT({method:"textDocument/inlineCompletion"}),initialize:HT({method:"initialize"}),shutdown:HT({method:"shutdown"}),textDocumentWillSaveWaitUntil:HT({method:"textDocument/willSaveWaitUntil"}),textDocumentCompletion:HT({method:"textDocument/completion"}),completionItemResolve:HT({method:"completionItem/resolve"}),textDocumentHover:HT({method:"textDocument/hover"}),textDocumentSignatureHelp:HT({method:"textDocument/signatureHelp"}),textDocumentDefinition:HT({method:"textDocument/definition"}),textDocumentReferences:HT({method:"textDocument/references"}),textDocumentDocumentHighlight:HT({method:"textDocument/documentHighlight"}),textDocumentDocumentSymbol:HT({method:"textDocument/documentSymbol"}),textDocumentCodeAction:HT({method:"textDocument/codeAction"}),codeActionResolve:HT({method:"codeAction/resolve"}),workspaceSymbol:HT({method:"workspace/symbol"}),workspaceSymbolResolve:HT({method:"workspaceSymbol/resolve"}),textDocumentCodeLens:HT({method:"textDocument/codeLens"}),codeLensResolve:HT({method:"codeLens/resolve"}),textDocumentDocumentLink:HT({method:"textDocument/documentLink"}),documentLinkResolve:HT({method:"documentLink/resolve"}),textDocumentFormatting:HT({method:"textDocument/formatting"}),textDocumentRangeFormatting:HT({method:"textDocument/rangeFormatting"}),textDocumentRangesFormatting:HT({method:"textDocument/rangesFormatting"}),textDocumentOnTypeFormatting:HT({method:"textDocument/onTypeFormatting"}),textDocumentRename:HT({method:"textDocument/rename"}),textDocumentPrepareRename:HT({method:"textDocument/prepareRename"}),workspaceExecuteCommand:HT({method:"workspace/executeCommand"}),workspaceDidChangeWorkspaceFolders:jT({method:"workspace/didChangeWorkspaceFolders"}),windowWorkDoneProgressCancel:jT({method:"window/workDoneProgress/cancel"}),workspaceDidCreateFiles:jT({method:"workspace/didCreateFiles"}),workspaceDidRenameFiles:jT({method:"workspace/didRenameFiles"}),workspaceDidDeleteFiles:jT({method:"workspace/didDeleteFiles"}),notebookDocumentDidOpen:jT({method:"notebookDocument/didOpen"}),notebookDocumentDidChange:jT({method:"notebookDocument/didChange"}),notebookDocumentDidSave:jT({method:"notebookDocument/didSave"}),notebookDocumentDidClose:jT({method:"notebookDocument/didClose"}),initialized:jT({method:"initialized"}),exit:jT({method:"exit"}),workspaceDidChangeConfiguration:jT({method:"workspace/didChangeConfiguration"}),textDocumentDidOpen:jT({method:"textDocument/didOpen"}),textDocumentDidChange:jT({method:"textDocument/didChange"}),textDocumentDidClose:jT({method:"textDocument/didClose"}),textDocumentDidSave:jT({method:"textDocument/didSave"}),textDocumentWillSave:jT({method:"textDocument/willSave"}),workspaceDidChangeWatchedFiles:jT({method:"workspace/didChangeWatchedFiles"}),setTrace:jT({method:"$/setTrace"}),cancelRequest:jT({method:"$/cancelRequest"}),progress:jT({method:"$/progress"})},client:{workspaceWorkspaceFolders:HT({method:"workspace/workspaceFolders"}).optional(),workspaceConfiguration:HT({method:"workspace/configuration"}).optional(),workspaceFoldingRangeRefresh:HT({method:"workspace/foldingRange/refresh"}).optional(),windowWorkDoneProgressCreate:HT({method:"window/workDoneProgress/create"}).optional(),workspaceSemanticTokensRefresh:HT({method:"workspace/semanticTokens/refresh"}).optional(),windowShowDocument:HT({method:"window/showDocument"}).optional(),workspaceInlineValueRefresh:HT({method:"workspace/inlineValue/refresh"}).optional(),workspaceInlayHintRefresh:HT({method:"workspace/inlayHint/refresh"}).optional(),workspaceDiagnosticRefresh:HT({method:"workspace/diagnostic/refresh"}).optional(),clientRegisterCapability:HT({method:"client/registerCapability"}).optional(),clientUnregisterCapability:HT({method:"client/unregisterCapability"}).optional(),windowShowMessageRequest:HT({method:"window/showMessageRequest"}).optional(),workspaceCodeLensRefresh:HT({method:"workspace/codeLens/refresh"}).optional(),workspaceApplyEdit:HT({method:"workspace/applyEdit"}).optional(),windowShowMessage:jT({method:"window/showMessage"}),windowLogMessage:jT({method:"window/logMessage"}),telemetryEvent:jT({method:"telemetry/event"}),textDocumentPublishDiagnostics:jT({method:"textDocument/publishDiagnostics"}),logTrace:jT({method:"$/logTrace"}),cancelRequest:jT({method:"$/cancelRequest"}),progress:jT({method:"$/progress"})}}),vT=class{constructor(){ST(this,"_store",new hM)}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},ST(vT,"None",Object.freeze({dispose(){}}));var hM=(CT=class{constructor(){ST(this,"_toDispose",new Set),ST(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(0!==this._toDispose.size)try{for(const e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?CT.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}},ST(CT,"DISABLE_DISPOSED_WARNING",!1),CT);iM.Empty,iM.QuickFix,iM.Refactor,iM.RefactorExtract,iM.RefactorInline,iM.RefactorRewrite,iM.Source,iM.SourceOrganizeImports,iM.SourceFixAll,wT.eo.CodeActionTriggerType.Invoke,lM.Invoked,wT.eo.CodeActionTriggerType.Auto,lM.Automatic,JT.Text,wT.eo.CompletionItemKind.Text,JT.Method,wT.eo.CompletionItemKind.Method,JT.Function,wT.eo.CompletionItemKind.Function,JT.Constructor,wT.eo.CompletionItemKind.Constructor,JT.Field,wT.eo.CompletionItemKind.Field,JT.Variable,wT.eo.CompletionItemKind.Variable,JT.Class,wT.eo.CompletionItemKind.Class,JT.Interface,wT.eo.CompletionItemKind.Interface,JT.Module,wT.eo.CompletionItemKind.Module,JT.Property,wT.eo.CompletionItemKind.Property,JT.Unit,wT.eo.CompletionItemKind.Unit,JT.Value,wT.eo.CompletionItemKind.Value,JT.Enum,wT.eo.CompletionItemKind.Enum,JT.Keyword,wT.eo.CompletionItemKind.Keyword,JT.Snippet,wT.eo.CompletionItemKind.Snippet,JT.Color,wT.eo.CompletionItemKind.Color,JT.File,wT.eo.CompletionItemKind.File,JT.Reference,wT.eo.CompletionItemKind.Reference,JT.Folder,wT.eo.CompletionItemKind.Folder,JT.EnumMember,wT.eo.CompletionItemKind.EnumMember,JT.Constant,wT.eo.CompletionItemKind.Constant,JT.Struct,wT.eo.CompletionItemKind.Struct,JT.Event,wT.eo.CompletionItemKind.Event,JT.Operator,wT.eo.CompletionItemKind.Operator,JT.TypeParameter,wT.eo.CompletionItemKind.TypeParameter,eM.Deprecated,wT.eo.CompletionItemTag.Deprecated,wT.eo.CompletionTriggerKind.Invoke,rM.Invoked,wT.eo.CompletionTriggerKind.TriggerCharacter,rM.TriggerCharacter,wT.eo.CompletionTriggerKind.TriggerForIncompleteCompletions,rM.TriggerForIncompleteCompletions,tM.Snippet,wT.eo.CompletionItemInsertTextRule.InsertAsSnippet,YT.File,wT.eo.SymbolKind.File,YT.Module,wT.eo.SymbolKind.Module,YT.Namespace,wT.eo.SymbolKind.Namespace,YT.Package,wT.eo.SymbolKind.Package,YT.Class,wT.eo.SymbolKind.Class,YT.Method,wT.eo.SymbolKind.Method,YT.Property,wT.eo.SymbolKind.Property,YT.Field,wT.eo.SymbolKind.Field,YT.Constructor,wT.eo.SymbolKind.Constructor,YT.Enum,wT.eo.SymbolKind.Enum,YT.Interface,wT.eo.SymbolKind.Interface,YT.Function,wT.eo.SymbolKind.Function,YT.Variable,wT.eo.SymbolKind.Variable,YT.Constant,wT.eo.SymbolKind.Constant,YT.String,wT.eo.SymbolKind.String,YT.Number,wT.eo.SymbolKind.Number,YT.Boolean,wT.eo.SymbolKind.Boolean,YT.Array,wT.eo.SymbolKind.Array,YT.Object,wT.eo.SymbolKind.Object,YT.Key,wT.eo.SymbolKind.Key,YT.Null,wT.eo.SymbolKind.Null,YT.EnumMember,wT.eo.SymbolKind.EnumMember,YT.Struct,wT.eo.SymbolKind.Struct,YT.Event,wT.eo.SymbolKind.Event,YT.Operator,wT.eo.SymbolKind.Operator,YT.TypeParameter,wT.eo.SymbolKind.TypeParameter,ZT.Deprecated,wT.eo.SymbolTag.Deprecated,nM.Text,wT.eo.DocumentHighlightKind.Text,nM.Read,wT.eo.DocumentHighlightKind.Read,nM.Write,wT.eo.DocumentHighlightKind.Write,QT.Comment,wT.eo.FoldingRangeKind.Comment,QT.Imports,wT.eo.FoldingRangeKind.Imports,QT.Region,wT.eo.FoldingRangeKind.Region,wT.cj.Error,oM.Error,wT.cj.Warning,oM.Warning,wT.cj.Info,oM.Information,wT.cj.Hint,oM.Hint,oM.Error,wT.cj.Error,oM.Warning,wT.cj.Warning,oM.Information,wT.cj.Info,oM.Hint,wT.cj.Hint,sM.Unnecessary,wT.d_.Unnecessary,sM.Deprecated,wT.d_.Deprecated,wT.eo.SignatureHelpTriggerKind.Invoke,aM.Invoked,wT.eo.SignatureHelpTriggerKind.TriggerCharacter,aM.TriggerCharacter,wT.eo.SignatureHelpTriggerKind.ContentChange,aM.ContentChange,XT.Type,wT.eo.InlayHintKind.Type,XT.Parameter,wT.eo.InlayHintKind.Parameter,new Map([...Object.values(dM)].map(e=>[e.method,e])),"undefined"!=typeof WebSocket?WebSocket:"undefined"!=typeof MozWebSocket?MozWebSocket:void 0!==n.g?n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(self.WebSocket||self.MozWebSocket);const uM={},gM={};class pM{static getOrCreate(e){return gM[e]||(gM[e]=new pM(e)),gM[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,uM[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}}function mM(e){const t=e.id;uM[t]=e,wT.eo.register(e);const n=pM.getOrCreate(t);wT.eo.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),wT.eo.onLanguageEncountered(t,async()=>{const e=await n.load();wT.eo.setLanguageConfiguration(t,e.conf)})}mM({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>n.e(9063).then(n.bind(n,49063))}),mM({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>n.e(8487).then(n.bind(n,68487))}),mM({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>n.e(7485).then(n.bind(n,77485))}),mM({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>n.e(2269).then(n.bind(n,22269))}),mM({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>n.e(3125).then(n.bind(n,83125))}),mM({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>n.e(8445).then(n.bind(n,58445))}),mM({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>n.e(9405).then(n.bind(n,39405))}),mM({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>n.e(839).then(n.bind(n,10839))}),mM({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>n.e(3457).then(n.bind(n,23457))}),mM({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>n.e(3457).then(n.bind(n,23457))}),mM({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>n.e(7517).then(n.bind(n,7517))}),mM({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>n.e(6861).then(n.bind(n,56861))}),mM({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>n.e(2989).then(n.bind(n,12989))}),mM({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>n.e(6177).then(n.bind(n,6177))}),mM({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>n.e(6389).then(n.bind(n,16389))}),mM({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>n.e(8751).then(n.bind(n,38751))}),mM({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>n.e(3029).then(n.bind(n,3029))}),mM({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>n.e(6837).then(n.bind(n,96837))}),mM({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>n.e(9341).then(n.bind(n,39341))}),mM({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>n.e(9879).then(n.bind(n,29879))}),mM({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAutoInterpolationDollar)}),mM({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAngleInterpolationDollar)}),mM({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagBracketInterpolationDollar)}),mM({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAngleInterpolationBracket)}),mM({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagBracketInterpolationBracket)}),mM({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAutoInterpolationDollar)}),mM({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAutoInterpolationBracket)}),mM({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>n.e(5123).then(n.bind(n,95123))}),mM({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>n.e(4909).then(n.bind(n,94909))}),mM({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>n.e(4291).then(n.bind(n,44291))}),mM({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>n.e(6189).then(n.bind(n,16189))}),mM({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>n.e(9693).then(n.bind(n,69693))}),mM({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>n.e(9677).then(n.bind(n,69677))}),mM({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>n.e(5551).then(n.bind(n,45551))}),mM({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>n.e(6301).then(n.bind(n,46301))}),mM({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>n.e(505).then(n.bind(n,70505))}),mM({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>n.e(2077).then(n.bind(n,22077))}),mM({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>n.e(3229).then(n.bind(n,43229))}),mM({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>n.e(2033).then(n.bind(n,22033))}),mM({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>n.e(1809).then(n.bind(n,41809))}),mM({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>n.e(9183).then(n.bind(n,29183))}),mM({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>n.e(4147).then(n.bind(n,64147))}),mM({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>n.e(2925).then(n.bind(n,52925))}),mM({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>n.e(9469).then(n.bind(n,89469))}),mM({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>n.e(2909).then(n.bind(n,72909))}),mM({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>n.e(9457).then(n.bind(n,89457))}),mM({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>n.e(713).then(n.bind(n,50713))}),mM({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>n.e(2781).then(n.bind(n,62781))}),mM({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>n.e(707).then(n.bind(n,80707))}),mM({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>n.e(8845).then(n.bind(n,68845))}),mM({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>n.e(2869).then(n.bind(n,72869))}),mM({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>n.e(2445).then(n.bind(n,82445))}),mM({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>n.e(189).then(n.bind(n,20189))}),mM({id:"pla",extensions:[".pla"],loader:()=>n.e(1573).then(n.bind(n,31573))}),mM({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>n.e(7085).then(n.bind(n,27085))}),mM({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>n.e(9833).then(n.bind(n,49833))}),mM({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>n.e(2861).then(n.bind(n,82861))}),mM({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>n.e(8765).then(n.bind(n,38765))}),mM({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>n.e(7425).then(n.bind(n,47425))}),mM({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>n.e(6107).then(n.bind(n,46107))}),mM({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>n.e(1517).then(n.bind(n,31517))}),mM({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>n.e(7193).then(n.bind(n,27193))}),mM({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>n.e(2625).then(n.bind(n,12625))}),mM({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>n.e(1549).then(n.bind(n,81549))}),mM({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>n.e(6901).then(n.bind(n,86901))}),mM({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>n.e(5085).then(n.bind(n,5085))}),mM({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>n.e(6023).then(n.bind(n,86023))}),mM({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>n.e(3479).then(n.bind(n,63479))}),mM({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>n.e(9325).then(n.bind(n,9325))}),mM({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>n.e(813).then(n.bind(n,20813))}),mM({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>n.e(7673).then(n.bind(n,47673))}),mM({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>n.e(8287).then(n.bind(n,8287))}),mM({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>n.e(9681).then(n.bind(n,9681))}),mM({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>n.e(2061).then(n.bind(n,12061))}),mM({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>n.e(4163).then(n.bind(n,34163))}),mM({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>n.e(9645).then(n.bind(n,59645))}),mM({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>n.e(4585).then(n.bind(n,54585))}),mM({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>n.e(77).then(n.bind(n,30077))}),mM({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>n.e(829).then(n.bind(n,90829))}),mM({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>n.e(1557).then(n.bind(n,91557))}),mM({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>n.e(1557).then(n.bind(n,91557))}),mM({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>n.e(8909).then(n.bind(n,28909))}),mM({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>n.e(1069).then(n.bind(n,71069))}),mM({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>n.e(5469).then(n.bind(n,45469))}),mM({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>n.e(7145).then(n.bind(n,7145))}),mM({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>n.e(4923).then(n.bind(n,34923))}),mM({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>n.e(3101).then(n.bind(n,83101))}),mM({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>n.e(101).then(n.bind(n,82482))}),mM({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>n.e(4401).then(n.bind(n,44401))});class fM{constructor(e,t,n){this._onDidChange=new wT.vl,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const bM={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},vM={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},CM=new fM("css",bM,vM),_M=new fM("scss",bM,vM),yM=new fM("less",bM,vM);function wM(){return Promise.all([n.e(9440),n.e(7441)]).then(n.bind(n,57441))}wT.eo.onLanguage("less",()=>{wM().then(e=>e.setupMode(yM))}),wT.eo.onLanguage("scss",()=>{wM().then(e=>e.setupMode(_M))}),wT.eo.onLanguage("css",()=>{wM().then(e=>e.setupMode(CM))});class AM{constructor(e,t,n){this._onDidChange=new wT.vl,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const SM={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function xM(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===kM,documentFormattingEdits:e===kM,documentRangeFormattingEdits:e===kM}}const kM="html",LM="handlebars",EM="razor";function DM(e,t=SM,i=xM(e)){const o=new AM(e,t,i);let s;const r=wT.eo.onLanguage(e,async()=>{s=(await Promise.all([n.e(9440),n.e(4719)]).then(n.bind(n,54719))).setupMode(o)});return{defaults:o,dispose(){r.dispose(),s?.dispose(),s=void 0}}}DM(kM,SM,xM(kM)).defaults,DM(LM,SM,xM(LM)).defaults,DM(EM,SM,xM(EM)).defaults;const IM=new class{constructor(e,t,n){this._onDidChange=new wT.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});wT.eo.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),wT.eo.onLanguage("json",()=>{Promise.all([n.e(9440),n.e(7325)]).then(n.bind(n,67325)).then(e=>e.setupMode(IM))}),n(9690);var NM=n(37553);const RM="__monacoFindWidgetTabIndexPatchApplied",TM="__monacoFindWidgetOriginalTabIndex";function MM(e,t){const n=e?._domNode;if(!n)return;const i=n.querySelectorAll('input, textarea, [tabindex], [role="button"], [role="checkbox"]');for(const e of i)if(e instanceof HTMLElement)if(t){if(!(TM in e.dataset))continue;const t=e.dataset[TM];""===t?e.removeAttribute("tabindex"):e.tabIndex=Number(t),delete e.dataset[TM]}else TM in e.dataset||(e.dataset[TM]=e.getAttribute("tabindex")??""),e.tabIndex=-1}if(!NM.CX[RM]){const e=NM.CX.prototype._reveal,t=NM.CX.prototype._hide;NM.CX.prototype._reveal=function(...t){e.apply(this,t),MM(this,!0)},NM.CX.prototype._hide=function(...e){t.apply(this,e),MM(this,!1)},NM.CX[RM]=!0}function OM({model:e,show:n,close:i}){const[o,s]=(0,t.useState)(""),[r,a]=(0,t.useState)(null),[l,c]=(0,t.useState)([]),[d,h,u]=yp(),g=Ur(),p=(0,t.useCallback)(()=>{l.length||e.setProperties(JSON.parse(r.getValue())).then(i)});return(0,t.useEffect)(()=>{if(!n)return;const t=()=>{e&&n&&e.getProperties().then(e=>{n&&s(JSON.stringify(e||{},null,2))})};return e.on("changed",t),t(),()=>{e&&e.removeListener("changed",t)}},[e&&e.id,n]),(0,t.useEffect)(()=>{if(!(d&&u&&h&&o))return;const{left:e,top:t,width:n,height:i}=h;if(0===e&&0===t&&0===n&&0===i)return;const s=wT.EN.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});s.layout({width:h.width,height:h.height});const r=s.onDidChangeModelDecorations(()=>{const e=wT.EN.getModelMarkers();c(e)});return s.focus(),a(s),()=>{r.dispose();const e=s.getModel();e&&e.dispose(),s.dispose()}},[u,h,o]),(0,_t.jsxs)(tT,{disableEscapeKeyDown:!0,open:n,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}},children:[(0,_t.jsx)(rT,{children:"Modify object properties"}),(0,_t.jsx)(dT,{dividers:!0,children:(0,_t.jsx)("div",{ref:d,style:{overflow:"hidden",height:"100%"}})}),(0,_t.jsxs)(pT,{children:[(0,_t.jsx)(Bu,{variant:"contained",onClick:i,children:"Cancel"}),(0,_t.jsx)(Bu,{variant:"contained",onClick:p,disabled:l.length>0,children:"Confirm"})]})]})}const qM=t.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),PM=t.createContext();function BM({id:e,onLoad:n}){const i=(0,t.useContext)(PM),o=(0,t.useRef)();return(0,t.useEffect)(()=>{const t=i.render({id:e,element:o.current});return t.then(e=>{n(e,o.current)}),()=>{t.then(e=>{e.destroy()})}},[e]),(0,_t.jsx)("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}n.dn(VM);const FM="Cell",WM={secondaryIcon:`${FM}-secondaryIcon`,drop:`${FM}-drop`},zM=_r(ud)(({theme:e})=>({[`& .${WM.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${WM.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}}));function VM({id:e,expandable:n,minHeight:i}){const o=(0,t.useContext)(MI),[s]=gp(),[r,a]=(0,t.useState)(null),[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)(null),{currentThemeName:u,activeViz:g,setActiveViz:p,setExpandedObject:m,expandedObject:f}=(0,t.useContext)(qM),b=f===e,v=(0,t.useRef)();(0,t.useEffect)(()=>{const t=o.getObject(e).then(t=>(a(t),s.set(`${e}`,t),t));return()=>{t.then(e=>e.emit("close"))}},[e]);const[C,_]=(0,t.useState)(!1),y=(0,t.useCallback)(()=>{_(!1)},[]),w=(0,t.useCallback)((e,t)=>{v.current={viz:e,el:t},h(e)},[e]),A=(0,t.useCallback)((e=!1)=>{if(v.current)if(e)c(!0),v.current.viz.__DO_NOT_USE__.exportImage().then(e=>{e&&e.url&&window.open(e.url),c(!1)});else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then(t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)})}},[r,u]),S=!b&&v.current&&g&&g===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=g===d;return(0,_t.jsxs)(zM,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"},children:[(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsxs)(KD,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1},children:[(0,_t.jsx)(OM,{model:r,show:C,close:y}),(0,_t.jsx)(Uc,{title:"Modify object properties",className:WM.secondaryIcon,disabled:!r,onClick:()=>_(!0),size:"large",children:Yd({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})}),(0,_t.jsx)(Uc,{title:"Open in single render view",className:WM.secondaryIcon,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})}),(0,_t.jsx)(Uc,{title:"Take and render as snapshot",className:WM.secondaryIcon,disabled:!r,onClick:()=>A(),size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})}),l?(0,_t.jsx)(Fc,{size:24}):(0,_t.jsx)(Uc,{title:"Export as image",className:WM.secondaryIcon,disabled:!r,onClick:()=>A(!0),size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})}),(0,_t.jsx)(ud,{sx:{flex:1}}),n&&(0,_t.jsx)(Uc,{title:"Edit",className:WM.secondaryIcon,disabled:!d||x,onClick:()=>p(d),size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})}),n&&(0,_t.jsx)(Uc,{title:"Expand",disabled:!r||!d,className:WM.secondaryIcon,onClick:()=>{b?m(null):(m(e),p(d))},size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:b?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})})]})}),(0,_t.jsx)(ud,{item:!0,xs:!0,style:{...S,flex:1,minHeight:0},className:WM.drop,children:(0,_t.jsx)(BM,{id:e,onLoad:w})})]})}function HM({info:e,storage:n,uid:i}){const o=(0,t.useContext)(PM),{activeViz:s,setActiveViz:r}=(0,t.useContext)(qM),[a]=TI(s?.model);return(0,t.useEffect)(()=>{if(!i)return;const t=o.render({type:e.supernova.name,properties:{...!1!==n.get("readFromCache")?n.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return t.then(e=>{r(e)}),()=>{t.then(e=>e.destroy())}},[i]),(0,t.useEffect)(()=>{a&&n.props(e.supernova.name,a)},[a]),s&&s.id===i?(0,_t.jsx)(ud,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"},children:(0,_t.jsx)(ud,{item:!0,xs:!0,style:{flex:1,minWidth:0},children:(0,_t.jsx)(VM,{id:i})})}):null}function jM({types:e,cache:n}){const i=(0,t.useContext)(MI),[o]=_p(i),[s,r]=(0,t.useState)(null),{expandedObject:a}=(0,t.useContext)(qM);if((0,t.useEffect)(()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then(e=>{r(e.slice(0,20))})},[o,e.join(":")]),!s)return null;const l=a?s.filter(e=>e.qInfo.qId===a):s;return(0,_t.jsx)(ud,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0},children:l[0]?l.map(e=>(0,_t.jsx)(ud,{item:!0,xs:12,md:a?12:6,lg:a?12:4,children:(0,_t.jsx)(VM,{id:e.qInfo.qId,expandable:!0,minHeight:600})},`${e.qInfo.qId}::${n}`)):(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsxs)("div",{children:[(0,_t.jsx)(yd,{display:"inline",children:"Could not find any components with "}),(0,_t.jsx)(yd,{display:"inline",children:(0,_t.jsx)("code",{children:`qType: "${e[0]}"`})}),(0,_t.jsx)(yd,{display:"inline",children:" in the current app"})]})})})}const UM=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],$M=["select","active","passive"];function GM(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function KM(){const e=(0,t.useRef)(),n=le(),{info:i}=mt(),{waiting:o,app:s}=(({info:e})=>{const[n,i]=(0,t.useState)(null),[o,s]=(0,t.useState)(!0);(0,t.useEffect)(()=>{s(!0),e&&r().then(e=>i(e)).catch(e=>console.log(e)).finally(()=>s(!1))},[e]);const r=async()=>{try{const{clientId:t,webIntegrationId:n,engine:i=null,engine:{host:o}={}}=e,s=e?.engine?.appId;if(!s)throw new Error("Missing appId in connection info");return n?rt({appId:s,hostConfig:{authType:"cookie",webIntegrationId:n,host:o}}).getDoc():t?rt({appId:s,hostConfig:{authType:"oauth2",clientId:t,host:o,redirectUri:`${window.location.origin}/auth/login/callback`,accessTokenStorage:"session"}}).getDoc():rt({appId:s,hostConfig:{authType:"noauth",host:`${!1!==i.secure?"https":"http"}://${i.host}${i.port?`:${i.port}`:""}`}}).getDoc()}catch(e){throw new Error("Failed to open app!",{cause:e})}};return{waiting:o,app:n,setApp:i}})({info:i}),r=(0,t.useMemo)(()=>Ct(s),[s]),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[g,p]=(0,t.useState)(r.get("themeName")),[m,f]=(0,t.useState)(r.get("language")||"en-US"),[b,v]=(0,t.useState)("light"),[C,_]=(0,t.useState)($M),[y,w]=(0,t.useState)(!0===r.get("objectListMode")),A=(0,t.useRef)(null),[S,x]=(0,t.useState)(),[k,L]=t.useState(null),[E,D]=t.useState(null),[I,N]=(0,t.useState)(!1),[R,T]=(0,t.useState)(null),M=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],[O,q]=(0,t.useState)(),P=(0,t.useMemo)(()=>ja(b),[b]),B=(0,t.useMemo)(()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d}),[a,c,g]);(0,t.useEffect)(()=>{(async()=>{i&&(await function(e){const t=()=>{NI(e.supernova.name,e.supernova.url).then(t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,RI[n]&&RI[n].forEach(e=>e())})};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map(e=>NI(e.name,e.url).then(t=>{window[e.name]=t}));return Promise.all(t)}return Promise.resolve()}(i),N(!0))})()},[i]),(0,t.useEffect)(()=>{if(o||!I)return;const e=SD(s,{context:{theme:g,language:m,interactions:GM(C),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map(e=>({id:e,load:()=>fetch(`/theme/${e}`).then(e=>e.json()).then(e=>(v("dark"===e.type?"dark":"light"),e))})):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach(t=>{e.__DO_NOT_USE__.types.register(t)}),T(e)},[s,i,o,I]),(0,t.useLayoutEffect)(()=>{R&&(R.context({theme:g}),"light"!==g&&"dark"!==g||v(g))},[R,g]);const F=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),x(e.current))};return(0,t.useEffect)(()=>{R&&(R.selections().then(e=>e.mount(A.current)),window.onHotChange(i?.supernova.name,()=>{R.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),R.__DO_NOT_USE__.types.register(i?.supernova),F(),R.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(u)}),F())},[R,i]),(0,t.useEffect)(()=>{const t=()=>{s&&s.destroySessionObject(e.current)};if(window.addEventListener("beforeunload",t),s){const e=dp(s.id),t=hp(s.id);q({modelStore:e,selectionStore:t,myKey:"this is the key here"})}return()=>{window.removeEventListener("beforeunload",t)}},[s]),(0,_t.jsx)(rp.Provider,{value:O,children:(0,_t.jsx)(MI.Provider,{value:s,children:(0,_t.jsx)(qa,{injectFirst:!0,children:(0,_t.jsx)(Ra,{theme:P,children:(0,_t.jsx)(PM.Provider,{value:R,children:(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",direction:"column",style:{background:P.palette.background.darkest,height:"100%"},gap:0,children:[(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)(KD,{variant:"dense",style:{background:P.palette.background.paper,boxShadow:P.shadows[1],width:"calc(100% - 48px)"},children:(0,_t.jsxs)(ud,{container:!0,gap:1,style:{width:"100%"},children:[(0,_t.jsx)(ud,{item:!0,container:!0,alignItems:"center",children:(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer",children:(0,_t.jsx)("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})})})}),(0,_t.jsx)(ud,{item:!0,container:!0,alignItems:"center",children:(0,_t.jsx)(Uc,{title:"Home",onClick:()=>n("/"),size:"large",children:(0,_t.jsx)(WD,{style:{verticalAlign:"middle"}})})}),(0,_t.jsx)(ud,{children:(0,_t.jsxs)(Uh,{value:y?1:0,onChange:(e,t)=>{const n=1===t;r.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation",children:[(0,_t.jsx)(Yh,{label:(0,_t.jsx)(yd,{children:"Create"}),value:0}),(0,_t.jsx)(Yh,{label:(0,_t.jsx)(yd,{children:"Edit"}),value:1})]})}),(0,_t.jsxs)(ud,{item:!0,container:!0,alignItems:"center",offset:{md:"auto"},children:[(0,_t.jsx)(ud,{item:!0,gap:1,children:(0,_t.jsx)(yd,{children:"State:"})}),(0,_t.jsx)(ud,{item:!0,gap:2,children:(0,_t.jsxs)(iI,{size:"small",value:C,onChange:(e,t)=>{_(t),R&&R.context({interactions:GM(t)})},color:"primary",children:[(0,_t.jsx)(aI,{value:"select",children:"Select"}),(0,_t.jsx)(aI,{value:"active",children:"Active"}),(0,_t.jsx)(aI,{value:"passive",children:"Passive"}),(0,_t.jsx)(aI,{value:"edit",children:"Edit"})]})}),(0,_t.jsx)(ud,{item:!0,children:M.length?(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Uc,{title:"Select theme",onClick:e=>L(e.currentTarget),size:"large",children:(0,_t.jsx)(zD,{fontSize:"small"})}),(0,_t.jsx)(mI,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>L(null),children:M.map(e=>(0,_t.jsx)(r_,{selected:e===g,onClick:()=>(e=>{L(null),r.save("themeName",e),p(e)})(e),children:e},e))})]}):(0,_t.jsx)(Uc,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";r.save("themeName",e),p(e),v(e)},size:"large",children:"dark"===g?(0,_t.jsx)(VD,{fontSize:"small"}):(0,_t.jsx)(HD,{fontSize:"small"})})}),(0,_t.jsxs)(ud,{item:!0,children:[(0,_t.jsx)(Bu,{startIcon:(0,_t.jsx)(jD,{}),title:"Select language",onClick:e=>D(e.currentTarget),children:m}),(0,_t.jsx)(mI,{anchorEl:E,open:!!E,keepMounted:!0,onClose:()=>D(null),children:UM.map(e=>(0,_t.jsx)(r_,{selected:e===m,onClick:()=>{return t=e,D(null),r.save("language",t),f(t),void(R&&R.context({language:t}));var t},children:e},e))})]})]})]})})}),(0,_t.jsx)(ud,{item:!0,style:{padding:P.spacing(1,1,0,1)},children:(0,_t.jsx)("div",{ref:A,style:{flex:"0 0 auto",boxShadow:P.shadows[1]}})}),(0,_t.jsx)(ud,{item:!0,xs:!0,style:{flex:1,minHeight:0,overflowX:"hidden",overflowY:"auto",padding:P.spacing(0,1,1,1)},children:(0,_t.jsx)(qM.Provider,{value:B,children:h?(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1,children:[(0,_t.jsx)(ud,{item:!0,xs:!0,style:{flex:1,minWidth:0},children:y?(0,_t.jsx)(jM,{cache:S,types:[i?.supernova.name]}):(0,_t.jsx)(HM,{info:i,storage:r,uid:S})}),a&&(0,_t.jsx)(ud,{item:!0,style:{background:P.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:P.shadows[1],padding:0},children:(0,_t.jsx)($R,{sn:h,viz:a,isTemp:!y,storage:r,flags:i?.flags})})]}):(0,_t.jsx)(ud,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center",children:(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)(Fc,{})})})})})]})})})})})})}const QM=()=>(0,_t.jsx)(Ua,{children:(0,_t.jsxs)(Bl,{marginTop:5,children:[(0,_t.jsx)(yd,{variant:"h4",gutterBottom:!0,children:"Error!"}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"OAUTH REDIRECT LINK ERROR!"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:["We updated our route which was previously had the responsibility to handle the redirected link including the correct credentials to have"," ",(0,_t.jsx)("code",{children:(0,_t.jsx)("b",{children:"/auth/"})})," ","part within it. This change is now impacting your redirect links if you already using your old client-id."]}),(0,_t.jsx)(yd,{variant:"h6",gutterBottom:!0,children:"Here is what you need to do:"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:[(0,_t.jsx)("b",{children:"1."})," Go to your tenant that you created your client id",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"2."})," Open Managment console",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"3."})," Click on OAuth menu in left panel (if you dont see that menu it means you dont have access to it and you need to ask a person who has the proper access)",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"4."})," Find your Client id and from ... menu, click on edit",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"5."}),' There is a section called "Add redirect URLs", find it and add your new link. The only difference is that your new link will include `/auth/` part in it, for example, if you had this redirect link previously:',(0,_t.jsx)("code",{children:"http://localhost:8000/login/callback"}),(0,_t.jsx)("br",{}),"now it will be like:",(0,_t.jsxs)("code",{children:["http://localhost:8000/",(0,_t.jsx)("b",{children:"auth/"}),"login/callback"]}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"6."})," Click on save and you are set!",(0,_t.jsx)("br",{})]})]})}),YM=()=>(0,_t.jsx)(je,{children:(0,_t.jsx)(St,{children:(0,_t.jsxs)(Se,{children:[(0,_t.jsxs)(we,{element:(0,_t.jsx)(Hl,{}),children:[(0,_t.jsx)(we,{path:"/",element:(0,_t.jsx)(Gu,{})}),(0,_t.jsx)(we,{path:"/app-list",element:(0,_t.jsx)(Ku,{})})]}),(0,_t.jsx)(we,{path:"/dev",element:(0,_t.jsx)(KM,{})}),(0,_t.jsx)(we,{path:"/login/callback",element:(0,_t.jsx)(QM,{})})]})})});o.createRoot(document.querySelector("#app")).render((0,_t.jsx)(YM,{}))})()})();
102
+ `:null,Mc=_r("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Vr(n.color)}`]]}})(Xa(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Rc||{animation:`${Ic} 1.4s linear infinite`}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Oc=_r("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),qc=_r("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Vr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xa(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Tc||{animation:`${Nc} 1.4s ease-in-out infinite`}}]}))),Pc=_r("circle",{name:"MuiCircularProgress",slot:"Track"})(Xa(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Bc=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:r=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:h="indeterminate",...u}=n,g={...n,color:o,disableShrink:s,size:a,thickness:c,value:d,variant:h,enableTrackSlot:r},p=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e;return Lt({root:["root",n,`color${Vr(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Vr(n)}`,o&&"circleDisableShrink"]},Ec,t)})(g),m={},f={},b={};if("determinate"===h){const e=2*Math.PI*((Dc-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,f.transform="rotate(-90deg)"}return(0,_t.jsx)(Mc,{className:kt(p.root,i),style:{width:a,height:a,...f,...l},ownerState:g,ref:t,role:"progressbar",...b,...u,children:(0,_t.jsxs)(Oc,{className:p.svg,ownerState:g,viewBox:"22 22 44 44",children:[r?(0,_t.jsx)(Pc,{className:p.track,ownerState:g,cx:Dc,cy:Dc,r:(Dc-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,(0,_t.jsx)(qc,{className:p.circle,style:m,ownerState:g,cx:Dc,cy:Dc,r:(Dc-c)/2,fill:"none",strokeWidth:c})]})})}),Fc=Bc;function Wc(e){return Er("MuiIconButton",e)}const zc=Dr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Vc=_r(Lc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Vr(n.color)}`],n.edge&&t[`edge${Vr(n.edge)}`],t[`size${Vr(n.size)}`]]}})(Xa(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xa(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${zc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${zc.loading}`]:{color:"transparent"}}))),Hc=_r("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),jc=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:r="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium",id:d,loading:h=null,loadingIndicator:u,...g}=n,p=Ul(d),m=u??(0,_t.jsx)(Fc,{"aria-labelledby":p,color:"inherit",size:16}),f={...n,edge:i,color:r,disabled:a,disableFocusRipple:l,loading:h,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:i,edge:o,size:s,loading:r}=e;return Lt({root:["root",r&&"loading",n&&"disabled","default"!==i&&`color${Vr(i)}`,o&&`edge${Vr(o)}`,`size${Vr(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Wc,t)})(f);return(0,_t.jsxs)(Vc,{id:h?p:d,className:kt(b.root,s),centerRipple:!0,focusRipple:!l,disabled:a||h,ref:t,...g,ownerState:f,children:["boolean"==typeof h&&(0,_t.jsx)("span",{className:b.loadingWrapper,style:{display:"contents"},children:(0,_t.jsx)(Hc,{className:b.loadingIndicator,ownerState:f,children:h&&m})}),o]})}),Uc=jc;function $c(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}const Gc=(e,t,n)=>{const i=e.keys[0];var o,s;Array.isArray(t)?t.forEach((t,i)=>{n((t,n)=>{i<=e.keys.length-1&&(0===i?Object.assign(t,n):t[e.up(e.keys[i])]=n)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,s=Object.keys(t),o.filter(e=>s.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const s=t[o];void 0!==s&&n((t,n)=>{i===o?Object.assign(t,n):t[e.up(o)]=n},s)}}):"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t)};function Kc(e){return`--Grid-${e}Spacing`}function Qc(e){return`--Grid-parent-${e}Spacing`}const Yc="--Grid-columns",Zc="--Grid-parent-columns",Xc=({theme:e,ownerState:t})=>{const n={};return Gc(e.breakpoints,t.size,(e,t)=>{let i={};"grow"===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Zc}) - (var(${Zc}) - ${t}) * (var(${Qc("column")}) / var(${Zc})))`}),e(n,i)}),n},Jc=({theme:e,ownerState:t})=>{const n={};return Gc(e.breakpoints,t.offset,(e,t)=>{let i={};"auto"===t&&(i={marginLeft:"auto"}),"number"==typeof t&&(i={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Zc}) + var(${Qc("column")}) * ${t} / var(${Zc}))`}),e(n,i)}),n},ed=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Yc]:12};return Gc(e.breakpoints,t.columns,(e,t)=>{const i=t??12;e(n,{[Yc]:i,"> *":{[Zc]:i}})}),n},td=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gc(e.breakpoints,t.rowSpacing,(t,i)=>{const o="string"==typeof i?i:e.spacing?.(i);t(n,{[Kc("row")]:o,"> *":{[Qc("row")]:o}})}),n},nd=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gc(e.breakpoints,t.columnSpacing,(t,i)=>{const o="string"==typeof i?i:e.spacing?.(i);t(n,{[Kc("column")]:o,"> *":{[Qc("column")]:o}})}),n},id=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gc(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},od=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Kc("row")}) var(${Kc("column")})`}}),sd=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},rd=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,i])=>{n(i)&&t.push(`spacing-${e}-${String(i)}`)}),t}return[]},ad=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],ld=Lo(),cd=Br("div",{name:"MuiGrid",slot:"Root"});function dd(e){return Pr({props:e,name:"MuiGrid",defaultTheme:ld})}const hd=function(e={}){const{createStyledComponent:n=cd,useThemeProps:i=dd,useTheme:o=qr,componentName:s="MuiGrid"}=e;function r(e,t,n=()=>!0){const i={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(i[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(i[t]=o)}):i[t.keys[0]]=e),i}const a=n(ed,nd,td,Xc,id,od,Jc),l=t.forwardRef(function(e,n){const l=o(),c=$a(i(e));!function(e,t){const n=[];void 0!==e.item&&(delete e.item,n.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(t=>{void 0!==e[t]&&(n.push(t),delete e[t])})}(c,l.breakpoints);const{className:d,children:h,columns:u=12,container:g=!1,component:p="div",direction:m="row",wrap:f="wrap",size:b={},offset:v={},spacing:C=0,rowSpacing:_=C,columnSpacing:y=C,unstable_level:w=0,...A}=c,S=r(b,l.breakpoints,e=>!1!==e),x=r(v,l.breakpoints),k=e.columns??(w?void 0:u),L=e.spacing??(w?void 0:C),E=e.rowSpacing??e.spacing??(w?void 0:_),D=e.columnSpacing??e.spacing??(w?void 0:y),I={...c,level:w,columns:k,container:g,direction:m,wrap:f,spacing:L,rowSpacing:E,columnSpacing:D,size:S,offset:x},N=((e,t)=>{const{container:n,direction:i,spacing:o,wrap:r,size:a}=e;return Lt({root:["root",n&&"container","wrap"!==r&&`wrap-xs-${String(r)}`,...ad(i),...sd(a),...n?rd(o,t.breakpoints.keys[0]):[]]},e=>Er(s,e),{})})(I,l);return(0,_t.jsx)(a,{ref:n,as:p,ownerState:I,className:kt(N.root,d),...A,children:t.Children.map(h,e=>t.isValidElement(e)&&$c(e,["Grid"])&&g&&e.props.container?t.cloneElement(e,{unstable_level:e.props?.unstable_level??w+1}):e)})});return l.muiName="Grid",l}({createStyledComponent:_r("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Sr({props:e,name:"MuiGrid"}),useTheme:Ur}),ud=hd,gd=function(e){return(0,_t.jsx)(ha,{...e,defaultTheme:fr,themeId:br})};function pd(e){return Er("MuiTypography",e)}const md=Dr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),fd={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},bd=$a,vd=_r("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${Vr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Xa(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Vr(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),Cd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_d=t.forwardRef(function(e,t){const{color:n,...i}=Sr({props:e,name:"MuiTypography"}),o=bd({...i,...!fd[n]&&{color:n}}),{align:s="inherit",className:r,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:u=Cd,...g}=o,p={...o,align:s,color:n,className:r,component:a,gutterBottom:l,noWrap:c,paragraph:d,variant:h,variantMapping:u},m=a||(d?"p":u[h]||Cd[h])||"span",f=(e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:r}=e;return Lt({root:["root",s,"inherit"!==e.align&&`align${Vr(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]},pd,r)})(p);return(0,_t.jsx)(vd,{as:m,ref:t,className:kt(f.root,r),...g,ownerState:p,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...g.style}})}),yd=_d;function wd(e){return Er("MuiLink",e)}const Ad=Dr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Sd=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const i=Ii(e,`palette.${n}.main`)||Ii(e,`palette.${n}`)||t.color;return e.alpha(i,.4)}const i=Ii(e,`palette.${n}.main`,!1)||Ii(e,`palette.${n}`,!1)||t.color,o=Ii(e,`palette.${n}.mainChannel`)||Ii(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ho(i,.4)},xd={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},kd=_r(yd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Vr(n.underline)}`],"button"===n.component&&t.button]}})(Xa(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"===t.color,style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ad.focusVisible}`]:{outline:"auto"}}}]}))),Ld=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiLink"}),o=Ur(),{className:s,color:r="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:d,underline:h="always",variant:u="inherit",sx:g,...p}=i,[m,f]=t.useState(!1),b={...i,color:r,component:a,focusVisible:m,underline:h,variant:u},v=(e=>{const{classes:t,component:n,focusVisible:i,underline:o}=e;return Lt({root:["root",`underline${Vr(o)}`,"button"===n&&"button",i&&"focusVisible"]},wd,t)})(b);return(0,_t.jsx)(kd,{color:r,className:kt(v.root,s),classes:d,component:a,onBlur:e=>{Gl(e.target)||f(!1),l&&l(e)},onFocus:e=>{Gl(e.target)&&f(!0),c&&c(e)},ref:n,ownerState:b,variant:u,...p,sx:[...void 0===xd[r]?[{color:r}]:[],...Array.isArray(g)?g:[g]],style:{...p.style,..."always"===h&&"inherit"!==r&&!xd[r]&&{"--Link-underlineColor":Sd({theme:o,ownerState:b})}}})}),Ed=Ld;var Dd=n(80494);var Id="unmounted",Nd="exited",Rd="entering",Td="entered",Md="exiting",Od=function(e){function n(t,n){var i;i=e.call(this,t,n)||this;var o,s=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?s?(o=Nd,i.appearStatus=Rd):o=Td:o=t.unmountOnExit||t.mountOnEnter?Id:Nd,i.state={status:o},i.nextCallback=null,i}ic(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Id?{status:Nd}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Rd&&n!==Td&&(t=Rd):n!==Rd&&n!==Td||(t=Md)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Rd){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Dd.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nd&&this.setState({status:Id})},i.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[Dd.findDOMNode(this),i],s=o[0],r=o[1],a=this.getTimeouts(),l=i?a.appear:a.enter;e||n?(this.props.onEnter(s,r),this.safeSetState({status:Rd},function(){t.props.onEntering(s,r),t.onTransitionEnd(l,function(){t.safeSetState({status:Td},function(){t.props.onEntered(s,r)})})})):this.safeSetState({status:Td},function(){t.props.onEntered(s)})},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:Dd.findDOMNode(this);t?(this.props.onExit(i),this.safeSetState({status:Md},function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Nd},function(){e.props.onExited(i)})})})):this.safeSetState({status:Nd},function(){e.props.onExited(i)})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Dd.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=o[0],r=o[1];this.props.addEndListener(s,r)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Id)return null;var n=this.props,i=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,ec(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(oc.Provider,{value:null},"function"==typeof i?i(e,o):t.cloneElement(t.Children.only(i),o))},n}(t.Component);function qd(){}Od.contextType=oc,Od.propTypes={},Od.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qd,onEntering:qd,onEntered:qd,onExit:qd,onExiting:qd,onExited:qd},Od.UNMOUNTED=Id,Od.EXITED=Nd,Od.ENTERING=Rd,Od.ENTERED=Td,Od.EXITING=Md;const Pd=Od,Bd=e=>e.scrollTop;function Fd(e,t){return n=>{if(t){const i=e.current;void 0===n?t(i):t(i,n)}}}function Wd(e,t,n,i,o,s){const r="exited"!==e||t?n[e]||n.exited:i;return o||s?{...r,...o,...s}:r}function zd(e,t){const{timeout:n,easing:i,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof i?i[t.mode]:i),delay:o.transitionDelay}}function Vd(e){return Er("MuiCollapse",e)}Dr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Hd=_r("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]}})(Xa(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),jd=_r("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ud=_r("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),$d=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiCollapse"}),{addEndListener:o,children:s,className:r,collapsedSize:a="0px",component:l,easing:c,in:d,onEnter:h,onEntered:u,onEntering:g,onExit:p,onExited:m,onExiting:f,orientation:b="vertical",slots:v={},slotProps:C={},style:_,timeout:y=Gs.standard,TransitionComponent:w=Pd,...A}=i,S={...i,orientation:b,collapsedSize:a},x=(e=>{const{orientation:t,classes:n}=e;return Lt({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},Vd,n)})(S),k=Ur(),L=gc(),E=t.useRef(null),D=t.useRef(),I="number"==typeof a?`${a}px`:a,N="horizontal"===b,R=N?"width":"height",T=t.useRef(null),M=Kl(n,T),O=()=>E.current?E.current[N?"clientWidth":"clientHeight"]:0,q=Fd(T,(e,t)=>{E.current&&N&&(E.current.style.position="absolute"),e.style[R]=I,h&&h(e,t)}),P=Fd(T,(e,t)=>{const n=O();E.current&&N&&(E.current.style.position="");const{duration:i,easing:o}=zd({style:_,timeout:y,easing:c},{mode:"enter"});if("auto"===y){const t=k.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,D.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[R]=`${n}px`,e.style.transitionTimingFunction=o,g&&g(e,t)}),B=Fd(T,(e,t)=>{e.style[R]="auto",u&&u(e,t)}),F=Fd(T,e=>{e.style[R]=`${O()}px`,p&&p(e)}),W=Fd(T,m),z=Fd(T,e=>{const t=O(),{duration:n,easing:i}=zd({style:_,timeout:y,easing:c},{mode:"exit"});if("auto"===y){const n=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,D.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[R]=I,e.style.transitionTimingFunction=i,f&&f(e)}),V={slots:v,slotProps:C,component:l},[H,j]=Nl("root",{ref:M,className:kt(x.root,r),elementType:Hd,externalForwardedProps:V,ownerState:S,additionalProps:{style:{[N?"minWidth":"minHeight"]:I,..._}}}),[U,$]=Nl("wrapper",{ref:E,className:x.wrapper,elementType:jd,externalForwardedProps:V,ownerState:S}),[G,K]=Nl("wrapperInner",{className:x.wrapperInner,elementType:Ud,externalForwardedProps:V,ownerState:S});return(0,_t.jsx)(w,{in:d,onEnter:q,onEntered:B,onEntering:P,onExit:F,onExited:W,onExiting:z,addEndListener:e=>{"auto"===y&&L.start(D.current||0,e),o&&o(T.current,e)},nodeRef:T,timeout:"auto"===y?null:y,...A,children:(e,{ownerState:t,...n})=>{const i={...S,state:e};return(0,_t.jsx)(H,{...j,className:kt(j.className,{entered:x.entered,exited:!d&&"0px"===I&&x.hidden}[e]),ownerState:i,...n,children:(0,_t.jsx)(U,{...$,ownerState:i,children:(0,_t.jsx)(G,{...K,ownerState:i,children:s})})})}})});$d&&($d.muiSupportAuto=!0);const Gd=$d,Kd=({showGuid:e})=>(0,_t.jsxs)(Gd,{in:e,children:[(0,_t.jsx)(yd,{variant:"h6",gutterBottom:!0,style:{marginTop:"1rem"},children:"WebSocket URL"}),(0,_t.jsx)(yd,{variant:"body2",paragraph:!0,children:"The development server needs to connect to and communicate with the Qlik Associative Engine running within any of Qlik's product offerings. The connection is done through the WebSocket protocol using a WebSocket URL format that differs slightly between products. Enter the WebSocket URL that corresponds to the Qlik product you are using."}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"Qlik Cloud Services"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:[(0,_t.jsx)("b",{children:"Web integration id format:"}),"There are two ways in order to connect through WebSocket:",(0,_t.jsx)("br",{}),"1. ",(0,_t.jsx)("code",{children:"qlik-web-integration-id"}),(0,_t.jsx)("br",{}),"2. ",(0,_t.jsx)("code",{children:"qlik-client-id"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"Web integration id:"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("code",{children:"wss://<tenant>.<region>.qlikcloud.com?qlik-web-integration-id=<web-integration-id>"}),(0,_t.jsx)("br",{}),"Example: ",(0,_t.jsx)("code",{children:"wss://qlik.eu.qlikcloud.com?qlik-web-integration-id=xxx"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),"For more info, visit"," ",(0,_t.jsx)(Ed,{color:"secondary",underline:"always",href:"https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-adminster-web-integrations.htm",children:"Managing web integrations"}),"."]}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:[(0,_t.jsx)("b",{children:"OAuth Client ID URL format:"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("code",{children:"wss://<tenant>.<region>.qlikcloud.com?qlik-client-id=<client-id>"}),(0,_t.jsx)("br",{}),"Example: ",(0,_t.jsx)("code",{children:"wss://qlik.eu.qlikcloud.com?qlik-client-id=xxx"}),(0,_t.jsx)("br",{}),"Redirect URL form: ",(0,_t.jsx)("code",{children:"http://localhost:8000/auth/login/callback"}),(0,_t.jsx)("br",{}),"The ",(0,_t.jsx)("code",{children:"qlik-web-integration-id"})," ",(0,_t.jsx)("b",{children:"OR"})," ",(0,_t.jsx)("code",{children:"qlik-client-id"})," must be present in order for QCS to confirm that the request originates from a whitelisted domain.",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{})]}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"Qlik Sense on Windows"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:["WebSocket URL format: ",(0,_t.jsx)("code",{children:"wss://<sense-host.com>/<virtual-proxy-prefix>"}),(0,_t.jsx)("br",{}),"Example: ",(0,_t.jsx)("code",{children:"wss://mycompany.com/bi"}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),"Note that for the Qlik Sense Proxy to allow sessions from this webpage,",(0,_t.jsx)("code",{children:window.location.host})," needs to be whitelisted in QMC in your Qlik Sense on Windows deployment. In addition, you need to enable ",(0,_t.jsx)("i",{children:"Has secure attribute"})," and set ",(0,_t.jsx)("i",{children:"SameSite attribute"})," to ",(0,_t.jsx)("i",{children:"None"}),".",(0,_t.jsx)("br",{}),'Also some "Additional reponse headers" needs to align with the whitelisted domain:',(0,_t.jsxs)("ul",{children:[(0,_t.jsxs)("li",{children:["Access-Control-Allow-Origin: ",(0,_t.jsx)("code",{children:window.location.host})]}),(0,_t.jsx)("li",{children:"Access-Control-Allow-Credentials: true"}),(0,_t.jsx)("li",{children:"Access-Control-Expose-Headers: qlik-csrf-token"})]}),"Make sure you are logged in to Qlik Sense in another browser tab."]}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"Qlik Sense Desktop"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:["WebSocket URL format: ",(0,_t.jsx)("code",{children:"ws://localhost:4848"})]})]});function Qd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Yd({size:e,style:t={},viewBox:n="0 0 16 16",shapes:i=[]}){const o={fontSize:Qd(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...t};return(0,_t.jsx)("i",{style:o,children:(0,_t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:n,fill:"currentColor",children:i.map(({type:e,attrs:t},n)=>(0,_t.jsx)(e,{...t},n))})})}const Zd=e=>Yd((e=>({...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));n.dn(Zd);const Xd=t.createContext({});function Jd(e){return Er("MuiList",e)}Dr("MuiList",["root","padding","dense","subheader"]);const eh=_r("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),th=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiList"}),{children:o,className:s,component:r="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...d}=i,h=t.useMemo(()=>({dense:a}),[a]),u={...i,component:r,dense:a,disablePadding:l},g=(e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return Lt({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},Jd,t)})(u);return(0,_t.jsx)(Xd.Provider,{value:h,children:(0,_t.jsxs)(eh,{as:r,className:kt(g.root,s),ref:n,ownerState:u,...d,children:[c,o]})})}),nh=th,ih=Jr;function oh(e){return Er("MuiListItemButton",e)}const sh=Dr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),rh=_r(Lc,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Xa(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${sh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${sh.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${sh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ah=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:r="div",children:a,dense:l=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:h,selected:u=!1,className:g,...p}=i,m=t.useContext(Xd),f=t.useMemo(()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c}),[o,m.dense,l,c]),b=t.useRef(null);ih(()=>{s&&b.current&&b.current.focus()},[s]);const v={...i,alignItems:o,dense:f.dense,disableGutters:c,divider:d,selected:u},C=(e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:s,divider:r,selected:a}=e,l=Lt({root:["root",i&&"dense",!s&&"gutters",r&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",a&&"selected"]},oh,n);return{...n,...l}})(v),{root:_,...y}=C,w=Kl(b,n);return(0,_t.jsx)(Xd.Provider,{value:f,children:(0,_t.jsx)(rh,{ref:w,href:p.href||p.to,component:(p.href||p.to)&&"div"===r?"button":r,focusVisibleClassName:kt(C.focusVisible,h),ownerState:v,className:kt(C.root,g),...p,classes:y,children:a})})}),lh=ah;function ch(e){return Er("MuiListItemText",e)}const dh=Dr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hh=_r("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dh.primary}`]:t.primary},{[`& .${dh.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${md.root}:where(& .${dh.primary})`]:{display:"block"},[`.${md.root}:where(& .${dh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),uh=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:r=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h,slots:u={},slotProps:g={},...p}=i,{dense:m}=t.useContext(Xd);let f=null!=l?l:o,b=d;const v={...i,disableTypography:r,inset:a,primary:!!f,secondary:!!b,dense:m},C=(e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:s}=e;return Lt({root:["root",n&&"inset",s&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},ch,t)})(v),_={slots:u,slotProps:{primary:c,secondary:h,...g}},[y,w]=Nl("root",{className:kt(C.root,s),elementType:hh,externalForwardedProps:{..._,...p},ownerState:v,ref:n}),[A,S]=Nl("primary",{className:C.primary,elementType:yd,externalForwardedProps:_,ownerState:v}),[x,k]=Nl("secondary",{className:C.secondary,elementType:yd,externalForwardedProps:_,ownerState:v});return null==f||f.type===yd||r||(f=(0,_t.jsx)(A,{variant:m?"body2":"body1",component:S?.variant?void 0:"span",...S,children:f})),null==b||b.type===yd||r||(b=(0,_t.jsx)(x,{variant:"body2",color:"textSecondary",...k,children:b})),(0,_t.jsxs)(y,{...w,children:[f,b]})}),gh=uh,ph=({item:e,info:t})=>!(!t||(!t.isClientIdProvided&&!t.isWebIntegrationIdProvided||!e.includes("localhost"))&&(t.isClientIdProvided?e.includes("qlik-client-id"):!t.isWebIntegrationIdProvided||e.includes("qlik-web-integration-id"))),mh=()=>{const e=le(),{info:t,setError:n,cachedConnectionsData:i}=At();return i.cachedConnections.length?(0,_t.jsxs)(Qa,{mb:2,children:[(0,_t.jsx)(yd,{variant:"h6",children:"Previous connections"}),(0,_t.jsx)(nh,{children:i.cachedConnections.map(o=>(0,_t.jsxs)(lh,{component:"a",onClick:()=>(t=>{n(),e(`/app-list?engine_url=${t.replace("?","&")}`)})(o),disabled:ph({item:o,info:t}),children:[(0,_t.jsx)(gh,{primary:o}),(0,_t.jsx)(Uc,{onClick:()=>i.removeCachedConnection(o),"data-testid":"close-btn",size:"large",edge:"end",children:(0,_t.jsx)(Zd,{})})]},o))})]}):null},fh=function(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,r=o?{}:Ll(n,i),{props:a,internalRef:l}=Il({...s,externalSlotProps:r}),c=Sl(l,r?.ref,e.additionalProps?.ref);return kl(t,{...a,ref:c},i)};function bh(e,t=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{e.apply(this,i)},t)}return i.clear=()=>{clearTimeout(n)},i}const vh=bh;function Ch(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function _h(e){return e&&e.ownerDocument||document}function yh(e){return _h(e).defaultView||window}const wh=yh,Ah={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},Sh=ul((0,_t.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),xh=ul((0,_t.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function kh(e){return Er("MuiTabScrollButton",e)}const Lh=Dr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Eh=_r(Lc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Lh.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Dh=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:s={},direction:r,orientation:a,disabled:l,...c}=n,d=Zr(),h={isRtl:d,...n},u=(e=>{const{classes:t,orientation:n,disabled:i}=e;return Lt({root:["root",n,i&&"disabled"]},kh,t)})(h),g=o.StartScrollButtonIcon??Sh,p=o.EndScrollButtonIcon??xh,m=fh({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),f=fh({elementType:p,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,_t.jsx)(Eh,{component:"div",className:kt(u.root,i),ref:t,role:null,ownerState:h,tabIndex:null,...c,style:{...c.style,..."vertical"===a&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===r?(0,_t.jsx)(g,{...m}):(0,_t.jsx)(p,{...f})})}),Ih=Dh;function Nh(e){return Er("MuiTabs",e)}const Rh=Dr("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Th=_h,Mh=function(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t},Oh=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,qh=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ph=(e,t,n)=>{let i=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(i)return;i=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},Bh=_r("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rh.scrollButtons}`]:t.scrollButtons},{[`& .${Rh.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Xa(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Rh.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Fh=_r("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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Wh=_r("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),zh=_r("span",{name:"MuiTabs",slot:"Indicator"})(Xa(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Vh=_r(function(e){const{onChange:n,...i}=e,o=t.useRef(),s=t.useRef(null),r=()=>{o.current=s.current.offsetHeight-s.current.clientHeight};return ih(()=>{const e=vh(()=>{const e=o.current;r(),e!==o.current&&n(o.current)}),t=wh(s.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[n]),t.useEffect(()=>{r(),n(o.current)},[n]),(0,_t.jsx)("div",{style:Ah,...i,ref:s})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Hh={},jh=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiTabs"}),o=Ur(),s=Zr(),{"aria-label":r,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:h,component:u="div",allowScrollButtonsMobile:g=!1,indicatorColor:p="primary",onChange:m,orientation:f="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:C,slots:_={},slotProps:y={},TabIndicatorProps:w={},TabScrollButtonProps:A={},textColor:S="primary",value:x,variant:k="standard",visibleScrollbar:L=!1,...E}=i,D="scrollable"===k,I="vertical"===f,N=I?"scrollTop":"scrollLeft",R=I?"top":"left",T=I?"bottom":"right",M=I?"clientHeight":"clientWidth",O=I?"height":"width",q={...i,component:u,allowScrollButtonsMobile:g,indicatorColor:p,orientation:f,vertical:I,scrollButtons:v,textColor:S,variant:k,visibleScrollbar:L,fixed:!D,hideScrollbar:D&&!L,scrollableX:D&&!I,scrollableY:D&&I,centered:c&&!D,scrollButtonsHideMobile:!g},P=(e=>{const{vertical:t,fixed:n,hideScrollbar:i,scrollableX:o,scrollableY:s,centered:r,scrollButtonsHideMobile:a,classes:l}=e;return Lt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",i&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",r&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Nh,l)})(q),B=fh({elementType:_.StartScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:q}),F=fh({elementType:_.EndScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:q}),[W,z]=t.useState(!1),[V,H]=t.useState(Hh),[j,U]=t.useState(!1),[$,G]=t.useState(!1),[K,Q]=t.useState(!1),[Y,Z]=t.useState({overflow:"hidden",scrollbarWidth:0}),X=new Map,J=t.useRef(null),ee=t.useRef(null),te={slots:_,slotProps:{indicator:w,scrollButtons:A,...y}},ne=()=>{const e=J.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==x){const e=ee.current.children;if(e.length>0){const t=e[X.get(x)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ie=Yl(()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,i=0;I?(n="top",t&&e&&(i=t.top-e.top+e.scrollTop)):(n=s?"right":"left",t&&e&&(i=(s?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:i,[O]:t?t[O]:0};if("number"!=typeof V[n]||"number"!=typeof V[O])H(o);else{const e=Math.abs(V[n]-o[n]),t=Math.abs(V[O]-o[O]);(e>=1||t>=1)&&H(o)}}),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,i={},o=()=>{}){const{ease:s=Ch,duration:r=300}=i;let a=null;const l=t[e];let c=!1;const d=i=>{if(c)return void o(new Error("Animation cancelled"));null===a&&(a=i);const h=Math.min(1,(i-a)/r);t[e]=s(h)*(n-l)+l,h>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(N,J.current,e,{duration:o.transitions.duration.standard}):J.current[N]=e},se=e=>{let t=J.current[N];t+=I?e:e*(s?-1:1),oe(t)},re=()=>{const e=J.current[M];let t=0;const n=Array.from(ee.current.children);for(let i=0;i<n.length;i+=1){const o=n[i];if(t+o[M]>e){0===i&&(t=e);break}t+=o[M]}return t},ae=()=>{se(-1*re())},le=()=>{se(re())},[ce,{onChange:de,...he}]=Nl("scrollbar",{className:kt(P.scrollableX,P.hideScrollbar),elementType:Vh,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:q}),ue=t.useCallback(e=>{de?.(e),Z({overflow:null,scrollbarWidth:e})},[de]),[ge,pe]=Nl("scrollButtons",{className:kt(P.scrollButtons,A.className),elementType:Ih,externalForwardedProps:te,ownerState:q,additionalProps:{orientation:f,slots:{StartScrollButtonIcon:_.startScrollButtonIcon||_.StartScrollButtonIcon,EndScrollButtonIcon:_.endScrollButtonIcon||_.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:F}}}),me=Yl(e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[R]<t[R]){const i=t[N]+(n[R]-t[R]);oe(i,{animation:e})}else if(n[T]>t[T]){const i=t[N]+(n[T]-t[T]);oe(i,{animation:e})}}),fe=Yl(()=>{D&&!1!==v&&Q(!K)});t.useEffect(()=>{const e=vh(()=>{J.current&&ie()});let t;const n=wh(J.current);let i;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(i=new MutationObserver(n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),fe()}),i.observe(ee.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),i?.disconnect(),t?.disconnect()}},[ie,fe]),t.useEffect(()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&D&&!1!==v){const n=e[0],i=e[t-1],o={root:J.current,threshold:.99},s=new IntersectionObserver(e=>{U(!e[0].isIntersecting)},o);s.observe(n);const r=new IntersectionObserver(e=>{G(!e[0].isIntersecting)},o);return r.observe(i),()=>{s.disconnect(),r.disconnect()}}},[D,v,K,d?.length]),t.useEffect(()=>{z(!0)},[]),t.useEffect(()=>{ie()}),t.useEffect(()=>{me(Hh!==V)},[me,V]),t.useImperativeHandle(l,()=>({updateIndicator:ie,updateScrollButtons:fe}),[ie,fe]);const[be,ve]=Nl("indicator",{className:kt(P.indicator,w.className),elementType:zh,externalForwardedProps:te,ownerState:q,additionalProps:{style:V}}),Ce=(0,_t.jsx)(be,{...ve});let _e=0;const ye=t.Children.map(d,e=>{if(!t.isValidElement(e))return null;const n=void 0===e.props.value?_e:e.props.value;X.set(n,_e);const i=n===x;return _e+=1,t.cloneElement(e,{fullWidth:"fullWidth"===k,indicator:i&&!W&&Ce,selected:i,selectionFollowsFocus:C,onChange:m,textColor:S,value:n,...1!==_e||!1!==x||e.props.tabIndex?{}:{tabIndex:0}})}),we=(()=>{const e={};e.scrollbarSizeListener=D?(0,_t.jsx)(ce,{...he,onChange:ue}):null;const t=D&&("auto"===v&&(j||$)||!0===v);return e.scrollButtonStart=t?(0,_t.jsx)(ge,{direction:s?"right":"left",onClick:ae,disabled:!j,...pe}):null,e.scrollButtonEnd=t?(0,_t.jsx)(ge,{direction:s?"left":"right",onClick:le,disabled:!$,...pe}):null,e})(),[Ae,Se]=Nl("root",{ref:n,className:kt(P.root,h),elementType:Bh,externalForwardedProps:{...te,...E,component:u},ownerState:q}),[xe,ke]=Nl("scroller",{ref:J,className:P.scroller,elementType:Fh,externalForwardedProps:te,ownerState:q,additionalProps:{style:{overflow:Y.overflow,[I?"margin"+(s?"Left":"Right"):"marginBottom"]:L?void 0:-Y.scrollbarWidth}}}),[Le,Ee]=Nl("list",{ref:ee,className:kt(P.list,P.flexContainer),elementType:Wh,externalForwardedProps:te,ownerState:q,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=ee.current,n=Mh(Th(t)),i=n?.getAttribute("role");if("tab"!==i)return;let o="horizontal"===f?"ArrowLeft":"ArrowUp",r="horizontal"===f?"ArrowRight":"ArrowDown";switch("horizontal"===f&&s&&(o="ArrowRight",r="ArrowLeft"),e.key){case o:e.preventDefault(),Ph(t,n,qh);break;case r:e.preventDefault(),Ph(t,n,Oh);break;case"Home":e.preventDefault(),Ph(t,null,Oh);break;case"End":e.preventDefault(),Ph(t,null,qh)}})(t),e.onKeyDown?.(t)}})});return(0,_t.jsxs)(Ae,{...Se,children:[we.scrollButtonStart,we.scrollbarSizeListener,(0,_t.jsxs)(xe,{...ke,children:[(0,_t.jsx)(Le,{"aria-label":r,"aria-labelledby":a,"aria-orientation":"vertical"===f?"vertical":null,role:"tablist",...Ee,children:ye}),W&&Ce]}),we.scrollButtonEnd]})}),Uh=jh;function $h(e){return Er("MuiTab",e)}const Gh=Dr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Kh=_r(Lc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Vr(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Gh.iconWrapper}`]:t.iconWrapper},{[`& .${Gh.icon}`]:t.icon}]}})(Xa(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${Gh.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${Gh.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${Gh.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${Gh.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Gh.selected}`]:{opacity:1},[`&.${Gh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Gh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Gh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Gh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Qh=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:r=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:h,onChange:u,onClick:g,onFocus:p,selected:m,selectionFollowsFocus:f,textColor:b="inherit",value:v,wrapped:C=!1,..._}=i,y={...i,disabled:s,disableFocusRipple:r,selected:m,icon:!!l,iconPosition:c,label:!!h,fullWidth:a,textColor:b,wrapped:C},w=(e=>{const{classes:t,textColor:n,fullWidth:i,wrapped:o,icon:s,label:r,selected:a,disabled:l}=e;return Lt({root:["root",s&&r&&"labelIcon",`textColor${Vr(n)}`,i&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},$h,t)})(y),A=l&&h&&t.isValidElement(l)?t.cloneElement(l,{className:kt(w.icon,l.props.className)}):l;return(0,_t.jsxs)(Kh,{focusRipple:!r,className:kt(w.root,o),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:e=>{!m&&u&&u(e,v),g&&g(e)},onFocus:e=>{f&&!m&&u&&u(e,v),p&&p(e)},ownerState:y,tabIndex:m?0:-1,..._,children:["top"===c||"start"===c?(0,_t.jsxs)(t.Fragment,{children:[A,h]}):(0,_t.jsxs)(t.Fragment,{children:[h,A]}),d]})}),Yh=Qh;var Zh;const Xh=_r("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Jh=_r("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cr})(Xa(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))),eu=t.createContext(void 0);function tu(){return t.useContext(eu)}function nu({props:e,states:t,muiFormControl:n}){return t.reduce((t,i)=>(t[i]=e[i],n&&void 0===e[i]&&(t[i]=n[i]),t),{})}function iu(e){return Er("MuiInputBase",e)}const ou=Dr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function su(e){return Er("MuiOutlinedInput",e)}const ru={...ou,...Dr("MuiOutlinedInput",["root","notchedOutline","input"])};function au(e){return parseInt(e,10)||0}const lu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function cu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const du=t.forwardRef(function(e,n){const{onChange:i,maxRows:o,minRows:s=1,style:r,value:a,...l}=e,{current:c}=t.useRef(null!=a),d=t.useRef(null),h=Sl(n,d),u=t.useRef(null),g=t.useRef(null),p=t.useCallback(()=>{const t=d.current,n=g.current;if(!t||!n)return;const i=yh(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const r=i.boxSizing,a=au(i.paddingBottom)+au(i.paddingTop),l=au(i.borderBottomWidth)+au(i.borderTopWidth),c=n.scrollHeight;n.value="x";const h=n.scrollHeight;let u=c;return s&&(u=Math.max(Number(s)*h,u)),o&&(u=Math.min(Number(o)*h,u)),u=Math.max(u,h),{outerHeightStyle:u+("border-box"===r?a+l:0),overflowing:Math.abs(u-c)<=1}},[o,s,e.placeholder]),m=Ql(()=>{const e=d.current,t=p();if(!e||!t||cu(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),f=t.useCallback(()=>{const e=d.current,t=p();if(!e||!t||cu(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),b=t.useRef(-1);return Jr(()=>{const e=bh(f),t=d?.current;if(!t)return;const n=yh(t);let i;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(()=>{m()&&(i.unobserve(t),cancelAnimationFrame(b.current),f(),b.current=requestAnimationFrame(()=>{i.observe(t)}))}),i.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),i&&i.disconnect()}},[p,f,m]),Jr(()=>{f()}),(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)("textarea",{value:a,onChange:e=>{c||f();const t=e.target,n=t.value.length,o=t.value.endsWith("\n"),s=t.selectionStart===n;o&&s&&t.setSelectionRange(n,n),i&&i(e)},ref:h,rows:s,style:r,...l}),(0,_t.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...lu,...r,paddingTop:0,paddingBottom:0}})]})}),hu=du;function uu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function gu(e,t=!1){return e&&(uu(e.value)&&""!==e.value||t&&uu(e.defaultValue)&&""!==e.defaultValue)}var pu;const mu="mui-auto-fill",fu="mui-auto-fill-cancel",bu=(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${Vr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},vu=(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]},Cu=_r("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bu})(Xa(({theme:e})=>({...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",[`&.${ou.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),_u=_r("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vu})(Xa(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ou.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ou.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:fu,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:mu}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),yu=function(e){return function(t){return(0,_t.jsx)(gd,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${mu}`]:{from:{animationName:mu}},[`@keyframes ${fu}`]:{from:{animationName:fu}}}),wu=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:r,className:a,color:l,components:c={},componentsProps:d={},defaultValue:h,disabled:u,disableInjectingGlobalStyles:g,endAdornment:p,error:m,fullWidth:f=!1,id:b,inputComponent:v="input",inputProps:C={},inputRef:_,margin:y,maxRows:w,minRows:A,multiline:S=!1,name:x,onBlur:k,onChange:L,onClick:E,onFocus:D,onKeyDown:I,onKeyUp:N,placeholder:R,readOnly:T,renderSuffix:M,rows:O,size:q,slotProps:P={},slots:B={},startAdornment:F,type:W="text",value:z,...V}=i,H=null!=C.value?C.value:z,{current:j}=t.useRef(null!=H),U=t.useRef(),$=t.useCallback(e=>{},[]),G=Kl(U,_,C.ref,$),[K,Q]=t.useState(!1),Y=tu(),Z=nu({props:i,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=Y?Y.focused:K,t.useEffect(()=>{!Y&&u&&K&&(Q(!1),k&&k())},[Y,u,K,k]);const X=Y&&Y.onFilled,J=Y&&Y.onEmpty,ee=t.useCallback(e=>{gu(e)?X&&X():J&&J()},[X,J]);ih(()=>{j&&ee({value:H})},[H,ee,j]),ih(()=>{if(!r)return;const e=U.current;if(!e)return;const t=Th(e),n=Mh(t),i=null==n||n===t.body||n===t.documentElement;e===n?Y&&Y.onFocus?Y.onFocus():Q(!0):i&&e.focus()},[r]),t.useEffect(()=>{ee(U.current)},[]);let te=v,ne=C;S&&"input"===te&&(ne=O?{type:void 0,minRows:O,maxRows:O,...ne}:{type:void 0,maxRows:w,minRows:A,...ne},te=hu),t.useEffect(()=>{Y&&Y.setAdornedStart(Boolean(F))},[Y,F]);const ie={...i,color:Z.color||"primary",disabled:Z.disabled,endAdornment:p,error:Z.error,focused:Z.focused,formControl:Y,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:S,size:Z.size,startAdornment:F,type:W},oe=(e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:s,focused:r,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:h,size:u,startAdornment:g,type:p}=e;return Lt({root:["root",`color${Vr(n)}`,i&&"disabled",o&&"error",l&&"fullWidth",r&&"focused",a&&"formControl",u&&"medium"!==u&&`size${Vr(u)}`,d&&"multiline",g&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled","search"===p&&"inputTypeSearch",d&&"inputMultiline","small"===u&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]},iu,t)})(ie),se=B.root||c.Root||Cu,re=P.root||d.root||{},ae=B.input||c.Input||_u;return ne={...ne,...P.input??d.input},(0,_t.jsxs)(t.Fragment,{children:[!g&&"function"==typeof yu&&(pu||(pu=(0,_t.jsx)(yu,{}))),(0,_t.jsxs)(se,{...re,ref:n,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),E&&E(e)},...V,...!xl(se)&&{ownerState:{...ie,...re.ownerState}},className:kt(oe.root,re.className,a,T&&"MuiInputBase-readOnly"),children:[F,(0,_t.jsx)(eu.Provider,{value:null,children:(0,_t.jsx)(ae,{"aria-invalid":Z.error,"aria-describedby":o,autoComplete:s,autoFocus:r,defaultValue:h,disabled:Z.disabled,id:b,onAnimationStart:e=>{ee(e.animationName===fu?U.current:{value:"x"})},name:x,placeholder:R,readOnly:T,required:Z.required,rows:O,value:H,onKeyDown:I,onKeyUp:N,type:W,...ne,...!xl(ae)&&{as:te,ownerState:{...ie,...ne.ownerState}},ref:G,className:kt(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),C.onBlur&&C.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):Q(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||U.current;if(null==t)throw new Error(Ei(1));ee({value:t.value})}C.onChange&&C.onChange(e,...t),L&&L(e,...t)},onFocus:e=>{D&&D(e),C.onFocus&&C.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):Q(!0)}})}),p,M?M({...Z,startAdornment:F}):null]})]})}),Au=wu,Su=_r(Cu,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:bu})(Xa(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ru.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ru.focused} .${ru.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${ru.focused} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ru.error} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ru.disabled} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),xu=_r(function(e){const{children:t,classes:n,className:i,label:o,notched:s,...r}=e,a=null!=o&&""!==o,l={...e,notched:s,withLabel:a};return(0,_t.jsx)(Xh,{"aria-hidden":!0,className:i,ownerState:l,...r,children:(0,_t.jsx)(Jh,{ownerState:l,children:a?(0,_t.jsx)("span",{children:o}):Zh||(Zh=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xa(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),ku=_r(_u,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vu})(Xa(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Lu=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:r="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:h={},type:u="text",...g}=i,p=(e=>{const{classes:t}=e,n=Lt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},su,t);return{...t,...n}})(i),m=tu(),f=nu({props:i,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...i,color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:m,fullWidth:s,hiddenLabel:f.hiddenLabel,multiline:l,size:f.size,type:u},v=d.root??o.Root??Su,C=d.input??o.Input??ku,[_,y]=Nl("notchedOutline",{elementType:xu,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:d,slotProps:h},additionalProps:{label:null!=a&&""!==a&&f.required?(0,_t.jsxs)(t.Fragment,{children:[a," ","*"]}):a}});return(0,_t.jsx)(Au,{slots:{root:v,input:C},slotProps:h,renderSuffix:e=>(0,_t.jsx)(_,{...y,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:s,inputComponent:r,multiline:l,ref:n,type:u,...g,classes:{...p,notchedOutline:null}})});Lu.muiName="Input";const Eu=Lu,Du=t.createContext({}),Iu=t.createContext(void 0),Nu=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Ru=_r(Lc,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Vr(n.color)}`],t[`size${Vr(n.size)}`],t[`${n.variant}Size${Vr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xa(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ba.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&"start"===e.loadingPosition,style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ba.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ba.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ba.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ba.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ba.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ba.loading}`]:{color:"transparent"}}}]}})),Tu=_r("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Vr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Nu]})),Mu=_r("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Vr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Nu]})),Ou=_r("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),qu=_r("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Pu=t.forwardRef(function(e,n){const i=t.useContext(Du),o=t.useContext(Iu),s=Sr({props:yr(i,e),name:"MuiButton"}),{children:r,color:a="primary",component:l="button",className:c,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:u=!1,endIcon:g,focusVisibleClassName:p,fullWidth:m=!1,id:f,loading:b=null,loadingIndicator:v,loadingPosition:C="center",size:_="medium",startIcon:y,type:w,variant:A="text",...S}=s,x=Ul(f),k=v??(0,_t.jsx)(Fc,{"aria-labelledby":x,color:"inherit",size:16}),L={...s,color:a,component:l,disabled:d,disableElevation:h,disableFocusRipple:u,fullWidth:m,loading:b,loadingIndicator:k,loadingPosition:C,size:_,type:w,variant:A},E=(e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:s,loading:r,loadingPosition:a,classes:l}=e,c=Lt({root:["root",r&&"loading",s,`${s}${Vr(t)}`,`size${Vr(o)}`,`${s}Size${Vr(o)}`,`color${Vr(t)}`,n&&"disableElevation",i&&"fullWidth",r&&`loadingPosition${Vr(a)}`],startIcon:["icon","startIcon",`iconSize${Vr(o)}`],endIcon:["icon","endIcon",`iconSize${Vr(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Pa,l);return{...l,...c}})(L),D=(y||b&&"start"===C)&&(0,_t.jsx)(Tu,{className:E.startIcon,ownerState:L,children:y||(0,_t.jsx)(qu,{className:E.loadingIconPlaceholder,ownerState:L})}),I=(g||b&&"end"===C)&&(0,_t.jsx)(Mu,{className:E.endIcon,ownerState:L,children:g||(0,_t.jsx)(qu,{className:E.loadingIconPlaceholder,ownerState:L})}),N=o||"",R="boolean"==typeof b?(0,_t.jsx)("span",{className:E.loadingWrapper,style:{display:"contents"},children:b&&(0,_t.jsx)(Ou,{className:E.loadingIndicator,ownerState:L,children:k})}):null,{root:T,...M}=E;return(0,_t.jsxs)(Ru,{ownerState:L,className:kt(i.className,E.root,c,N),component:l,disabled:d||b,focusRipple:!u,focusVisibleClassName:kt(E.focusVisible,p),ref:n,type:w,id:b?x:f,...S,classes:M,children:[D,"end"!==C&&R,r,"end"===C&&R,I]})}),Bu=Pu,Fu=({isCredentialProvided:e,inputs:t,fields:n})=>e?!t["engine-websocket-url"]:Object.entries(t).length!==n.length||Object.values(t).some(e=>!e),Wu=({isCredentialProvided:e,field:t})=>e?`You have provided "${t}" through cli or nebula.config.js file already!`:t;function zu({error:{message:e,hints:t}}){return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(yd,{variant:"subtitle1",color:"error",gutterBottom:!0,style:{marginBottom:0},children:e}),t.map(e=>(0,_t.jsx)(yd,{variant:"body2",children:e},e))]})}function Vu({info:e,fields:n,error:i,isCredentialProvided:o}){const s=le(),{setError:r}=At(),[a,l]=(0,t.useState)({});return(0,_t.jsx)("form",{onSubmit:e=>{e.preventDefault(),r();const t=new URL(a["engine-websocket-url"]);a["web-integration-id"]&&t.searchParams.append("qlik-web-integration-id",a["web-integration-id"]),a["client-id"]&&t.searchParams.append("qlik-client-id",a["client-id"]),s(`/app-list?engine_url=${t.toString().replace("?","&")}`)},children:(0,_t.jsxs)(ud,{container:!0,spacing:2,direction:"column",justifyContent:"center",children:[n.map((t,n)=>(0,_t.jsx)(ud,{size:12,children:(0,_t.jsx)(Eu,{fullWidth:!0,autoFocus:0===n,disabled:o&&1===n,name:t.split(" ").map(e=>e.toLowerCase()).join("-"),error:e?.invalid,placeholder:0===n?t:Wu({field:t,isCredentialProvided:o}),onChange:e=>(e=>{l({...a,[e.target.name]:e.target.value})})(e)})},t)),(0,_t.jsxs)(ud,{container:!0,size:12,alignItems:"center",children:[(0,_t.jsx)(ud,{size:10,children:i&&(0,_t.jsx)(zu,{error:i})}),(0,_t.jsx)(ud,{container:!0,size:2,direction:"row",alignItems:"center",justifyContent:"flex-end",children:(0,_t.jsx)(Bu,{type:"submit",variant:"contained",size:"large",disabled:Fu({isCredentialProvided:o,inputs:a,fields:n}),children:"Connect"})})]})]})})}const Hu=[{id:0,label:"Local Engine",formFields:["Engine WebSocket URL"]},{id:1,label:"Web Integration Id",formFields:["Engine WebSocket URL","Web Integration Id"]},{id:2,label:"Client Id",formFields:["Engine WebSocket URL","Client Id"]}],ju=({label:e,info:t})=>{if(!t)return!1;const n=e.split(" ").map(e=>e.toLowerCase()).join("-");return t.isWebIntegrationIdProvided?"web-integration-id"!==n:!!t.isClientIdProvided&&"client-id"!==n};function Uu(){const{info:e,error:n}=At(),[i,o]=(0,t.useState)(0);return(0,t.useEffect)(()=>{const t=(e=>e?e.isWebIntegrationIdProvided?Hu.findIndex(e=>"Web Integration Id"===e.label):e.isClientIdProvided?Hu.findIndex(e=>"Client Id"===e.label):0:0)(e);t&&o(t)},[e]),(0,_t.jsxs)(Qa,{children:[(0,_t.jsx)(yd,{variant:"h6",gutterBottom:!0,children:"New connection with:"}),(0,_t.jsxs)(Qa,{sx:{width:"100%"},children:[(0,_t.jsx)(Qa,{sx:{borderBottom:1,borderColor:"divider"},children:(0,_t.jsx)(Uh,{value:i,onChange:(e,t)=>o(t),"aria-label":"basic tabs example",children:Hu.map(({id:t,label:n})=>(0,_t.jsx)(Yh,{label:n,disabled:ju({info:e,label:n})},t))})}),Hu.map(({id:t,formFields:o})=>(0,_t.jsx)($u,{tabIdx:i,idx:t,children:(0,_t.jsx)(Vu,{info:e,error:n,fields:o,isCredentialProvided:e?.isWebIntegrationIdProvided||e?.isClientIdProvided})},t))]})]})}function $u({children:e,tabIdx:t,idx:n}){return t===n?(0,_t.jsx)(Qa,{sx:{p:3,pb:1},children:e}):null}const Gu=()=>{const{cachedConnectionsData:e}=At(),[n,i]=(0,t.useState)(!1);return(()=>{const{cachedConnectionsData:e}=At();(0,t.useEffect)(()=>{it.setDefaultHostConfig(void 0)},[e.cachedConnections.length])})(),(0,t.useEffect)(()=>{i(!e.cachedConnections.length)},[e.cachedConnections.length]),(0,_t.jsxs)(Bl,{children:[(0,_t.jsxs)(ud,{container:!0,children:[(0,_t.jsx)(ud,{sx:{flex:1},children:(0,_t.jsx)(yd,{variant:"h5",gutterBottom:!0,children:"Connect to an engine"})}),(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)(Uc,{onClick:()=>i(!n),size:"small",children:(0,_t.jsx)(jl,{})})})]}),(0,_t.jsx)(mh,{}),(0,_t.jsx)(Uu,{}),(0,_t.jsx)(Kd,{showGuid:n})]})},Ku=()=>{const e=le(),n=re(),{info:i,glob:o,treatAsDesktop:s}=At(),{loading:r,appList:a}=(({glob:e,info:n})=>{const{setInfo:i,setActiveStep:o}=At(),[s,r]=(0,t.useState)(),[a,l]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{o(1),ut().then(e=>{i(e)})},[]),(0,t.useEffect)(()=>{s?.length||(l(!0),e?.getDocList()?.then(e=>{r(e),e&&l(!1)})?.catch(e=>{console.error("Failed to fetch app list:",e),l(!1)}))},[n,e]),{appList:s,loading:a}})({glob:o,info:i});return(0,_t.jsxs)(Bl,{children:[(0,_t.jsx)(yd,{variant:"h5",gutterBottom:!0,children:"Select an app"}),r&&(0,_t.jsx)(Fc,{"data-testid":"loading",size:32}),!r&&a&&!a.length&&(0,_t.jsx)(yd,{component:"span",children:"No apps found!"}),a&&a.length>0&&(0,_t.jsx)(nh,{children:a.map(t=>(0,_t.jsx)(lh,{button:!0,component:"a",onClick:()=>(async({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,s=i.engine.secure?"wss":"ws",r=i.engine.port?`:${i.engine.port}`:"",a=i.engine.prefix?`/${i.engine.prefix}`:"",l=("localhost"===i.engine.host?`${i.engine.host}${r}`:i.engine.host)+a,c=await at(`https://${i.engine.host}${a}`),d=c?`&qlik-csrf-token=${c}`:"",h=`${s}://${l}/app/${encodeURIComponent(n)}${d}`;e(`/dev/${o.replace(i.engineUrl,h)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:n,targetApp:s?t.qDocName:t.qDocId}),children:(0,_t.jsx)(gh,{primary:t.qTitle,secondary:t.qDocId})},t.qDocId))})]})};n(39312);const Qu=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;const o={language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach(e=>{n[e]||(n[e]={}),n[e][t]=i[e]})},get(e,o){let s;return s=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)})(s,o):s}};return o}({initial:e,fallback:t});return{translator:n}},Yu=JSON.parse('{"Accessibility_Object_NoTitle":{"id":"Accessibility.Object.NoTitle","locale":{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},"Cancel":{"id":"Cancel","locale":{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},"CurrentSelections_All":{"id":"CurrentSelections.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"CurrentSelections_Of":{"id":"CurrentSelections.Of","locale":{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},"Listbox_Clear_Search":{"id":"Listbox.Clear.Search","locale":{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},"Listbox_Cyclic":{"id":"Listbox.Cyclic","locale":{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},"Listbox_Dismiss":{"id":"Listbox.Dismiss","locale":{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},"Listbox_DrillDown":{"id":"Listbox.DrillDown","locale":{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},"Listbox_ItemsOverflow":{"id":"Listbox.ItemsOverflow","locale":{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},"Listbox_Lock":{"id":"Listbox.Lock","locale":{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},"Listbox_NoMatchesForYourTerms":{"id":"Listbox.NoMatchesForYourTerms","locale":{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},"Listbox_ResultFilterLabel":{"id":"Listbox.ResultFilterLabel","locale":{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},"Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_ActionButton":{"id":"Object.ActionButton","locale":{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},"Object_AutoChart":{"id":"Object.AutoChart","locale":{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},"Object_BarChart":{"id":"Object.BarChart","locale":{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},"Object_BoxPlot":{"id":"Object.BoxPlot","locale":{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},"Object_BulletChart":{"id":"Object.BulletChart","locale":{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},"Object_ComboChart":{"id":"Object.ComboChart","locale":{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},"Object_Container":{"id":"Object.Container","locale":{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},"Object_DistributionPlot":{"id":"Object.DistributionPlot","locale":{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},"Object_FilterLabel_All":{"id":"Object.FilterLabel.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"Object_FilterLabel_Exclude":{"id":"Object.FilterLabel.Exclude","locale":{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},"Object_FilterLabel_Unknown":{"id":"Object.FilterLabel.Unknown","locale":{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},"Object_FilterPane":{"id":"Object.FilterPane","locale":{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},"Object_FiltersApplied":{"id":"Object.FiltersApplied","locale":{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},"Object_FunnelChart":{"id":"Object.FunnelChart","locale":{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},"Object_Gauge":{"id":"Object.Gauge","locale":{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},"Object_GridChart":{"id":"Object.GridChart","locale":{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},"Object_Histogram":{"id":"Object.Histogram","locale":{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},"Object_Kpi":{"id":"Object.Kpi","locale":{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},"Object_LayoutContainer":{"id":"Object.LayoutContainer","locale":{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},"Object_LineChart":{"id":"Object.LineChart","locale":{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},"Object_Listbox":{"id":"Object.Listbox","locale":{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},"Object_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},"Object_Map":{"id":"Object.Map","locale":{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},"Object_MekkoChart":{"id":"Object.MekkoChart","locale":{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},"Object_NavMenu":{"id":"Object.NavMenu","locale":{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},"Object_NlgChart":{"id":"Object.NlgChart","locale":{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},"Object_PieChart":{"id":"Object.PieChart","locale":{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},"Object_PivotTable":{"id":"Object.PivotTable","locale":{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},"Object_RadarChart":{"id":"Object.RadarChart","locale":{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},"Object_SankeyChart":{"id":"Object.SankeyChart","locale":{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},"Object_ScatterPlot":{"id":"Object.ScatterPlot","locale":{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},"Object_StraightTable":{"id":"Object.StraightTable","locale":{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},"Object_TabContainer":{"id":"Object.TabContainer","locale":{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d\'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ コンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},"Object_Table":{"id":"Object.Table","locale":{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Table_Deprecated":{"id":"Object.Table.Deprecated","locale":{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},"Object_Text":{"id":"Object.Text","locale":{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},"Object_TextImage":{"id":"Object.TextImage","locale":{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},"Object_Treemap":{"id":"Object.Treemap","locale":{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Object_WaterfallChart":{"id":"Object.WaterfallChart","locale":{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"ScreenReader_ManySearchResults":{"id":"ScreenReader.ManySearchResults","locale":{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSearchResult":{"id":"ScreenReader.OneSearchResult","locale":{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"SelectionToolbar_ClickToLock":{"id":"SelectionToolbar.ClickToLock","locale":{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var Zu=n(28521),Xu=n.n(Zu);function Ju(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eg(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function tg(){}n.dn(Ju);var ng=.7,ig=1/ng,og="\\s*([+-]?\\d+)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ag=/^#([0-9a-f]{3,8})$/,lg=new RegExp(`^rgb\\(${og},${og},${og}\\)$`),cg=new RegExp(`^rgb\\(${rg},${rg},${rg}\\)$`),dg=new RegExp(`^rgba\\(${og},${og},${og},${sg}\\)$`),hg=new RegExp(`^rgba\\(${rg},${rg},${rg},${sg}\\)$`),ug=new RegExp(`^hsl\\(${sg},${rg},${rg}\\)$`),gg=new RegExp(`^hsla\\(${sg},${rg},${rg},${sg}\\)$`),pg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function mg(){return this.rgb().formatHex()}function fg(){return this.rgb().formatRgb()}function bg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ag.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vg(t):3===n?new yg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Cg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Cg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=lg.exec(e))?new yg(t[1],t[2],t[3],1):(t=cg.exec(e))?new yg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dg.exec(e))?Cg(t[1],t[2],t[3],t[4]):(t=hg.exec(e))?Cg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ug.exec(e))?Lg(t[1],t[2]/100,t[3]/100,1):(t=gg.exec(e))?Lg(t[1],t[2]/100,t[3]/100,t[4]):pg.hasOwnProperty(e)?vg(pg[e]):"transparent"===e?new yg(NaN,NaN,NaN,0):null}function vg(e){return new yg(e>>16&255,e>>8&255,255&e,1)}function Cg(e,t,n,i){return i<=0&&(e=t=n=NaN),new yg(e,t,n,i)}function _g(e,t,n,i){return 1===arguments.length?function(e){return e instanceof tg||(e=bg(e)),e?new yg((e=e.rgb()).r,e.g,e.b,e.opacity):new yg}(e):new yg(e,t,n,i??1)}function yg(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function wg(){return`#${kg(this.r)}${kg(this.g)}${kg(this.b)}`}function Ag(){const e=Sg(this.opacity);return`${1===e?"rgb(":"rgba("}${xg(this.r)}, ${xg(this.g)}, ${xg(this.b)}${1===e?")":`, ${e})`}`}function Sg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function kg(e){return((e=xg(e))<16?"0":"")+e.toString(16)}function Lg(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dg(e,t,n,i)}function Eg(e){if(e instanceof Dg)return new Dg(e.h,e.s,e.l,e.opacity);if(e instanceof tg||(e=bg(e)),!e)return new Dg;if(e instanceof Dg)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2;return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Dg(r,a,l,e.opacity)}function Dg(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Ig(e){return(e=(e||0)%360)<0?e+360:e}function Ng(e){return Math.max(0,Math.min(1,e||0))}function Rg(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ju(tg,bg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mg,formatHex:mg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Eg(this).formatHsl()},formatRgb:fg,toString:fg}),Ju(yg,_g,eg(tg,{brighter(e){return e=null==e?ig:Math.pow(ig,e),new yg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ng:Math.pow(ng,e),new yg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yg(xg(this.r),xg(this.g),xg(this.b),Sg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wg,formatHex:wg,formatHex8:function(){return`#${kg(this.r)}${kg(this.g)}${kg(this.b)}${kg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ag,toString:Ag})),Ju(Dg,function(e,t,n,i){return 1===arguments.length?Eg(e):new Dg(e,t,n,i??1)},eg(tg,{brighter(e){return e=null==e?ig:Math.pow(ig,e),new Dg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ng:Math.pow(ng,e),new Dg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new yg(Rg(e>=240?e-240:e+120,o,i),Rg(e,o,i),Rg(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Dg(Ig(this.h),Ng(this.s),Ng(this.l),Sg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Sg(this.opacity);return`${1===e?"hsl(":"hsla("}${Ig(this.h)}, ${100*Ng(this.s)}%, ${100*Ng(this.l)}%${1===e?")":`, ${e})`}`}}));var Tg=n(64313),Mg=n.n(Tg);const Og=JSON.parse('{"fontSize":"12px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"object":{"title":{"main":{"color":"@B50","fontSize":"15px","backgroundColor":"transparent"},"subTitle":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"},"footer":{"color":"@B50","fontSize":"12px","backgroundColor":"transparent"}}},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),qg=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"light","color":"@B35"}'),Pg=JSON.parse('{"_variables":{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},"type":"dark","color":"@B98","object":{"listBox":{"backgroundColor":"@B20","title":{"main":{"color":"@B98","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#@B98","fontSize":"12px"}}}}'),Bg=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),Fg={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Wg=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,zg=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Vg=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i,Hg=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i,jg=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Ug=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:$g}=Math,{round:Gg}=Math;class Kg{constructor(...e){let t,n,i,o,s,r,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof Kg)g=e[0]._r,p=e[0]._g,m=e[0]._b,f=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(u=e[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(u))g=parseInt(h[1],10),p=parseInt(h[2],10),m=parseInt(h[3],10),f=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(u))f=parseInt(h[1],10)/255,g=parseInt(h[2],10),p=parseInt(h[3],10),m=parseInt(h[4],10);else if(h=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(u))g=parseInt(h[1],16),p=parseInt(h[2],16),m=parseInt(h[3],16),f=1;else if(h=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(u))g=parseInt(h[1]+h[1],16),p=parseInt(h[2]+h[2],16),m=parseInt(h[3]+h[3],16),f=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,r=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Gg(255*g),p=Gg(255*p),m=Gg(255*m),f=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),o=parseFloat(h[5]),f=parseFloat(h[7]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,r=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=o-.5*r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Gg(255*g),p=Gg(255*p),m=Gg(255*m)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(u)){switch(t=parseFloat(h[1]),n=parseFloat(h[3]),s=parseFloat(h[5]),t%=360,n/=100,s/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,s=s<0?0:s>1?1:s,r=s*n,a=t/60,l=r*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[r,l,0];break;case 1:c=[l,r,0];break;case 2:c=[0,r,l];break;case 3:c=[0,l,r];break;case 4:c=[l,0,r];break;case 5:c=[r,0,l];break;default:c=[0,0,0]}d=s-r,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=Gg(255*g),p=Gg(255*p),m=Gg(255*m),f=1}else Object.prototype.hasOwnProperty.call(Fg,u.toLowerCase())?(i=u.toLowerCase(),g=Fg[i].r,p=Fg[i].g,m=Fg[i].b,f="number"==typeof Fg[i].a?Fg[i].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(f=(4278190080&e[0])>>>24,f/=255,g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(g=(16711680&e[0])>>16,p=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(g=e[0],p=e[1],m=e[2],f=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+g+p+m+f)&&(this._invalid=!0),this._r=$g(g),this._g=$g(p),this._b=$g(m),this._a=f,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Kg.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Kg.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Kg.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Kg.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Kg.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Kg.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Kg.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Kg.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),i=parseFloat(n[1]),o=parseFloat(n[3]);let s=parseFloat(n[5]);const r=parseFloat(n[7]);return s+=e,s=Math.max(0,Math.min(s,100)),`hsla(${i},${o},${s},${r})`}isEqual(e){return e instanceof Kg||(e=new Kg(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[$g(this._r+(e._r-this._r)*t),$g(this._g+(e._g-this._g)*t),$g(this._b+(e._b-this._b)*t),$g(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,i=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Kg(i)}static toRGB(e){return e instanceof Kg?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=Kg.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof Kg?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=Kg.toNumber(e)),`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`)}static toHex(e){let t,n,i;return e instanceof Kg?(t=e._r.toString(16),n=e._g.toString(16),i=e._b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`):("string"==typeof e&&(e=Kg.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),i=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`)}static toHSL(e,t){let n,i,o,s=0;"string"==typeof e&&(e=new Kg(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(r,a,l),d=Math.min(r,a,l);if(i=t?.21*r+.72*a+.07*l:(c+d)/2,c===d)n=0,s=0;else{switch(o=c-d,n=i>.5?o/(2-c-d):o/(c+d),c){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsl(${360*s},${100*n},${100*i})`}static toHSLA(e,t){let n,i,o,s=0;"string"==typeof e&&(e=new Kg(e));const r=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(r,a,l),h=Math.min(r,a,l);if(i=t?.21*r+.72*a+.07*l:(d+h)/2,d===h)n=0,s=0;else{switch(o=d-h,n=i>.5?o/(2-d-h):o/(d+h),d){case r:s=(a-l)/o+(a<l?6:0);break;case a:s=(l-r)/o+2;break;case l:s=(r-a)/o+4}s/=6}return`hsla(${360*s},${100*n},${100*i},${c})`}static toHSVComponents(e){let t,n,i=0;"string"==typeof e&&(e=new Kg(e));const o=e._r/255,s=e._g/255,r=e._b/255,a=Math.max(o,s,r),l=Math.min(o,s,r),c=a;if(a===l)t=0,i=0;else{switch(n=a-l,t=0===n?0:n/c,a){case o:i=(s-r)/n+(s<r?6:0);break;case s:i=(r-o)/n+2;break;case r:i=(o-s)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Kg)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,i=0,o=0,s=0;return 1===e.length&&"string"==typeof e[0]&&(n=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(n))?(i=parseInt(t[1],10),o=parseInt(t[2],10),s=parseInt(t[3],10)):(t=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(n))?(i=parseInt(t[1],16),o=parseInt(t[2],16),s=parseInt(t[3],16)):(t=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(n))&&(i=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),s=parseInt(t[3]+t[3],16))),(i<<16)+(o<<8)+s}static blend(e,t,n){const i=(16711680&(e=Kg.toNumber(e)))>>16,o=(65280&e)>>8,s=255&e;return(i+(((16711680&(t=Kg.toNumber(t)))>>16)-i)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(s+((255&t)-s)*n)}static getBlend(e,t,n){const i=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,s=e._b+(t._b-e._b)*n,r=e._a+(t._a-e._a)*n;return new Kg(i,o,s,r)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Wg.test(e)||zg.test(e)||Vg.test(e)||Hg.test(e)||jg.test(e)||Ug.test(e)||Object.prototype.hasOwnProperty.call(Fg,e.toLowerCase()))}static getBestContrast(e,t,n){const i=e.getLuminance();return Math.abs(i-t.getLuminance())>Math.abs(i-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,i=t.getLuminance()/100;return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}static isDark(...e){return new Kg(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Qg=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=bg(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([bg(e),bg(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const s=this.colorParts[t][o],r=s[0],a=s[1];if(e===this.min)return a;if(e===this.max)return r;const l=function(e,t,n){return _g(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(r,a,i-o);return l}};function Yg(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Zg(e,t,n){const i=[],o=new Qg(t);i.push(e[0]),n||i.push(e[0]);let s=1;for(;s<e.length-1;s++)i.push(e[s]),i.push(e[s]);const r=e[e.length-1];i.push(r),n||i.push(r);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function Xg(e,t,n){const i=[];for(let o=0;o<t+1;o++){let s;switch(t){case 0:s=e.getColor(.5);break;default:{const i=Yg(1/t*o,t,n);s=e.getColor(i);break}}i.push(bg(s).formatHex())}return i}function Jg(e,t){const n=[];let i,o;if(e){let s=e.length;for(;s>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),s--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function ep(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function tp(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=Jg(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=ep(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function np(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?np(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function ip(e){const t=bg(e);if(!t)return 0;const{r:n,g:i,b:o}=t.rgb(),[s,r,a]=[n,i,o].map(e=>e/255),[l,c,d]=[s,r,a].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function op(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=tp(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=bg(...e);return i?i.toString():void 0}},s={setTheme(s,r){e=function(e,t){const n="dark"===e.type?Pg:qg;let i=Bg;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=Mg()(!0,{},Og,i,n),s=Mg()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return s.palettes.data&&s.palettes.data.length||(s.palettes.data=o.palettes.data),s.palettes.ui&&s.palettes.ui.length||(s.palettes.ui=o.palettes.ui),s.scales&&s.scales.length||(s.scales=o.scales),t(s)}(s,tp.resolveRawTheme),i={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})}),t},dataPalettes(){const t=[];return e.palettes.data.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})}),t},uiPalettes(){const t=[];return e.palettes.ui.forEach(e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})}),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){if(("number"!=typeof e?.index||Number.isNaN(e?.index))&&"string"!=typeof e?.color)return;const n=(()=>e?.index<0||void 0===e?.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return n;const i=new Kg(n);return i.setAlpha(e.alpha),i.isInvalid()?n:i.toRGBA()}}}(e);const a=o.getStyle("","","color"),l=ip(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(ip);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const s=ip(o),r=i.map(e=>{return t=s,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n}),a=e[r.indexOf(Math.max(...r))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>r}};return Object.keys(Xu().prototype).forEach(e=>{o[e]=Xu().prototype[e]}),Xu().init(o),s.setTheme({},"light"),{externalAPI:o,internalAPI:s}}tp.resolveRawTheme=e=>{const t=Mg()(!0,{},e);return np(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const i=Zg(e,n,!0),o=Zg(Xg(i,t-1,t),n,!1),s=[null];for(let e=0;e<t;e++)s.push(Xg(o,e,t));return s}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const sp=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});const rp=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null}),ap={active:!0,select:!0,passive:!0,edit:!1};function lp(e){const t={},n={},i=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const i={};return Object.keys(t).forEach(e=>{i[e]=!t[e]}),i}(e);Object.keys(ap).forEach(e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=ap[e],n[e]=!ap[e])}),e.constraints=n,e.interactions=t}const cp=(e={},n=()=>{})=>{const i=e,o=[],s={},r={get:e=>i[e],set:(e,t)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=t,s[e]=n({type:"SET",value:t}),t},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach(t=>t(e?{}:i))},destroy:()=>{Object.keys(s).forEach(e=>{s[e]&&s[e]()})}};return[()=>{const[,e]=(0,t.useState)(i);return(0,t.useEffect)(()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)}),[e]),[r]},r]};function dp(e){const[t,n]=cp({}),[i,o]=cp({}),[s,r]=cp({}),[a,l]=cp({}),[c,d]=cp({}),[,h]=cp({}),u=({type:e,value:t})=>{const i=h.get(t.id);h.set(t.id,{});const s=()=>{o.clear(t.id),d.set(t.id,{}),d.dispatch(!0)},a=()=>{t.removeListener("closed",a),t.removeListener("changed",s),n.clear(t.id),o.clear(t.id),r.clear(t.id),l.clear(t.id),d.clear(t.id),h.clear(t.id)};return"SET"===e&&(i||(t.on("changed",s),t.once("closed",a))),a},[g,p]=cp({},u);return{subscribe:e=>{const t=u({type:"SET",value:e});return()=>{t(),p.clear(e.id)}},destroy:()=>{p.destroy()},useModelStore:g,modelStore:p,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:i,rpcRequestStore:o,useRpcRequestModelStore:a,rpcRequestModelStore:l,useRpcRequestSessionModelStore:s,rpcRequestSessionModelStore:r,modelChangedStore:d,appId:e}}function hp(e){const[t,n]=cp({}),[i,o]=cp({}),[s,r]=cp({});return{useAppSelectionsStore:t,useAppModalStore:i,appSelectionsStore:n,appModalStore:o,useModalObjectStore:s,modalObjectStore:r,appId:e}}n.dn(cp);const up=(0,t.forwardRef)(({initialContext:e,renderCallback:n,modelStore:i,selectionStore:o},s)=>{const[r,a]=(0,t.useState)(e),[l,c]=(0,t.useState)(),{theme:d}=(0,t.useMemo)(()=>({theme:ja(l)}),[l]),[h,u]=(0,t.useState)([]);return(0,t.useEffect)(()=>{n&&n()},[]),(0,t.useImperativeHandle)(s,()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),r&&(r.modelStore=i,r.selectionStore=o),(0,_t.jsx)(qa,{injectFirst:!0,children:(0,_t.jsx)(Ra,{theme:d,children:(0,_t.jsx)(rp.Provider,{value:r,children:h})})})});function gp(){const{useModelStore:e}=(0,t.useContext)(rp).modelStore;return e()}function pp(e,n,...i){const o=n?`${n.id}/${JSON.stringify(e)}`:null,[s]=gp(),[r]=function(){const{useRpcRequestSessionModelStore:e}=(0,t.useContext)(rp).modelStore;return e()}(),[a,l]=(0,t.useState)();return(0,t.useEffect)(()=>{n&&(async()=>{let t=r.get(o);t||(t=n.createSessionObject(e),r.set(o,t));const i=await t;s.set(o,i),l(i)})()},[n,...i]),[a]}const mp={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function fp(e){return pp(mp,e)}const bp=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let s;switch(t.type){case"INVALID":s={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":s={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":s={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let r=n.get(i);return r||(r={}),r[o]=s,n.set(i,r),s};function vp(e,n){const i=e?`${e.id}`:null,[o]=function(){const{useRpcResultStore:e}=(0,t.useContext)(rp).modelStore;return e()}(),[s,r]=(0,t.useReducer)(bp,i?o.get(i):null),[a]=function(){const{useModelChangedStore:e}=(0,t.useContext)(rp).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=(0,t.useContext)(rp).modelStore;return e()}();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async t=>{let s=c[n];(!s||s&&s.rpcRetry)&&(s={rpc:e[n](),rpcRetry:!1},c[n]=s,r({type:"INVALID",method:n,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{await new Promise(e=>{setTimeout(e,0)});const t=await s.rpc;r({type:"VALID",result:t,key:i,method:n,model:e,rpcResultStore:o})}catch(e){15!==e.code||t||(s.rpcRetry||(s.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const t=e.session.getObjectApi({handle:-1});await t.cancelRequest(c[n].rpc.requestId),r({type:"CANCELLED",key:i,method:n,model:e,rpcResultStore:o})},retry:()=>{c[n].rpcRetry=!0,d()}};return(0,t.useEffect)(()=>{e&&d()},[e,a.get(e&&e.id),i,n]),[s&&s.result,{validating:s&&s.validating,canCancel:s&&s.canCancel,canRetry:s&&s.canRetry},h]}function Cp(e){const[t,{validating:n,canCancel:i,canRetry:o},s]=vp(e,"getLayout");return e?.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:i,canRetry:o},s]:[t,{validating:n,canCancel:i,canRetry:o},s]}function _p(e){return vp(e,"getAppLayout")}function yp(){const[e,n]=(0,t.useState)(),[i,o]=(0,t.useState)(),s=(0,t.useCallback)(e=>{e&&n(e)},[]),r=()=>{const{left:t,top:n,width:i,height:s}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:s})};return(0,t.useLayoutEffect)(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(r);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}}},[e]),[s,i,e]}const wp="singlepublic-pinnedItems",Ap=e=>{const[n]=(e=>{const[n,i]=(0,t.useState)(null),[o,s]=(0,t.useState)(null),[r]=gp();return(0,t.useEffect)(()=>{let t=!0,n=()=>{};if(e)return async function(){try{const o=`${e.id}-${wp}`;let a=r.get(o);if(!a){if(a=await(async(e,t)=>{const n=await e.getLayout(),i=!!n.permissions?.createMasterobject;let o=null;try{o=i?await e.getOrCreateObject({qInfo:{qType:"singlepublic",qId:t}}):await e.getObject(t)}catch{}return o})(e,wp),!t)return;if(a){r.set(o,a);const e=()=>{r.clear(o)};a.once("closed",e),n=()=>{a.removeListener("closed",e)}}}t&&(s(null),i(a))}catch(e){t&&(s(e instanceof Error?e:new Error(String(e))),i(null))}}(),()=>{t=!1,n()}},[e,r]),[n,o]})(e),[i]=vp(n,"getLayout");return[i?.pinnedItems??[]]},Sp=(e,n,i)=>{const[o,s]=(0,t.useState)(void 0),[r,a]=(0,t.useState)(void 0),[l]=gp();return(0,t.useEffect)(()=>{let t=!0,o=()=>{};if("function"==typeof e?.getObject)return async function(){try{const r=`${e.id}-${n}`;let c=l.get(r);if(!c){try{c=await e.getObject(n)}catch(t){if(2!==t.code||"Object not found"!==t.message||!i)throw t;c=await e.createSessionObject(i)}if(!t)return;l.set(r,c);const s=()=>{l.clear(r)};c.once("closed",s),o=()=>{c.removeListener("closed",s)}}t&&(a(void 0),s(c))}catch(e){t&&(a(e instanceof Error?e:new Error(String(e))),s(void 0))}}(),()=>{t=!1,o()}},[e,n,l]),[o,r]},xp={qInfo:{qId:"FieldList",qType:"FieldList"},qFieldListDef:{qShowSystem:!1,qShowHidden:!1,qShowSrcTables:!0,qShowSemantic:!0,qShowDerivedFields:!0}},kp={qInfo:{qId:"DimensionList",qType:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{title:"/qMetaDef/title",tags:"/qMetaDef/tags",grouping:"/qDim/qGrouping",info:"/qDimInfos",labelExpression:"/qDim/qLabelExpression"}}},Lp="qField",Ep="id",Dp=(e,t)=>{const n=e.selections[0],i=t.selections[0],o=!!n.qOneAndOnlyOne;return o===!!i.qOneAndOnlyOne?n.qSortIndex-i.qSortIndex:o?-1:1},Ip=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));n.dn(Ip);const Np=e=>({...e,viewBox:"0 0 12 16",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"}}]}),Rp=e=>Yd(Np(e));function Tp(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Mp(e){return`scale(${e}, ${e**2})`}n.dn(Rp);const Op={entering:{opacity:1,transform:Mp(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Mp(.75)},exited:{opacity:0,transform:Mp(.75)}},qp={opacity:0,transform:Mp(.75),visibility:"hidden"},Pp=t.forwardRef(function(e,n){const{addEndListener:i,appear:o=!0,children:s,easing:r,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",...f}=e,b=gc(),v=t.useRef(),C=Ur(),_=t.useRef(null),y=Kl(_,Tp(s),n),w=Fd(_,d),A=Fd(_,(e,t)=>{Bd(e);const{duration:n,delay:i,easing:o}=zd({style:p,timeout:m,easing:r},{mode:"enter"});let s;"auto"===m?(s=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=s):s=n,e.style.transition=[C.transitions.create("opacity",{duration:s,delay:i}),C.transitions.create("transform",{duration:.666*s,delay:i,easing:o})].join(","),l&&l(e,t)}),S=Fd(_,c),x=Fd(_,g),k=Fd(_,e=>{const{duration:t,delay:n,easing:i}=zd({style:p,timeout:m,easing:r},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Mp(.75),h&&h(e)}),L=Fd(_,e=>{e.style.transition="",u&&u(e)});return(0,_t.jsx)(Pd,{appear:o,in:a,nodeRef:_,onEnter:A,onEntered:S,onEntering:w,onExit:k,onExited:L,onExiting:x,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),i&&i(_.current,e)},timeout:"auto"===m?null:m,...f,children:(e,{ownerState:n,...i})=>{const o=Wd(e,a,Op,qp,p,s.props.style);return t.cloneElement(s,{style:o,ref:y,...i})}})});Pp&&(Pp.muiSupportAuto=!0);const Bp=Pp,Fp=function(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1},Wp="data-mui-focusable",zp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vp(e){const t=[],n=[];return Array.from(e.querySelectorAll(zp)).forEach((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Hp(){return!0}const jp=function(e){const{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:r=Vp,isEnabled:a=Hp,open:l}=e,c=t.useRef(!1),d=t.useRef(null),h=t.useRef(null),u=t.useRef(null),g=t.useRef(null),p=t.useRef(!1),m=t.useRef(null),f=Sl(Tp(n),m),b=t.useRef(null);t.useEffect(()=>{l&&m.current&&(p.current=!i)},[i,l]),t.useEffect(()=>{if(c.current=!1,!l||!m.current)return;const e=_h(m.current),t=Mh(e),n=((i=m.current)?i.hasAttribute(Wp)?i:i.querySelector(`[${Wp}]`):null)??m.current;var i;return Fp(m.current,t)||(n.hasAttribute("tabIndex")||n.setAttribute("tabIndex","-1"),p.current&&n.focus()),()=>{s||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}},[l]),t.useEffect(()=>{if(!l||!m.current)return;const e=_h(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&Mh(e)===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},n=()=>{const t=m.current;if(null===t)return;const n=Mh(e);if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(Fp(t,n))return;if(o&&n!==d.current&&n!==h.current)return;if(n!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let i=[];if(n!==d.current&&n!==h.current||(i=r(m.current)),i.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=i[0],n=i[i.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{const t=Mh(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[i,o,s,a,l,r]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:f,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0,g.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,_t.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:h,"data-testid":"sentinelEnd"})]})};function Up(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const $p=t.forwardRef(function(e,n){const{children:i,container:o,disablePortal:s=!1}=e,[r,a]=t.useState(null),l=Sl(t.isValidElement(i)?Tp(i):null,n);if(Jr(()=>{s||a(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,s]),Jr(()=>{if(r&&!s)return Up(n,r),()=>{Up(n,null)}},[n,r,s]),s){if(t.isValidElement(i)){const e={ref:l};return t.cloneElement(i,e)}return i}return r?Dd.createPortal(i,r):r}),Gp={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Kp={opacity:0,visibility:"hidden"},Qp=t.forwardRef(function(e,n){const i=Ur(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:r=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:b=o,...v}=e,C=t.useRef(null),_=Kl(C,Tp(a),n),y=Fd(C,u),w=Fd(C,(e,t)=>{Bd(e);const n=zd({style:f,timeout:b,easing:l},{mode:"enter"});e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)}),A=Fd(C,h),S=Fd(C,m),x=Fd(C,e=>{const t=zd({style:f,timeout:b,easing:l},{mode:"exit"});e.style.transition=i.transitions.create("opacity",t),g&&g(e)}),k=Fd(C,e=>{e.style.transition="",p&&p(e)});return(0,_t.jsx)(Pd,{appear:r,in:c,nodeRef:C,onEnter:w,onEntered:A,onEntering:y,onExit:x,onExited:k,onExiting:S,addEndListener:e=>{s&&s(C.current,e)},timeout:b,...v,children:(e,{ownerState:n,...i})=>{const o=Wd(e,c,Gp,Kp,f,a.props.style);return t.cloneElement(a,{style:o,ref:_,...i})}})}),Yp=Qp;function Zp(e){return Er("MuiBackdrop",e)}Dr("MuiBackdrop",["root","invisible"]);const Xp=_r("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Jp=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:r=!1,open:a,components:l={},componentsProps:c={},slotProps:d={},slots:h={},TransitionComponent:u,transitionDuration:g,...p}=n,m={...n,component:s,invisible:r},f=(e=>{const{classes:t,invisible:n}=e;return Lt({root:["root",n&&"invisible"]},Zp,t)})(m),b={component:s,slots:{transition:u,root:l.Root,...h},slotProps:{...c,...d}},[v,C]=Nl("root",{elementType:Xp,externalForwardedProps:b,className:kt(f.root,o),ownerState:m}),[_,y]=Nl("transition",{elementType:Yp,externalForwardedProps:b,ownerState:m});return(0,_t.jsx)(_,{in:a,timeout:g,...p,...y,children:(0,_t.jsx)(v,{"aria-hidden":!0,...C,ref:t,children:i})})}),em=Jp;function tm(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function nm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function im(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function om(e){return parseFloat(yh(e).getComputedStyle(e).paddingRight)||0}function sm(e,t,n,i,o){const s=[t,n,...i];[].forEach.call(e.children,e=>{const t=!s.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&im(e,o)})}function rm(e,t){let n=-1;return e.some((e,i)=>!!t(e)&&(n=i,!0)),n}const am=()=>{},lm=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&im(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);sm(t,e.mount,e.modalRef,i,!0);const o=rm(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=rm(this.containers,t=>t.modals.includes(e)),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=_h(e);return t.body===e?yh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=nm(yh(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${om(i)+e}px`;const t=_h(i).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${om(t)+e}px`})}let e;if(i.parentNode instanceof DocumentFragment)e=_h(i).body;else{const t=i.parentElement,n=yh(i);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=rm(this.containers,t=>t.modals.includes(e)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&im(e.modalRef,t),sm(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&im(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function cm(e){return Er("MuiModal",e)}Dr("MuiModal",["root","hidden","backdrop"]);const dm=_r("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xa(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),hm=_r(em,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),um=t.forwardRef(function(e,n){const i=Sr({name:"MuiModal",props:e}),{BackdropComponent:o=hm,BackdropProps:s,classes:r,className:a,closeAfterTransition:l=!1,children:c,container:d,component:h,components:u={},componentsProps:g={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:f=!1,disablePortal:b=!1,disableRestoreFocus:v=!1,disableScrollLock:C=!1,hideBackdrop:_=!1,keepMounted:y=!1,onClose:w,onTransitionEnter:A,onTransitionExited:S,open:x,slotProps:k={},slots:L={},theme:E,...D}=i,I={...i,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:f,disablePortal:b,disableRestoreFocus:v,disableScrollLock:C,hideBackdrop:_,keepMounted:y},{getRootProps:N,getBackdropProps:R,getTransitionProps:T,portalRef:M,isTopModal:O,exited:q,hasTransition:P}=function(e){const{container:n,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:r,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:h}=e,u=t.useRef({}),g=t.useRef(null),p=t.useRef(null),m=Sl(p,h),[f,b]=t.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let C=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(C=!1);const _=()=>(u.current.modalRef=p.current,u.current.mount=g.current,u.current),y=()=>{lm.mount(_(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},w=Ql(()=>{const e=function(e){return"function"==typeof e?e():e}(n)||_h(g.current).body;lm.add(_(),e),p.current&&y()}),A=()=>lm.isTopModal(_()),S=Ql(e=>{g.current=e,e&&(d&&A()?y():p.current&&im(p.current,C))}),x=t.useCallback(()=>{lm.remove(_(),C)},[C]);t.useEffect(()=>()=>{x()},[x]),t.useEffect(()=>{d?w():v&&s||x()},[d,x,v,s,w]);const k=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&A()&&(i||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=El(e);delete n.onTransitionEnter,delete n.onTransitionExited;const i={...n,...t};return{role:"presentation",...i,onKeyDown:k(i),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:L(t),open:d}},getTransitionProps:()=>({onEnter:tm(()=>{b(!1),r&&r()},l?.props.onEnter??am),onExited:tm(()=>{b(!0),a&&a(),s&&x()},l?.props.onExited??am)}),rootRef:m,portalRef:S,isTopModal:A,exited:f,hasTransition:v}}({...I,rootRef:n}),B={...I,exited:q},F=(e=>{const{open:t,exited:n,classes:i}=e;return Lt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cm,i)})(B),W={};if(void 0===c.props.tabIndex&&(W.tabIndex="-1"),P){const{onEnter:e,onExited:t}=T();W.onEnter=e,W.onExited=t}const z={slots:{root:u.Root,backdrop:u.Backdrop,...L},slotProps:{...g,...k}},[V,H]=Nl("root",{ref:n,elementType:dm,externalForwardedProps:{...z,...D,component:h},getSlotProps:N,ownerState:B,className:kt(a,F?.root,!B.open&&B.exited&&F?.hidden)}),[j,U]=Nl("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:e=>R({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:kt(s?.className,F?.backdrop),ownerState:B});return y||x||P&&!q?(0,_t.jsx)($p,{ref:M,container:d,disablePortal:b,children:(0,_t.jsxs)(V,{...H,children:[!_&&o?(0,_t.jsx)(j,{...U}):null,(0,_t.jsx)(jp,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:v,isEnabled:O,open:x,children:t.cloneElement(c,W)})]})}):null}),gm=um;function pm(e){return Er("MuiPaper",e)}Dr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mm=_r("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Xa(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fm=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiPaper"}),i=Ur(),{className:o,component:s="div",elevation:r=1,square:a=!1,variant:l="elevation",...c}=n,d={...n,component:s,elevation:r,square:a,variant:l},h=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e;return Lt({root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]},pm,o)})(d);return(0,_t.jsx)(mm,{as:s,ownerState:d,className:kt(h.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(i.vars||i).shadows[r],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[r]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${Ho("#fff",nr(r))}, ${Ho("#fff",nr(r))})`}},...c.style}})}),bm=fm;function vm(e){return Er("MuiPopover",e)}function Cm(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(i=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(i,t[i])&&"function"==typeof e[i]&&(n[i]=(...n)=>{e[i](...n),t[i](...n)})}),n}if("function"==typeof e||"function"==typeof t)return i=>{const o="function"==typeof t?t(i):t,s="function"==typeof e?e({...i,...o}):e,r=kt(i?.className,o?.className,s?.className),a=n(s,o);return{...o,...s,...a,...!!r&&{className:r},...o?.style&&s?.style&&{style:{...o.style,...s.style}},...o?.sx&&s?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const i=t,o=n(e,i),s=kt(i?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...i?.style&&e?.style&&{style:{...i.style,...e.style}},...i?.sx&&e?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function _m(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ym(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function wm(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Am(e){return"function"==typeof e?e():e}Dr("MuiPopover",["root","paper"]);const Sm=_r(gm,{name:"MuiPopover",slot:"Root"})({}),xm=_r(bm,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),km=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:r={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:h,elevation:u=8,marginThreshold:g=16,open:p,PaperProps:m={},slots:f={},slotProps:b={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:_="auto",TransitionProps:y={},disableScrollLock:w=!1,...A}=i,S=t.useRef(),x={...i,anchorOrigin:r,anchorReference:l,elevation:u,marginThreshold:g,transformOrigin:v,TransitionComponent:C,transitionDuration:_,TransitionProps:y},k=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"]},vm,t)})(x),L=t.useCallback(()=>{if("anchorPosition"===l)return a;const e=Am(s),t=(e&&1===e.nodeType?e:Th(S.current).body).getBoundingClientRect();return{top:t.top+_m(t,r.vertical),left:t.left+ym(t,r.horizontal)}},[s,r.horizontal,r.vertical,a,l]),E=t.useCallback(e=>({vertical:_m(e,v.vertical),horizontal:ym(e,v.horizontal)}),[v.horizontal,v.vertical]),D=t.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:wm(n)};const i=L();let o=i.top-n.vertical,r=i.left-n.horizontal;const a=o+t.height,c=r+t.width,d=wh(Am(s)),h=d.innerHeight-g,u=d.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>h){const e=a-h;o-=e,n.vertical+=e}if(null!==g&&r<g){const e=r-g;r-=e,n.horizontal+=e}else if(c>u){const e=c-u;r-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(r)}px`,transformOrigin:wm(n)}},[s,l,L,E,g]),[I,N]=t.useState(p),R=t.useCallback(()=>{const e=S.current;if(!e)return;const t=D(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[D]);t.useEffect(()=>(w&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[s,w,R]),t.useEffect(()=>{p&&R()}),t.useImperativeHandle(o,()=>p?{updatePosition:()=>{R()}}:null,[p,R]),t.useEffect(()=>{if(!p)return;const e=vh(()=>{R()}),t=wh(Am(s));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,p,R]);let T=_;const M={slots:{transition:C,...f},slotProps:{transition:y,paper:m,...b}},[O,q]=Nl("transition",{elementType:Bp,externalForwardedProps:M,ownerState:x,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),R()},onExited:t=>{e.onExited?.(t),N(!1)}}),additionalProps:{appear:!0,in:p}});"auto"!==_||O.muiSupportAuto||(T=void 0);const P=h||(s?Th(Am(s)).body:void 0),[B,{slots:F,slotProps:W,...z}]=Nl("root",{ref:n,elementType:Sm,externalForwardedProps:{...M,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:f.backdrop},slotProps:{backdrop:Cm("function"==typeof b.backdrop?b.backdrop(x):b.backdrop,{invisible:!0})},container:P,open:p},ownerState:x,className:kt(k.root,d)}),[V,H]=Nl("paper",{ref:S,className:k.paper,elementType:xm,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:u,style:I?void 0:{opacity:0}},ownerState:x});return(0,_t.jsx)(B,{...z,...!xl(B)&&{slots:F,slotProps:W,disableScrollLock:w},children:(0,_t.jsx)(O,{...q,timeout:T,children:(0,_t.jsx)(V,{...H,children:c})})})}),Lm=km;var Em=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Dm=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},Im=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),r=0;r<o;r++)s[r]=arguments[r];return n=i=Dm(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},Dm(i,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),Em(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,i=n.isItemLoaded,o=n.itemCount,s=n.minimumBatchSize,r=void 0===s?10:s,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,s=[],r=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(s.push(r,a),r=a=null):(a=l,null===r&&(r=l));if(null!==a){for(var c=Math.min(Math.max(a,r+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;s.push(r,a)}if(s.length)for(;s[1]-s[0]+1<i&&s[0]>0;){var h=s[0]-1;if(t(h))break;s[0]=h}return s}({isItemLoaded:i,itemCount:o,minimumBatchSize:r,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(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,i=function(i){var o=e[i],s=e[i+1],r=n(o,s);null!=r&&r.then(function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:s}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){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())}var e})},o=0;o<e.length;o+=2)i(o)}}]),t}(t.PureComponent);const Nm=Im,Rm=["S","XS"],Tm=e=>e.reduce((e,t)=>e.concat(t));async function Mm({selections:e,elemNumbers:t,toggle:n,isSingleSelect:i}){if(0===t.length)return!1;let o=!1;if(!t.some(e=>Number.isNaN(e))){const s=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",s,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const Om="RowColumn",qm={row:`${Om}-row`,rowBorderBottom:`${Om}-rowBorderBottom`,column:`${Om}-column`,fieldRoot:`${Om}-fieldRoot`,cell:`${Om}-cell`,labelText:`${Om}-labelText`,labelDense:`${Om}-labelDense`,highlighted:`${Om}-highlighted`,checkboxLabel:`${Om}-checkboxLabel`,icon:`${Om}-icon`,S:`${Om}-S`,XS:`${Om}-XS`,A:`${Om}-A`,X:`${Om}-X`,frequencyCount:`${Om}-frequencyCount`,barContainer:`${Om}-barContainer`,bar:`${Om}-bar`,barSelected:`${Om}-barSelected`,barWithCheckbox:`${Om}-barWithCheckbox`,barSelectedWithCheckbox:`${Om}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Om}-excludedTextWithCheckbox`},Pm=`.${qm.fieldRoot}`,Bm=e=>!(e?.metaKey||e?.ctrlKey);const Fm=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Wm=e=>Yd(Fm(e));n.dn(Wm);const zm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Vm=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||zm(e))&&t,Hm=e=>e.filter(e=>!!e).join(" ").trim(),jm=e=>e||"-",Um=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:i})=>"P"===t?`${e.freqMinWidth}px`:n&&!i?"max-content":"25%",$m=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,Gm=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${qm.labelText}`]:{color:t.selections.selected}}:{};const i=t.selections,o=i[n],s=i[`${n}Contrast`];return{background:o,color:s,"& $cell":{paddingRight:0},[`& .${qm.labelText}`]:{color:s},[`& .${qm.icon}`]:{color:s}}},Km={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Qm=_r("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:i,dense:o,direction:s,sizes:r,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=Gm({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),g=Gm({theme:e,styles:c,checkboxes:t,selectionState:"excluded"}),p={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},m={opacity:"30%"};return{"& .value":{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder} !important`,borderRadius:"4px",outline:"none"}},[`& .${qm.row}`]:{flexWrap:"nowrap",...c.content},[`& .${qm.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${qm.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${qm.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${qm.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...Km,...h},[`& .${qm.labelDense}`]:{lineHeight:"18px"},[`& .${qm.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${qm.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Km,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${qm.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${qm.S}`]:{...u,"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder}, inset 0 0 0 4px ${e.palette.custom.whiteBorder} !important`,borderRadius:"4px",outline:"none"},border:n?"none":void 0},[`& .${qm.XS}`]:{...Gm({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${qm.A}`]:{...Gm({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${qm.X}`]:{...g,border:n?"none":void 0},[`& .${qm.X}, & .${qm.XS}`]:{border:n?"none":void 0,[`& .${qm.barSelected} .bar-filled`]:{...p}},[`& .${qm.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Km,flex:`0 0 ${Um({sizes:r,frequencyMode:a,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==a&&l?r.freqMinWidth:"max-content",maxWidth:$m({sizes:r,frequencyMode:a,isGridMode:n}),textAlign:"rtl"===s?"left":"right",paddingLeft:"rtl"!==s?"8px":0},[`&.${qm.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${qm.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...p}},[`& .${qm.barSelected}`]:{"& .bar-filled":{...m}},[`& .${qm.barWithCheckbox}`]:{left:"rtl"===s?4:29,width:"calc(100% - 33px)"},[`& .${qm.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${qm.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}}),Ym=t.memo(Qm);function Zm(e){return Er("MuiFormControlLabel",e)}const Xm=Dr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Jm=_r("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Xm.label}`]:t.label},t.root,t[`labelPlacement${Vr(n.labelPlacement)}`]]}})(Xa(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xm.disabled}`]:{cursor:"default"},[`& .${Xm.label}`]:{[`&.${Xm.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),ef=_r("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Xa(({theme:e})=>({[`&.${Xm.error}`]:{color:(e.vars||e).palette.error.main}}))),tf=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:r={},control:a,disabled:l,disableTypography:c,inputRef:d,label:h,labelPlacement:u="end",name:g,onChange:p,required:m,slots:f={},slotProps:b={},value:v,...C}=i,_=tu(),y=l??a.props.disabled??_?.disabled,w=m??a.props.required,A={disabled:y,required:w};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==i[e]&&(A[e]=i[e])});const S=nu({props:i,muiFormControl:_,states:["error"]}),x={...i,disabled:y,labelPlacement:u,required:w,error:S.error},k=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:s}=e;return Lt({root:["root",n&&"disabled",`labelPlacement${Vr(i)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Zm,t)})(x),L={slots:f,slotProps:{...r,...b}},[E,D]=Nl("typography",{elementType:yd,externalForwardedProps:L,ownerState:x});let I=h;return null==I||I.type===yd||c||(I=(0,_t.jsx)(E,{component:"span",...D,className:kt(k.label,D?.className),children:I})),(0,_t.jsxs)(Jm,{className:kt(k.root,s),ownerState:x,ref:n,...C,children:[t.cloneElement(a,A),w?(0,_t.jsxs)("div",{children:[I,(0,_t.jsxs)(ef,{ownerState:x,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]})}),nf=tf,of=function(e){const{controlled:n,default:i,name:o,state:s="value"}=e,{current:r}=t.useRef(void 0!==n),[a,l]=t.useState(i);return[r?n:a,t.useCallback(e=>{r||l(e)},[])]};function sf(e){return Er("PrivateSwitchBase",e)}Dr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rf=_r(Lc,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),af=_r("input",{name:"MuiSwitchBase",shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lf=t.forwardRef(function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:s,disabled:r,disableFocusRipple:a=!1,edge:l=!1,icon:c,id:d,inputProps:h,inputRef:u,name:g,onBlur:p,onChange:m,onFocus:f,readOnly:b,required:v=!1,tabIndex:C,type:_,value:y,slots:w={},slotProps:A={},...S}=e,[x,k]=of({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),L=tu();let E=r;L&&void 0===E&&(E=L.disabled);const D="checkbox"===_||"radio"===_,I={...e,checked:x,disabled:E,disableFocusRipple:a,edge:l},N=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e;return Lt({root:["root",n&&"checked",i&&"disabled",o&&`edge${Vr(o)}`],input:["input"]},sf,t)})(I),R={slots:w,slotProps:{input:h,...A}},[T,M]=Nl("root",{ref:t,elementType:rf,className:N.root,shouldForwardComponentProp:!0,externalForwardedProps:{...R,component:"span",...S},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{f&&f(e),L&&L.onFocus&&L.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{p&&p(e),L&&L.onBlur&&L.onBlur(e)})(t)}}),ownerState:I,additionalProps:{centerRipple:!0,focusRipple:!a,role:void 0,tabIndex:null}}),[O,q]=Nl("input",{ref:u,elementType:af,className:N.input,externalForwardedProps:R,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||b)return;const t=e.target.checked;k(t),m&&m(e,t)})(t)}}),ownerState:I,additionalProps:{autoFocus:n,checked:i,defaultChecked:s,disabled:E,id:D?d:void 0,name:g,readOnly:b,required:v,tabIndex:C,type:_,..."checkbox"===_&&void 0===y?{}:{value:y}}});return(0,_t.jsxs)(T,{...M,children:[(0,_t.jsx)(O,{...q}),x?o:c]})}),cf=lf,df=ul((0,_t.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"})),hf=ul((0,_t.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"})),uf=ul((0,_t.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"}));function gf(e){return Er("MuiCheckbox",e)}const pf=Dr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mf=_r(cf,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Vr(n.size)}`],"default"!==n.color&&t[`color${Vr(n.color)}`]]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${pf.checked}, &.${pf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ff=(0,_t.jsx)(hf,{}),bf=(0,_t.jsx)(df,{}),vf=(0,_t.jsx)(uf,{}),Cf=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiCheckbox"}),{checkedIcon:o=ff,color:s="primary",icon:r=bf,indeterminate:a=!1,indeterminateIcon:l=vf,inputProps:c,size:d="medium",disableRipple:h=!1,className:u,slots:g={},slotProps:p={},...m}=i,f=a?l:r,b=a?l:o,v={...i,disableRipple:h,color:s,indeterminate:a,size:d},C=(e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,s=Lt({root:["root",n&&"indeterminate",`color${Vr(i)}`,`size${Vr(o)}`]},gf,t);return{...t,...s}})(v),_=p.input??c,[y,w]=Nl("root",{ref:n,elementType:mf,className:kt(C.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:p,...m},ownerState:v,additionalProps:{type:"checkbox",icon:t.cloneElement(f,{fontSize:f.props.fontSize??d}),checkedIcon:t.cloneElement(b,{fontSize:b.props.fontSize??d}),disableRipple:h,slots:g,slotProps:{input:Cm("function"==typeof _?_(v):_,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return(0,_t.jsx)(y,{...w,classes:C})}),_f=Cf,yf="ListBoxCheckbox",wf={cbIcon:`${yf}-cbIcon`,cbIconChecked:`${yf}-cbIconChecked`,cbIconExcluded:`${yf}-cbIconExcluded`,cbIconAlternative:`${yf}-cbIconAlternative`,checkbox:`${yf}-checkbox`,dense:`${yf}-dense`},Af=_r(_f,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${wf.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"},[`& .${wf.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,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:'""'}},[`& .${wf.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${wf.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${wf.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${wf.dense}`]:{padding:"4px 8px"}})),Sf=(e,t=!0,n=!1)=>(0,_t.jsx)("span",{className:e.cbIcon,children:n&&(0,_t.jsx)("span",{className:t&&n?e.cbIconExcluded:""})});function xf({onChange:e,checked:t,label:n,dense:i,excluded:o,styles:s,showGray:r=!0,dataN:a}){return(0,_t.jsx)(Af,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[wf.checkbox,i&&wf.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":a},name:n,icon:Sf(wf,r,o),checkedIcon:(0,_t.jsx)("span",{className:wf.cbIconChecked}),styles:s})}const kf=ul((0,_t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Lf=ul((0,_t.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Ef=_r("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Cr})({position:"relative",display:"flex"}),Df=_r(kf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),If=_r(Lf,{name:"MuiRadioButtonIcon"})(Xa(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]}))),Nf=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return(0,_t.jsxs)(Ef,{className:n.root,ownerState:o,children:[(0,_t.jsx)(Df,{fontSize:i,className:n.background,ownerState:o}),(0,_t.jsx)(If,{fontSize:i,className:n.dot,ownerState:o})]})},Rf=tm,Tf=t.createContext(void 0);function Mf(e){return Er("MuiRadio",e)}const Of=Dr("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),qf=_r(cf,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Vr(n.size)}`],t[`color${Vr(n.color)}`]]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Of.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Of.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Pf=(0,_t.jsx)(Nf,{checked:!0}),Bf=(0,_t.jsx)(Nf,{}),Ff=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:s=Pf,color:r="primary",icon:a=Bf,name:l,onChange:c,size:d="medium",className:h,disabled:u,disableRipple:g=!1,slots:p={},slotProps:m={},inputProps:f,...b}=i,v=tu();let C=u;v&&void 0===C&&(C=v.disabled),C??=!1;const _={...i,disabled:C,disableRipple:g,color:r,size:d},y=(e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${Vr(n)}`,"medium"!==i&&`size${Vr(i)}`]};return{...t,...Lt(o,Mf,t)}})(_),w=t.useContext(Tf);let A=o;const S=Rf(c,w&&w.onChange);let x=l;var k,L;w&&(void 0===A&&(k=w.value,A="object"==typeof(L=i.value)&&null!==L?k===L:String(k)===String(L)),void 0===x&&(x=w.name));const E=m.input??f,[D,I]=Nl("root",{ref:n,elementType:qf,className:kt(y.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...b},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),S(t,...n)}}),ownerState:_,additionalProps:{type:"radio",icon:t.cloneElement(a,{fontSize:a.props.fontSize??d}),checkedIcon:t.cloneElement(s,{fontSize:s.props.fontSize??d}),disabled:C,name:x,checked:A,slots:p,slotProps:{input:"function"==typeof E?E(_):E}}});return(0,_t.jsx)(D,{...I,classes:y})}),Wf="ListBoxRadioButton-radioButton",zf=_r(Ff,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${Wf}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function Vf({onChange:e,checked:t,label:n,dense:i,dataN:o,styles:s}){return(0,_t.jsx)(zf,{checked:t,onChange:e,value:n,name:n,className:Wf,inputProps:{"data-n":o},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}const Hf=function({label:e,dense:t,showGray:n=!0,checkboxes:i,cell:o,valueTextAlign:s}){return(0,_t.jsx)(yd,{component:"span",variant:"body2",className:Hm([qm.labelText,t&&qm.labelDense,n&&Vm({cell:o,checkboxes:i})&&qm.excludedTextWithCheckbox]),align:s,dir:"auto",children:(0,_t.jsx)("span",{children:e})})},jf=function({label:e,color:t,dense:n,showGray:i,checkboxes:o,cell:s,valueTextAlign:r}){return"string"==typeof e?(0,_t.jsx)(Hf,{label:e,color:t,dense:n,showGray:i,checkboxes:o,cell:s,valueTextAlign:r}):e},Uf=function({onChange:e,label:t,qElemNumber:n,isSelected:i,dense:o,cell:s,isGridCol:r,showGray:a,isSingleSelect:l,checkboxes:c,valueTextAlign:d,styles:h}){const u=(0,_t.jsx)(xf,{onChange:e,label:t,checked:i,dense:o,excluded:zm(s),isGridCol:r,showGray:a,dataN:n,styles:h}),g=(0,_t.jsx)(Vf,{onChange:e,label:t,checked:i,dense:o,dataN:n,styles:h});return(0,_t.jsx)(nf,{control:l?g:u,className:qm.checkboxLabel,label:(0,_t.jsx)(jf,{label:t,dense:o,showGray:a,checkboxes:c,cell:s,valueTextAlign:d})},n)};function $f({labels:e,dense:t,showGray:n,checkboxes:i}){const o=e.map(([e,t],n)=>(0,_t.jsx)("span",{id:n,className:t?qm.highlighted:"",children:e}));return(0,_t.jsx)(Hf,{label:o,dense:t,showGray:n,checkboxes:i})}const Gf=function({onChange:e,labels:t,checkboxes:n,dense:i,showGray:o,qElemNumber:s,isSelected:r,cell:a,isGridCol:l,isSingleSelect:c,valueTextAlign:d,styles:h}){const u=(0,_t.jsx)($f,{labels:t,dense:i,showGray:o,checkboxes:n});return n?(0,_t.jsx)(Uf,{onChange:e,label:u,qElemNumber:s,isSelected:r,dense:i,cell:a,isGridCol:l,showGray:o,isSingleSelect:c,checkboxes:n,valueTextAlign:d,styles:h}):u};function Kf({onChange:e,label:t,qElemNumber:n,isSelected:i,dense:o,cell:s,isGridCol:r,showGray:a,isSingleSelect:l,checkboxes:c,valueTextAlign:d,styles:h}){return c?(0,_t.jsx)(Uf,{onChange:e,label:t,qElemNumber:n,isSelected:i,dense:o,cell:s,isGridCol:r,showGray:a,isSingleSelect:l,checkboxes:c,valueTextAlign:d,styles:h}):(0,_t.jsx)(Hf,{label:t,dense:o,showGray:!0,checkboxes:c,cell:s,valueTextAlign:d})}const Qf=t.memo(Kf),Yf=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:i,frequencyMax:o}){if(!e||!t||"-"===jm(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),i="%"===n.substring(n.length-1),o=parseFloat(i?n:e);return`${i?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:o});return(0,_t.jsx)(Qa,{className:Hm([qm.bar,n&&qm.barWithCheckbox,i&&(n?qm.barSelectedWithCheckbox:qm.barSelected)]),children:(0,_t.jsx)(Qa,{className:"bar-filled",width:s})})},Zf=function({cell:e,checkboxes:t,dense:n,showGray:i}){const o=jm(e?.qFrequency);return(0,_t.jsx)(ud,{style:{display:"flex",alignItems:"center"},className:qm.frequencyCount,"aria-label":o,title:o,children:(0,_t.jsx)(yd,{noWrap:!0,color:"inherit",variant:"body2",className:Hm([n&&qm.labelDense,qm.labelText,i&&Vm({cell:e,checkboxes:t})&&qm.excludedTextWithCheckbox]),children:o})})};function Xf({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:i?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Jf=_r(ud,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o,fillHeight:s})=>{const r="padding"+("rtl"===o?"Left":"Right");return{[`&.${qm.fieldRoot}`]:{...Xf({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:s}),[r]:i?"8px":void 0}}}),eb=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===eb.ARROW_UP||e===eb.ARROW_DOWN||e===eb.ARROW_LEFT||e===eb.ARROW_RIGHT}),tb=eb;function nb(e){e?.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function ib(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function ob({containerRef:e,enabled:n}){const[i,o]=(0,t.useState)(!1),s={enabled:n,active:i,innerTabStops:!n||i,blur(t){if(!n)return;o(!1);const i=ib(e.current)||e.current?.parentElement;var s;s=e.current,s?.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),nb(e.current),t&&i&&(i.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!n)return;o(!0);const t=e.current,i=t?.querySelector(".search input"),s=t?.querySelector(".value.last-focused"),r=t?.querySelector(".value.selector, .value"),a=t?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=t?.querySelector("#listbox-unlock-button"),c=t?.querySelector(".listbox-cyclic-button"),d=c||i||s||r||l||a;d?.setAttribute("tabIndex",0),d?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return n?.setAttribute("tabIndex",0),n?.focus(),n}};return s}const sb=e=>+e.getAttribute("data-n"),rb=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},ab=e=>{const t=e?.querySelector(".value.last-focused"),n=e?.querySelector(".value.selector"),i=e?.querySelector(".value"),o=t||n||i;return o?.setAttribute("tabIndex",0),o?.focus(),nb(e),o},lb=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},cb=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:i}=e,o=i.classList.contains("listbox-container"),s=n.closest(".listbox-container"),r=ib(s),a=1===r?.querySelectorAll(".listbox-container").length;if(o||a)t.blur(!0);else{nb(s),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},db={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"},hb=function({index:e,rowIndex:n,columnIndex:i,style:o,data:s}){const{onChange:r,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:h,onTouchEnd:u,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:b,direction:v,layoutOptions:C={},freqIsAllowed:_,isSingleSelect:y,actions:w,frequencyMax:A="",histogram:S=!1,keyboard:x,showGray:k=!0,showTick:L=!0,columnCount:E=1,rowCount:D=1,dataOffset:I,deducedFrequencyMode:N,focusListItems:R,listCount:T,sizes:M,translator:O,showSearch:q,isModal:P,contentFontStyle:B,styles:F,fillHeight:W}=s,{dense:z=!1,dataLayout:V="singleColumn",layoutOrder:H}=C,{itemPadding:j}=M;let U,$;const G={max:null,currentIndex:null};if("number"==typeof n&&"number"==typeof i){"row"===H?(U=n*E+i,G.max=D,G.currentIndex=n):(U=i*D+n,G.max=E,G.currentIndex=i);const e=0;$={...o,height:W?"100%":o.height,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===n?o.top:Number(o.top)+n*e}}else U=e,G.max=T,G.currentIndex=e,$={...o};U+=I;const[K,Q]=(0,t.useState)(null);(0,t.useEffect)(()=>{null!==K&&(0===G.currentIndex&&R.first&&(K.focus(),R.setFirst(!1)),G.currentIndex===G.max-1&&R.last&&(K.focus(),R.setLast(!1)))},[K,R.first,R.last]);const Y=(0,t.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:s,focusListItems:r,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===tb.ARROW_LEFT||e===tb.ARROW_RIGHT||"number"!=typeof h||"number"!=typeof u){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const i=t?.parentElement.parentElement,o=i?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:i,layoutOrder:o,keyCode:s,numCells:r})=>{const a=e=>{let t;return"row"===o?(t=r%i,e<t?n:n-1):(t=r%n,e<i-1?n:t)};let l=e,c=t;if(s===tb.ARROW_DOWN)if(e>=a(t)-1){if(t===i-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*i+c;const d=r%n;return 0===d||l<d?l*i+c:(l-d)*(i-1)+c+d*i})({rowIndex:h,columnIndex:u,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),i=t?.parentElement.parentElement.children[n];return i?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:h,nativeEvent:u}=c,{keyCode:g,shiftKey:b=!1,ctrlKey:v=!1,metaKey:C=!1}=u;switch(g){case tb.TAB:{const e=h.closest(".listbox-container"),t=void 0!==l?l():void 0;if(h.classList.add("last-focused"),!a?.enabled){if(!t)return;return a.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(b){rb(e)||lb(e)||(t?a.focusSelection():cb(c,a));break}a.focusSelection()||lb(e)||rb(e)||(h.blur(),cb(c,a));break}case tb.SHIFT:f(!0);break;case tb.SPACE:e([sb(h)],!1,c);break;case tb.ARROW_DOWN:case tb.ARROW_RIGHT:d=p(g,h,!0),b&&d&&(m&&(e([sb(h)],!0),f(!1)),e([sb(d)],!0));break;case tb.ARROW_UP:case tb.ARROW_LEFT:d=p(g,h,!1),b&&d&&(m&&(e([sb(h)],!0),f(!1)),e([sb(d)],!0));break;case tb.ENTER:if(i(),void 0===l)return;break;case tb.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case tb.HOME:if(r.setFirst(!0),v){s?.("overflowStart");break}s?.("start");break;case tb.END:if(r.setLast(!0),v){s?.("overflowEnd");break}s?.("end");break;case tb.A:if(v||C){t();break}return;case tb.F:if(v||C){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:x,isModal:P,rowCount:D,columnCount:E,rowIndex:n,columnIndex:i,layoutOrder:H}),[w,x?.innerTabStops,D,E,n,i,H]),Z=(0,t.useMemo)(()=>function({pages:e,cellIndex:t}){let n;const i=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(i){const e=i.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=i.qMatrix[t-e.qTop])}return n}({pages:g,cellIndex:U}),[g,U]),X="S"===Z?.qState||"XS"===Z?.qState||"L"===Z?.qState||"XL"===Z?.qState,J=(0,t.useMemo)(()=>(({column:e,histogram:t,cell:n,showGray:i})=>{if(!n)return[];const o=[e?qm.column:qm.row];t||o.push(qm.rowBorderBottom);const s=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?qm.XS:qm.S;break;case"S":case"L":n=qm.S;break;case"A":n=!!t&&qm.A;break;case"X":case"XL":n=!!t&&qm.X;break;default:n=!1}return n}({cell:n,showGray:i});return s&&o.push(s),o})({column:m,histogram:S,cell:Z,showGray:k}),[Z?.qState,S,z]),ee=(0,t.useCallback)(e=>{e.preventDefault()},[f]),te=(0,t.useMemo)(()=>Z&&function({direction:e,cell:t,textAlign:n}){const i=!["NaN",void 0].includes(t?.qNum);let o;return o=!n||n.auto?i?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:n?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:v,cell:Z,textAlign:b}),[v,Z,b]);if(!Z)return null;const ne="grid"===V&&"column"===H,ie=Z?.qText??"";let oe;if(Z.qHighlightRanges?.qRanges?.length){oe=function(e,t){if(!t.length)return[];const n=t.reduce((n,i,o)=>{const s=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,s=[];return i>n&&s.push([e.slice(n,i),!1]),s.push([e.slice(i,i+o),!0]),s}(e,i,s));const r=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return r&&a<e.length&&n.push([e.slice(a),!1]),n},[]);return n}(ie,Z.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[])}const se={alignItems:"center",display:"flex",fontSize:"8px"},re="rtl"===v,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:re?8:f?0:void 0,paddingRight:f?0:re?8:0,justifyContent:te,textAlign:te},le=0===e,ce=X&&p,de=!f&&X&&!p,he=!f&&L,ue=f||!L,ge=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:s,showSearch:r}){const a=db[n],l=e.get(a),c=[];if(i){const t=r?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const d=`${t} ${l}`,h=e.get("CurrentSelections.Of",[o+1,s+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:O,label:ie,qState:Z.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:q}),pe=!re&&"right"===te||re&&"left"===te;return(0,_t.jsx)(Ym,{className:qm.barContainer,checkboxes:f,style:$,styles:F,isGridCol:ne,isGridMode:"grid"===V,dense:z,direction:v,sizes:M,frequencyMode:N,freqHitsValue:pe,contentFontStyle:B,"data-testid":"listbox.item",children:(0,_t.jsxs)(Jf,{role:"row","aria-label":ge,"aria-selected":X,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:Q,container:!0,dataLayout:V,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:Hm(["value",qm.fieldRoot,...J]),onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Y,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&x.innerTabStops?0:-1,"data-n":Z?.qElemNumber,direction:v,fillHeight:W,children:[Z?.qFrequency&&(0,_t.jsx)(Yf,{qFrequency:Z?.qFrequency,histogram:S,checkboxes:f,isSelected:X,frequencyMax:A}),(0,_t.jsx)(ud,{style:ae,className:Hm([qm.cell,qm.selectedCell]),title:`${ie}`,children:oe?(0,_t.jsx)(Gf,{onChange:r,labels:oe,checkboxes:f,dense:z,showGray:k,qElemNumber:Z.qElemNumber,isSelected:X,cell:Z,isGridCol:ne,isSingleSelect:y,valueTextAlign:te,styles:F}):(0,_t.jsx)(Qf,{onChange:r,label:ie,qElemNumber:Z.qElemNumber,isSelected:X,dense:z,cell:Z,isGridCol:ne,showGray:k,isSingleSelect:y,checkboxes:f,valueTextAlign:te,styles:F})}),_&&(0,_t.jsx)(Zf,{cell:Z,checkboxes:f,dense:z,showGray:k}),he&&(0,_t.jsxs)(ud,{className:qm.icon,children:[ce&&(0,_t.jsx)(Ip,{style:se,size:"small"}),de&&(0,_t.jsx)(Wm,{style:se,size:"small"})]})]})})};var ub=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gb(e,t){return e===t||!(!ub(e)||!ub(t))}function pb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!gb(e[n],t[n]))return!1;return!0}const mb=function(e,t){var n;void 0===t&&(t=pb);var i,o=[],s=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return s&&n===this&&t(r,o)||(i=e.apply(this,r),s=!0,n=this,o=r),i}};var fb="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bb(e){cancelAnimationFrame(e.id)}function vb(e,t){var n=fb(),i={id:requestAnimationFrame(function o(){fb()-n>=t?e.call(null):i.id=requestAnimationFrame(o)})};return i}var Cb=-1;function _b(e){if(void 0===e&&(e=!1),-1===Cb||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Cb=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Cb}var yb=null;function wb(e){if(void 0===e&&(e=!1),null===yb||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?yb="positive-descending":(t.scrollLeft=1,yb=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),yb}return yb}var Ab=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Sb(e){var n,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,s=e.getColumnStopIndexForStartIndex,r=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,h=e.getRowHeight,u=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,tc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:tc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=mb(function(e,t,i,o,s,r,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:s,visibleColumnStopIndex:r,visibleRowStartIndex:a,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=mb(function(e,t,i,o,s){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:s})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,s=n.props,a=s.columnWidth,l=s.direction,c=s.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:u(n.props,e,n._instanceProps),height:h(n.props,e,n._instanceProps),width:r(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=mb(function(e,t,n){return{}}),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,s=t.scrollLeft,r=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===s&&e.scrollTop===r)return null;var t=n.props.direction,c=s;if("rtl"===t)switch(wb()){case"negative":c=-s;break;case"positive-descending":c=l-o-s}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(r,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<s?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<r?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&bb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vb(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}ic(n,e),n.getDerivedStateFromProps=function(e,t){return xb(e,t),b(e),null};var v=n.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,s=this.props,r=s.columnCount,h=s.height,u=s.rowCount,g=s.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,b=_b();void 0!==i&&(i=Math.max(0,Math.min(i,r-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var v=a(this.props,this._instanceProps),C=l(this.props,this._instanceProps)>g?b:0,_=v>h?b:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,_):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,C):f})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(wb()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var s=o.clientWidth,r=o.scrollWidth;o.scrollLeft=r-s-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bb(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,n=e.children,i=e.className,o=e.columnCount,s=e.direction,r=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?Ab:g,m=e.outerElementType,f=e.outerTagName,b=e.rowCount,v=e.style,C=e.useIsScrolling,_=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),A=w[0],S=w[1],x=this._getVerticalRangeToRender(),k=x[0],L=x[1],E=[];if(o>0&&b)for(var D=k;D<=L;D++)for(var I=A;I<=S;I++)E.push((0,t.createElement)(n,{columnIndex:I,data:u,isScrolling:C?y:void 0,key:p({columnIndex:I,data:u,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var N=a(this.props,this._instanceProps),R=l(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:It({position:"relative",height:r,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},v)},(0,t.createElement)(d||h||"div",{children:E,ref:c,style:{height:N,pointerEvents:y?"none":void 0,width:R}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var s=this._getHorizontalRangeToRender(),r=s[0],a=s[1],l=s[2],c=s[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(r,a,h,u,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,C=m.scrollUpdateWasRequested,_=m.verticalScrollDirection;this._callOnScroll(b,v,f,_,C)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,r=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=n||i||r||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=s(this.props,g,h,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,u),f=d&&"forward"!==c?1:Math.max(1,u);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,s=e.rowCount,r=this.state,a=r.isScrolling,l=r.verticalScrollDirection,c=r.scrollTop,d=i||o||n||1;if(0===t||0===s)return[0,0,0,0];var h=g(this.props,c,this._instanceProps),u=p(this.props,h,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,h-m),Math.max(0,Math.min(s-1,u+f)),h,u]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var xb=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},kb=function(e,t){return e};function Lb(e){var n,i=e.getItemOffset,o=e.getEstimatedTotalSize,s=e.getItemSize,r=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return n=function(e){function n(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,tc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:tc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=mb(function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=mb(function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,r=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&r);if(c.hasOwnProperty(e))t=c[e];else{var h=i(n.props,e,n._instanceProps),u=s(n.props,e,n._instanceProps),g="horizontal"===r||"horizontal"===l,p="rtl"===r,m=g?h:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:h,height:g?"100%":u,width:g?u:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=mb(function(e,t,n){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,s=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,r=o;if("rtl"===t)switch(wb()){case"negative":r=-o;break;case"positive-descending":r=s-i-o}return r=Math.max(0,Math.min(r,s-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:r,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,s=t.scrollTop;n.setState(function(e){if(e.scrollOffset===s)return null;var t=Math.max(0,Math.min(s,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&bb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vb(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}ic(n,e),n.getDerivedStateFromProps=function(e,t){return Eb(e,t),h(e),null};var u=n.prototype;return u.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)},u.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,s=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?_b():0:l.scrollHeight>l.clientHeight?_b():0}this.scrollTo(r(this.props,e,t,s,this._instanceProps,a))},u.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var s=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(wb()){case"negative":s.scrollLeft=-o;break;case"positive-ascending":s.scrollLeft=o;break;default:var r=s.clientWidth,a=s.scrollWidth;s.scrollLeft=a-r-o}else s.scrollLeft=o;else s.scrollTop=o}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bb(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,n=e.children,i=e.className,s=e.direction,r=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?kb:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,b=e.style,v=e.useIsScrolling,C=e.width,_=this.state.isScrolling,y="horizontal"===s||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,A=this._getRangeToRender(),S=A[0],x=A[1],k=[];if(d>0)for(var L=S;L<=x;L++)k.push((0,t.createElement)(n,{data:h,key:g(L,h),index:L,isScrolling:v?_:void 0,style:this._getItemStyle(L)}));var E=o(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:It({position:"relative",height:r,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:s},b)},(0,t.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":E,pointerEvents:_?"none":void 0,width:y?E:"100%"}}))},u._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var s=this.state,r=s.scrollDirection,a=s.scrollOffset,l=s.scrollUpdateWasRequested;this._callOnScroll(r,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,s=i.scrollDirection,r=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,r,this._instanceProps),d=l(this.props,c,r,this._instanceProps),h=o&&"backward"!==s?1:Math.max(1,n),u=o&&"forward"!==s?1:Math.max(1,n);return[Math.max(0,c-h),Math.max(0,Math.min(t-1,d+u)),c,d]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Eb=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Db=Sb({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,i,o,s){var r=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,r*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+s+a);switch("smart"===n&&(n=i>=h-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(l/2)?0:u>c+Math.floor(l/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,s){var r=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*r-a),d=Math.min(c,t*r),h=Math.max(0,t*r-a+s+r);switch("smart"===n&&(n=i>=h-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var u=Math.round(h+(d-h)/2);return u<Math.ceil(a/2)?0:u>c+Math.floor(a/2)?c:u;default:return i>=h&&i<=d?i:h>d||i<h?h:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,s=e.width,r=t*i,a=Math.ceil((s+n-r)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,s=e.height,r=t*i,a=Math.ceil((s+n-r)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Ib=Lb({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,i,o,s){var r=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===r||"horizontal"===d?h:a,g=Math.max(0,l*c-u),p=Math.min(g,t*c),m=Math.max(0,t*c-u+c+s);switch("smart"===n&&(n=i>=m-u&&i<=p+u?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(u/2)?0:f>g+Math.floor(u/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,s=e.itemCount,r=e.itemSize,a=e.layout,l=e.width,c=t*r,d="horizontal"===i||"horizontal"===a?l:o,h=Math.ceil((d+n-c)/r);return Math.max(0,Math.min(s-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Nb="#BBB",Rb="#f1f1f1",Tb="ListBox-styledScrollbars";function Mb({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:s,qCardinal:r,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,l),d=l?n.column:n.row,h=(l?i:o)>=d,u=((e,t,n,i)=>e===t*n+i+n)(r,c,l?o:i,a),g=!!a&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),p=h&&!u&&c>=d-1||g||s.state.show;s.set(p)}const{StyledFixedSizeList:Ob,StyledFixedSizeGrid:qb}=function(){const e=e=>({scrollbarColor:`${Nb} ${Rb}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Rb},"&::-webkit-scrollbar-thumb":{backgroundColor:Nb,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:ui(Ib,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${Tb}`]:e(t)})),StyledFixedSizeGrid:ui(Db,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${Tb}`]:e(t)}))}}(),Pb=e=>{const n=(0,t.useMemo)(()=>"text"in e?e:{},[e]);return(0,t.useMemo)(()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map(e=>n.measureText(e).width));const i=n.measureText(e);return Math.ceil(i.width||0)})(n.text,n.font||"12px Source Sans Pro"),[n.text,n.font])};function Bb(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Fb({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[Wb,zb]=cp({});function Vb(e){const t=`${e.id}`,[n]=Wb();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function Hb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jb(e){return e instanceof Hb(e).Element||e instanceof Element}function Ub(e){return e instanceof Hb(e).HTMLElement||e instanceof HTMLElement}function $b(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Hb(e).ShadowRoot||e instanceof ShadowRoot)}var Gb=Math.max,Kb=Math.min,Qb=Math.round;function Yb(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zb(){return!/^((?!chrome|android).)*safari/i.test(Yb())}function Xb(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&Ub(e)&&(o=e.offsetWidth>0&&Qb(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qb(i.height)/e.offsetHeight||1);var r=(jb(e)?Hb(e):window).visualViewport,a=!Zb()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/o,c=(i.top+(a&&r?r.offsetTop:0))/s,d=i.width/o,h=i.height/s;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function Jb(e){var t=Hb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ev(e){return e?(e.nodeName||"").toLowerCase():null}function tv(e){return((jb(e)?e.ownerDocument:e.document)||window.document).documentElement}function nv(e){return Xb(tv(e)).left+Jb(e).scrollLeft}function iv(e){return Hb(e).getComputedStyle(e)}function ov(e){var t=iv(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function sv(e,t,n){void 0===n&&(n=!1);var i=Ub(t),o=Ub(t)&&function(e){var t=e.getBoundingClientRect(),n=Qb(t.width)/e.offsetWidth||1,i=Qb(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),s=tv(t),r=Xb(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==ev(t)||ov(s))&&(a=function(e){return e!==Hb(e)&&Ub(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Jb(e);var t}(t)),Ub(t)?((l=Xb(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=nv(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function rv(e){var t=Xb(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function av(e){return"html"===ev(e)?e:e.assignedSlot||e.parentNode||($b(e)?e.host:null)||tv(e)}function lv(e){return["html","body","#document"].indexOf(ev(e))>=0?e.ownerDocument.body:Ub(e)&&ov(e)?e:lv(av(e))}function cv(e,t){var n;void 0===t&&(t=[]);var i=lv(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=Hb(i),r=o?[s].concat(s.visualViewport||[],ov(i)?i:[]):i,a=t.concat(r);return o?a:a.concat(cv(av(r)))}function dv(e){return["table","td","th"].indexOf(ev(e))>=0}function hv(e){return Ub(e)&&"fixed"!==iv(e).position?e.offsetParent:null}function uv(e){for(var t=Hb(e),n=hv(e);n&&dv(n)&&"static"===iv(n).position;)n=hv(n);return n&&("html"===ev(n)||"body"===ev(n)&&"static"===iv(n).position)?t:n||function(e){var t=/firefox/i.test(Yb());if(/Trident/i.test(Yb())&&Ub(e)&&"fixed"===iv(e).position)return null;var n=av(e);for($b(n)&&(n=n.host);Ub(n)&&["html","body"].indexOf(ev(n))<0;){var i=iv(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var gv="top",pv="bottom",mv="right",fv="left",bv="auto",vv=[gv,pv,mv,fv],Cv="start",_v="end",yv="viewport",wv="popper",Av=vv.reduce(function(e,t){return e.concat([t+"-"+Cv,t+"-"+_v])},[]),Sv=[].concat(vv,[bv]).reduce(function(e,t){return e.concat([t,t+"-"+Cv,t+"-"+_v])},[]),xv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kv(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),i}function Lv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var Ev={placement:"bottom",modifiers:[],strategy:"absolute"};function Dv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Iv(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,s=void 0===o?Ev:o;return function(e,t,n){void 0===n&&(n=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ev,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},r=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},s,o.options,a),o.scrollParents={reference:jb(e)?cv(e):e.contextElement?cv(e.contextElement):[],popper:cv(t)};var d,h,u=function(e){var t=kv(e);return xv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((d=[].concat(i,o.options.modifiers),h=d.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(h).map(function(e){return h[e]})));return o.orderedModifiers=u.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var a=s({state:o,name:t,instance:l,options:i});r.push(a||function(){})}}),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(Dv(t,n)){o.rects={reference:sv(t,uv(n),"fixed"===o.options.strategy),popper:rv(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<o.orderedModifiers.length;i++)if(!0!==o.reset){var s=o.orderedModifiers[i],r=s.fn,c=s.options,d=void 0===c?{}:c,h=s.name;"function"==typeof r&&(o=r({state:o,options:d,name:h,instance:l})||o)}else o.reset=!1,i=-1}}},update:Lv(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),a=!0}};if(!Dv(e,t))return l;function c(){r.forEach(function(e){return e()}),r=[]}return l.setOptions(n).then(function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var Nv={passive:!0};function Rv(e){return e.split("-")[0]}function Tv(e){return e.split("-")[1]}function Mv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ov(e){var t,n=e.reference,i=e.element,o=e.placement,s=o?Rv(o):null,r=o?Tv(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case gv:t={x:a,y:n.y-i.height};break;case pv:t={x:a,y:n.y+n.height};break;case mv:t={x:n.x+n.width,y:l};break;case fv:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Mv(s):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Cv:t[c]=t[c]-(n[d]/2-i[d]/2);break;case _v:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var qv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pv(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=r.x,g=void 0===u?0:u,p=r.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),C=fv,_=gv,y=window;if(c){var w=uv(n),A="clientHeight",S="clientWidth";w===Hb(n)&&"static"!==iv(w=tv(n)).position&&"absolute"===a&&(A="scrollHeight",S="scrollWidth"),(o===gv||(o===fv||o===mv)&&s===_v)&&(_=pv,m-=(h&&w===y&&y.visualViewport?y.visualViewport.height:w[A])-i.height,m*=l?1:-1),o!==fv&&(o!==gv&&o!==pv||s!==_v)||(C=mv,g-=(h&&w===y&&y.visualViewport?y.visualViewport.width:w[S])-i.width,g*=l?1:-1)}var x,k=Object.assign({position:a},c&&qv),L=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Qb(n*o)/o||0,y:Qb(i*o)/o||0}}({x:g,y:m},Hb(n)):{x:g,y:m};return g=L.x,m=L.y,l?Object.assign({},k,((x={})[_]=v?"0":"",x[C]=b?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[_]=v?m+"px":"",t[C]=b?g+"px":"",t.transform="",t))}const Bv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=void 0===o?[0,0]:o,r=Sv.reduce(function(e,n){return e[n]=function(e,t,n){var i=Rv(e),o=[fv,gv].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[fv,mv].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,s),e},{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};var Fv={left:"right",right:"left",bottom:"top",top:"bottom"};function Wv(e){return e.replace(/left|right|bottom|top/g,function(e){return Fv[e]})}var zv={start:"end",end:"start"};function Vv(e){return e.replace(/start|end/g,function(e){return zv[e]})}function Hv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$b(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function jv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uv(e,t,n){return t===yv?jv(function(e,t){var n=Hb(e),i=tv(e),o=n.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=Zb();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+nv(e),y:l}}(e,n)):jb(t)?function(e,t){var n=Xb(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):jv(function(e){var t,n=tv(e),i=Jb(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=Gb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Gb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+nv(e),l=-i.scrollTop;return"rtl"===iv(o||n).direction&&(a+=Gb(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(tv(e)))}function $v(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Gv(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Kv(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,s=n.strategy,r=void 0===s?e.strategy:s,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?yv:c,h=n.elementContext,u=void 0===h?wv:h,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,b=$v("number"!=typeof f?f:Gv(f,vv)),v=u===wv?"reference":wv,C=e.rects.popper,_=e.elements[p?v:u],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=cv(av(e)),n=["absolute","fixed"].indexOf(iv(e).position)>=0&&Ub(e)?uv(e):e;return jb(n)?t.filter(function(e){return jb(e)&&Hv(e,n)&&"body"!==ev(e)}):[]}(e):[].concat(t),s=[].concat(o,[n]),r=s[0],a=s.reduce(function(t,n){var o=Uv(e,n,i);return t.top=Gb(o.top,t.top),t.right=Kb(o.right,t.right),t.bottom=Kb(o.bottom,t.bottom),t.left=Gb(o.left,t.left),t},Uv(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(jb(_)?_:_.contextElement||tv(e.elements.popper),l,d,r),w=Xb(e.elements.reference),A=Ov({reference:w,element:C,strategy:"absolute",placement:o}),S=jv(Object.assign({},C,A)),x=u===wv?S:w,k={top:y.top-x.top+b.top,bottom:x.bottom-y.bottom+b.bottom,left:y.left-x.left+b.left,right:x.right-y.right+b.right},L=e.modifiersData.offset;if(u===wv&&L){var E=L[o];Object.keys(k).forEach(function(e){var t=[mv,pv].indexOf(e)>=0?1:-1,n=[gv,pv].indexOf(e)>=0?"y":"x";k[e]+=E[n]*t})}return k}const Qv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,u=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,b=Rv(f),v=l||(b!==f&&p?function(e){if(Rv(e)===bv)return[];var t=Wv(e);return[Vv(e),t,Vv(t)]}(f):[Wv(f)]),C=[f].concat(v).reduce(function(e,n){return e.concat(Rv(n)===bv?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Sv:l,d=Tv(i),h=d?a?Av:Av.filter(function(e){return Tv(e)===d}):vv,u=h.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=h);var g=u.reduce(function(t,n){return t[n]=Kv(e,{placement:n,boundary:o,rootBoundary:s,padding:r})[Rv(n)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}(t,{placement:n,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)},[]),_=t.rects.reference,y=t.rects.popper,w=new Map,A=!0,S=C[0],x=0;x<C.length;x++){var k=C[x],L=Rv(k),E=Tv(k)===Cv,D=[gv,pv].indexOf(L)>=0,I=D?"width":"height",N=Kv(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),R=D?E?mv:fv:E?pv:gv;_[I]>y[I]&&(R=Wv(R));var T=Wv(R),M=[];if(s&&M.push(N[L]<=0),a&&M.push(N[R]<=0,N[T]<=0),M.every(function(e){return e})){S=k,A=!1;break}w.set(k,M)}if(A)for(var O=function(e){var t=C.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},q=p?3:1;q>0&&"break"!==O(q);q--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Yv(e,t,n){return Gb(e,Kb(t,n))}const Zv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=void 0===o||o,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,u=n.tether,g=void 0===u||u,p=n.tetherOffset,m=void 0===p?0:p,f=Kv(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=Rv(t.placement),v=Tv(t.placement),C=!v,_=Mv(b),y="x"===_?"y":"x",w=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(s){var D,I="y"===_?gv:fv,N="y"===_?pv:mv,R="y"===_?"height":"width",T=w[_],M=T+f[I],O=T-f[N],q=g?-S[R]/2:0,P=v===Cv?A[R]:S[R],B=v===Cv?-S[R]:-A[R],F=t.elements.arrow,W=g&&F?rv(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=z[I],H=z[N],j=Yv(0,A[R],W[R]),U=C?A[R]/2-q-j-V-k.mainAxis:P-j-V-k.mainAxis,$=C?-A[R]/2+q+j+H+k.mainAxis:B+j+H+k.mainAxis,G=t.elements.arrow&&uv(t.elements.arrow),K=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Q=null!=(D=null==L?void 0:L[_])?D:0,Y=T+$-Q,Z=Yv(g?Kb(M,T+U-Q-K):M,T,g?Gb(O,Y):O);w[_]=Z,E[_]=Z-T}if(a){var X,J="x"===_?gv:fv,ee="x"===_?pv:mv,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],se=-1!==[gv,fv].indexOf(b),re=null!=(X=null==L?void 0:L[y])?X:0,ae=se?ie:te-A[ne]-S[ne]-re+k.altAxis,le=se?te+A[ne]+S[ne]-re-k.altAxis:oe,ce=g&&se?function(e,t,n){var i=Yv(e,t,n);return i>n?n:i}(ae,te,le):Yv(g?ae:ie,te,g?le:oe);w[y]=ce,E[y]=ce-te}t.modifiersData[i]=E}},requiresIfExists:["offset"]},Xv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Rv(n.placement),l=Mv(a),c=[fv,mv].indexOf(a)>=0?"height":"width";if(s&&r){var d=function(e,t){return $v("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Gv(e,vv))}(o.padding,n),h=rv(s),u="y"===l?gv:fv,g="y"===l?pv:mv,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],m=r[l]-n.rects.reference[l],f=uv(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,v=p/2-m/2,C=d[u],_=b-h[c]-d[g],y=b/2-h[c]/2+v,w=Yv(C,y,_),A=l;n.modifiersData[i]=((t={})[A]=w,t.centerOffset=w-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Hv(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jv(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eC(e){return[gv,mv,pv,fv].some(function(t){return e[t]>=0})}var tC=Iv({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=void 0===o||o,r=i.resize,a=void 0===r||r,l=Hb(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(e){e.addEventListener("scroll",n.update,Nv)}),a&&l.addEventListener("resize",n.update,Nv),function(){s&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Nv)}),a&&l.removeEventListener("resize",n.update,Nv)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ov({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,s=n.adaptive,r=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,c={placement:Rv(t.placement),variation:Tv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Pv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Ub(o)&&ev(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ub(i)&&ev(i)&&(Object.assign(i.style,s),Object.keys(o).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]},Bv,Qv,Zv,Xv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=Kv(t,{elementContext:"reference"}),a=Kv(t,{altBoundary:!0}),l=Jv(r,i),c=Jv(a,o,s),d=eC(l),h=eC(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}}]});function nC(e){return Er("MuiPopper",e)}function iC(e){return"function"==typeof e?e():e}Dr("MuiPopper",["root"]);const oC={},sC=t.forwardRef(function(e,n){const{anchorEl:i,children:o,direction:s,disablePortal:r,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:h,slotProps:u={},slots:g={},TransitionProps:p,ownerState:m,...f}=e,b=t.useRef(null),v=Sl(b,n),C=t.useRef(null),_=Sl(C,h),y=t.useRef(_);Jr(()=>{y.current=_},[_]),t.useImperativeHandle(h,()=>C.current,[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,s),[A,S]=t.useState(w),[x,k]=t.useState(iC(i));t.useEffect(()=>{C.current&&C.current.forceUpdate()}),t.useEffect(()=>{i&&k(iC(i))},[i]),Jr(()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:r}},{name:"flip",options:{altBoundary:r}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{S(e.placement)}}];null!=a&&(e=e.concat(a)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=tC(x,b.current,{placement:w,...d,modifiers:e});y.current(t);const n=b.current;return()=>{if(n){const{style:e}=n,i=e.position,o=e.top,s=e.left,r=e.transform;t.destroy(),e.position=i,e.top=o,e.left=s,e.transform=r}else t.destroy();y.current(null)}},[x,r,a,l,d,w]);const L={placement:A};null!==p&&(L.TransitionProps=p);const E=(e=>{const{classes:t}=e;return Lt({root:["root"]},nC,t)})(e),D=g.root??"div",I=fh({elementType:D,externalSlotProps:u.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:E.root});return(0,_t.jsx)(D,{...I,children:"function"==typeof o?o(L):o})}),rC=_r(t.forwardRef(function(e,n){const{anchorEl:i,children:o,container:s,direction:r="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=oC,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:b={},...v}=e,[C,_]=t.useState(!0);if(!l&&!d&&(!m||C))return null;let y;if(s)y=s;else if(i){const e=iC(i);y=e&&void 0!==e.nodeType?_h(e).body:_h(null).body}const w=d||!l||m&&!C?void 0:"none",A=m?{in:d,onEnter:()=>{_(!1)},onExited:()=>{_(!0)}}:void 0;return(0,_t.jsx)($p,{disablePortal:a,container:y,children:(0,_t.jsx)(sC,{anchorEl:i,direction:r,disablePortal:a,modifiers:c,ref:n,open:m?!C:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:b,...v,style:{position:"fixed",top:0,left:0,display:w,...p},TransitionProps:A,children:o})})}),{name:"MuiPopper",slot:"Root"})({}),aC=t.forwardRef(function(e,t){const n=Zr(),i=Sr({props:e,name:"MuiPopper"}),{anchorEl:o,component:s,components:r,componentsProps:a,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,slots:b,slotProps:v,...C}=i,_=b?.root??r?.Root,y={anchorEl:o,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,...C};return(0,_t.jsx)(rC,{as:s,direction:n?"rtl":"ltr",slots:{root:_},slotProps:v??a,...y,ref:t})});function lC(e){return Er("MuiTooltip",e)}const cC=Dr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),dC=_r(aC,{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]}})(Xa(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${cC.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${cC.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${cC.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${cC.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${cC.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${cC.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${cC.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${cC.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),hC=_r("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${Vr(n.placement.split("-")[0])}`]]}})(Xa(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${cC.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${cC.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${cC.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${cC.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${cC.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${cC.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${cC.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),uC=_r("span",{name:"MuiTooltip",slot:"Arrow"})(Xa(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gC=!1;const pC=new uc;let mC={x:0,y:0};function fC(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const bC=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:r,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:h=!1,disableInteractive:u=!1,disableTouchListener:g=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:f=700,followCursor:b=!1,id:v,leaveDelay:C=0,leaveTouchDelay:_=1500,onClose:y,onOpen:w,open:A,placement:S="bottom",PopperComponent:x,PopperProps:k={},slotProps:L={},slots:E={},title:D,TransitionComponent:I,TransitionProps:N,...R}=i,T=t.isValidElement(s)?s:(0,_t.jsx)("span",{children:s}),M=Ur(),O=Zr(),[q,P]=t.useState(),[B,F]=t.useState(null),W=t.useRef(!1),z=u||b,V=gc(),H=gc(),j=gc(),U=gc(),[$,G]=of({controlled:A,default:!1,name:"Tooltip",state:"open"});let K=$;const Q=Ul(v),Y=t.useRef(),Z=Yl(()=>{void 0!==Y.current&&(document.body.style.WebkitUserSelect=Y.current,Y.current=void 0),U.clear()});t.useEffect(()=>Z,[Z]);const X=e=>{pC.clear(),gC=!0,G(!0),w&&!K&&w(e)},J=Yl(e=>{pC.start(800+C,()=>{gC=!1}),G(!1),y&&K&&y(e),V.start(M.transitions.duration.shortest,()=>{W.current=!1})}),ee=e=>{W.current&&"touchstart"!==e.type||(q&&q.removeAttribute("title"),H.clear(),j.clear(),p||gC&&m?H.start(gC?m:p,()=>{X(e)}):X(e))},te=e=>{H.clear(),j.start(C,()=>{J(e)})},[,ne]=t.useState(!1),ie=e=>{const t=e?.target??q;if(!t||!Gl(t)){ne(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),te(n)}},oe=e=>{q||P(e.currentTarget),Gl(e.target)&&(ne(!0),ee(e))},se=e=>{W.current=!0;const t=T.props;t.onTouchStart&&t.onTouchStart(e)};t.useEffect(()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&J(e)}},[J,K]);const re=Kl(Tp(T),P,n);D||0===D||(K=!1);const ae=t.useRef(),le={},ce="string"==typeof D;c?(le.title=K||!ce||h?null:D,le["aria-describedby"]=K?Q:null):(le["aria-label"]=ce?D:null,le["aria-labelledby"]=K&&!ce?Q:null);const de={...le,...R,...T.props,className:kt(R.className,T.props.className),onTouchStart:se,ref:re,...b?{onMouseMove:e=>{const t=T.props;t.onMouseMove&&t.onMouseMove(e),mC={x:e.clientX,y:e.clientY},ae.current&&ae.current.update()}}:{}},he={};g||(de.onTouchStart=e=>{se(e),j.clear(),V.clear(),Z(),Y.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(f,()=>{document.body.style.WebkitUserSelect=Y.current,ee(e)})},de.onTouchEnd=e=>{T.props.onTouchEnd&&T.props.onTouchEnd(e),Z(),j.start(_,()=>{J(e)})}),h||(de.onMouseOver=fC(ee,de.onMouseOver),de.onMouseLeave=fC(te,de.onMouseLeave),z||(he.onMouseOver=ee,he.onMouseLeave=te)),d||(de.onFocus=fC(oe,de.onFocus),de.onBlur=fC(ie,de.onBlur),z||(he.onFocus=oe,he.onBlur=ie));const ue={...i,isRtl:O,arrow:o,disableInteractive:z,placement:S,PopperComponentProp:x,touch:W.current},ge="function"==typeof L.popper?L.popper(ue):L.popper,pe=t.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(B),options:{element:B,padding:4}}];return k.popperOptions?.modifiers&&(e=e.concat(k.popperOptions.modifiers)),ge?.popperOptions?.modifiers&&(e=e.concat(ge.popperOptions.modifiers)),{...k.popperOptions,...ge?.popperOptions,modifiers:e}},[B,k.popperOptions,ge?.popperOptions]),me=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:s}=e;return Lt({popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${Vr(s.split("-")[0])}`],arrow:["arrow"]},lC,t)})(ue),fe="function"==typeof L.transition?L.transition(ue):L.transition,be={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...E},slotProps:{arrow:L.arrow??l.arrow,popper:{...k,...ge??l.popper},tooltip:L.tooltip??l.tooltip,transition:{...N,...fe??l.transition}}},[ve,Ce]=Nl("popper",{elementType:dC,externalForwardedProps:be,ownerState:ue,className:kt(me.popper,k?.className)}),[_e,ye]=Nl("transition",{elementType:Bp,externalForwardedProps:be,ownerState:ue}),[we,Ae]=Nl("tooltip",{elementType:hC,className:me.tooltip,externalForwardedProps:be,ownerState:ue}),[Se,xe]=Nl("arrow",{elementType:uC,className:me.arrow,externalForwardedProps:be,ownerState:ue,ref:F});return(0,_t.jsxs)(t.Fragment,{children:[t.cloneElement(T,de),(0,_t.jsx)(ve,{as:x??aC,placement:S,anchorEl:b?{getBoundingClientRect:()=>({top:mC.y,left:mC.x,right:mC.x,bottom:mC.y,width:0,height:0})}:q,popperRef:ae,open:!!q&&K,id:Q,transition:!0,...he,...Ce,popperOptions:pe,children:({TransitionProps:e})=>(0,_t.jsx)(_e,{timeout:M.transitions.duration.shorter,...e,...ye,children:(0,_t.jsxs)(we,{...Ae,children:[D,o?(0,_t.jsx)(Se,{...xe}):null]})})})]})}),vC=bC,CC=_r(yd,{shouldForwardProp:e=>!["width","dense"].includes(e)})(({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",whiteSpace:"normal",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}}));function _C({width:e,text:n,dense:i,tooltip:o}){const{translator:s}=(0,t.useContext)(rp);return(0,_t.jsx)(vC,{title:o?s.get(n):"",children:(0,_t.jsx)(CC,{width:e,dense:i,component:"div",variant:"body1",py:"12px",children:s.get(n)})})}const yC=ul((0,_t.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),wC=_r(bm)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),AC=_r("div")(()=>({paddingLeft:"6px",flexGrow:1})),SC=_r("div")(({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"})),xC=_r(yC)(()=>({fontSize:"14px"}));function kC({text:e,dismiss:t,dense:n,parentWidth:i=0}){const o="function"==typeof t,s=n?370:282,r=Math.max(i/2-s/2,0),a=Math.min(s,i)-42,l=n&&i<s;return(0,_t.jsxs)(wC,{left:r,style:{maxWidth:s},children:[(0,_t.jsx)(AC,{children:(0,_t.jsx)(_C,{text:e,dense:n,width:a,tooltip:l})}),(0,_t.jsx)(SC,{dense:n,children:o&&(0,_t.jsx)(Uc,{"aria-label":"close",onClick:()=>t(),children:(0,_t.jsx)(xC,{})})})]})}function LC({itemWidth:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},s=!["N",void 0].includes(n);return!(!i||!s&&!o)}const EC=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,DC=e=>{const t=EC(e);return`Max(AGGR(Count(${t}), ${t}))`},IC=_r("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function NC({model:e,app:n,constraints:i,layout:o,selections:s,selectionState:r,direction:a,checkboxes:l,height:c,width:d,frequencyMode:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:b=!0,scrollState:v,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:y,onCtrlF:w,showSearch:A,isModal:S,styles:x}){const{translator:k}=(0,t.useContext)(rp),[L,E]=(0,t.useState)(!1),D=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:I=l,histogram:N}=o??{},R=(0,t.useRef)(null),T=(0,t.useRef)({queue:[],validPages:!1,dataOffset:0}),M=(0,t.useRef)({pages:[]}),{frequencyMax:O,awaitingFrequencyMax:q}=((e,n)=>{const i=(e=>"fetch"===e?.frequencyMax)(n),[o,s]=(0,t.useState)(),[r,a]=(0,t.useState)(i);return(0,t.useEffect)(()=>{i&&(async()=>{const t=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,i=n.qGroupFieldDefs[n.qGroupPos],o=DC(i);return(await t.evaluateEx(o)).qNumber})(n,e);s(t),a(!1)})()},[i&&n]),{frequencyMax:i?o:n?.frequencyMax,awaitingFrequencyMax:r}})(n,o),{isLoadingData:P,...B}=function({local:e,loaderRef:n,model:i,fetchStart:o,scrollTimeout:s,postProcessPages:r,listData:a}){const[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)([]);let[u]=(0,t.useState)(0);const g=(t,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:t+d,stop:l+d});const g=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const n=e.current.queue.slice(-1)[0];if(!n)return c(!1),void t();const s=i.getListObjectData("/qListObjectDef",[{qTop:n.start>u?n.start-u:0,qHeight:u,qLeft:0,qWidth:1},{qTop:n.start,qHeight:u,qLeft:0,qWidth:1}]).then(n=>{const i=r?r(n):n;e.current.validPages=!0,a.current.pages=i,h(i),c(!1),t()});o&&o(s)},g?s:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(u=e),g)},pages:d,isLoading:l}}({local:T,loaderRef:R,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:M}),{getStoreValue:F,setStoreValue:W}=Vb(e),z=(0,t.useCallback)(B.loadMoreItems,[o]),[V,H]=(0,t.useState)({show:!1,dismissed:!1}),[j,U]=(0,t.useState)([]);B?.pages&&r.update({setPages:U,pages:B.pages,isSingleSelect:D,layout:o});const $=o?.qListObject.qDimensionInfo.qCardinal;(B?.pages.length&&!q||0===$)&&y?.();const G=(0,t.useCallback)(e=>{if(!j?.length||!T.current.validPages)return!1;T.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=j.filter(e=>t(e))[0];return n&&t(n)},[o,j]),{interactionEvents:K,select:Q}=function({selectionState:e,selections:n,checkboxes:i=!1,doc:o=document,loaderRef:s}){const r=(0,t.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,t.useEffect)(()=>{if(!s.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=s.current._listRef._outerRef;return i.addEventListener("gesturestart",e),i.addEventListener("gesturechange",t),i.addEventListener("gestureend",n),()=>{i.removeEventListener("gesturestart",e),i.removeEventListener("gesturechange",t),i.removeEventListener("gestureend",n)}},[s.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),Mm({selections:n,elemNumbers:r.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:r.current.toggle})),l=(t,n)=>{const i=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 Tm(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i}),{min:n,max:i}}(e,t);return t.slice(n,i+1)}([t,n],i)},c=t=>{const{startElemNumber:n}=r.current;if(n===t)return;const i=l(r.current.startElemNumber,t);e.updateItems(i,!0,r.current.elemNumbers)},d=(0,t.useCallback)(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&Bm(t.nativeEvent);r.current.elemNumbers=[n],r.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),r.current.active=!1,a()},[]),h=(0,t.useCallback)(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),i=!e.isSingleSelect&&Bm(t);r.current.isRange=!1,r.current.startElemNumber=n,r.current.elemNumbers=[n],r.current.toggle=i,r.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(r.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),u=(0,t.useCallback)(e=>{if(0===e.button&&r.current.active){if(r.current.active=!1,r.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}},[]),g=(0,t.useCallback)(e=>{0===e.button&&r.current.active&&(r.current.active=!1,a())},[]),p=(0,t.useCallback)(t=>{if(!r.current.active)return;r.current.isRange||(r.current.isRange=!0,e.isSelected(r.current.startElemNumber)||(e.updateItem(r.current.startElemNumber,!0),r.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=(0,t.useCallback)(t=>{if(r.current.active||r.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const n=Number(t.touches[0].target?.closest(Pm)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(Pm)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(r.current.active=!0,l(n,i).length<7&&(r.current.touchRangeSmall=!0),r.current.elemNumbers=[],r.current.touchElemNumbers=[n,i])},[]),f=(0,t.useCallback)(()=>{if(2!==r.current.touchElemNumbers.length)return;if(r.current.touchRangeSmall)return r.current.touchRangeSmall=!1,r.current.touchElemNumbers=[],void(r.current.active=!1);const[e,t]=r.current.touchElemNumbers;r.current.startElemNumber=e,c(t),r.current.touchElemNumbers=[],r.current.active=!1,r.current.toggle=!0,a()},[]);(0,t.useEffect)(()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)}),[g]),(0,t.useEffect)(()=>{const t=()=>{e.clearItemStates(!1)},i=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return n.on("clearItemStates",t),n.on("deactivated",t),n.on("cleared",i),()=>{n.removeListener("clearItemStates",t),n.removeListener("deactivated",t),n.removeListener("cleared",i)}},[n]);const b={};return i?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:u,onMouseDown:h,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:b,select:async(t=[],i=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const s=!e.isSingleSelect&&Bm(o?.nativeEvent);s||e.clearItemStates(!0);const r=[];return e.updateItems(t,i,r),e.setSelectableValuesUpdating(),Mm({selections:n,elemNumbers:i?r:t,isSingleSelect:e.isSingleSelect,toggle:s})}}}({selectionState:r,selections:s,checkboxes:I,doc:document,loaderRef:R}),{layoutOptions:Y={}}=o||{};let Z=!0;Y.dataLayout&&(Z="singleColumn"===Y.dataLayout||"row"===Y?.layoutOrder);const X="grid"===Y?.dataLayout,J=e=>{const t={...Z?{rowIndex:e}:{columnIndex:e}},n=X?t:e;R.current._listRef.scrollToItem(n)},ee=()=>{if(T.current.queue=[],T.current.validPages=!1,R.current){R.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&C.reset());T.current.dataOffset=0,J(0)}};u&&u.call(null,ee),(0,t.useEffect)(()=>{v&&!L&&R.current&&(R.current._listRef.scrollToItem(v.initScrollPos),E(!0))},[R.current]),(0,t.useEffect)(()=>{ee()},[o,T.current.dataOffset]);let te=100;const ne="grid"!==Y.dataLayout,ie=o?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){const o=e?.length&&i?(({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return i?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:j,minimumBatchSize:te,count:ie,calculatePagesHeight:m,layoutOptions:Y,model:e});let se=LC({itemWidth:d,layout:o,frequencyMode:h});const re=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>!!e.qFrequency?.match("%")))?"P":"-"}(j),ae=function({layout:e,width:t,height:n,listCount:i,count:o,freqIsAllowed:s,checkboxes:r,styles:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:h,dense:u,dataLayout:g}=l,{fontSize:p="12px",fontFamily:m="Source sans pro"}=a?.content||{},f=`${p} ${m}`,b=Pb({text:Bb(e),font:f}),v=Pb({text:Bb(5),font:f}),C=Pb({text:Bb(8),font:f}),_=s?v:0,y=r?20:0;let w=56+_+y;!r&&w>=80&&(w+=20);let A,S,x,k,L=b+18+_+y;!r&&L>=80&&(L+=20),L=Math.min(150,Math.max(L,w));const E=Fb({isGridMode:"grid"===g,dense:u}),D=n??8*E;if(c){let e=t;"row"===c?(A={overflowX:"hidden"},e+=8,({rowCount:k,columnWidth:x,columnCount:S}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:i,itemMinWidth:o}){const s=e?.maxColumns||3,r=n-10;let a;const l=Math.min(t,Math.max(1,Math.round(r/Math.max(o,i))));a=!1!==e?.auto?l:Math.min(t,s,l),a=Math.max(a,1);const c=r/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:h,listCount:i,containerWidth:e,columnAutoWidth:L,itemMinWidth:w}))):(A={overflowY:"hidden"},({rowCount:k,columnWidth:x,columnCount:S}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:s,itemMinWidth:r}){let a;const l=e?.maxRows||3,c=Math.floor(i/t);a=!1!==e.auto?c:Math.min(n,l,c),a=Math.max(a,1);const d=Math.ceil(n/a);return{columnWidth:Math.max(o,s/d,r),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:E,listCount:i,listHeight:D,columnAutoWidth:L,containerWidth:e,itemMinWidth:w})))}S=("singleColumn"===g?1:S)||1,k=("singleColumn"===g?o:k)||i;const I=l.dense?838e3:577e3;k=Math.min(k,I);const N=Math.floor(3355e4/x);S=Math.min(S,N)||1;const R=k*S;return{columnCount:S,columnWidth:x,rowCount:k,overflowStyling:A,itemHeight:E,listHeight:D,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(i,R),maxCount:{row:I,column:N},itemPadding:4,textWidth:b,freqMinWidth:v,freqMaxWidth:C}}({layout:o,width:d,height:c,listCount:oe,count:ie,freqIsAllowed:se,checkboxes:I,styles:x});ae.columnWidth&&(se=LC({itemWidth:ae.columnWidth,layout:o,frequencyMode:h}));const{listCount:le}=ae;W("listCount",le);const ce=F("inputText"),de=function({layout:e,searchInputText:n,listCount:i}){const{translator:o}=(0,t.useContext)(rp),s=[];if(n?.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(i),t=o.get(e,[i]);s.push(t)}const r=function({layout:e,translatorDynamic:t}){const{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},i=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let o;switch(i){case 0:o="ScreenReader.ZeroSelected";break;case 1:o="ScreenReader.OneSelected";break;default:o="ScreenReader.ManySelected"}return t.get(o,[i])}({layout:e,translatorDynamic:o});s.push(r);const a=s.filter(e=>!!e?.length).join(". ");return a}({layout:o,searchInputText:ce,listCount:le}),he=e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let s,r=!1,a=o??0;switch(e){case"start":s=0;break;case"end":s=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,s=0,r=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),s=i.qListObject.qDimensionInfo.qCardinal,r=!0}return{scrollIndex:s,offset:a,triggerRerender:r}}({position:e,isRow:Z,sizes:ae,layout:o,offset:T.current.dataOffset});T.current.dataOffset=n,i&&r.triggerStateChanged(),J(t)};(0,t.useEffect)(()=>{const e=C.state;e.up?J(_.state.start-e.up):e.down?J(_.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()},[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ue}=o?.qListObject.qDimensionInfo||{},[ge,pe]=(0,t.useState)({first:!1,last:!1}),{List:me,Grid:fe}=function({layout:e,width:t,checkboxes:n,local:i,isVertical:o,pages:s,selectionState:r,interactionEvents:a,deducedFrequencyMode:l,histogram:c,isSingleSelect:d,select:h,selectAll:u,onCtrlF:g,textAlign:p,selections:m,keyboard:f,showGray:b,scrollState:v,direction:C,sizes:_,listCount:y,overflowDisclaimer:w,setScrollPosition:A,focusListItems:S,setCurrentScrollIndex:x,constraints:k,frequencyMax:L,freqIsAllowed:E,translator:D,showSearch:I,isModal:N,styles:R}){const{layoutOptions:T={}}=e||{},{columnWidth:M,listHeight:O,itemHeight:q,rowCount:P,columnCount:B}=_||{},F=("grid"===T.dataLayout?M:t)>80,W={direction:"rtl"===C?"rtl":"ltr",useIsScrolling:!0,className:Tb},z=e?.qListObject.qDimensionInfo.qLocked,V=O<=q,H={isLocked:z,column:!o,pages:s,...z||r.selectDisabled()?{}:a,checkboxes:n,layoutOptions:T,deducedFrequencyMode:l,freqIsAllowed:E,isSingleSelect:d,textAlign:p,sizes:_,actions:{select:h,confirm:()=>m?.confirm.call(m),cancel:()=>m?.cancel.call(m),setScrollPosition:A,selectAll:u,onCtrlF:g},frequencyMax:L,histogram:c,keyboard:f,showGray:b,showTick:F,dataOffset:i.current.dataOffset,focusListItems:S,direction:C,translator:D,showSearch:I,isModal:N,styles:R,fillHeight:V};return{List:({onItemsRendered:n,ref:o})=>(i.current.listRef=o,(0,_t.jsx)(Ob,{...W,dataTestid:"fixed-size-list",scrollDisabled:k?.active,height:O,width:t,itemCount:y,itemData:{...H,listCount:y},itemSize:q,onItemsRendered:t=>{x({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),Mb({renderProps:t,layoutOptions:T,maxCount:_.maxCount,columnCount:B,rowCount:P,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:i.current.dataOffset}),n({...t})},ref:o,children:hb})),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:s,scrollBarWidth:r}=_,{layoutOrder:a}=T||{},l=Math.min(O,P*q+r);return i.current.listRef=o,(0,_t.jsx)(qb,{...W,dataTestid:"fixed-size-grid",scrollDisabled:k?.active,height:l,width:t,columnCount:B,columnWidth:M,rowCount:P,rowHeight:q,style:{...s},itemData:{...H,column:void 0,columnCount:B,rowCount:P},onItemsRendered:t=>{const o="row"===a;x({start:o?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:o?t.visibleRowStopIndex:t.visibleColumnStopIndex});const s=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:s}=e,{overscanRowStartIndex:r,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let h,u,g,p;return n&&n.setScrollPos(d),"column"===i?(h=l*o,u=r,g=c*o,p=a):(h=l,u=r*s,g=c,p=a*s),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:a,rowCount:P,columnCount:B});Mb({renderProps:t,layoutOptions:T,maxCount:_.maxCount,columnCount:B,rowCount:P,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:i.current.dataOffset}),n(s)},ref:o,children:hb})}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,deducedFrequencyMode:re,histogram:N,keyboard:f,showGray:b,interactionEvents:K,select:Q,selectAll:()=>{r.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:ue,isVertical:ne,pages:j,selectionState:r,isSingleSelect:D,selections:s,scrollState:v,local:T,sizes:ae,listCount:le,overflowDisclaimer:{state:V,set:e=>H(t=>({...t,show:e}))},setScrollPosition:he,focusListItems:{first:ge.first,setFirst:e=>pe(t=>({...t,first:e})),last:ge.last,setLast:e=>pe(t=>({...t,last:e}))},setCurrentScrollIndex:_.set,constraints:i,frequencyMax:O,freqIsAllowed:se,translator:k,showSearch:A,isModal:S,styles:x}),{columnWidth:be,listHeight:ve,itemHeight:Ce}=ae||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:d,columnWidth:be,listHeight:ve,itemHeight:Ce})),(0,_t.jsxs)(IC,{children:[(0,_t.jsx)("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:de}),!le&&$>0&&(0,_t.jsx)(_C,{width:d,text:"Listbox.NoMatchesForYourTerms"}),(0,_t.jsx)(Nm,{isItemLoaded:G,itemCount:le||1,loadMoreItems:z.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:R,role:"grid",children:ne?me:fe}),V.show&&!V.dismissed&&(0,_t.jsx)(kC,{text:"Listbox.ItemsOverflow",dismiss:()=>H(e=>({...e,dismissed:!0})),parentWidth:R?.current?._listRef?.props?.width,dense:Y?.dense})]})}const RC=e=>({...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"}}]});n.dn(e=>(void 0)(RC(e)));const TC=e=>({...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"}}]});n.dn(e=>(void 0)(TC(e)));const MC=e=>({...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"}}]});n.dn(e=>(void 0)(MC(e)));const OC=e=>({...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"}}]});n.dn(e=>(void 0)(OC(e)));const qC=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1,selections:s})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const r="/qListObjectDef",a=()=>{s.isActive()||s.begin(r)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:RC,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAll(r)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:MC,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectPossible(r)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:TC,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAlternative(r)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:OC,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectExcluded(r)}}].filter(Boolean)};function PC(e){return Er("MuiDivider",e)}n.dn(qC);const BC=Dr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),FC=_r("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(Xa(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),WC=_r("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Xa(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),zC=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:r="horizontal",component:a=(o||"vertical"===r?"div":"hr"),flexItem:l=!1,light:c=!1,role:d=("hr"!==a?"separator":void 0),textAlign:h="center",variant:u="fullWidth",...g}=n,p={...n,absolute:i,component:a,flexItem:l,light:c,orientation:r,role:d,textAlign:h,variant:u},m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:s,orientation:r,textAlign:a,variant:l}=e;return Lt({root:["root",t&&"absolute",l,s&&"light","vertical"===r&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===r&&"withChildrenVertical","right"===a&&"vertical"!==r&&"textAlignRight","left"===a&&"vertical"!==r&&"textAlignLeft"],wrapper:["wrapper","vertical"===r&&"wrapperVertical"]},PC,i)})(p);return(0,_t.jsx)(FC,{as:a,className:kt(m.root,s),role:d,ref:t,ownerState:p,"aria-orientation":"separator"!==d||"hr"===a&&"vertical"!==r?void 0:r,...g,children:o?(0,_t.jsx)(WC,{className:m.wrapper,ownerState:p,children:o}):null})});zC&&(zC.muiSkipListHighlight=!0);const VC=zC,HC=e=>({...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 jC(e){const t=Ur(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}n.dn(e=>(void 0)(HC(e)));const UC={className:"njs-cell-action"},$C=t.forwardRef(({item:e,addAnchor:t=!1},n)=>{const i=Ur(),{hidden:o,disabled:s,style:r,hasSvgIconShape:a}=jC(e);if(o)return null;const l=Number.parseInt(i.spacing(.5),10),c=e.keyboardAction||e.action,d=c?e=>["Enter"].includes(e.key)&&c():null,h=c?e=>[" ","Spacebar"].includes(e.key)&&c():null,u=`actions-toolbar-${e.key}`,g=e.ref||(t?null:n);return(0,_t.jsxs)(Uc,{ref:g,title:e.label,onClick:e.action,onKeyDown:d,onKeyUp:h,disabled:s,style:r,className:[UC.className,u].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":u,children:[a&&Yd(e.getSvgIconShape()),t&&(0,_t.jsx)("div",{ref:n,style:{bottom:-l,right:0,position:"absolute",width:"100%",height:0}})]})}),GC=$C,KC=e=>({...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"}}]}),QC=e=>Yd(KC(e));n.dn(QC);const YC=e=>({...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"}}]}),ZC=e=>Yd(YC(e));function XC(e){return Er("MuiListItemIcon",e)}n.dn(ZC);const JC=Dr("MuiListItemIcon",["root","alignItemsFlexStart"]);function e_(e){return Er("MuiMenuItem",e)}const t_=Dr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),n_=t.createContext(null),i_=n_.Provider,o_=_r(Lc,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Xa(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t_.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${t_.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${t_.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${t_.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${t_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${BC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${BC.inset}`]:{marginLeft:52},[`& .${dh.root}`]:{marginTop:0,marginBottom:0},[`& .${dh.inset}`]:{paddingLeft:36},[`& .${JC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${JC.root} svg`]:{fontSize:"1.25rem"}}}]}))),s_=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:r=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:u,...g}=i,p=t.useContext(n_),m=t.useContext(Xd),f=t.useMemo(()=>({dense:r||m.dense||!1,disableGutters:l}),[m.dense,r,l]),b=t.useRef(null);ih(()=>{o&&b.current&&function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(b.current,p)},[o]);const v={...i,dense:f.dense,divider:a,disableGutters:l},C=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:s,classes:r}=e,a=Lt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",s&&"selected"]},e_,r);return{...r,...a}})(i),_=Kl(b,n),{root:y,...w}=C;let A;return i.disabled||(A=void 0!==h?h:-1),(0,_t.jsx)(Xd.Provider,{value:f,children:(0,_t.jsx)(o_,{ref:_,role:d,tabIndex:A,component:s,focusVisibleClassName:kt(C.focusVisible,c),className:kt(C.root,u),...g,ownerState:v,classes:w})})}),r_=s_,a_=_r("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Xa(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),l_=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemIcon"}),{className:o,...s}=i,r=t.useContext(Xd),a={...i,alignItems:r.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Lt({root:["root","flex-start"===t&&"alignItemsFlexStart"]},XC,n)})(a);return(0,_t.jsx)(a_,{className:kt(l.root,o),ownerState:a,ref:n,...s})}),c_=l_,d_=nm;function h_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function u_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function g_(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function p_(e,t,n,i,o,s){let r=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(r)return!1;r=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&g_(a,s)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const m_=t.forwardRef(function(e,n){const{actions:i,autoFocus:o=!1,autoFocusItem:s=!1,children:r,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:h="selectedMenu",...u}=e,g=t.useRef(null),p=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ih(()=>{o&&g.current.focus()},[o]),t.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${d_(wh(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}}),[]);const m=Kl(g,n);let f=-1;t.Children.forEach(r,(e,n)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===f)&&(f=n),f===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=r.length&&(f=-1))):f===n&&(f+=1,f>=r.length&&(f=-1))});const b=t.Children.map(r,(e,n)=>{if(n===f){const n={};return s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),t.cloneElement(e,n)}return e});return(0,_t.jsx)(nh,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(d&&d(e));const i=Mh(Th(t));if("ArrowDown"===n)e.preventDefault(),p_(t,i,c,l,h_);else if("ArrowUp"===n)e.preventDefault(),p_(t,i,c,l,u_);else if("Home"===n)e.preventDefault(),p_(t,null,c,l,h_);else if("End"===n)e.preventDefault(),p_(t,null,c,l,u_);else if(1===n.length){const o=p.current,s=n.toLowerCase(),r=performance.now();o.keys.length>0&&(r-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&s!==o.keys[0]&&(o.repeating=!1)),o.lastTime=r,o.keys.push(s);const a=i&&!o.repeating&&g_(i,o);o.previousKeyMatched&&(a||p_(t,i,!1,l,h_,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1,...u,children:b})}),f_=m_,b_="More-icon",v_=_r(Lm)(({theme:e})=>({pointerEvents:"none",[`& .${b_} *`]:{color:e.palette.text.primary}}));function C_({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:i,disabled:o,hasSvgIconShape:s}=jC(e);return i?null:(0,_t.jsxs)(r_,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[s&&(0,_t.jsx)(c_,{className:b_,children:Yd(e.getSvgIconShape())}),(0,_t.jsx)(yd,{noWrap:!0,children:e.label})]})}const __=t.forwardRef(({actions:e=[],show:t=!0,alignTo:n,popoverProps:i={},popoverPaperStyle:o={},onCloseOrActionClick:s=()=>{},disablePortal:r=!0},a)=>{const l=e.length>0,c=e.findIndex(e=>!e.disabled);return l&&(0,_t.jsx)(v_,{...i,onClose:s,ref:a,open:t,anchorEl:n.current,getContentAnchorEl:r?null:void 0,container:r?n.current:void 0,disablePortal:r,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...o}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,_t.jsx)(f_,{id:"moreMenuList",children:e.map((e,t)=>(0,_t.jsx)(C_,{item:e,autoFocus:t===c,onActionClick:s},t))})})});const y_="ActionsToolbar",w_={item:`${y_}-item`,itemSpacing:`${y_}-itemSpacing`},A_=_r(Lm)(({theme:e})=>({[`& .${w_.itemSpacing}`]:{padding:e.spacing(0,.25)}})),S_=t.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:i=!1},o)=>t.length>0?(0,_t.jsx)(ud,{container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>(0,_t.jsx)(ud,{className:`${w_.itemSpacing} ${w_.item}`,children:(0,_t.jsx)(GC,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),x_={pointerEvents:"none"},k_=function({show:e=!0,actions:n=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:d,autoConfirm:h=!1,layout:u}){const g=function({api:e,layout:n,onConfirm:i=()=>{},onCancel:o=()=>{},onKeyDeactivate:s=()=>{}}){const{translator:r}=(0,t.useContext)(rp);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(n),action:()=>e.clear(),getSvgIconShape:YC},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(n),action:()=>{o(),e.cancel()},keyboardAction:()=>{s(),o(),e.cancel()},getSvgIconShape:KC},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(n),action:()=>{i(),e.confirm()},keyboardAction:()=>{s(),i(),e.confirm()},getSvgIconShape:Fm}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,t.useContext)(rp),[f,b]=(0,t.useState)(!1),v={vertical:12,horizontal:d?0:(a.anchorEl?.clientWidth??0)-7},C={vertical:"bottom",horizontal:d?-7:"right"},_=(0,t.useRef)(),y=(0,t.useRef)(),w=Ur(),A=(0,t.useMemo)(()=>({margin:w.spacing(.5,0)})),S=e=>{const t=_.current||c;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},x=(0,t.useMemo)(()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:i,isRtl:o}){return s=>{const{target:r,nativeEvent:a}=s,{keyCode:l}=a;switch(l){case tb.ARROW_LEFT:case tb.ARROW_DOWN:case tb.ARROW_RIGHT:case tb.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(r);let t=[tb.ARROW_LEFT,tb.ARROW_DOWN].includes(l);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");n.length&&n[Math.min(Math.max(0,e),n.length-1)].focus()})(t?e-1:e+1)}s.stopPropagation(),s.preventDefault();break;case tb.SPACE:s.preventDefault();break;case tb.TAB:e&&t?.refocusContent&&(s.shiftKey&&n(!1)===s.target||!s.shiftKey&&n(!0)===s.target)&&(s.preventDefault(),s.stopPropagation(),t.refocusContent());break;case tb.ESCAPE:i&&(i.onCancel(),i.api.cancel(),s.preventDefault(),s.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:S,selections:o,isRtl:d}),[m,l,S,o,d]);if((0,t.useEffect)(()=>()=>{b(!1)},[a.show,e,o.show]),(0,t.useEffect)(()=>{l&&(l.on("focus_toolbar_first",()=>{const e=S(!1);e?.focus()}),l.on("focus_toolbar_last",()=>{const e=S(!0);e?.focus()}))},[]),h)return;let k=r.enabled,L=r.actions;const E=r.alignTo||y,D=n.filter(e=>!e.hidden);if(D.length>i){const e=D.splice(-(D.length-i)-1);k=!0,L=[...e,...r.actions]}if(!o.show&&0===D.length&&!k)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:HC,hidden:!1,active:f,enabled:()=>k,action:()=>b(!f)},N=D.length>0,R=L.length>0,T=N&&o.show||R&&o.show,M=(0,_t.jsxs)(ud,{ref:_,onKeyDown:x,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"},children:[s?.length&&(0,_t.jsx)(S_,{className:"actions-toolbar-extra-actions",actions:s,isRtl:d}),N&&(0,_t.jsx)(S_,{actions:D}),R&&(0,_t.jsx)(S_,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,actions:[I],addAnchor:!0}),T&&(0,_t.jsx)(ud,{className:w_.itemSpacing,style:A,children:(0,_t.jsx)(VC,{orientation:"vertical"})}),o.show&&(0,_t.jsx)(S_,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&(0,_t.jsx)(__,{show:f,actions:L,alignTo:E,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{b(!1)},disablePortal:r.disablePortal})]});return a.show?(0,_t.jsx)(A_,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:v,transformOrigin:C,hideBackdrop:!0,style:x_,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:w.spacing(.5,.25)}}},children:M}):e&&M};function L_(e){return Er("MuiInputAdornment",e)}const E_=Dr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var D_;const I_=_r("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Vr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Xa(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${E_.positionStart}&:not(.${E_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),N_=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:r="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d,...h}=i,u=tu()||{};let g=d;d&&u.variant,u&&!g&&(g=u.variant);const p={...i,hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:c,variant:g},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:s,variant:r}=e;return Lt({root:["root",n&&"disablePointerEvents",o&&`position${Vr(o)}`,r,i&&"hiddenLabel",s&&`size${Vr(s)}`]},L_,t)})(p);return(0,_t.jsx)(eu.Provider,{value:null,children:(0,_t.jsx)(I_,{as:r,ownerState:p,className:kt(m.root,s),ref:n,...h,children:"string"!=typeof o||l?(0,_t.jsxs)(t.Fragment,{children:["start"===c?D_||(D_=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]}):(0,_t.jsx)(yd,{color:"textSecondary",children:o})})})}),R_=N_,T_=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));n.dn(T_);const M_="/qListObjectDef",O_=e=>e?.substring(0,64e3),q_=_r(Eu,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let i={};return t&&(i={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:e.search.color,textAlign:n?"right":"left"}}),{display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:e.search.backgroundColor,backdropFilter:e.background.backgroundImage?e.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${e.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${e.search.highlightBorderColor} !important`},"& .MuiInputBase-root":{...e.search},"& *":{color:e.search.color},"& input":{color:e.search.color,textAlign:n?"right":"left"},...i}}),P_=_r(Uc)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));function B_({popoverOpen:e,selections:n,selectionState:i,model:o,keyboard:s,dense:r=!1,visible:a=!0,autoFocus:l=!0,beginSelectionOnFocus:c=!0,wildCardSearch:d=!1,searchEnabled:h,direction:u,hide:g,styles:p},m){const{translator:f}=(0,t.useContext)(rp),[b,v]=(0,t.useState)(""),[C,_]=(0,t.useState)(!1),y=(0,t.useRef)(),w=(0,t.useRef)(),A=f.get("Listbox.Clear.Search"),{getStoreValue:S,setStoreValue:x}=Vb(o),k="rtl"===u,L=async()=>{try{await o.abortListObjectSearch(M_)}finally{v("")}};(0,t.useEffect)(()=>a?()=>L():()=>{},[a]),(0,t.useEffect)(()=>(n.on("deactivated",L),()=>{n.removeListener&&n.removeListener("deactivated",L)}),[]),(0,t.useEffect)(()=>{if(C&&y.current){const e=b.length-1;y.current.setSelectionRange(e,e),_(!1)}},[C,y.current]),(0,t.useEffect)(()=>{x("inputText",b)},[b]);const E=()=>{y.current?.focus()},D=()=>{L(),E()};return(0,t.useImperativeHandle)(m,()=>({focus(){E()}})),a&&!1!==h?(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(q_,{styles:p,dense:r,isRtl:k,startAdornment:(0,_t.jsx)(R_,{position:"start",sx:{marginLeft:r?"8px":"9px"},children:(0,_t.jsx)(T_,{size:r?"small":"normal"})}),endAdornment:(0,_t.jsx)(R_,{position:"end",sx:{marginLeft:0},children:""!==b&&(0,_t.jsx)(P_,{tabIndex:0,ref:w,title:A,"aria-label":A,onClick:D,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":D();break;case"Tab":e.shiftKey?E():ab(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:(0,_t.jsx)(QC,{size:r?"small":"normal"})})}),className:"search",inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:b,onFocus:()=>{d&&(v("**"),_(!0)),c&&!i.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=O_(e.target.value);return v(t),t.length?o.searchListObjectFor(M_,t):L()},onKeyDown:async t=>{const{currentTarget:r}=t,a=r.closest(".listbox-container");switch(t.key){case"Enter":(async()=>{let e;const t=O_(b),s=await o.searchListObjectFor(M_,t);i.selectDisabled()||s&&t.length&&S("listCount")>0&&(e=o.acceptListObjectSearch(M_,!0),n.selectionsMade=!0,i.clearItemStates(!1),v(""))})();break;case"Escape":if(ab(a),n.cancel(),e)return;break;case"Tab":t.shiftKey?lb(a)||s.focusSelection():w.current?w.current.focus():ab(a);break;case"f":case"F":if(!t.ctrlKey&&!t.metaKey)return;g&&(g(),ab(a));break;default:return}t.preventDefault(),t.stopPropagation()},autoFocus:l,inputProps:{tabIndex:s.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search"),"aria-describedby":"listbox-search-instructions"}}),(0,_t.jsx)("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:f.get("Listbox.Search.ScreenReaderInstructions")})]}):null}const F_=(0,t.forwardRef)(B_);function W_(e){if(!e.session)return[];const{selectionStore:n}=(0,t.useContext)(rp),[i]=n.useAppSelectionsStore(),o=e?e.id:null;let s=i.get(o);return(0,t.useEffect)(()=>{e&&!s&&(s=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:i,appModalStore:o}=t,s=async(e=!0)=>{const{model:t,objectSelections:o}=i.get(n)||{};t&&(await t.endSelections(e),i.clear(n),o.emit("deactivated"))},r={begin:async({model:t,paths:o,accept:r=!0,objectSelections:a})=>{if(a===i.get(n)?.objectSelections)return;s(r),i.set(n,{model:t,objectSelections:a});const l=Array.isArray(o)?o:[o],c=async o=>{try{await t.beginSelections(l),i.set(n,{model:t,objectSelections:a})}catch(t){6003!==t.code||o?i.clear(n):(await e.abortModal(r),c(!0))}};await c()},end:s};o.set(n,r);const a={model:e,isInModal:()=>!!i.get(n),isModal:e=>e?i.get(n)?.objectSelections===e:!!i.get(n),forward:()=>r.end().then(()=>e.forward()),back:()=>r.end().then(()=>e.back()),clear:()=>r.end().then(()=>e.clearAll()),clearField:(t,n="$")=>r.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return a}({app:e,selectionStore:n}),i.set(o,s),i.dispatch(!0))},[e]),[s]}function z_(e){return Object.keys(Xu().prototype).forEach(t=>{e[t]=Xu().prototype[t]}),Xu().init(e),e}n.dn(z_);const V_=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,s=!1;const r={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:r}))},clear(){return s=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return s=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return s=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return s="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:s,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:s,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(r),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:r}),noModal:(e=!1)=>t.end(e)};return z_(r),r};function H_(e,n,i,o){const s=Array.isArray(i)?i:[i],[r]=W_(e),[a]=Cp(n),{appModalStore:l}=(0,t.useContext)(rp).selectionStore,c=l.get(e.id),[d,h]=(0,t.useState)();return(0,t.useEffect)(()=>{r&&n&&!d&&h(V_({appSelections:r,appModal:c,model:n}))},[r,n]),(0,t.useEffect)(()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n={}})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map(e=>"string"==typeof e?document.querySelector(e):e?.current).filter(e=>!!e&&!!document.contains(e));i.length&&!i.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}})({elements:s,objectSelections:d,options:o});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}},[d]),(0,t.useEffect)(()=>{d&&d.setLayout(a)},[d,a]),[d]}function j_(e={}){const t={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0,...e,update({setPages:e,pages:n,isSingleSelect:i,selectDisabled:o,layout:s}){this.setPages=e;const r=this.lastRowCount===s.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;r&&a||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==n&&void 0!==n&&(t.enginePages=n??[],t.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Rm.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Tm(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=i,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=s?.qListObject?.qDimensionInfo?.qIsCalculated??!1},allowedToSelect:()=>!(t.selectDisabled()||t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:n,qState:i}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===i?"XS":"S":"S"===i||"XS"===i?"A":i:i},updateItemNoEvents(e,n,i){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(i?.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages(e){const n=e.map(e=>{const n=e.qMatrix.map(e=>{const[n]=e,i=t.getState(n);return[{...n,qState:i},...e.slice(1)]});return{...e,qMatrix:n}});return n},updateItem(e,n,i){t.updateItemNoEvents(e,n,i),t.triggerStateChanged()},updateItems(e,n,i){e.forEach(e=>{t.updateItemNoEvents(e,n,i)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const U_=(e,t,n=void 0)=>e?.[t]??n;function $_(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return U_(t,"qSelected",0)+U_(t,"qSelectedExcluded",0)+U_(t,"qLocked",0)+U_(t,"qLockedExcluded",0)>0}function G_(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K_(e){if("object"==typeof e&&G_(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,i=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+i}const Q_={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Y_="qcm-color";function Z_(...e){const t={type:Y_,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,i=0,o=0,s=1;if(null!==(r=e[0])&&"object"==typeof r&&"type"in r&&r.type===Y_)({r:n,g:i,b:o,a:s}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(G_(e[0]))({r:n,g:i,b:o}=e[0]),"a"in e[0]&&({a:s}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const r=e[0];let a;if(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(r))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10);else if(a=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(r))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10),s=parseFloat(a[4]);else if(a=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(r))s=parseInt(a[1],10)/255,n=parseInt(a[2],10),i=parseInt(a[3],10),o=parseInt(a[4],10);else if(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(r))n=parseInt(a[1],16),i=parseInt(a[2],16),o=parseInt(a[3],16),s=1;else if(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(r))n=parseInt(a[1]+a[1],16),i=parseInt(a[2]+a[2],16),o=parseInt(a[3]+a[3],16),s=1;else if(a=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(r)){let e=parseFloat(a[1]),t=parseFloat(a[3]),r=parseFloat(a[5]);e%=360,t/=100,r/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,r=r<0?0:r>1?1:r;const l=r<=.5?2*r*t:(2-2*r)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=r-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),s=1}else if(a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(r)){let e=parseFloat(a[1]),t=parseFloat(a[3]),r=parseFloat(a[5]);s=parseFloat(a[7]),e%=360,t/=100,r/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,r=r<0?0:r>1?1:r;const l=r<=.5?2*r*t:(2-2*r)*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=r-.5*l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o)}else if(a=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(r)){let e=parseFloat(a[1]),t=parseFloat(a[3]),r=parseFloat(a[5]);e%=360,t/=100,r/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,r=r<0?0:r>1?1:r;const l=r*t;let c=e/60;const d=l*(1-Math.abs(c%2-1));let h=[];switch(c=Math.floor(c),c){case 0:h=[l,d,0];break;case 1:h=[d,l,0];break;case 2:h=[0,l,d];break;case 3:h=[0,d,l];break;case 4:h=[d,0,l];break;case 5:h=[l,0,d];break;default:h=[0,0,0]}const u=r-l;n=h[0]+u,i=h[1]+u,o=h[2]+u,n=Math.round(255*n),i=Math.round(255*i),o=Math.round(255*o),s=1}else{const e=r.toLowerCase();if(function(e){return e in Q_}(e)){const t=Q_[e];({r:n,g:i,b:o}=t),s="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(s=(4278190080&e[0])>>>24,s/=255,n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,i=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],i=e[1],o=e[2],s=4===e.length?e[3]:1):t.invalid=!0;var r;return Number.isNaN(+n+i+o+s)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(i),t.b=Math.floor(o),t.a=s,t}function X_(e){let t,n,i;if(G_(e))return t=e.r.toString(16),n=e.g.toString(16),i=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${[t,n,i].join("")}`;const o="string"==typeof e?K_(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),i=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===i.length&&(i=`0${i}`),`#${t}${n}${i}`}function J_(e){let t,n,i=0;const o="string"==typeof e?Z_(e):e,s=o.r/255,r=o.g/255,a=o.b/255,{a:l}=o,c=Math.max(s,r,a),d=Math.min(s,r,a),h=(c+d)/2;if(c===d)t=0,i=0;else{switch(n=c-d,t=h>.5?n/(2-c-d):n/(c+d),c){case s:i=(r-a)/n+(r<a?6:0);break;case r:i=(a-s)/n+2;break;case a:i=(s-r)/n+4}i/=6}return{h:360*i,s:100*t,l:100*h,a:l}}function ey(e){let t,n,i=0;const o="string"==typeof e?Z_(e):e,s=o.r/255,r=o.g/255,a=o.b/255,l=Math.max(s,r,a),c=Math.min(s,r,a),d=l;if(l===c)t=0,i=0;else{switch(n=l-c,t=0===n?0:n/d,l){case s:i=(r-a)/n+(r<a?6:0);break;case r:i=(a-s)/n+2;break;case a:i=(s-r)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*d}}function ty(e){if(G_(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K_(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function ny(e,t){return G_(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:ny(Z_(e),t)}function iy(e){return G_(e)?1===e.a?ty(e):ny(e):iy(Z_(e))}const oy=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function sy(e){return.2126*oy(e.r)+.7152*oy(e.g)+.0722*oy(e.b)}function ry(...e){const t=Z_(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},i=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=J_(n)),n.spaces.hslaObject),o=e=>{const t=i(),{h:n,s:o,l:s,a:r}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(s+e,100))}, ${r})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Z_(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Z_(...e);return t.invalid||sy(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ty(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=ny(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=iy(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=X_(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,i=0;const o="string"==typeof e?Z_(e):e,s=o.r/255,r=o.g/255,a=o.b/255,l=Math.max(s,r,a),c=Math.min(s,r,a),d=(l+c)/2;if(l===c)t=0,i=0;else{switch(n=l-c,t=d>.5?n/(2-l-c):n/(l+c),l){case s:i=(r-a)/n+(r<a?6:0);break;case r:i=(a-s)/n+2;break;case a:i=(s-r)/n+4}i/=6}return`hsl(${360*i}, ${100*t}, ${100*d})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:i,a:o}=J_(e);return`hsla(${t}, ${n}, ${i}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:i,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:i}=ey(e);return`hsv(${t}, ${n}, ${i})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=ey(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>ry(o(18*e)),getDarkenedColor:(e=1)=>ry(o(18*-e))}}function ay(e,t){if(!e||!t)return;const n=sy(e),i=sy(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}const ly="#FFFFFF";function cy(e,t){const n=ry(ly),i=ry(e),o=ry(t);if(i.isInvalid()||o.isInvalid()||i.getAlpha()<1||o.getAlpha()<1)return t;const s=ay(n,i),r=ay(o,i),a=s>r||s>4.5;return!a&&r>3?o.getHex():a?ly:"#000000"}function dy(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hy,uy,gy,py="top",my="top-right",fy="right",by="bottom-right",vy="bottom",Cy="bottom-left",_y="left",yy="top-left";dy(dy(dy(dy(dy(dy(dy(dy(dy(dy(hy={},"equal-equal",[py,vy]),"equal-higher",[vy,by]),"equal-lower",[py,my]),"equal-void",[py,vy]),"higher-equal",[_y,Cy,py,my]),"higher-higher-acute",[vy,Cy,_y,my]),"higher-higher-obtuse",[vy,py]),"higher-lower-negative",[py,my,fy]),"higher-lower-positive",[vy,Cy,_y]),"higher-void",[py]),dy(dy(dy(dy(dy(dy(dy(dy(dy(dy(hy,"lower-equal",[py]),"lower-higher-negative",[py,yy]),"lower-higher-positive",[by]),"lower-lower-acute",[py,yy,_y,my,fy]),"lower-lower-obtuse",[py,vy]),"lower-void",[py]),"void-equal",[py]),"void-higher",[py,vy]),"void-lower",[py,vy,_y]),"void-void",[py]),dy(hy,"unclassified",[py,vy,fy,_y,my,by,Cy,yy]);var wy=function(){if(gy)return uy;gy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},s=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,o=e.call(n,"constructor"),s=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!s)return!1;for(i in n);return void 0===i||e.call(n,i)},r=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return uy=function e(){var t,n,i,l,c,d,h=arguments[0],u=1,g=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},u=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});u<g;++u)if(null!=(t=arguments[u]))for(n in t)i=a(h,n),h!==(l=a(t,n))&&(p&&l&&(s(l)||(c=o(l)))?(c?(c=!1,d=i&&o(i)?i:[]):d=i&&s(i)?i:{},r(h,{name:n,newValue:e(p,d,l)})):void 0!==l&&r(h,{name:n,newValue:l}));return h},uy}();function Ay(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Sy(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function xy(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(wy);var ky=.7,Ly=1/ky,Ey="\\s*([+-]?\\d+)\\s*",Dy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Iy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ny=/^#([0-9a-f]{3,8})$/,Ry=new RegExp(`^rgb\\(${Ey},${Ey},${Ey}\\)$`),Ty=new RegExp(`^rgb\\(${Iy},${Iy},${Iy}\\)$`),My=new RegExp(`^rgba\\(${Ey},${Ey},${Ey},${Dy}\\)$`),Oy=new RegExp(`^rgba\\(${Iy},${Iy},${Iy},${Dy}\\)$`),qy=new RegExp(`^hsl\\(${Dy},${Iy},${Iy}\\)$`),Py=new RegExp(`^hsla\\(${Dy},${Iy},${Iy},${Dy}\\)$`),By={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fy(){return this.rgb().formatHex()}function Wy(){return this.rgb().formatRgb()}function zy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ny.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vy(t):3===n?new $y(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Hy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Hy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Ry.exec(e))?new $y(t[1],t[2],t[3],1):(t=Ty.exec(e))?new $y(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=My.exec(e))?Hy(t[1],t[2],t[3],t[4]):(t=Oy.exec(e))?Hy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qy.exec(e))?Xy(t[1],t[2]/100,t[3]/100,1):(t=Py.exec(e))?Xy(t[1],t[2]/100,t[3]/100,t[4]):By.hasOwnProperty(e)?Vy(By[e]):"transparent"===e?new $y(NaN,NaN,NaN,0):null}function Vy(e){return new $y(e>>16&255,e>>8&255,255&e,1)}function Hy(e,t,n,i){return i<=0&&(e=t=n=NaN),new $y(e,t,n,i)}function jy(e){return e instanceof xy||(e=zy(e)),e?new $y((e=e.rgb()).r,e.g,e.b,e.opacity):new $y}function Uy(e,t,n,i){return 1===arguments.length?jy(e):new $y(e,t,n,i??1)}function $y(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Gy(){return`#${Zy(this.r)}${Zy(this.g)}${Zy(this.b)}`}function Ky(){const e=Qy(this.opacity);return`${1===e?"rgb(":"rgba("}${Yy(this.r)}, ${Yy(this.g)}, ${Yy(this.b)}${1===e?")":`, ${e})`}`}function Qy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zy(e){return((e=Yy(e))<16?"0":"")+e.toString(16)}function Xy(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ew(e,t,n,i)}function Jy(e){if(e instanceof ew)return new ew(e.h,e.s,e.l,e.opacity);if(e instanceof xy||(e=zy(e)),!e)return new ew;if(e instanceof ew)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2;return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new ew(r,a,l,e.opacity)}function ew(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function tw(e){return(e=(e||0)%360)<0?e+360:e}function nw(e){return Math.max(0,Math.min(1,e||0))}function iw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ay(xy,zy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fy,formatHex:Fy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Jy(this).formatHsl()},formatRgb:Wy,toString:Wy}),Ay($y,Uy,Sy(xy,{brighter(e){return e=null==e?Ly:Math.pow(Ly,e),new $y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ky:Math.pow(ky,e),new $y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $y(Yy(this.r),Yy(this.g),Yy(this.b),Qy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gy,formatHex:Gy,formatHex8:function(){return`#${Zy(this.r)}${Zy(this.g)}${Zy(this.b)}${Zy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ky,toString:Ky})),Ay(ew,function(e,t,n,i){return 1===arguments.length?Jy(e):new ew(e,t,n,i??1)},Sy(xy,{brighter(e){return e=null==e?Ly:Math.pow(Ly,e),new ew(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ky:Math.pow(ky,e),new ew(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new $y(iw(e>=240?e-240:e+120,o,i),iw(e,o,i),iw(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new ew(tw(this.h),nw(this.s),nw(this.l),Qy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qy(this.opacity);return`${1===e?"hsl(":"hsla("}${tw(this.h)}, ${100*nw(this.s)}%, ${100*nw(this.l)}%${1===e?")":`, ${e})`}`}}));const ow=Math.PI/180,sw=180/Math.PI,rw=.96422,aw=.82521,lw=4/29,cw=6/29,dw=3*cw*cw,hw=cw*cw*cw;function uw(e){if(e instanceof gw)return new gw(e.l,e.a,e.b,e.opacity);if(e instanceof vw)return Cw(e);e instanceof $y||(e=jy(e));var t,n,i=bw(e.r),o=bw(e.g),s=bw(e.b),r=pw((.2225045*i+.7168786*o+.0606169*s)/1);return i===o&&o===s?t=n=r:(t=pw((.4360747*i+.3850649*o+.1430804*s)/rw),n=pw((.0139322*i+.0971045*o+.7141733*s)/aw)),new gw(116*r-16,500*(t-r),200*(r-n),e.opacity)}function gw(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function pw(e){return e>hw?Math.pow(e,1/3):e/dw+lw}function mw(e){return e>cw?e*e*e:dw*(e-lw)}function fw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vw(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Cw(e){if(isNaN(e.h))return new gw(e.l,0,0,e.opacity);var t=e.h*ow;return new gw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ay(gw,function(e,t,n,i){return 1===arguments.length?uw(e):new gw(e,t,n,i??1)},Sy(xy,{brighter(e){return new gw(this.l+18*(e??1),this.a,this.b,this.opacity)},darker(e){return new gw(this.l-18*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new $y(fw(3.1338561*(t=rw*mw(t))-1.6168667*(e=1*mw(e))-.4906146*(n=aw*mw(n))),fw(-.9787684*t+1.9161415*e+.033454*n),fw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ay(vw,function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof vw)return new vw(e.h,e.c,e.l,e.opacity);if(e instanceof gw||(e=uw(e)),0===e.a&&0===e.b)return new vw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sw;return new vw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vw(e,t,n,i??1)},Sy(xy,{brighter(e){return new vw(this.h,this.c,this.l+18*(e??1),this.opacity)},darker(e){return new vw(this.h,this.c,this.l-18*(e??1),this.opacity)},rgb(){return Cw(this).rgb()}}));var _w=e=>()=>e;function yw(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_w(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?yw:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):_w(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=Uy(e)).r,(t=Uy(t)).r),o=n(e.g,t.g),s=n(e.b,t.b),r=yw(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return i.gamma=e,i}(1);var ww="center",Aw="bottom";function Sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kw(Object(n),!0).forEach(function(t){xw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[{key:"NoDataExist",alignment:ww,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ww,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ww,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ww},{key:"DataRangeIncludingZero",alignment:Aw},{key:"LimitedData",alignment:Aw},{key:"NegativeOrZeroValues",alignment:Aw}].reduce(function(e,t){return e[t.key]=t,e},{});var Ew=Object.prototype.hasOwnProperty,Dw=Object.prototype.toString,Iw=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,Rw=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Dw.call(e)},Tw=function(e){if(!e||"[object Object]"!==Dw.call(e))return!1;var t,n=Ew.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Ew.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Ew.call(e,t)},Mw=function(e,t){Iw&&"__proto__"===t.name?Iw(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ow=function(e,t){if("__proto__"===t){if(!Ew.call(e,t))return;if(Nw)return Nw(e,t).value}return e[t]},qw=function e(){var t,n,i,o,s,r,a=arguments[0],l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)i=Ow(a,n),a!==(o=Ow(t,n))&&(d&&o&&(Tw(o)||(s=Rw(o)))?(s?(s=!1,r=i&&Rw(i)?i:[]):r=i&&Tw(i)?i:{},Mw(a,{name:n,newValue:e(d,r,o)})):void 0!==o&&Mw(a,{name:n,newValue:o}));return a};function Pw(e,t,n,i){if(!e)return-1;const o=n.cache,s=e.origin?e.origin():null;s&&(e=s);let r=o.fields.indexOf(e),a=-1,l=-1;if(-1===r)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),a=o.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==l||-1!==a){r=t;break}if(Array.isArray(i)&&i.some((e,t)=>e!==t)){const e=i.indexOf(r);-1!==e&&(r=e)}return r-=t.qArea.qLeft,r<0||r>=t.qArea.qWidth?-1:l>=0?e=>e[r].qAttrDims.qValues[l]:a>=0?e=>e[r].qAttrExps.qValues[a]:e=>e[r]}function Bw(e,t,n){let i=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function Fw(e){let t=e.cache,n=e.f,i=e.mainCell,o=e.p,s=e.page,r=e.rowIdx,a=e.row,l=e.sourceKey,c=e.target,d=e.targetProp,h=e.columnOrder,u=i;if(o.field&&o.field!==n){const e=Pw(o.field,s,{cache:t},h);if(-1===e)return;u=qw({qRow:r},e(a))}c[d]=Bw(o,u,{key:l})}function Ww(e,t,n,i){const o=Array.isArray(e)?e:[e];let s=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const r=t.raw(),a=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),c=i.normalizeConfig(o[e],t),d=c.props,h=c.main,u=Object.keys(d),g=!!o[e].trackBy,p=typeof o[e].trackBy,m={},f=[],b=[];for(let t=0;t<r.qDataPages.length;t++){const s=Pw(l,r.qDataPages[t],{cache:n},r.qColumnOrder);if(-1!==s)for(let c=0;c<r.qDataPages[t].qMatrix.length;c++){const v=r.qDataPages[t].qArea.qTop+c,C=qw({qRow:v},s(r.qDataPages[t].qMatrix[c])),_=Bw(h,C,{key:a});if(!h.filter||h.filter(C)){for(let e=0;e<u.length;e++){const i=d[u[e]];let o=i.fields||[i];i.fields&&(_[u[e]]=[]);for(let s=0;s<o.length;s++)Fw({cache:n,f:l,mainCell:C,p:o[s],prop:u[e],page:r.qDataPages[t],rowIdx:v,row:r.qDataPages[t].qMatrix[c],sourceKey:a,target:i.fields?_[u[e]]:_,targetProp:i.fields?s:u[e],columnOrder:r.qColumnOrder});if(i.fields){const t=_[u[e]].map(e=>e.value),n=_[u[e]].map(e=>e.label);_[u[e]]={value:"function"==typeof i.value?i.value(t):void 0!==i.value?i.value:t,label:"function"==typeof i.label?i.label(n):void 0!==i.label?String(i.label):String(_[u[e]].value)}}}g&&i.track({cfg:o[e],itemData:C,obj:_,target:f,tracker:m,trackType:p}),b.push(_)}}}const v=g?i.collect(f,{main:h,propsArr:u,props:d}):b;s=[...s,...v]}return s}function zw(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function Vw(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jw)):void 0===t&&(t=Hw);for(var n,i,o,s,r,a=new Gw(e),l=[a];n=l.pop();)if((o=t(n.data))&&(r=(o=Array.from(o)).length))for(n.children=o,s=r-1;s>=0;--s)l.push(i=o[s]=new Gw(o[s])),i.parent=n,i.depth=n.depth+1;return a.eachBefore($w)}function Hw(e){return e.children}function jw(e){return Array.isArray(e)?e[1]:null}function Uw(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function $w(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Gw(e){this.data=e,this.depth=this.height=0,this.parent=null}function Kw(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}Gw.prototype=Vw.prototype={constructor:Gw,count:function(){return this.eachAfter(zw)},each:function(e,t){let n=-1;for(const i of this)e.call(t,i,++n,this);return this},eachAfter:function(e,t){for(var n,i,o,s=this,r=[s],a=[],l=-1;s=r.pop();)if(a.push(s),n=s.children)for(i=0,o=n.length;i<o;++i)r.push(n[i]);for(;s=a.pop();)e.call(t,s,++l,this);return this},eachBefore:function(e,t){for(var n,i,o=this,s=[o],r=-1;o=s.pop();)if(e.call(t,o,++r,this),n=o.children)for(i=n.length-1;i>=0;--i)s.push(n[i]);return this},find:function(e,t){let n=-1;for(const i of this)if(e.call(t,i,++n,this))return i},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,o=i&&i.length;--o>=0;)n+=i[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),o=null;for(e=n.pop(),t=i.pop();e===t;)o=e,e=n.pop(),t=i.pop();return o}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var o=i.length;e!==n;)i.splice(o,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Vw(this).eachBefore(Uw)},[Symbol.iterator]:function*(){var e,t,n,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(yield o,t=o.children)for(n=0,i=t.length;n<i;++n)s.push(t[n])}while(s.length)}};var Qw={depth:-1},Yw={},Zw={};function Xw(e){return e.id}function Jw(e){return e.parentId}function eA(e){let t=e.length;if(t<2)return"";for(;--t>1&&!tA(e,t););return e.slice(0,t)}function tA(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function nA(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let i,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=nA(i,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);i=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=nA(i,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function iA(e,t,n){let i=[];if(!e||!e.length)return i;if(t<=0){const t=n>=0?[e[n]]:e;i=[...i,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(i=[...i,...iA(e[o].children,t-1,n)]);return i}function oA(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const i=Math.max(0,Math.min(100,t-e));return e=>iA(e.children,i-1,n)}return!1}const sA=/^qDimensionInfo(?:\/(\d+))?/,rA=/^\/?qMeasureInfo\/(\d+)/,aA=/\/qAttrExprInfo\/(\d+)/,lA=/\/qAttrDimInfo\/(\d+)/;function cA(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function dA(e,t){let n=t.cube;if(!e)return-1;let i=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,s=-1,r=-1,a=-1,l=-1,c=-1,d=-1,h=i;const u=n.qEffectiveInterColumnSortOrder,g=cA(n);return sA.test(h)&&(o=!0,s=+sA.exec(h)[1],h=i.replace(sA,"")),rA.test(h)&&("K"===n.qMode?c=+rA.exec(h)[1]:u&&-1!==u.indexOf(-1)?(c=+rA.exec(h)[1],d=0):d=+rA.exec(h)[1],h=h.replace(rA,"")),h&&(lA.exec(h)?a=+lA.exec(h)[1]:aA.exec(h)&&(r=+aA.exec(h)[1])),l=o?"S"===n.qMode?g[s]:u?u.indexOf(s):s:u&&-1!==u.indexOf(-1)?u.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:d,attrDimIdx:a,attrIdx:r}}function hA(e,t){let n,i,o=oA(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?i=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(i=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:i,valueFn:n}}function uA(e,t,n){let i=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:i,field:e.field.key()}),o}function gA(e){let t=e.propsArr,n=e.props,i=e.item,o=e.itemData,s=e.ret,r=e.sourceKey;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields||[a];let c,d;a.fields&&(c=[],d=[]);for(let n=0;n<l.length;n++){const h=l[n];let u,g,p,m,f,b;if("primitive"===h.type?(p=h.value,b=String(h.value)):("function"==typeof h.value&&(u=e=>h.value(e,i)),"function"==typeof h.label&&(g=e=>h.label(e,i)),h.accessor?(m=h.accessor(i),Array.isArray(m)?(f=m.map(h.valueAccessor),h.attrAccessor&&(f=f.map(h.attrAccessor)),u&&(p=f.map(u),u=null),g&&(b=f.map(g),g=null),p=h.reduce?h.reduce(p):p,b=h.reduceLabel?h.reduceLabel(b,p):String(p)):(p=h.attrAccessor?h.attrAccessor(h.valueAccessor(m)):h.valueAccessor(m),b=p)):(p=o,b=o)),a.fields){const e=u?u(p):p;c.push(e),d.push(g&&null!=b?g(b):null!=b?b:String(e))}else{const n=u?u(p):p;s[t[e]]={value:n,label:g?g(b):null!=b?b:String(n)},h.field&&(s[t[e]].source={field:h.field.key(),key:r})}}c&&(s[t[e]]={value:"function"==typeof a.value?a.value(c,i):c,label:"function"==typeof a.label?a.label(d,i):d})}}const pA=(e,t,n)=>{const i="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",s=nA(i,e);return s&&s[0]?(t.tree=Vw(s[0],n.children||(e=>e[o])),t.tree):null},mA=e=>{let t=e.propsArr,n=e.props,i=e.cube;e.cache;let o=e.itemDepthObject,s=e.f;for(let e=0;e<t.length;e++){const r=n[t[e]],a=r.fields?r.fields:[r];for(let e=0;e<a.length;e++){const t=a[e];if(t.field!==s){const e=hA(o,dA(t.field,{cube:i}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function fA(){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,i=arguments.length>3?arguments[3]:void 0;const o=t.raw(),s=t.key(),r="S"===o.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map((e,t)=>t)}(e),i=e.fields(),o=e.fields().filter(e=>"dimension"===e.type()).map(e=>n.indexOf(i.indexOf(e))),s=e.fields().filter(e=>"measure"===e.type()).map(e=>n.indexOf(i.indexOf(e))),r={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let i="__root",l=!1;for(let e=0;e<o.length;e++){var a;const t=n[o[e]],s="".concat(i,"__").concat(null!==(a=t.qElemNumber)&&void 0!==a?a:t.qElemNo);r[s]||(r[s]=Lw({__id:s,__parent:i,qValues:[]},t),l=!0),i=s}if(l)for(let e=0;e<s.length;e++){const t=n[s[e]];r[i].qValues.push(t)}}const l=Object.keys(r).map(e=>r[e]);return function(){var e,t=Xw,n=Jw;function i(i){var o,s,r,a,l,c,d,h,u=Array.from(i),g=t,p=n,m=new Map;if(null!=e){const t=u.map((t,n)=>function(e){let t=(e=`${e}`).length;return tA(e,t-1)&&!tA(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,i))),n=t.map(eA),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(eA(e)),u.push(Zw));g=(e,n)=>t[n],p=(e,t)=>n[t]}for(r=0,o=u.length;r<o;++r)s=u[r],c=u[r]=new Gw(s),null!=(d=g(s,r,i))&&(d+="")&&(h=c.id=d,m.set(h,m.has(h)?Yw:c)),null!=(d=p(s,r,i))&&(d+="")&&(c.parent=d);for(r=0;r<o;++r)if(d=(c=u[r]).parent){if(!(l=m.get(d)))throw new Error("missing: "+d);if(l===Yw)throw new Error("ambiguous: "+d);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(a)throw new Error("multiple roots");a=c}if(!a)throw new Error("no root");if(null!=e){for(;a.data===Zw&&1===a.children.length;)a=a.children[0],--o;for(let e=u.length-1;e>=0&&(c=u[e]).data===Zw;--e)c.data=null}if(a.parent=Qw,a.eachBefore(function(e){e.depth=e.parent.depth+1,--o}).eachBefore($w),a.parent=null,o>0)throw new Error("cycle");return a}return i.id=function(e){return arguments.length?(t=Kw(e),i):t},i.parentId=function(e){return arguments.length?(n=Kw(e),i):n},i.path=function(t){return arguments.length?(e=Kw(t),i):e},i}().id(e=>e.__id).parentId(e=>e.__parent)(l)}(t):pA(o,n,e);if(!r)return null;const a=r.height,l=[];for(let s=0;s<=a;s++){let r=null;if(s>0)if("S"===o.qMode){let e=cA(o)[s-1];r=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[s-1];s>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),r=n.fields[e]}const a=i.normalizeConfig(Lw(Lw({},e),{},{field:r?r.key():void 0}),t),c=a.props,d=a.main,h=Object.keys(c);l[s]={propsArr:h,props:c,main:d};const u=r?dA(r,{cube:o}):{fieldDepth:0};mA({propsArr:h,props:c,cube:o,cache:n,itemDepthObject:u,f:r})}const c=r.copy().descendants(),d=r.descendants();for(let e=0;e<d.length;e++){const t=l[d[e].depth].propsArr,n=l[d[e].depth].props,i=l[d[e].depth].main,o=c[e],r=o.data,a=uA(i,r,{key:s});gA({propsArr:t,props:n,item:o,itemData:r,ret:a,sourceKey:s}),d[e].data=a}return r}function bA(e,t,n,i){const o=Array.isArray(e)?e:[e];let s=[];for(let r=0;r<o.length;r++)if(void 0!==o[r].field){const a=t.raw(),l=t.key();if(!pA(a,n,e))continue;const c="object"==typeof o[r].field?o[r].field:t.field(o[r].field),d=i.normalizeConfig(o[r],t),h=d.props,u=d.main,g=Object.keys(h),p=dA(c,{cube:a}),m=hA({fieldDepth:0},p),f=m.nodeFn,b=m.attrFn,v=m.valueFn;mA({propsArr:g,props:h,cube:a,cache:n,itemDepthObject:p,f:c});const C=!!o[r].trackBy,_=typeof o[r].trackBy,y={},w=[],A=f(n.tree),S=[];for(let e=0;e<A.length;e++){const t=A[e],n=b?b(v(t)):v(t);if(u.filter&&!u.filter(n))continue;const s=uA(u,n,{key:l});gA({propsArr:g,props:h,item:t,itemData:n,ret:s,sourceKey:l}),C&&i.track({cfg:o[r],itemData:n,obj:s,target:w,tracker:y,trackType:_}),S.push(s)}const x=C?i.collect(w,{main:u,propsArr:g,props:h}):S;s=[...s,...x]}return s}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var vA,CA,_A=(vA=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,i,o,s,r,a,l,c,d,h,u=e.length,g=e.search(/[0-9\-\+#]/),p=g>0?e.substring(0,g):"",m=e.split("").reverse().join(""),f=m.search(/[0-9\-\+#]/),b=u-f,v=e.substring(b,b+1),C=b+("."===v||","===v?1:0),_=f>0?e.substring(C,u):"";if(n=(t="-"===(e=e.substring(g,C)).charAt(0)?-t:+t)<0?t=-t:0,o=(i=e.match(/[^\d\-\+#]/g))&&i[i.length-1]||".",s=i&&i[1]&&i[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",a=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=a)&&(t=(+t).toFixed(a+1)),d=e[0].split(s),e[0]=d.join(""),(r=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-r;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=d[1]&&d[d.length-1].length){for(m="",b=(h=t[0]).length%l,u=h.length,C=0;C<u;C++)m+=h.charAt(C),!((C-b+1)%l)&&C<u-l&&(m+=s);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(i=t.join(""))&&""!==i||(n=!1),p+(n?"-":"")+i+_}},vA(CA={exports:{}}),CA.exports);function yA(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const wA={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},AA=/%\)?$/,SA=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,xA=/^\(oct\)/i,kA=/^\(dec\)/i,LA=/^\(hex\)/i,EA=/^\(bin\)/i,DA=/^\(rom\)/i,IA=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,NA=/#|0/g;function RA(e,t,n,i){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",i||".")}function TA(e,t,n){const i=yA(e);return n?i:new RegExp(i||"",t)}function MA(e,t,n,i){let o,s,r,a,l,c,d,h,u,g=e.pattern;var p,m;i&&(e.abbreviate=!0),p=t,(m=n)&&(m=yA(m)),p&&(p=yA(p)),u=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),r=g.match(u),r=r?r[0]:"",a=r?g.substr(0,g.indexOf(r)):g,l=r?g.substring(g.indexOf(r)+r.length):"",r||(r=g?"#":"##########"),t&&t===n&&(o=r.split(n),s=o.pop(),r=o.join("")+n+s,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(r=r.replace(TA(c,"g"),t)),d=n,n=".",d&&(r=r.replace(TA(d,"g"),n)),h=r.match(/#/g),h=h?h.length:0;const f=g.split(d);let b;f[1]&&(b=f[1].match(NA)),e.prefix=a||"",e.postfix=l||"",e.pattern=g,e.maxPrecision=b?b.length:2,e.percentage=AA.test(g),e.numericPattern=r||"",e.numericRegex=new RegExp("".concat(TA(t,null,!0),"|").concat(TA(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=n,e.temp=h}class OA{constructor(e,t,n,i,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return wA;const n={};return e.qNumericalAbbreviation.split(t).forEach(e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])}),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new OA(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,i){return this.prepare(t,n,i),this.formatValue(e)}prepare(e,t,n){let i;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},i=this._prepared,e=e.split(this.patternSeparator),i.positive.pattern=e[0],i.negative.pattern=e[1],i.zero.pattern=e[2],IA.test(e[0])&&(i.positive.isFunctional=!0),e[1]?IA.test(e[1])&&(i.negative.isFunctional=!0):i.negative=!1,e[2]?IA.test(e[2])&&(i.zero.isFunctional=!0):i.zero=!1;const o="U"===this.type;i.positive.isFunctional||MA(i.positive,t,n,o),i.negative&&!i.negative.isFunctional&&MA(i.negative,t,n,o),i.zero&&!i.zero.isFunctional&&MA(i.zero,t,n,o)}formatValue(e){let t,n,i,o,s,r,a,l,c,d=this._prepared,h="",u="",g=e;if(isNaN(e))return"".concat(g);if(e=+e,!1===d.pattern)return e.toString();if(0===e&&d.zero)return d=d.zero,d.pattern;if(e<0&&d.negative?(d=d.negative,e=-e):d=d.positive,s=d.d,r=d.t,d.isFunctional)e=function(e,t,n){let i;return SA.test(t)?e=RA(e,Number(/\d{2}/.exec(t)[0]),t,n):xA.test(t)?e=RA(e,8,t,n):kA.test(t)?e=RA(e,10,t,n):LA.test(t)?e=RA(e,16,t,n):EA.test(t)?e=RA(e,2,t,n):DA.test(t)&&(i="",e<0&&(i="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,i="",o=Number(String(e).slice(-3)),s=(e-o)/1e3,r=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),a=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<r.length;n++)if(r[n]<=o){i+=a[n],o-=r[n];break}for(n=0;n<s;n++)i="M".concat(i);return t[1]!==t[1].toUpperCase()&&(i=i.toLowerCase()),i}(e,t),e=i+e):e=t+i+e.toExponential(0)),e}(e,d.pattern,s);else{if(d.percentage&&(e*=100),d.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let i,o,s=t[0];for(a=0,n=Number(Number(e).toExponential().split("e")[1]);s<=n&&a<t.length;)a++,s=t[a];a>0&&(i=t[a-1]),i&&n>0&&i>0?o=i:(n<0&&i<0||!i)&&(s<0&&s-n<=d.maxPrecision?o=s:i<=n&&!(s>0&&-n<=d.maxPrecision)&&(o=i)),o&&(h=this.abbreviations[o],e/=10**o)}if(i=Math.abs(e),t=d.temp,l=d.numericPattern,c=l.split(s)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==l.slice(-1)[0])if(i>=1e15||i>0&&i<=1e-14)e=i?i.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(s)[0];if(n+=s,e=_A(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:i%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(a=o.length;a<n;a++)o+="0";o&&(e+=s+o)}else 0===t&&(o=0)}else if(i>=10**t||i<1||i<1e-4)0===e?e="0":i<1e-4||i>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),u=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",s));else{for(l+=s,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(i)/Math.log(10)))),a=0;a<t;a++)l+="#";e=_A(l,e)}e=e.replace(d.numericRegex,e=>e===r?d.groupTemp:e===s?d.decTemp:""),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return d.prefix+e+u+h+d.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function qA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.size,i=void 0===n?5e3:n,o=t.multipleArguments,s=void 0!==o&&o,r=t.toKey,a=void 0===r?e=>e:r;let l,c,d=Object.create(null),h=Object.create(null),u=0,g=0;return l=s?function(){return c=a(...arguments),l.has(c)?l.get(c):l.set(c,e(...arguments))}:t=>(c=a(t),l.has(c)?l.get(c):l.set(c,e(t))),l.set=(e,t)=>(u>=i&&(delete d[h[g]],delete h[g],u--,g++),d[e]=t,h[u]=e,u++,t),l.get=e=>d[e],l.has=e=>e in d,l.clear=()=>{d=Object.create(null),h=Object.create(null),u=0,g=0},l.size=()=>u,l}function PA(e,t,n,i,o){const s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new OA(...t)}(o,e,t,n,i),r=qA(s.formatValue.bind(s),{toKey:e=>isNaN(e)?e:+e});function a(e){return r(e)}return a.format=function(e,t,n,i){return r.clear(),s.format(t,e,n,i)},a.pattern=function(e){return e&&(r.clear(),s.pattern=e,s.prepare()),s.pattern},a}const BA="D",FA="T",WA="TS",zA=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],VA=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],HA=["January","February","March","April","May","June","July","August","September","October","November","December"],jA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UA(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function $A(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class GA{constructor(e,t,n){const i=e||{};i.qCalendarStrings||(i.qCalendarStrings={qLongDayNames:zA,qDayNames:VA,qLongMonthNames:HA,qMonthNames:jA}),this.localeInfo=i,this.locale_days=i.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=i.qCalendarStrings.qDayNames.slice(),this.locale_months=i.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=i.qCalendarStrings.qMonthNames.slice(),t||(t={[FA]:i.qTimeFmt||"hh:mm:ss",[BA]:i.qDateFmt||"YYYY-MM-DD",[WA]:i.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new GA(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let i;e instanceof Date?i=function(e,t){let n=e.getUTCHours(),i=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),i<0&&(i=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:i,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),i=function(e,t){let n,i=function(e){const t=e,n=24*$A(t),i=60*$A(n),o=60*$A(i),s=1e3*$A(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(i),s:Math.floor(o),f:Math.round(s)}}(e),o=i.d,s=i.h,r=i.m,a=i.s,l=i.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(s+=24*o),/h+/gi.test(t)||(r+=60*s),/m+/gi.test(t)||(a+=60*r),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let d="";return n&&(d=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:s,m:r,s:a,f:l,t:d}}(e,t));const o=(s=this,r=i,{"Y+|y+":{Y:"".concat(Number("".concat(r.year).slice(-2))),YY:UA("".concat(r.year).slice(-2),2),YYY:UA("".concat(r.year).slice(-3),3),def:e=>UA("".concat(r.year),e.length)},"M+":{M:r.month+1,MM:UA("".concat(r.month+1),2),MMM:s.locale_months_abbr[r.month],def:s.locale_months[r.month]},"W+|w+":{W:r.day,WW:UA("".concat(r.day),2),WWW:s.locale_days_abbr[r.day],def:s.locale_days[r.day]},"D+|d+":{D:r.date,def:e=>UA("".concat(r.date),e.length)},"h+|H+":{h:r.h,def:e=>UA("".concat(r.h),e.length)},"m+":{m:r.m,def:e=>UA("".concat(r.m),e.length)},"s+|S+":{s:r.s,def:e=>UA("".concat(r.s),e.length)},"f+|F+":{def(e){let t="".concat(r.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=r.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var s,r;const a=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&a.push(e);const l=new RegExp(a.join("|"),"g");return t.replace(l,e=>{let t,n,i;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){i=o[n][t],void 0===i&&(i=o[n][t.toLowerCase()]);break}return void 0===i&&(i=o[n].def),"function"==typeof i&&(i=i(e)),i})}}function KA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new GA(...t)}function QA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=KA(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=qA(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return"IV"!==t?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function s(e){return e=o(e),i(e)}return s.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},s.locale=function(o){return n=KA(o,e,t),i=qA(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},s.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},s}function YA(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.meta,i=t.id,o=t.key,s=t.localeInfo,r=t.fieldExtractor,a=t.value,l=t.type,c=t.sourceField;const d=a||("dimension"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),h="dimension"===l?"first":"avg",u=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return QA(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",i=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",s="U",r=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,i=e.qNumFormat.qThou||i,o=e.qNumFormat.qDec||o,s=e.qNumFormat.qType||s,r=r&&-1===["M"].indexOf(e.qNumFormat.qType)):r=!0,(r||"U"===s)&&(n="#".concat(o,"##"),s="U"),PA(n,i,o,s,t)}(n,s),g={id:()=>i,key:()=>o,raw:()=>n,title:()=>n.qFallbackTitle||n.label,type:()=>l,origin:()=>c,items:()=>(e||(e=r(g)),e),min:()=>n.qMin,max:()=>n.qMax,value:d,label:e=>(null==e?void 0:e.qText)||"",reduce:h,reduceLabel:"dimension"===l?"first":(e,t)=>u(t),formatter:()=>u,tags:()=>n.qTags};return g}function ZA(e,t,n,i,o){return(t[e]||[]).map((t,s)=>{const r="".concat(i?"".concat(i,"/"):"").concat(e,"/").concat(s),a={instance:YA(qw({id:"".concat(n?"".concat(n,"/"):"").concat(r),key:r,meta:t},o))};return a.attrDims=ZA("qAttrDimInfo",t,n,r,qw({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),a.attrExps=ZA("qAttrExprInfo",t,n,r,qw({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),a.measures=ZA("qMeasureInfo",t,n,r,qw({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),a})}function XA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,i=e.config,o=void 0===i?{}:i;const s={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},r=n;if(!r)throw new Error('Missing "data" input');if(!r.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const a=XA.util,l={cache:s,cube:r,localeInfo:o.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:o.virtualFields},c={key:()=>t,raw:()=>r,field:e=>function(e,t){let n=t.cache;if("number"==typeof e)return n.fields[e];const i=n.allFields;if("function"==typeof e){for(let t=0;t<i.length;t++)if(e(i[t]))return i[t];return!1}if("string"==typeof e){for(let t=0;t<i.length;t++)if(i[t].key()===e||i[t].title()===e)return i[t]}else if(e&&-1!==i.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,l),fields:()=>s.fields.slice(),extract:e=>l.extractor(e,c,s,a),hierarchy:e=>l.hierarchy(e,c,s,a),_cache:()=>s};"K"===r.qMode||"T"===r.qMode||!r.qMode&&r.qNodesOnDim?(l.extractor=bA,l.hierarchy=fA,l.pages="K"===r.qMode?r.qStackedDataPages:r.qTreeDataPages):"S"===r.qMode?(l.extractor=Ww,l.pages=r.qDataPages,l.hierarchy=fA):l.extractor=()=>[],l.fieldExtractor=e=>l.extractor({field:e},c,s,a);const d="S"===r.qMode?e=>e.qElemNumber:void 0,h="S"===r.qMode?e=>e.qNum:void 0;s.wrappedFields.push(...ZA("qDimensionInfo",r,t,"",qw({},l,{value:d,type:"dimension"}))),s.wrappedFields.push(...ZA("qMeasureInfo",r,t,"",qw({},l,{value:h,type:"measure"}))),s.fields=s.wrappedFields.map(e=>e.instance);const u=e=>{e.forEach(e=>{s.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)})};return u(s.wrappedFields),(o.virtualFields||[]).forEach(e=>{const n=c.field(e.from),i=YA(Lw({meta:n.raw(),id:"".concat(t,"/").concat(e.key),sourceField:n,fieldExtractor:e=>l.extractor({field:e},c,s,a),key:e.key,type:n.type(),localeInfo:l.localeInfo,value:n.value},e.override||{}));s.virtualFields.push(i)}),s.allFields.push(...s.virtualFields),c}const JA=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],eS=/\/qDimensionInfo(?:\/(\d+))?/,tS=/\/qMeasureInfo\/(\d+)/,nS=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,iS=/\/qAttrExprInfo\/(\d+)/,oS=/\/?qHyperCube/,sS=/\/?qTreeData/,rS=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),aS=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function lS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=t.byCells,o=t.primarySource,s=[],r={},a=e.isActive();let l=!1;return e.brushes().forEach(e=>{const t=function(e,t){let n=e,i=-1,o=-1,s="",r=e=>e;oS.test(e)?(s="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),r=rS):sS.test(e)&&(s="".concat(n.substr(0,n.indexOf("qTreeData")+9)),r=aS);let a=!0;if(eS.test(e)&&(i=+eS.exec(e)[1]),tS.test(e)&&(o=+tS.exec(e)[1]),nS.test(e)){o=-1,i=0;const e=+nS.exec(n)[2];isNaN(e)||(i=e,n=n.replace(/\/\d+$/,"")),a=!1}if(iS.test(e)){const e=o;if(t){o=0;const r=nA(s,t);o+=(r.qMeasureInfo||[]).length,i>-1?(o=r.qDimensionInfo.slice(0,i).reduce((e,t)=>e+t.qAttrExprInfo.length,o),i=-1):(o=r.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,o),o=r.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,o)),o+=+iS.exec(n)[1]}else i>-1?(i=-1,o=+iS.exec(n)[1]):o+=+iS.exec(n)[1]+1}return JA.forEach(e=>{let t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,o,s,r=[],a=!0,l=!1;try{for(o=(t=t.call(e)).next,!2;!(a=(n=o.call(t)).done)&&(r.push(n.value),2!==r.length);a=!0);}catch(e){l=!0,i=e}finally{try{if(!a&&null!=t.return&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw i}}return r}}(e)||function(e){if(e){if("string"==typeof e)return Sw(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Sw(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),i=t[0],o=t[1];n=n.replace(i,o)}),a&&(n=r(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:i,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,r.multiRangeSelectTreeDataValues||(r.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>r.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,r.rangeSelectHyperCubeValues||(r.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>r.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,r.selectHyperCubeContinuousRange||(r.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>r.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}})))}if("value"===e.type&&t.dimensionIdx>-1)if(i)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const i=n.qHyperCube,s=i.qNoOfLeftDims,a=i.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(r.selectPivotCells||(r.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===s||a>=s)&&s>-1?n.forEach(e=>{r.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:a-s})}):n.forEach(e=>{r.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})}),l=!!r.selectPivotCells.cells.length}}else r.selectHyperCubeCells||(r.selectHyperCubeCells={path:t.path,cols:[]}),r.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||r.selectHyperCubeCells.values)||(r.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),l=!!r.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));l=!!n.length,s.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}}),!l&&a?[{method:"resetMadeSelections",params:[]}]:(r.rangeSelectHyperCubeValues&&s.push({method:"rangeSelectHyperCubeValues",params:[r.rangeSelectHyperCubeValues.path,r.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),r.selectHyperCubeContinuousRange&&s.push({method:"selectHyperCubeContinuousRange",params:[r.selectHyperCubeContinuousRange.path,r.selectHyperCubeContinuousRange.ranges]}),r.selectHyperCubeCells&&s.push({method:"selectHyperCubeCells",params:[r.selectHyperCubeCells.path,r.selectHyperCubeCells.values,r.selectHyperCubeCells.cols]}),r.selectPivotCells&&s.push({method:"selectPivotCells",params:[r.selectPivotCells.path,r.selectPivotCells.cells]}),r.multiRangeSelectTreeDataValues&&s.push({method:"multiRangeSelectTreeDataValues",params:[r.multiRangeSelectTreeDataValues.path,r.multiRangeSelectTreeDataValues.ranges]}),s);var c}function cS(e){XA.util=e.data("matrix").util,e.data("q",XA),e.formatter("q-number",PA),e.formatter("q-time",QA)}cS.qBrushHelper=lS,cS.selections=lS;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const dS=/,(?![^(]*\))/,hS=/\s(?![^(]*\))/,uS=/^[0-9]+[a-zA-Z%]+?$/,gS=["none","inset","initial","inherit"],pS=e=>{if(!e)return;const t=e.split(hS).filter(e=>!gS.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||uS.test(e))(t)||gS.includes(t.toLowerCase())?void 0:t;return n},mS=e=>e?e.split(dS).map(e=>e.trim()):[];function fS(e,t,n,i){return n&&i?n.getStyle(`object.${i}`,e,t):n?n.getStyle("",e,t):void 0}function bS(e,t,n,i,o){return e&&i?"none"!==e.color?i.getColorPickerColor(e):void 0:fS(t,n,i,o)}const vS={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},CS={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function _S(e,t,n,i){const o=e?.bgImage;if(o){let s="";if("media"===o.mode||"media"===e.useImage){let e;const r=o?.mediaUrl,{qUrl:a}=r?.qStaticContentUrl||{};s=a?decodeURIComponent(a):void 0,s=function(e,t,n){if(t)return n?n+t:function(e){let t,n,i,o;if(e?.session?.config){t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://";const s="/"===n.pathname?"":n.pathname.replace(/\/app\/.*$/,"");return i+n.host+s}return""}(e)+t}(t,s,i),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),s=`${s}?${e}`)}"expression"===o.mode&&(s=o.expressionUrl?decodeURIComponent(o.expressionUrl):void 0);const r=function(e){let t="center center";return e?.bgImage?.position&&(t=CS[e.bgImage.position]),t}(e),a=function(e){let t=vS.originalSize;const n=e?.bgImage?.sizing;return n&&(t=vS[n]),t}(e);return s?{url:s,pos:r,size:a}:void 0}}function yS(e,t,n){const i=e?.bgColor;return i&&t&&(i.useExpression||i.useColorExpression)?t.validateColor(i.colorExpression):bS(i?.color,"","backgroundColor",t,n)}function wS(e,t,n){const i=fS("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&gS.includes(e.toLowerCase()))return e.toLowerCase();const i=mS(e);if(1!==i.length)return e;let o=n;if(!o){const n=mS(t);if(1!==n.length)return e;o=pS(n[0])}if(!o)return e;const s=pS(i[0]);return s?e.replace(s,o):`${e} ${o}`})(e?.shadow?.boxShadow||i,i,bS(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function AS(e,t,n,i){const o=e?.title?.[t]||{},s=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||n.getStyle(`object.${i}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||n.getStyle(`object.${i}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color):n.getStyle(`object.${i}`,`title.${t}`,"color"),backgroundColor:o.backgroundColor||n.getStyle(`object.${i}`,`title.${t}`,"backgroundColor"),fontWeight:s.includes("bold")?"bold":"normal",fontStyle:s.includes("italic")?"italic":"normal",textDecoration:s.includes("underline")?"underline":"initial"}}const SS={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},xS=["theme","selections"];function kS({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:s,hostConfig:r}){return function({app:e,themeApi:t,theme:n,queryParams:i,components:o=[],checkboxes:s=!1,hostConfig:r}){const a=function(e=[]){const t={};return e.forEach(e=>{const n=e?.key;xS.includes(n)&&(t[n]=e)}),t}(o),l=(e,n)=>t.getStyle("object.listBox",e,n),c=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,d=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:i,checkboxes:o}){const s=i.theme?.content?.fontColor,r=e(s)||n("content","color")||t.palette?.text.primary,a=!o&&(i.theme?.content?.useContrastColor??!0),l=i.selections?.colors||{},c=i=>{const o="selected"===i?"main":i,s=`${i}Contrast`,c=e(l[i])||n("",`dataColors.${i}`)||"possible"===i&&n("","backgroundColor")||t.palette?.selected?.[o]||SS[i],d=a?cy(c,r):r||t.palette?.selected[`${s}Text}`];return{[i]:c,[s]:d}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:c,theme:n,getListboxStyle:l,overrides:a,checkboxes:s}),h=a.theme||{},u=c(h.header?.fontColor)||l("title.main","color"),g=function({themeApi:e,themeOverrides:t}){let n;const i=t?.background;return i?(n=i?.useExpression?yS({bgColor:i},e,"listBox"):e.getColorPickerColor(i?.color),n):n}({themeApi:t,themeOverrides:h}),p=h.background?.image?_S({bgImage:h.background.image},e,i,r?.host):void 0,m=g||l("","backgroundColor")||n.palette.background.default,f=function(e,t){const n=ry(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(m,l),b=function(e){return cy("#fff",e("content","color"))}(l),v=h.header?.fontStyle||{},C=h.content?.fontStyle||{},_=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:m,backgroundImage:p?.url&&!p?.url.startsWith("url(")?`url('${p.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p?.size,backgroundPosition:p?.pos},header:{color:u,fontSize:h.header?.fontSize||l("title.main","fontSize"),fontFamily:h.header?.fontFamily||l("title.main","fontFamily"),fontWeight:_(v.bold,"bold","normal")||l("title.main","fontWeight")||"bold",textDecoration:v.underline?"underline":"initial",fontStyle:_(v.italic,"italic","normal")||l("title.main","fontStyle")||"initial"},content:{backgroundColor:s?void 0:d.possible,color:d.possibleContrast||l("content","color"),fontSize:h.content?.fontSize||l("content","fontSize"),fontFamily:h.content?.fontFamily||l("content","fontFamily"),fontWeight:_(C.bold,"bold","normal")||l("content","fontWeight")||"normal",textDecoration:C.underline?"underline":"initial",fontStyle:_(C.italic,"italic","normal")||l("content","fontStyle")||"initial"},search:{color:b,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:f,backdropFilter:"blur(8px)"},selections:d}}({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:s,hostConfig:r})}function LS({alignTo:e,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:s,app:r,fieldName:a,stateName:l="$",autoFocus:c,components:d,checkboxes:h,selectDisabled:u=()=>!1,sortCriteria:g=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:p="ltr"}){const m=Boolean(a?.qLibraryId),f=o&&Boolean(e.current),[b,v]=(0,t.useState)(0),C=Ur(),_=(0,t.useRef)(),[y]=pp({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:g,qFieldDefs:m?void 0:[a]},qLibraryId:m?a.qLibraryId:void 0}},r,a,l),w=(0,t.useCallback)(()=>{y.lock("/qListObjectDef")},[y]),A=(0,t.useCallback)(()=>{y.unlock("/qListObjectDef")},[y]),{translator:S,themeApi:x,keyboardNavigation:k,hostConfig:L}=(0,t.useContext)(rp),E=(0,t.useRef)(),D=(0,t.useRef)(),[I]=H_(r,y,D),[N]=Cp(y),[R]=(0,t.useState)(()=>j_({selectDisabled:u})),T=ob({containerRef:D,enabled:k}),{checkboxes:M=h}=N||{},O=kS({themeApi:x,theme:C,hostConfig:L,components:d,checkboxes:M});if((0,t.useEffect)(()=>{I&&f&&(I.isModal(y)||I.goModal("/qListObjectDef"))},[I,f]),!(y&&N&&S&&O))return null;const q=!0===N.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;I.noModal(n),s()},B=qC({layout:N,model:y,translator:S,selectionState:R,selections:I}),F=$_(N);return(0,_t.jsx)(Lm,{className:"listbox-container",open:f,onClose:P,anchorEl:e.current,anchorOrigin:n,transformOrigin:i,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0,direction:p,children:(0,_t.jsxs)(ud,{container:!0,direction:"column",gap:0,ref:D,children:[(0,_t.jsxs)(ud,{container:!0,style:{direction:p,padding:C.spacing(1)},children:[(0,_t.jsx)(ud,{children:q?(0,_t.jsx)(Uc,{onClick:A,disabled:!q,size:"large","aria-label":S.get("Listbox.Unlock"),title:S.get("Listbox.Unlock"),children:(0,_t.jsx)(Ip,{})}):(0,_t.jsx)(Uc,{onClick:w,disabled:!F,size:"large","aria-label":S.get("Listbox.Lock"),title:S.get("Listbox.Lock"),children:(0,_t.jsx)(Rp,{})})}),(0,_t.jsx)(ud,{size:"grow"}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(k_,{layout:N,more:{enabled:!q,actions:B,alignTo:E,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:I,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}})})]}),(0,_t.jsxs)(ud,{size:"grow",role:"region","aria-label":S.get("Listbox.ResultFilterLabel"),children:[(0,_t.jsx)("div",{ref:E}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(F_,{ref:_,popoverOpen:f,styles:O,visible:!0,model:y,listCount:b,selections:I,selectionState:R,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:T.focusSelection},autoFocus:c??!0,direction:p})}),(0,_t.jsx)(NC,{model:y,app:r,layout:N,selections:I,selectionState:R,direction:p,onSetListCount:e=>v(e),onCtrlF:()=>{_.current.focus()},styles:O,keyboard:T})]})]})})}const ES=function({displayName:e}){return(0,_t.jsx)(yd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600,marginTop:"8px"},children:e})};function DS({field:e,api:n,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:s=null,onClose:r=()=>{}}){const{translator:a}=(0,t.useContext)(rp),l=s||(0,t.useRef)(),c=Ur(),[d,h]=(0,t.useState)(!1);let u,g=null,p=null,m="";const f=!!e.isPinned,b=()=>{h(!1),r()};if(f)m=e.qName||e.qField,p=(0,_t.jsx)(ES,{displayName:m});else{u=e.selections[i],void 0===u.qTotal&&(u.qTotal=0);const t=u.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},o=(t.qSelected+t.qLocked)/u.qTotal,r=t.qAlternative/u.qTotal,l=(t.qExcluded+t.qLockedExcluded+t.qSelectedExcluded)/u.qTotal,d=t.qSelected+t.qSelectedExcluded+t.qLocked+t.qLockedExcluded,h=0===d&&0===u.qTotal;let g="";u.qTotal===d&&u.qTotal>1?g=a.get("CurrentSelections.All"):d>1&&u.qTotal?g=a.get("CurrentSelections.Of",[d,u.qTotal]):u.qSelectedFieldSelectionInfo&&(g=u.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[i]&&(g=`${e.states[i]}: ${g}`);const m=[{color:c.palette.selected.main,ratio:o},{color:c.palette.selected.alternative,ratio:r},{color:c.palette.selected.excluded,ratio:l}];m.forEach((e,t)=>{e.offset=t?m[t-1].offset+m[t-1].ratio:0});let f=null,b=null,v=null;s||(f=(0,_t.jsxs)(ud,{sx:{flex:1,minWidth:0,opacity:u.qLocked?"0.3":""},children:[(0,_t.jsx)(yd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label}),(0,_t.jsx)(yd,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"},children:g})]}),u.qLocked?b=(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{size:"large",children:(0,_t.jsx)(Ip,{})})}):u.qOneAndOnlyOne||(b=(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{title:a.get("Selection.Clear"),onClick:t=>{t.stopPropagation(),n.clearField(u.qField,e.states[i])},size:"large",children:(0,_t.jsx)(Zd,{})})})),v=(0,_t.jsx)("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"},children:!1===h&&m.map(e=>(0,_t.jsx)("div",{style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}},e.color))}),p=(0,_t.jsxs)(_t.Fragment,{children:[f,b,v]}))}return g=(0,_t.jsxs)(ud,{container:!0,gap:1,ref:l,"data-testid":f?`pin-item-${m}`:`selection-item-${u.qField}`,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px",height:"40px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&h(!d)})||null,children:[p,d&&(0,_t.jsx)(LS,{alignTo:l,show:d,close:b,app:n.model,fieldName:f?e.qField:u.qField,stateName:f?void 0:e.states[i]})]}),s?(0,_t.jsx)(LS,{alignTo:l,show:!0,close:b,app:n.model,fieldName:f?e.qField:u.qField,stateName:f?void 0:e.states[i]}):g}const IS=function(e){const n=t.useRef({});return t.useEffect(()=>{n.current=e}),n.current};function NS(e){return Er("MuiBadge",e)}const RS=Dr("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"]),TS=_r("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),MS=_r("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Vr(n.anchorOrigin.vertical)}${Vr(n.anchorOrigin.horizontal)}${Vr(n.overlap)}`],"default"!==n.color&&t[`color${Vr(n.color)}`],n.invisible&&t.invisible]}})(Xa(({theme:e})=>({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}),variants:[...Object.entries(e.palette).filter($l(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:t,horizontal:n}=e.anchorOrigin,i="circular"===e.overlap?"14%":0;return{"--Badge-translateX":"right"===n?"50%":"-50%","--Badge-translateY":"top"===t?"-50%":"50%",top:"top"===t?i:"initial",bottom:"bottom"===t?i:"initial",right:"right"===n?i:"initial",left:"left"===n?i:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${"right"===n?"100%":"0%"} ${"top"===t?"0%":"100%"}`,[`&.${RS.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function OS(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const qS=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:s,component:r,components:a={},componentsProps:l={},children:c,overlap:d="rectangular",color:h="default",invisible:u=!1,max:g=99,badgeContent:p,slots:m,slotProps:f,showZero:b=!1,variant:v="standard",...C}=n,{badgeContent:_,invisible:y,max:w,displayValue:A}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,s=IS({badgeContent:t,max:i});let r=n;!1!==n||0!==t||o||(r=!0);const{badgeContent:a,max:l=i}=r?s:e;return{badgeContent:a,invisible:r,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:g,invisible:u,badgeContent:p,showZero:b}),S=IS({anchorOrigin:OS(i),color:h,overlap:d,variant:v,badgeContent:p}),x=y||null==_&&"dot"!==v,{color:k=h,overlap:L=d,anchorOrigin:E,variant:D=v}=x?S:n,I=OS(E),N="dot"!==D?A:void 0,R={...n,badgeContent:_,invisible:x,max:w,displayValue:N,showZero:b,anchorOrigin:I,color:k,overlap:L,variant:D},T=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:s,classes:r={}}=e;return Lt({root:["root"],badge:["badge",s,i&&"invisible",`anchorOrigin${Vr(n.vertical)}${Vr(n.horizontal)}`,`anchorOrigin${Vr(n.vertical)}${Vr(n.horizontal)}${Vr(o)}`,`overlap${Vr(o)}`,"default"!==t&&`color${Vr(t)}`]},NS,r)})(R),M={slots:{root:m?.root??a.Root,badge:m?.badge??a.Badge},slotProps:{root:f?.root??l.root,badge:f?.badge??l.badge}},[O,q]=Nl("root",{elementType:TS,externalForwardedProps:{...M,...C},ownerState:R,className:kt(T.root,o),ref:t,additionalProps:{as:r}}),[P,B]=Nl("badge",{elementType:MS,externalForwardedProps:M,ownerState:R,className:T.badge});return(0,_t.jsxs)(O,{...q,children:[c,(0,_t.jsx)(P,{...B,children:N})]})}),PS=qS,BS=$c;function FS(e){return Er("MuiListItem",e)}function WS(e){return Er("MuiListItemSecondaryAction",e)}Dr("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),Dr("MuiListItemSecondaryAction",["root","disableGutters"]);const zS=_r("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),VS=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...s}=i,r=t.useContext(Xd),a={...i,disableGutters:r.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Lt({root:["root",t&&"disableGutters"]},WS,n)})(a);return(0,_t.jsx)(zS,{className:kt(l.root,o),ownerState:a,ref:n,...s})});VS.muiName="ListItemSecondaryAction";const HS=VS,jS=_r("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Xa(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${sh.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),US=_r("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),$S=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiListItem"}),{alignItems:o="center",children:s,className:r,component:a,components:l={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:h,...u}={},dense:g=!1,disableGutters:p=!1,disablePadding:m=!1,divider:f=!1,secondaryAction:b,slotProps:v={},slots:C={},..._}=i,y=t.useContext(Xd),w=t.useMemo(()=>({dense:g||y.dense||!1,alignItems:o,disableGutters:p}),[o,y.dense,g,p]),A=t.useRef(null),S=t.Children.toArray(s),x=S.length&&BS(S[S.length-1],["ListItemSecondaryAction"]),k={...i,alignItems:o,dense:w.dense,disableGutters:p,disablePadding:m,divider:f,hasSecondaryAction:x},L=(e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:s,divider:r,hasSecondaryAction:a}=e;return Lt({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",r&&"divider","flex-start"===t&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},FS,n)})(k),E=Kl(A,n),D={slots:C,slotProps:v},[I,N]=Nl("secondaryAction",{elementType:HS,externalForwardedProps:D,ownerState:k,className:L.secondaryAction}),R=C.root||l.Root||jS,T=v.root||c.root||{},M={className:kt(L.root,T.className,r),..._};let O=a||"li";return x?(O=M.component||a?O:"div","li"===d&&("li"===O?O="div":"li"===M.component&&(M.component="div")),(0,_t.jsx)(Xd.Provider,{value:w,children:(0,_t.jsxs)(US,{as:d,className:kt(L.container,h),ref:E,ownerState:k,...u,children:[(0,_t.jsx)(R,{...T,...!xl(R)&&{as:O,ownerState:{...k,...T.ownerState}},...M,children:S}),S.pop()]})})):(0,_t.jsx)(Xd.Provider,{value:w,children:(0,_t.jsxs)(R,{...T,as:O,ref:E,...!xl(R)&&{ownerState:{...k,...T.ownerState}},...M,children:[S,b&&(0,_t.jsx)(I,{...N,children:b})]})})}),GS=$S,KS=e=>Yd((e=>({...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));n.dn(KS);const QS="MultiState-item",YS=_r(ud)(({theme:e})=>({[`&.${QS}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function ZS({field:e,api:n,moreAlignTo:i=null,onClose:o=()=>{}}){const[s,r]=(0,t.useState)(!!i),[a,l]=(0,t.useState)(-1),[c,d]=(0,t.useState)(i?i.current:null),h=i||(0,t.useRef)(),{translator:u}=(0,t.useContext)(rp),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ud,{sx:{minWidth:0,flexGrow:1},children:(0,_t.jsx)(PS,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length,children:(0,_t.jsx)(yd,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)("div",{style:{width:"12px"}})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{size:"large",children:(0,_t.jsx)(KS,{})})})]}));const f=(0,_t.jsxs)(nh,{dense:!0,children:[(0,_t.jsx)(GS,{title:g,onClick:()=>{e.states.forEach(t=>n.clearField(e.name,t))},children:(0,_t.jsx)(Bu,{variant:"contained",fullWidth:!0,children:g})}),e.states.map((t,i)=>(0,_t.jsx)(GS,{title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),l(t)})(e,i),children:(0,_t.jsx)(Qa,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:(0,_t.jsx)(DS,{field:e,api:n,stateIx:i,skipHandleShowListBoxPopover:!0})})},i))]}),b=(0,_t.jsx)(Lm,{open:s,onClose:()=>{r(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:f}),v=i?b:(0,_t.jsxs)(YS,{container:!0,gap:0,className:QS,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,r(!s))},children:[m,s&&b,a>-1&&(0,_t.jsx)(LS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]})]});return i&&a>-1?(0,_t.jsx)(LS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):v}const XS="More",JS={item:`${XS}-item`,badge:`${XS}-badge`},ex=_r(ud)(({theme:e})=>({[`&.${JS.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${JS.badge}`]:{padding:e.spacing(0,1)}}));function tx({items:e=[],api:n}){const i=Ur(),[o,s]=(0,t.useState)(!1),[r,a]=(0,t.useState)(-1),[l,c]=(0,t.useState)(null),d=(0,t.useRef)(),h=()=>{a(-1)};let u=null;return r>-1&&(u=e[r].states.length>1?(0,_t.jsx)(ZS,{field:e[r],api:n,moreAlignTo:d,onClose:h}):(0,_t.jsx)(DS,{field:e[r],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),(0,_t.jsxs)(ex,{container:!0,gap:0,className:JS.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,s(!o))},children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(Qa,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText},children:(0,_t.jsxs)(yd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit",children:["+",e.length]})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{size:"large",children:(0,_t.jsx)(KS,{})})}),o&&(0,_t.jsx)(Lm,{open:o,onClose:()=>{s(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:(0,_t.jsx)(nh,{dense:!0,children:e.map((e,t)=>(0,_t.jsx)(GS,{title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),a(t)})(e,t),children:(0,_t.jsx)(Qa,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:e.states.length>1?(0,_t.jsx)(ZS,{field:e,api:n}):(0,_t.jsx)(DS,{field:e,api:n})})},t))})}),u]})}function nx({api:e,app:n}){const i=Ur(),[o]=fp(n),[s]=Cp(o),[r]=(e=>{const[t]=Sp(e,"FieldList",xp),[n]=vp(t,"getLayout"),i=(e=>{if(!e)return;const t=[];for(let n=0;n<e.length;++n){const i=e[n];if(t.push(i),i.qDerivedFieldData)for(let e=0;e<i.qDerivedFieldData.qDerivedFieldLists.length;++e){const n=i.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<n.qFieldDefs.length;++e){const o=n.qFieldDefs[e];t.push({qName:o.qName,qSrcTables:i.qSrcTables,qTags:o.qTags,isDerived:!0,sourceField:i.qName,derivedDefinitionName:n.qDerivedDefinitionName})}}}return t})(n?.qFieldList?.qItems);return[i]})(n),[a]=(e=>{const[t]=Sp(e,"DimensionList",kp),[n]=vp(t,"getLayout");return[n?.qDimensionList?.qItems]})(n),[l]=Ap(n),{modalObjectStore:c}=(0,t.useContext)(rp).selectionStore,[d,h]=yp(),u=(0,t.useMemo)(()=>{const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const i=e.qField;let o=t[i];void 0===o&&(o={name:i,label:e.qDimensionReferences?.find(e=>e.qLabel)?.qLabel||e.qReadableName||i,states:[],selections:[]},t[i]=o),o.states.push(n),o.selections.push(e)})}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach(e=>n(e.qSelectionObject,e.stateName)),Object.keys(t).map(e=>t[e]).filter(e=>!e.selections.some(e=>e.qIsHidden))}(s).sort(Dp);return((e,t,n,i)=>{if(!e||!i)return n;if(0===e.length||0===t.length&&0===n.length)return[];const o=((e,t,n)=>n.filter(n=>Lp in n&&n[Lp]?e.some(e=>e.qName===n[Lp]):!(!(Ep in n)||!n[Ep])&&t.some(e=>e.qInfo?.qId===n[Ep]&&"N"===e.qData?.grouping)))(e,i,t),s=[],r=[...n];for(let e=0;e<o.length;e++){const t=o[e],n=!(!(Ep in t)||!t[Ep]),a=n?i.find(e=>e.qInfo?.qId===t[Ep]):null,l=n?a?.qData?.info[0]?.qName:t[Lp],c=r.findIndex(e=>n&&e.selections[0].qDimensionReferences?.[0]?.qId===t[Ep]||!n&&(e.selections[0].qField===l||e.selections[0].qReadableName===l));if(-1===s.findIndex(e=>e.selections?.[0]?.qField===l&&!e.isPinned))if(-1===c){const t={...o[e],isPinned:!0,states:["$"]};n&&a&&(t.qField=l,t.qName=a.qData.labelExpression||a.qData.title||l),s.push(t)}else s.push(r[c]),r.splice(c,1)}return[...s,...r]})(r,l,e,a)},[s,r,l,a]),g=(e=>{if(!e)return 0;const{width:t}=e,n=Math.floor(t)-72;return Math.floor(n/120)})(h),{items:p,more:m}=(({currentItems:e,containerRef:t,maxItems:n,isInListboxPopover:i})=>{if(!t)return{items:[],more:[]};const o=[...e],s=t.items??[];if(i()&&o.length+1===s.length){const e=s.filter(e=>!1===o.some(t=>e.name===t.name))[0];if(e&&!e.isPinned){const{qField:t}=e.selections[0];e.selections=[{qField:t}];const n=s.indexOf(e);o.splice(n,0,e)}}let r=[];return n<o.length&&(r=o.splice(0,o.length-n)),t.items=o,{items:o,more:r}})({currentItems:u,containerRef:d,maxItems:g,isInListboxPopover:()=>{const{model:e}=c.get(n.id)||{};return"njsListbox"===e?.genericType}});return(0,_t.jsxs)(ud,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"},children:[m.length>0&&(0,_t.jsx)(ud,{style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`},children:(0,_t.jsx)(tx,{items:m,api:e})}),p.map((t,n)=>(0,_t.jsx)(ud,{style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`},children:t.states.length>1?(0,_t.jsx)(ZS,{field:t,api:e}):(0,_t.jsx)(DS,{field:t,api:e})},`${t.states.join("::")}::${t.qField??t.name}${n}`))]})}const ix=e=>Yd((e=>({...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));n.dn(ix);const ox=e=>Yd((e=>({...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 sx({api:e,app:n}){const{translator:i}=(0,t.useContext)(rp),[o]=function(e){const[n]=fp(e),[i]=Cp(n),[o]=_p(e),[s,r]=(0,t.useState)(null);return(0,t.useEffect)(()=>{o&&n&&i&&((e,t,n)=>{const i=[...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(i)}],!0)})(n,i,o)},[o,n,i]),(0,t.useEffect)(()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach(i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),r({canGoBack:e,canGoForward:t,canClear:n})},[i]),[s,n,i]}(n);return(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"},children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large",children:(0,_t.jsx)(ix,{})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large",children:(0,_t.jsx)(ox,{})})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Uc,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large",children:(0,_t.jsx)(ZC,{})})})]})}n.dn(ox);const rx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function ax([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function lx(){return rx.map(ax).join("")}function cx({app:e}){const t=Ur(),[n]=W_(e);return n?(0,_t.jsxs)(ud,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"},children:[(0,_t.jsx)(ud,{style:{borderRight:`1px solid ${t.palette.divider}`},children:(0,_t.jsx)(sx,{api:n,app:e})}),(0,_t.jsx)(ud,{size:"grow",style:{backgroundColor:t.palette.background.darker,overflow:"hidden"},children:(0,_t.jsx)(nx,{api:n,app:e})})]}):null}let dx;dx="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let hx=null,ux=null;const gx=dx.clearTimeout,px=dx.setTimeout,mx=dx.cancelAnimationFrame||dx.mozCancelAnimationFrame||dx.webkitCancelAnimationFrame,fx=dx.requestAnimationFrame||dx.mozRequestAnimationFrame||dx.webkitRequestAnimationFrame;null==mx||null==fx?(hx=gx,ux=function(e){return px(e,20)}):(hx=function([e,t]){mx(e),gx(t)},ux=function(e){const t=fx(function(){gx(n),e()}),n=px(function(){mx(t),e()},20);return[t,n]});class bx extends t.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),s=parseFloat(i.paddingRight||"0"),r=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-r-a,d=l.width-o-s,h=this._parentNode.offsetHeight-r-a,u=this._parentNode.offsetWidth-o-s;(e||this.state.height===h&&this.state.scaledHeight===c)&&(t||this.state.width===u&&this.state.scaledWidth===d)||(this.setState({height:h,width:u,scaledHeight:c,scaledWidth:d}),"function"==typeof n&&n({height:h,scaledHeight:c,scaledWidth:d,width:u}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,i,o,s,r,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){r=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;r(this),this.__resizeRAF__&&hx(this.__resizeRAF__),this.__resizeRAF__=ux(function(){s(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";i="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){h=c[n],l="-"+h.toLowerCase()+"-",i=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(s,c){if(l)s.attachEvent("onresize",c);else{if(!s.__resizeTriggers__){const l=s.ownerDocument,c=dx.getComputedStyle(s);c&&"static"===c.position&&(s.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(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%; }',s=n.head||n.getElementsByTagName("head")[0],r=n.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(n.createTextNode(i)),s.appendChild(r)}}(l),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const h=l.createElement("div");h.className="contract-trigger",s.__resizeTriggers__.appendChild(d),s.__resizeTriggers__.appendChild(h),s.appendChild(s.__resizeTriggers__),r(s),s.addEventListener("scroll",a,!0),i&&(s.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&r(s)},s.__resizeTriggers__.addEventListener(i,s.__resizeTriggers__.__animationListener__))}s.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:o=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:r=!1,nonce:a,onResize:l,style:c={},tagName:d="div",...h}=this.props,{height:u,scaledHeight:g,scaledWidth:p,width:m}=this.state,f={overflow:"visible"},b={};let v=!1;return o||(0===u&&(v=!0),f.height=0,b.height=u,b.scaledHeight=g),s||(0===m&&(v=!0),f.width=0,b.width=m,b.scaledWidth=p),r&&(v=!1),(0,t.createElement)(d,{ref:this._setRef,style:{...f,...c},...h},!v&&e(b))}}function vx({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:i,isModal:o,constraints:s,selections:r}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:i=!1}=t.nativeEvent,s=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case tb.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(i)ab(a)||rb(a)||cb(t,e);else if(!(lb(a)||rb(a)||ab(a)))break;s();break;case tb.ENTER:case tb.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),s();break;case tb.ESCAPE:cb(t,e),r.isActive()&&r.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=s?.select||s?.active,t=o();return e||t})())return;const{keyCode:r,ctrlKey:a=!1,shiftKey:l=!1}=e;switch(r){case tb.ARROW_UP:n({up:1});break;case tb.ARROW_DOWN:n({down:1});break;case tb.PAGE_UP:n({up:i.stop-i.start});break;case tb.PAGE_DOWN:n({down:i.stop-i.start});break;case tb.HOME:n({scrollPosition:a&&l?"overflowStart":"start"});break;case tb.END:n({scrollPosition:a&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Cx=_r("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function _x({text:e}){const{translator:n}=(0,t.useContext)(rp);return(0,_t.jsx)(Cx,{children:n.get(e)})}const yx={fontSize:"12px"},wx=_r(Lc)(({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}})),Ax=_r(ud,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})(({styles:e,isRtl:t})=>({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center",...e.header,"& *":{color:e.header.color}})),Sx=_r(yd)(({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})),xx=t.forwardRef(({translator:e,toggleLock:t,keyboard:n,isLoading:i},o)=>{const s=e.get("SelectionToolbar.ClickToUnlock");return(0,_t.jsxs)(wx,{ref:o,title:s,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i,children:[i?(0,_t.jsx)(Fc,{size:16,variant:"indeterminate",color:"primary"}):(0,_t.jsx)(Ip,{disableRipple:!0,style:yx}),!i&&(0,_t.jsx)(yd,{fontSize:"14px",children:s})]})}),kx=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));n.dn(kx);const Lx=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));n.dn(Lx);const Ex=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));n.dn(Ex);const Dx=_r(Bu)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})),Ix=function({iconData:e,translator:t,iconStyle:n,disabled:i,keyboard:o}){if(!e)return;const{icon:s,tooltip:r,onClick:a,onKeyDown:l}=e,c=s,d=t.get(r);return a?(0,_t.jsx)(Dx,{variant:"outlined",onClick:a,tabIndex:o.innerTabStops?0:-1,title:d,size:"large",disableRipple:!0,disabled:i,onKeyDown:l,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button",children:(0,_t.jsx)(c,{style:n})}):(0,_t.jsx)(c,{title:d,size:"large",style:{...n,padding:"7px"}})};let Nx=0;const Rx=function({layout:e,translator:n,styles:i,isRtl:o,showLock:s,showSearchIcon:r,constraints:a,onShowSearch:l,classes:c,containerRect:d,isPopover:h,showToolbar:u,toolbarMode:g="auto",containerRef:p,model:m,selectionState:f,isDirectQuery:b,selections:v,keyboard:C,autoConfirm:_,app:y,title:w,disablePortal:A}){const S="detach"===g,x=!(S||"attach"===g),[k,L]=(0,t.useState)(S),[E,D]=(0,t.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[I,N]=(0,t.useState)(!1);(0,t.useEffect)(()=>{D(e?.qListObject?.qDimensionInfo?.qLocked)},[e?.qListObject?.qDimensionInfo?.qLocked]);const R=(0,t.useRef)(null),T=(0,t.useRef)(null),M=(0,t.useRef)(null),O=(({dimInfo:e,app:t,selections:n,isPopover:i,active:o,keyboard:s})=>{switch(e.qGrouping){case"H":return{icon:Lx,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const r=t&&o,a=()=>{i||n.confirm(),t.getDimension(e.qLibraryId).then(e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:r?Ex:kx,tooltip:"Listbox.Cyclic",onClick:r?a:void 0,onKeyDown:r?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case tb.SPACE:case tb.ENTER:a();break;case tb.TAB:{if(!s.enabled)return;let n;n=e.shiftKey?s.focusSelection():rb(t)||ab(t),n||cb(e,s)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:y,selections:v,isPopover:h,active:!a?.active,keyboard:C}),q=s&&E,P=!s&&E,B=r||P||O,F=9-(B?7:0),W=o?9-(B?7:0):4,z=(r?28:0)+(P?28:0)+(O?28:0),V=function({isLocked:e,setLocked:t,settingLockedState:n,model:i,setSettingLockedState:o,unlockButtonRef:s,lockButtonRef:r}){return()=>{const a=new Date;if(a-Nx<500)return Promise.resolve();if(n)return()=>{};o(!0),Nx=a;const l=e?i.unlock:i.lock;return t(!e),l.call(i,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{o(!1),e?setTimeout(()=>{r.current?.focus()},0):s.current?.focus()},0)})}}({isLocked:E,setLocked:D,settingLockedState:I,setSettingLockedState:N,model:m,unlockButtonRef:T,lockButtonRef:M}),H=qC({layout:e,model:m,translator:n,selectionState:f,isDirectQuery:b,selections:v}),j=E||!s?void 0:[{key:"lock",type:void 0,label:n.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Np,enabled:()=>!I&&!f.selectDisabled()&&$_(e),action:V,ref:M}],U=a?.active?(0,_t.jsx)(T_,{title:n.get("Listbox.Search"),size:"large",style:{...yx,padding:"7px"}}):(0,_t.jsx)(Uc,{onClick:l,tabIndex:-1,title:n.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn",children:(0,_t.jsx)(T_,{style:yx})});(0,t.useEffect)(()=>{if(!x)return;if(!R.current||!d)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:i,paddingRight:o}){const s=i+o;return!!(e.width<(t?.current?.clientWidth??0)+n+s+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:d,titleRef:R,iconsWidth:z,paddingLeft:F,paddingRight:W});L(e)},[x,z,F,W,R.current,d?.width,d?.height]);const $=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,extraItems:s,selections:r,keyboard:a,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:s,more:{enabled:!i,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:c},selections:{show:t,api:r,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!h&&k,showToolbar:u,containerRef:p,isPopover:h,isLocked:E,extraItems:j,listboxSelectionToolbarItems:H,selections:v,keyboard:C,autoConfirm:_,disablePortal:A}),G=(0,_t.jsx)(k_,{isRtl:o,layout:e,...$});if(S)return G;const K=P?(0,_t.jsx)(Ip,{size:"large",style:{...yx,padding:"7px"}}):void 0;return(0,_t.jsxs)(Ax,{item:!0,container:!0,styles:i,isRtl:o,marginY:1,paddingLeft:`${F}px`,paddingRight:`${W}px`,className:"header-container",children:[q&&(0,_t.jsx)(xx,{isLoading:I,translator:n,toggleLock:V,keyboard:C,ref:T}),B&&(0,_t.jsxs)(ud,{container:!0,alignItems:"center",width:z,className:"header-action-container",children:[K||r&&U,(0,_t.jsx)(Ix,{iconData:O,iconStyle:yx,disabled:v.isActive()&&h,translator:n,keyboard:C})]}),(0,_t.jsx)(ud,{size:"grow",sx:{minWidth:0},justifyContent:o?"flex-end":"flex-start",className:c.listBoxHeader,children:(0,_t.jsx)(Sx,{variant:"h6",noWrap:!0,ref:R,title:w??e.title,styles:i,children:w??e.title})}),(0,_t.jsx)(ud,{display:"flex",children:G})]})},Tx=_r("div")(({theme:e,width:t,height:n})=>({position:"absolute",pointerEvents:"none",zIndex:1,width:t,height:n,boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`}));function Mx({width:e,height:n,disabled:i,childNode:o,containerNode:s}){const[r,a]=(0,t.useState)(!1),l=(0,t.useCallback)(()=>{const e=s&&s.contains(document.activeElement),t=o&&o.contains(document.activeElement);a(e&&!t)},[s,o]);return(0,t.useEffect)(()=>{if(s)return s.addEventListener("focusin",l),s.addEventListener("focusout",l),l(),()=>{s.removeEventListener("focusin",l),s.removeEventListener("focusout",l)}},[l,s]),!i&&r?(0,_t.jsx)(Tx,{"aria-hidden":"true",width:e,height:n}):null}const Ox="ListBoxInline",qx={listBoxHeader:`${Ox}-listBoxHeader`,screenReaderOnly:`${Ox}-screenReaderOnly`,listboxWrapper:`${Ox}-listboxWrapper`},Px=_r(ud,{shouldForwardProp:e=>!["containerPadding","styles"].includes(e)})(({containerPadding:e,styles:t})=>({...t.background,[`& .${qx.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${qx.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${qx.listboxWrapper}`]:{padding:e},"&:focus-visible":{outline:"none"}}));function Bx({options:e,layout:n}){const{app:i,direction:o,frequencyMode:s,checkboxes:r,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:h,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,showGray:f=!0,scrollState:b,renderedCallback:v,toolbar:C=!0,toolbarMode:_="auto",isPopover:y=!1,showLock:w=!1,components:A,selectDisabled:S=()=>!1,disablePortal:x=!0,flags:k}=e,L=Ur(),{translator:E,keyboardNavigation:D,themeApi:I,queryParams:N,constraints:R,hostConfig:T}=(0,t.useContext)(rp),{checkboxes:M=r}=n||{},O=kS({app:i,themeApi:I,theme:L,queryParams:N,components:A,checkboxes:M,hostConfig:T}),q=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),P=(0,t.useRef)(),B=(0,t.useRef)(),[F,W,z]=yp(),[V,H]=(0,t.useState)(!1),[j,U]=(0,t.useState)(!1),$=(0,t.useRef)(!1),[G,K]=(0,t.useState)({down:0,up:0,scrollPosition:""}),Q=e=>K(t=>({...t,...e})),[Y,Z]=(0,t.useState)({start:0,stop:0}),[X]=W_(i),[J]=(0,t.useState)(()=>j_({selectDisabled:S})),ee=ob({containerRef:P,enabled:D}),te=(0,t.useCallback)(()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:X}),[i,X]),ne=n?.qListObject.qDimensionInfo.qError,ie=ne&&R.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[,oe]=(0,t.useState)(!1),[se,re]=(0,t.useState)(null),ae=(0,t.useCallback)(e=>{re(e)},[]),{handleKeyDown:le,handleOnMouseEnter:ce,handleOnMouseLeave:de,globalKeyDown:he}=(0,t.useMemo)(()=>vx({keyboard:ee,hovering:$,updateKeyScroll:Q,containerRef:P,currentScrollIndex:Y,app:i,appSelections:X,constraints:R,isModal:te,selections:h}),[ee,$,Q,P,Y,i,X,R,te]);(0,t.useEffect)(()=>(document.addEventListener("keydown",he),()=>{document.removeEventListener("keydown",he)}),[he]),(0,t.useEffect)(()=>{!0===a&&U(!0);const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===a&&U(!1)};return y&&(h.isActive()||(h.on("activated",e),h.on("deactivated",t)),H(y)),C&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),H(y||h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}},[C,h,y]);const{wildCardSearch:ue,searchEnabled:ge,autoConfirm:pe=!1,layoutOptions:me={}}=n??{},fe=n?.qListObject?.qDimensionInfo?.qLocked,be=!1!==ge&&"toggle"===a&&!fe,ve=n?.qListObject?.qDimensionInfo,Ce=k.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT")?n?.title??ve?.qFallbackTitle:n?.title,_e=Ce?.length&&!1!==n?.showTitle,ye=["attach","detach","auto"].includes(_)?_:"auto",we=C||y,Ae=function({toolbarMode:e,canShowTitle:t,isPopover:n}){return"auto"!==e?e:t||n?"attach":"detach"}({toolbarMode:ye,canShowTitle:_e,isPopover:y}),Se=we&&"detach"===Ae,xe="rtl"===o;if(!(d&&n&&E&&O))return null;const ke=!0===a||"toggle"===a&&j&&!1!==ge,Le=me.dense??!1,Ee=()=>{const e=!j;U(e),e&&P.current?.scrollIntoView&&P.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"instant"})},De=()=>{"toggle"===a?Ee():B.current.focus()},Ie=ke&&("toggle"===a||l),Ne=function({isGridMode:e,dense:t,height:n,layoutOrder:i}){let o;if(e){let s;s=Fb({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===i?`${s} 4px`:`${s} 6px ${s} 4px`}else o=void 0;return o}({isGridMode:"grid"===me?.dataLayout,dense:Le,height:P.current?.clientHeight,layoutOrder:me.layoutOrder});ne&&v?.();const Re=we&&!Se?30:0,Te=(0,_t.jsx)(Rx,{app:i,showSearchIcon:be,onShowSearch:Ee,isPopover:y,showToolbar:V,isDirectQuery:q,autoConfirm:pe,toolbarMode:Se?"detach":ye,title:Ce,layout:n,translator:E,styles:O,isRtl:xe,showLock:w,constraints:R,classes:qx,containerRect:W,containerRef:P,model:d,selectionState:J,selections:h,keyboard:ee,disablePortal:x});return(0,_t.jsxs)(_t.Fragment,{children:[Se&&Te,(0,_t.jsxs)(Px,{className:"listbox-container",container:!0,tabIndex:ee.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ne,styles:O,style:{height:"100%",width:"100%",flexFlow:"column nowrap"},onKeyDown:le,onMouseEnter:ce,onMouseLeave:de,ref:e=>{P.current=e,F?.(e)},"aria-label":ee.active?E.get("Listbox.ScreenReaderInstructions"):"",onFocus:()=>oe(!0),onBlur:()=>oe(!1),children:[(0,_t.jsx)(Mx,{width:W?.width,height:W?.height,disabled:te()||y,childNode:se,containerNode:z}),we&&!Se&&Te,(0,_t.jsxs)(ud,{container:!0,direction:"column",height:"100%",minHeight:Re,role:"region","aria-label":E.get("Listbox.ResultFilterLabel"),ref:ae,children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(F_,{ref:B,selections:h,selectionState:J,model:d,dense:Le,keyboard:ee,visible:ke,search:a,autoFocus:Ie,beginSelectionOnFocus:!y,wildCardSearch:ue,searchEnabled:ge,direction:o,hide:be&&Ee,styles:O})}),(0,_t.jsx)(ud,{size:"grow",className:qx.listboxWrapper,children:ne?(0,_t.jsx)(_x,{text:ie}):(0,_t.jsx)(bx,{children:({height:e,width:t})=>(0,_t.jsx)(NC,{model:d,app:i,constraints:R,layout:n,selections:h,selectionState:J,direction:o,frequencyMode:s,rangeSelect:c,checkboxes:M,height:e,width:t,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:ee,showGray:f,scrollState:b,keyScroll:{state:G,reset:()=>K({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:Z},renderedCallback:v,onCtrlF:De,isModal:te,styles:O})})})]})]})]})}const Fx=t.memo(Bx),Wx=function({options:e={}}){const{model:t}=e,[n]=Cp(t);return(0,_t.jsx)(Fx,{options:e,layout:n})};const zx={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function Vx(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const Hx=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...n,update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1,...t}},jx=(0,t.forwardRef)(({app:e,fieldIdentifier:n,qId:i,stateName:o,element:s,initialOptions:r,renderedCallback:a,flags:l},c)=>{const[d,h]=(0,t.useState)(r),{isExistingObject:u,hasExternalSelectionsApi:g}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:d});u||Object.assign(d,{frequencyMode:Vx(d.frequencyMode)});const[p,m]=(0,t.useState)(0);(0,t.useEffect)(()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(p+1)},[u,g]);const f=u?function({app:e,qId:n,options:i={}}){const[o,s]=(0,t.useState)(),[r]=gp(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter(e=>l.includes(e));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,t.useEffect)(()=>{let t=!1,i=()=>{};return async function(){const o=await Promise.resolve(a||async function(t){return r.get(t)||await e.getObject(t)}(n));if(!t){if(!r.get(o.id)){r.set(o.id,o);const e=()=>{r.clear(o.id)};o.once("closed",e),i=()=>{o.removeListener("closed",e)}}s(o)}}(),()=>{t=!0,i()}},[]),o}({app:e,qId:i,options:d}):function({app:e,fieldIdentifier:n,stateName:i,options:o={}}){const[s,r]=(0,t.useState)(""),[a,l]=(0,t.useState)(!0),[c,d]=(0,t.useState)(),[h,u]=(0,t.useState)(),g=o.title??h;let{histogram:p=!1,frequencyMode:m="N"}=o;s&&s.failedToFetchFieldDef&&(p=!1,m="N"),(0,t.useEffect)(()=>{const t=p||"N"!==m;n.qLibraryId&&t?async function(){try{const t=await e.getDimension(n.qLibraryId),i=await t.getLayout();u(i.qDim.title),"N"===i.qDim.qGrouping?r(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""):r({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),r({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),u(n))},[]);const{dense:f,checkboxes:b,listLayout:v,properties:C={}}=o,_={dense:f};"horizontal"===v&&(_.dataLayout="grid",_.layoutOrder="column",_.maxVisibleColumns={auto:!0},_.maxVisibleRows={auto:!1,maxRows:1});const y=(0,t.useRef)();y.current||(y.current=lx());const w=Mg()(!0,{},zx,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:b,layoutOptions:_,title:g});let A;if(Mg()(!0,w,C),n.qLibraryId?(w.qListObjectDef.qLibraryId=n.qLibraryId,A=n.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[n],A=n),"P"!==m&&p)if(s?.multiFieldDim)w.frequencyMax="fetch";else{const e=n.qLibraryId?s:A;w.frequencyMax={qValueExpression:DC(e)}}const[S]=pp(w,a?null:e,A,i);return(0,t.useEffect)(()=>{S&&d(S)},[S]),c}({app:e,fieldIdentifier:n,stateName:o,options:d}),b=(0,t.useRef)(s),v=g?d.selectionsApi:H_(e,f,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],d)[0],C=(0,t.useMemo)(()=>({...d,selections:v,model:f,app:e,renderedCallback:a,flags:l}),[d,v,f,e]);return(0,t.useImperativeHandle)(c,()=>({setOptions:e=>h(e)}),[]),v&&f?(0,_t.jsx)(Wx,{options:C}):null}),Ux={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function $x({app:e,fieldIdentifier:n,stateName:i,element:o,options:s={}}){const[r,a]=(0,t.useState)(!!s.show);return(0,_t.jsx)(LS,{show:r,app:e,alignTo:{current:o},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{a(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:n,stateName:i,autoFocus:s.autoFocus,components:s.components,sortCriteria:s.sortCriteria,direction:s.direction})}function Gx(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Kx(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}function Qx({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const s="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return s.qDef.cId=s.qDef.cId||lx(),s.qDef.qSortCriterias=s.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],s.qOtherTotalSpec=s.qOtherTotalSpec||{},s.qAttributeExpressions=s.qAttributeExpressions||[],s.qAttributeDimensions=s.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(s),Gx(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(s,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)),s},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Kx(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const s="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};s.qDef.cId=s.qDef.cId||lx(),s.qSortBy=s.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},s.qAttributeDimensions=s.qAttributeDimensions||[],s.qAttributeExpressions=s.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(s),Gx(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(s,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(s))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Kx(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}function Yx({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||lx(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach(t=>{e[t]=o[t]}),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const Zx=e=>({qDef:{qFieldDefs:[e]}});function Xx({children:e,halo:t}){const n={async addDimension(n){const i=(e=>{let t;return t="string"==typeof e?Mg()(!0,{},zx,{qListObjectDef:Zx(e)}):e.qListObjectDef?Mg()(!0,{},zx,e):Mg()(!0,{},zx,{qListObjectDef:e}),t})(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||lx(),!i.title)if(t.public.galaxy.flags.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT"))i.title=void 0;else if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?i.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:i.title=n.qDim.title}else i.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:i,qChildren:[]})},addMeasure(){}};return n}function Jx(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function ek({sn:e,properties:t,fields:n,children:i},o){if(!n.length)return;const s=e.qae.data.targets[0];if(!s)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:r}=s,a=r.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?Yx:e.match("/qChildListDef")?Xx:Qx}(r),d=c({dc:l,def:s,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===Jx(t)?await d.addMeasure(t):await d.addDimension(t)}}const tk=e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e,nk={getValue:(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const i=t.split("."),o=i[i.length-1];let s=e;for(let e=0;e<i.length-1;++e){const t=i[e];if(!tk(t))return;void 0!==s[t]&&null!==s[t]||(s[t]=Number.isNaN(+i[e+1])?{}:[]),s=s[t]}tk(o)&&(void 0!==n?s[o]=n:delete s[o])},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},ik=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},ok=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},sk=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},rk=function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const i=e.at(t);e.splice(t,1),e.splice(n,0,i)},ak=2**53-1;function lk(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function ck(e,t){const n=Mg()(!0,{},t,e);return nk.getValue(n,"qOtherTotalSpec.qOtherCounted")||nk.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),nk.getValue(n,"qOtherTotalSpec.qOtherLimit")||nk.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function dk(e,t){return Mg()(!0,{},t,e)}function hk(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const uk={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===nk.getValue(e,t)&&nk.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:lk,importCommonProperties:function(e,t,n){const i="masterobject"===nk.getValue(t,"properties.qInfo.qType")?"masterobject":nk.getValue(n,"qInfo.qType");nk.setValue(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:ck,createDefaultMeasure:dk,resolveValue:hk,getHypercubePath:function(e){const t=nk.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(ok(t.qInterColumnSortOrder,o),++o):(--o,sk(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Mg()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?nk.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||lk(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]}),i=Mg()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},s=hk(o.max,n.dimensions.length,ak),r=hk(o.min,n.dimensions.length,0);return{maxDimensions:hk(i.max,s,ak),minDimensions:hk(i.min,r,0),maxMeasures:s,minMeasures:r}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const s=e.data[0];return s.dimensions.length>t&&t>0||s.measures.length>i&&i>0||s.excludedDimensions.length>0&&s.dimensions.length+s.excludedDimensions.length>n||s.excludedMeasures.length>0&&s.measures.length+s.excludedMeasures.length>o||!i&&s.measures.length>0||!t&&s.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:s}){const r=e.data[0];s.qLayoutExclude||(s.qLayoutExclude={}),s.qLayoutExclude.qHyperCubeDef||(s.qLayoutExclude.qHyperCubeDef={}),(r.dimensions.length>t&&t>0||r.excludedDimensions&&r.excludedDimensions.length&&r.dimensions.length+r.excludedDimensions.length>n)&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(r.measures.length>i&&i>0||r.excludedMeasures&&r.excludedMeasures.length&&r.measures.length+r.excludedMeasures.length>o)&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&r.measures.length&&(s.qLayoutExclude.qHyperCubeDef.qMeasures||(s.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&r.dimensions.length&&(s.qLayoutExclude.qHyperCubeDef.qDimensions||(s.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.dimensions.length;++r)i.qDimensions.length<t?i.qDimensions.push(ck(s.dimensions[r],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(ck(s.dimensions[r],o));else if(s.dimensions.length)for(r=0;r<s.dimensions.length;++r)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(ck(s.dimensions[r],o));if(s.excludedDimensions.length)for(r=0;r<s.excludedDimensions.length;++r)i.qDimensions.length<n?i.qDimensions.push(ck(s.excludedDimensions[r],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(ck(s.excludedDimensions[r],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const s=e.data[0];let r;if(t>0)for(r=0;r<s.measures.length;++r)i.qMeasures.length<t?i.qMeasures.push(dk(s.measures[r],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(dk(s.measures[r],o));else if(s.measures.length)for(r=0;r<s.measures.length;++r)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(dk(s.measures[r],o));if(s.excludedMeasures.length)for(r=0;r<s.excludedMeasures.length;++r)i.qMeasures.length<n?i.qMeasures.push(dk(s.excludedMeasures[r],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(dk(s.excludedMeasures[r],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=nk.getValue(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach(n=>{i.qDimensions.push(n),t.dimensions.added(n,e)})}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=nk.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach(n=>{i.qMeasures.push(n),t.measures.added(n,e)})}}},gk={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=nk.getValue(i,t||""),s=o.qHyperCubeDef,r=n.data[0];if(s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),r.dimensions.push(...s.qDimensions),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qDimensions&&r.excludedDimensions.push(...s.qLayoutExclude.qHyperCubeDef.qDimensions),r.measures.push(...s.qMeasures),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qMeasures&&r.excludedMeasures.push(...s.qLayoutExclude.qHyperCubeDef.qMeasures),r.interColumnSortOrder=s.qInterColumnSortOrder.concat(),s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef&&s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=s.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ik(e,r.interColumnSortOrder)&&(r.interColumnSortOrder=e)}return delete s.qLayoutExclude,Object.keys(i).forEach(e=>{n.properties[e]=i[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])}),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(uk.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!nk.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const s={qChildren:[]},r=uk.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=nk.getValue(t,o||"").qHyperCubeDef,l=nk.getValue(r,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=uk.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=uk.getDefaultDimension(),defaultMeasure:p=uk.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,uk.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&uk.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),uk.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),uk.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),uk.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),uk.copyPropertyIfExist("qMaxStackedCells",a,l),uk.copyPropertyIfExist("qNoOfLeftDims",a,l),uk.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),uk.copyPropertyOrSetDefault("qMode",a,l,"S"),uk.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),uk.copyPropertyOrSetDefault("qSortbyYValue",a,l),uk.copyPropertyOrSetDefault("qIndentMode",a,l),uk.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),uk.importCommonProperties(r,e,t),uk.updateDimensionsOnAdded({newProperties:r,dataDefinition:n,hypercubePath:o}),uk.updateMeasuresOnAdded({newProperties:r,dataDefinition:n,hypercubePath:o}),s.qProperty=r,s}(e)},pk=e=>nk.getValue(e,"data.targets.0.propertyPath"),mk=async({halo:e,model:t,cellRef:n,newType:i,properties:o,viewDataMode:s=!1})=>{const r=o?{qProperty:o}:await t.getFullPropertyTree(),a=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gk.exportProperties})(pk(e)))(a);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),d=c.qae,h=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gk.importProperties})(pk(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:r,hypercubePath:uk.getHypercubePath(a),viewDataMode:s}),initialProperties:{qInfo:{qType:i},visualization:i,...nk.getValue(d,"properties.initial",{})},dataDefinition:nk.getValue(d,"data.targets.0.",{}),hypercubePath:uk.getHypercubePath(d),viewDataMode:s})},fk={hypercube:gk},bk=Mg().bind(null,!0),vk={},{isArray:Ck}=Array;function _k(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function yk(e){return void 0===e}function wk(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ak(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function Sk(e,t){let n;return t.substring(1).split("/").slice(0,-1).forEach(t=>{if(!Ak(t))throw new Error(`Unsafe key in path: ${t}`);n=+t;const i=isNaN(n)?{}:[];e[n||t]=yk(e[n||t])?i:e[t],e=e[n||t]}),e}function xk(e,t){let n=!0;if(_k(e)&&_k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(i=>{xk(e[i],t[i])||(n=!1)}),n);if(Ck(e)&&Ck(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!xk(e[n],t[n]))return!1;return!0}return e===t}vk.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach(o=>{const s=function(e){return e?bk({},{val:e}).val:e}(t[o]),r=e[o],a=`${n}/${o}`;xk(s,r)||wk(t,o)||(yk(r)?i.push({op:"add",path:a,value:s}):_k(s)&&_k(r)?i=i.concat(vk.generate(r,s,a)):Ck(s)&&Ck(r)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let s=-1;function r(e,t,n){if(e[n]&&yk(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(xk(t,o))return i;if(!yk(t[0])&&yk(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)s=r(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===s?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(vk.generate(o[e],t[s],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)s=r(o,t[e].qInfo&&t[e].qInfo.qId),-1===s?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):s!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${s}`}),o.splice(e,0,o.splice(s,1)[0]));return i}(r,s,a)):i.push({op:"replace",path:`${n}/${o}`,value:s}))}),Object.keys(e).forEach(o=>{yk(t[o])&&!wk(e,o)&&i.push({op:"remove",path:`${n}/${o}`})}),i},vk.apply=function(e,t){t.forEach(t=>{let n=Sk(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const s=t.from?t.from.split("/").splice(-1)[0]:null;if(!Ak(i)||null!==s&&!Ak(s)){const e=Ak(i)?s:i;throw new Error(`Unsafe key in patch path: ${e}`)}if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Ck(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(Ck(o)&&Ck(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(_k(o)&&_k(t.value))r=o,Object.keys(r).forEach(e=>{Object.getOwnPropertyDescriptor(r,e).configurable&&!wk(r,e)&&Ak(e)&&delete r[e]}),bk(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=Sk(e,t.from);Ck(n)?n.splice(+i,0,o.splice(+s,1)[0]):(n[i]=o[s],delete o[s])}else"remove"===t.op&&(Ck(n)?n.splice(+i,1):delete n[i]);var r})},vk.clone=function(e){return bk({},e)},vk.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},vk.updateObject=function(e,t){Object.keys(e).length?vk.apply(e,vk.generate(e,t)):bk(e,t)};const kk=vk;n.dn(Ek);const Lk=e=>t=>{const n=(i={...t,action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0},Object.keys(Xu().prototype).forEach(e=>{i[e]=Xu().prototype[e]}),Xu().init(i),i);var i;return n};function Ek({sn:e,component:t}){const n={},i=[],o=Lk(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,i.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}let Dk,Ik;function Nk(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 Rk(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function Tk(e){Ok(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 Mk(e){if(e.__hooks.obsolete)return Promise.resolve();Ik=-1,Dk=e;let t=-1;Dk.__hooks.initiated&&(t=Dk.__hooks.list.length);try{Dk.fn.call(null)}catch(e){console.error(e)}Dk.__hooks.initiated=!0,t>-1&&t!==Dk.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=Dk.__hooks;return Fk(Dk),Ik=void 0,Dk=void 0,n.chain.promise||(n.chain.promise=new Promise(e=>{n.chain.resolve=e})),function(e){Ok(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame(()=>{!function(e){Ok(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)}))}(n),n.chain.promise}function Ok(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 qk(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 Pk(e,t,n,i){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,i)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function Bk(e){return e.__hooks.imperativeHandle}function Fk(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Wk(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Fk(e))}function zk(e){if(void 0===Dk)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Dk.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Vk(e){return zk(++Ik),Dk.context[e]}function Hk(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function jk(e){return{__hooked:!0,fn:e,initiate:Rk,run:Mk,teardown:Tk,runSnaps:qk,runMenu:Pk,focus:wL,blur:AL,observeActions:Wk,getImperativeHandle:Bk,updateRectOnNextRun:Hk}}function Uk(e){const t=zk(++Ik);if(!t.value){t.component=Dk;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout(()=>{i.__hooks.micro=null,Mk(i)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function $k(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=zk(++Ik);Nk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Dk.__hooks.pendingEffects.indexOf(n)&&Dk.__hooks.pendingEffects.push(n))}function Gk(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=zk(++Ik);Nk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Dk.__hooks.pendingLayoutEffects.push(n))}function Kk(e,t){t||console.warn("useMemo called without dependencies.");const n=zk(++Ik);return Nk(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Qk(e){return Kk(()=>({current:e}),[])}function Yk(e,t){const[n,i]=Uk(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=zk(++Ik);return o.component||(o.component=Dk),Gk(()=>{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(),i({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]}function Zk(){return Vk("element")}function Xk(){const e=Zk(),t=Dk.__hooks.resizer,[n,i]=Uk(()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}});return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),Gk(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:s}=e.getBoundingClientRect(),r=t.current;r.width===o&&r.height===s&&r.left===n&&r.top===i||t.setters.forEach(e=>e({left:n,top:i,width:o,height:s}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}},[e]),n}function Jk(){return Vk("layout")}function eL(){const e=Vk("layout"),[t]=Uk({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function tL(){return Vk("appLayout")}function nL(){const e=Vk("model");return e&&e.session?e:void 0}function iL(){const e=Vk("app");return e&&e.session?e:void 0}function oL(){const e=Vk("global");return e&&e.session?e:void 0}function sL(){return Vk("selections")}function rL(){return Vk("theme")}function aL(){return Vk("nebbie")}function lL(){return Vk("translator")}function cL(){return Vk("deviceType")}function dL(){return Vk("navigation")}function hL(){return Vk("plugins")}function uL(e,t){const[n]=Uk({action(){n._config.action.call(null)}});return n.component||(n.component=Dk,Dk.__hooks.actions.list.push(n)),Kk(()=>{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}function gL(){return Dk.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),Dk.__hooks.contraintsWarning=!1),Vk("constraints")}function pL(){return Vk("interactions")}function mL(){return Vk("options")}function fL(e,t){const n=zk(++Ik);if(!n.imperative){if(Dk.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(Nk(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],Dk.__hooks.imperativeHandle=i}}function bL(e){const t=zk(++Ik);t.value||(t.value=1,Dk.__hooks.snaps.push(t)),t.fn=e}function vL(e){const t=zk(++Ik);t.value||(t.value=1,Dk.__hooks.menus.push(t)),t.fn=e}function CL(){zk(++Ik);const e=Dk.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function _L(){return Vk("emitter")}function yL(){const e=Vk("keyboardNavigation"),t=Vk("focusHandler");if(!Dk.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(AL(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Dk);Dk.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),wL(this))}.bind(Dk);Dk.__hooks.accessibility.focusFunction=n;const i=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Dk);Dk.__hooks.accessibility.focusSelectionFunction=i}const n=Dk.__hooks.accessibility.focusFunction,i=Dk.__hooks.accessibility.exitFunction,o=Dk.__hooks.accessibility.focusSelectionFunction,[s,r]=Uk({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return Dk.__hooks.accessibility.setter=r,Dk.__hooks.accessibility.enabled=e,$k(()=>r({active:!1,enabled:e,blur:i,focus:n,focusSelection:o}),[e]),s}function wL(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 AL(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 SL={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},xL=Object.keys(SL);function kL(e,t,n){"function"==typeof e.component&&(e.component=jk(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==Mk&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const s={},r=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:i,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:a,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let i=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)}),i&&(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)}r.forEach(e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),"interactions"===e&&(t=JSON.stringify({...i[e],...l})),t!==s[e]&&(n=!0,s[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==s.themeName&&(n=!0,s.themeName=this.context.theme.name()),this.context.translator.language()!==s.language&&(n=!0,s.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,i){return e.component.runMenu(this,t,n,i)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?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 r.forEach(e=>{s[e]=JSON.stringify(c.context[e])}),s.themeName=c.context.theme?c.context.theme.name():void 0,s.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):function(e,t){console.warn("Obsolete API - time to get hooked!");const n={...SL};var i;i=n,Object.keys(Xu().prototype).forEach(e=>{i[e]=Xu().prototype[e]}),Xu().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==xL.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const s=Ek({sn:e,component:o}),r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:r,selections:t.selections,actions:s.actions}),Object.assign(n,{actions:s.actions,model:t.model,app:t.app,selections:t.selections}),[n,s]}(e,t),s=[];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(...n){try{e.qae.properties.onChange.call({model:t.model},...n)}catch{console.warn("Error in chart setProperties interceptor onChange call ")}return t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const s=kk.clone(o),r=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));kk.apply(o,r);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const a=kk.generate(s,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,a,i)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},s.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){s.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const LL=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],EL=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map(([e,t])=>e+(Math.random()*(t-e)|0).toString(32)).join(""),DL=(e,t)=>e&&e.find(e=>e.qDef?.cId===t)||null,IL=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??EL()}}),NL=e=>({...IL(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),RL=(e,t,n)=>{const i=t;e.forEach((e,t)=>{const o=e.qTags,s={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(i,n.properties,o,s,n):(s.qSortByNumeric=1,s.qSortByAscii=1),i.qDef.qSortCriterias?i.qDef.qSortCriterias[t]=s:i.qDef.qSortCriterias=[s]})},TL=new Error("Not supported in this object, need to implement in subclass."),ML=e=>e?[...e].map(e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e):[],OL=(e,t)=>{if(e)return t&&nk.getValue(e,t)?nk.getValue(e,t).qHyperCube:e.qHyperCube};function qL(e,t){return e.filter((e,n)=>t.includes(n))}function PL(e,t,n=void 0){const i=e.getAlternativeDimensions(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function BL(e,t,n){ok(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function FL(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then(()=>t):Promise.resolve(t)}function WL(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function zL(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function VL(e,t,n,i,o,s){await e.autoSortDimension(t),ok(e.hcProperties.qInterColumnSortOrder,n+s),i.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function HL(e,t,n=void 0){const i=e.getAlternativeMeasures(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function jL(e,t){ok(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function UL(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<1e3}function $L(e,t,n,i){const o=e-n.length;let[s]=n.splice(n.length-1,1);return i.splice(0,0,s),[s]=i.splice(o+1,1),n.splice(t,0,s),Promise.resolve(s)}const GL=class{constructor(e){const t=e||{};this.dimensionDefinition=t.dimensionDefinition||{max:0},this.measureDefinition=t.measureDefinition||{max:0},this.dimensionProperties=t.dimensionProperties??{},this.measureProperties=t.measureProperties??{},this.globalChangeListeners=t.globalChangeListeners,this.app=t.app}setProperties(e){this.properties=e,this.isAnalysisType=this.properties?.metaData?.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}type(){throw new Error("Must override this method")}getDimensions(){return[]}getDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions();return DL(t,e)??DL(n,e)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw TL}addDimensions(){throw TL}removeDimension(){throw TL}removeDimensions(){throw TL}autoSortDimension(){throw TL}replaceDimension(){throw TL}getSorting(){throw TL}createLibraryDimension(e,t){let n=Mg()(!0,{},this.dimensionProperties||{},t||{});return n=NL(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=LL,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let i=Mg()(!0,{},this.dimensionProperties||{},n||{});return i=NL(i),e||(i.qDef.qFieldDefs=[],i.qDef.qFieldLabels=[],i.qDef.qSortCriterias=[]),i.qDef.qFieldDefs=[e],i.qDef.qFieldLabels=t?[t]:[""],i.qDef.qSortCriterias=LL,i.qDef.autoSort=!0,i}addFieldDimension(e,t,n){const i=this.createFieldDimension(e,t,n);return this.addDimension(i)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){const e=[t];return this.dimensionDefinition.max?.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasures(){return[]}getAlternativeMeasures(){throw new Error("Method not implemented.")}addMeasure(){throw TL}addMeasures(){throw TL}removeMeasure(){throw TL}removeMeasures(){throw TL}autoSortMeasure(){throw TL}replaceMeasure(){throw TL}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return DL(t,e)??DL(n,e)}createExpressionMeasure(e,t,n){const i=Mg()(!0,{},this.measureProperties||{},n||{});return i.qDef=i.qDef??{},i.qDef.qNumFormat=i.qDef.qNumFormat??{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t,!1)}createLibraryMeasure(e,t){const n=Mg()(!0,{},this.measureProperties||{},t||{});return n.qDef=n.qDef??{},n.qDef.qNumFormat=n.qDef.qNumFormat??{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(n.qDef),n.qLibraryId=e,n.qDef.autoSort=!0,delete n.qDef.qDef,delete n.qDef.qLabel,n}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!1)}addAltLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure({expression:e}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const i=this.createExpressionMeasure(e,t,n);return this.addMeasure(i,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=[this.getDimensions().length-e];return this.measureDefinition.max.apply(null,t)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}},KL=function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?function(e,t,n){const i=e.getDimensions();return i.splice(n,0,t),e.autoSortDimension(t).then(async()=>(BL(e,i,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then(()=>t):Promise.resolve(t)}(e,t),t))}(e,t,o):Promise.resolve(t)},QL=async function(e,t){!function(e,t){sk(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},YL=async function(e,t){!function(e,t){sk(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)},ZL=function(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then(()=>{delete n.isAlternative})},XL=class extends GL{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?nk.getValue(e,`${this.path}.qHyperCubeDef`):e.qHyperCubeDef,this.hcProperties&&(function(e){const t=e;t.hcProperties.qDimensions=t.getDimensions()??[],t.hcProperties.qMeasures=t.getMeasures()??[],t.hcProperties.qInterColumnSortOrder=t.hcProperties.qInterColumnSortOrder??[],t.hcProperties.qLayoutExclude=t.hcProperties.qLayoutExclude??{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},t.hcProperties.qLayoutExclude.qHyperCubeDef=t.hcProperties.qLayoutExclude.qHyperCubeDef??{qDimensions:[],qMeasures:[]},t.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=t.getAlternativeDimensions()??[],t.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=t.getAlternativeMeasures()??[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=ML(this.hcProperties.qDimensions),this.hcProperties.qMeasures=ML(this.hcProperties.qMeasures)))}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qDimensions??[]}getDimensionLayout(e){return this.getDimensionLayouts().filter(t=>e===t.cId)[0]}getDimensionLayouts(){const e=OL(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const i=NL(e);return zL(this,t)?PL(this,i,n):KL(this,i,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),i=n.length,o=[];let s=0;for await(const r of e){if(WL(this,n))return o;const e=NL(r);if(zL(this,t)){const t=await PL(this,e);o.push(t)}else n.length<this.maxDimensions()&&(await VL(this,e,i,n,o,s),s++)}return o}removeDimension(e,t){return t?ZL(this,e):QL(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),i=this.getDimensions();if(0===e.length)return[];let o=[];const s=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=qL(n,e);for await(const e of s)await ZL(this,e)}else if(i.length>0){o=qL(i,e);for await(const e of s)await QL(this,e)}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const i=e.getDimensions(),o=i[t],s={...n,qDef:{...n.qDef,cId:EL()}};return i[t]=s,s&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,s,o,t,e.properties,e),s}(this,e,t))}reinsertDimension(e,t,n){const i=IL(e);return zL(this,t)?PL(this,i,n).then(()=>{FL(this,i)}):function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?(i.splice(o,0,t),BL(e,i),FL(e,t)):Promise.resolve(t)}(this,i,n)}moveDimension(e,t){const n=this.getDimensions(),i=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(rk(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[s]=i.splice(0,1);return n.push(s),[s]=n.splice(e,1),i.splice(o,0,s),Promise.resolve(s)}(e,t,n,i):e>=n.length&&t<n.length?Promise.resolve($L(e,t,n,i)):Promise.resolve(function(e,t,n,i){const o=e-n.length,s=t-n.length;rk(i,o,s)}(e,t,n,i))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const i=t?.qLibraryId&&(o=t.qLibraryId,(s=n)&&s.find(e=>e.qInfo.qId===o)||null);var o,s;return i&&RL(i.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{const i=t?.qDef?.qFieldDefs&&((e,t)=>{const n=(e=>{const t=[];return e.forEach(e=>{t.push((e=>{const t=e;return t.isDateField=(e=>e?.qDerivedFieldData&&(e?.qTags?.indexOf("$date")>-1||e?.qTags?.indexOf("$timestamp")>-1))(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach(n=>{n.qFieldDefs.forEach(i=>{var o;t.push({qName:i.qName,displayName:(o=i.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:i.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),i=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find(t=>t.qName===e)||null)(i,n)||null})(t.qDef.qFieldDefs[0],n);return i&&RL([i],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=OL(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const i=IL(e);return UL(this,t)?HL(this,i,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),e.autoSortMeasure(t).then(()=>(jL(e,i),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then(()=>t),t))):Promise.resolve()}(this,i,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),i=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,n))return!1;const s=IL(e);return UL(this,t||!1)?(HL(this,s),i.push(s)):n.length<this.maxMeasures()&&(await function(e,t,n,i,o){const s=e.getDimensions(),r={...t};return r.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},ok(e.hcProperties.qInterColumnSortOrder,s.length+n.length+o),n.push(r),i.push(r),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,r,e.properties,e),Promise.resolve(i)}(this,s,n,i,o),o++),!0}),i}removeMeasure(e,t){return t?function(e,t){return e.getAlternativeMeasures().splice(t,1)}(this,e):YL(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();let o=[];if(0===e.length)return o;if(t&&i.length>0)o=qL(i,e),function(e,t){const n=e,i=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=i}(this,e);else if(n.length>0){o=qL(n,e);const t=[...e].sort((e,t)=>t-e);for await(const e of t)await YL(this,e)}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const i=e.getMeasures(),o=i[t],s={...n,qDef:{...n.qDef,cId:EL()}};return i[t]=s,s&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,s,o,t,e.properties,e),s}(this,e,t))}reinsertMeasure(e,t,n){const i=IL(e);return UL(this,t)?HL(this,i,n):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),jL(e,i),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then(()=>t):Promise.resolve(t)}(e,t)):Promise.resolve(t)}(this,i,n)}moveMeasure(e,t){const n=this.getMeasures(),i=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(rk(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,i){const o=t-n.length;let[s]=i.splice(0,1);return n.push(s),[s]=n.splice(e,1),i.splice(o,0,s),Promise.resolve(s)}(e,t,n,i):e>=n.length&&t<n.length?$L(e,t,n,i):Promise.resolve(function(e,t,n,i){const o=e-n.length,s=t-n.length;rk(i,o,s)}(e,t,n,i))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){nk.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},JL=()=>{};function eE(e,t){return void 0===e?()=>t:()=>e}function tE(e){const t=e||{};return{min:"function"==typeof t.min?t.min:eE(t.min,0),max:"function"==typeof t.max?t.max:eE(t.max,1e3),added:t.added||t.add||JL,description:t.description||JL,moved:t.moved||t.move||JL,removed:t.removed||t.remove||JL,replaced:t.replaced||t.replace||JL,isDefined:()=>!!e}}function nE(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(e,n,{}),dimensions:tE(e.dimensions),measures:tE(e.measures)}}function iE(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(nE)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function oE(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:iE(n.qae),component:n.component||{},create:e=>kL(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:n?.dataHandler??(e=>new XL(e))}:{}};return Object.keys(n).forEach(e=>{i[e]||(i.definition[e]=n[e])}),i}function sE(e){return Er("MuiIcon",e)}Dr("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rE=_r("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Vr(n.color)}`],t[`fontSize${Vr(n.fontSize)}`]]}})(Xa(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),aE=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:s="inherit",component:r="span",fontSize:a="medium",...l}=n,c={...n,baseClassName:i,color:s,component:r,fontSize:a},d=(e=>{const{color:t,fontSize:n,classes:i}=e;return Lt({root:["root","inherit"!==t&&`color${Vr(t)}`,`fontSize${Vr(n)}`]},sE,i)})(c);return(0,_t.jsx)(rE,{as:r,className:kt(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})});aE.muiName="Icon";const lE=aE,cE=e=>Yd((e=>({...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 dE({d:e}){const t=Ur();let n="inherit",i=t.palette.success.main;e.missing?i=t.palette.warning.main:e.error&&(n="error",i=t.palette.error.main);const o={color:i},s=(0,_t.jsx)(yd,{style:{lineHeight:"30px",paddingRight:t.spacing(1)},children:(0,_t.jsx)(lE,{children:e.missing||e.error?(0,_t.jsx)(cE,{style:o}):(0,_t.jsx)(Wm,{style:o})})});return(0,_t.jsxs)(ud,{container:!0,alignItems:"center",wrap:"nowrap",children:[(0,_t.jsx)(ud,{children:s}),(0,_t.jsx)(ud,{container:!0,sx:{minWidth:0},wrap:"nowrap",children:(0,_t.jsxs)(yd,{noWrap:!0,component:"p",children:[(0,_t.jsx)(yd,{component:"span",variant:"subtitle2",color:n,children:e.description}),(0,_t.jsx)(yd,{component:"span",children:" "}),(0,_t.jsx)(yd,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400},children:e.label})]})})]})}function hE({data:e}){const t=Ur();return(0,_t.jsx)(ud,{container:!0,style:{maxWidth:"300px",overflow:"hidden"},children:e.map((e,n)=>{const i=e.descriptions.map((e,t)=>(0,_t.jsx)(dE,{d:e},t));return i.length>0&&(0,_t.jsxs)(ud,{container:!0,direction:"column",style:{paddingBottom:t.spacing(2)},children:[(0,_t.jsx)(yd,{noWrap:!0,variant:"subtitle1",align:"left",color:"textSecondary",children:e.title},n),i]},n)})})}function uE({title:e="Error",message:t="",data:n=[]}){const[i,o]=yp(),[s,r]=yp(),[a,l]=yp(),c=n.some(e=>e.descriptions&&e.descriptions.length>0),d=!!o&&!!r&&!!l&&r.height+l.height>o.height,h=!!o&&!!r&&!!l&&r.width+l.width<=o.width,u=c&&!!o&&!!r&&!!l&&(!d||h);return(0,_t.jsxs)(ud,{ref:i,container:!0,direction:"column",wrap:"wrap",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"},children:[(0,_t.jsxs)(ud,{ref:s,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(cE,{style:{fontSize:"38px"}})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"h6",align:"center","data-tid":"error-title",children:e})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"subtitle1",align:"center","data-tid":"error-message",children:t})})]}),u?(0,_t.jsx)(hE,{data:n}):null,c?(0,_t.jsx)(ud,{ref:a,"aria-hidden":!0,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,top:0},children:(0,_t.jsx)(hE,{data:n})}):null]})}n.dn(cE);const gE="Progress",pE={root:`${gE}-root`,front:`${gE}-front`,back:`${gE}-back`},mE=_r("div")(({theme:e})=>({[`&.${pE.root}`]:{position:"relative",display:"inline-block"},[`& .${pE.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${pE.back}`]:{color:e.palette.divider}})),fE={small:16,medium:32,large:64,xlarge:128};function bE({size:e="medium",...t}){const n=fE[e];return(0,_t.jsxs)(mE,{className:pE.root,children:[(0,_t.jsx)(Fc,{variant:"determinate",value:100,className:pE.back,size:n,thickness:3,...t}),(0,_t.jsx)(Fc,{variant:"indeterminate",disableShrink:!0,className:pE.front,size:n,thickness:3,...t})]})}const vE={stripes:"LongRunningQuery-stripes"},CE=_r(ud)(()=>({[`& .${vE.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 _E({cancel:e,translator:t,...n}){return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsxs)(CE,{container:!0,direction:"column",alignItems:"center",gap:2,children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(bE,{})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"h6",align:"center","data-tid":"update-active",children:t.get("Object.Update.Active")})})]}),(0,_t.jsx)(ud,{...n,children:(0,_t.jsx)(Bu,{variant:"contained",onClick:e,children:t.get("Cancel")})})]})}function yE({retry:e,translator:t,...n}){return(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(cE,{style:{fontSize:"38px"}})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(yd,{variant:"h6",align:"center","data-tid":"update-cancelled",children:t.get("Object.Update.Cancelled")})}),(0,_t.jsx)(ud,{children:(0,_t.jsx)(Bu,{variant:"contained",onClick:e,...n,children:t.get("Retry")})})]})}function wE({canCancel:e,canRetry:n,api:i}){const{translator:o}=(0,t.useContext)(rp);return(0,_t.jsxs)(ud,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:vE.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:[e&&(0,_t.jsx)(_E,{cancel:i.cancel,translator:o,className:vE.cancel}),n&&(0,_t.jsx)(yE,{retry:i.retry,translator:o,className:vE.retry})]})}function AE(){return(0,_t.jsx)(ud,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:(0,_t.jsx)(bE,{size:"large"})})}const SE={width:0,height:0},xE="Header",kE={containerStyle:`${xE}-containerStyle`,containerTitleStyle:`${xE}-containerTitleStyle`},LE=_r(ud)(({theme:e})=>({[`&.${kE.containerStyle}`]:{flexGrow:0},[`&.${kE.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),EE=function({id:e,layout:n,sn:i,anchorEl:o,hovering:s,focusHandler:r,titleStyles:a={},isRtl:l,translator:c}){const d=n.showTitles&&!!n.title,h=n.showTitles&&!!n.subtitle,u=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[g,p]=(0,t.useState)([]);(0,t.useEffect)(()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions(e=>{p([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])})},[i]);const m=[kE.containerStyle,...d||h?[kE.containerTitleStyle]:[]],f=s||u,b=(0,_t.jsx)(k_,{show:!1,selections:{show:u,api:i.component.selections,onKeyDeactivate:r.refocusContent},actions:g,popover:{show:f,anchorEl:o},focusHandler:r,layout:n,isRtl:l});return(0,_t.jsxs)(LE,{container:!0,wrap:"nowrap",className:m.join(" "),children:[(0,_t.jsx)(ud,{size:"grow",sx:{minWidth:0},dir:l?"rtl":"ltr",children:(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",direction:"column",children:[d?(0,_t.jsx)(vC,{title:n.title,children:(0,_t.jsx)(yd,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:a.main,children:n.title})}):(0,_t.jsx)("div",{id:`${e}_title`,style:SE,"aria-label":c.get("Accessibility.Object.NoTitle")}),h&&(0,_t.jsx)(vC,{title:n.subtitle,children:(0,_t.jsx)(yd,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:a.subTitle,children:n.subtitle})})]})}),(0,_t.jsx)(ud,{children:b})]})},DE=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude");return e.filter(e=>!1!==e.showInFooter).map(e=>{let i="";switch(e.type){case"search":i+=(e=>{let t="",n="";const i=e.options?.mode;switch(i){case"beginning_of_word":t="*^",n="*";break;case"ends_with":t="*";break;case"starts_with":n="*";break;case"matches_exactly":break;default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case"condition":i+=(e=>{const{options:t}=e,n="general"===t?.mode,i="fixed_value"===t?.modifier?.type,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!i&&(!t.firstValue?.aggregator||!t.firstValue?.field)||i&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let s,r,a="=";n&&i?(s=`${t.conditionField?.aggregator}(${EC(t.conditionField?.field)})`,r=`${t.firstValue?.fixedValue}`):!n&&i?(s="",r=`${t.firstValue?.fixedValue}`,a=""):n||i?(s=`${t.conditionField?.aggregator}(${EC(t.conditionField?.field)})`,r=`${t.firstValue?.aggregator}(${EC(t.firstValue?.field)})`):(s=`${EC(e.field)}`,r=`${t.firstValue?.aggregator}(total ${EC(t.firstValue?.field)})`);const l=`${a}${s}${o[0]}${r}`;let c="";if(o.length>1){if(!i&&(!t.secondValue?.aggregator||!t.secondValue?.field)||i&&!t.secondValue?.fixedValue)return"";let e,r;n&&i?(e=`${t.secondValue?.fixedValue}`,r=` and ${s}`):!n&&i?(e=`${t.secondValue?.fixedValue}`,r=""):n||i?(e=`${t.secondValue?.aggregator}(${EC(t.secondValue?.field)})`,r=` and ${s}`):(e=`${t.secondValue?.aggregator}(total ${EC(t.secondValue?.field)})`,r=` and ${s}`),c=`${r}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case"clear_selection":i+=t.get("Object.FilterLabel.All");break;default:i+=e.options?.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==i&&(i=i.replace(/^"|"$/g,""),e.exclude&&(i=`${n} ${i}`)),{field:e.field,label:i}}).filter(e=>""!==e.label)},IE=(e,t)=>DE(e,t).map(e=>`${e.field}: ${e.label}`).join("; "),NE=e=>Yd((e=>({...e,shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function RE({styles:e,children:t}){return(0,_t.jsx)(yd,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"},children:t})}n.dn(NE);const TE=function({layout:e,translator:t,filtersFootnoteString:n,footerStyle:i,isRtl:o}){const s=DE(e?.filters??[],t),r={color:i?.color,fontFamily:i?.fontFamily,fontSize:i?.fontSize,fontWeight:i?.fontWeight};return(0,_t.jsx)(vC,{title:n,children:(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",sx:{backgroundColor:i?.backgroundColor,padding:i?.padding,borderTop:i?.borderTop},"data-testid":"filters-footnote",justifyContent:o?"flex-end":"flex-start",children:[(0,_t.jsxs)(ud,{sx:{display:"flex"},children:[(0,_t.jsx)(NE,{style:{fontSize:"12px",color:i.color,margin:"auto"}}),(0,_t.jsxs)(RE,{styles:{...r,marginLeft:"2px"},children:[t.get("Object.FiltersApplied"),"  "]})]}),(0,_t.jsx)(ud,{sx:{display:"flex"},children:s.map(e=>(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",children:[(0,_t.jsx)(RE,{styles:{...r,fontWeight:"bold"},children:`${e.field}:`}),(0,_t.jsxs)(RE,{styles:r,children:["   ",e.label,"  "]})]},`${e.field}-${e.label}`))})]})})},ME="Footer-itemStyle",OE=_r(ud)(()=>({[`& .${ME}`]:{minWidth:0,width:"100%"}})),qE="njs-cell-footer",PE=function({layout:e,titleStyles:t={},translator:n,flags:i,isCardTheme:o,isRtl:s}){const r=t.footer,a=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,l=IE(e?.filters??[],n),c=!e?.footnote&&a&&l,d=i?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),h=o?"1px":"6px";return e&&e.showTitles&&(e.footnote||c)?(0,_t.jsx)(OE,{container:!0,children:(0,_t.jsxs)(ud,{className:ME,"data-testid":qE,sx:{paddingTop:e=>d?h:e.spacing(1)},children:[e.footnote&&(0,_t.jsx)(vC,{title:e.footnote,children:(0,_t.jsx)(yd,{noWrap:!0,variant:"body2",className:qE,style:r,align:s?"right":"left",children:e.footnote})}),c&&(0,_t.jsx)(TE,{layout:e,translator:n,filtersFootnoteString:l,footerStyle:r,isRtl:s})]})}):null};class BE{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 FE=function({sn:e,snOptions:n,snPlugins:i,layout:o,appLayout:s,halo:r,cellId:a}){const{component:l}=e,{theme:c,language:d,constraints:h,interactions:u,keyboardNavigation:g}=(0,t.useContext)(rp),[p]=(0,t.useState)(()=>new BE),[m,f]=(0,t.useState)(!1),[b,v]=(0,t.useState)(0),[C,_,y]=yp(),[w,A]=(0,t.useState)(null),S=(0,t.useCallback)(e=>{e&&A(e)},[]);return(0,t.useEffect)(()=>{if(w)return l.created({options:n}),l.mounted(w),f(!0),()=>{p.stop(),l.willUnmount()}},[w,l]),(0,t.useEffect)(()=>{m&&w&&_&&(!l.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||p.schedule(()=>{const t=[];return h.passive||t.push("passive"),h.active||t.push("interact"),h.select||t.push("select"),h.edit||t.push("edit"),r.app&&r.app.session&&t.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:i,embed:r.public.nebbie,context:{constraints:h,interactions:u,theme:r.public.theme,appLayout:s,keyboardNavigation:g,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(s||{}).qLocaleInfo,permissions:t}}})).then(e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(b+1))})}))},[_,n,i,w,y,o,s,c,d,h,u,m,g]),(0,_t.jsx)("div",{ref:C,"data-render-count":b,style:{position:"relative",height:"100%"},className:"njs-viz",children:(0,_t.jsx)("div",{ref:S,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}})})},WE={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart","sn-table":"straightTableV2",waterfallchart:"waterfallChart","sn-tabbed-container":"tabContainer","sn-slider":"slider"};class zE extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const VE=["action-button","sn-nav-menu","filterpane","sn-shape"],HE=[...VE,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],jE=e=>-1===VE.indexOf(e),UE=e=>jE(e)?"10px 10px 0":"10px 0 0",$E=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach(([e,t])=>{$E.set(e,t)});const GE=$E,KE=(e,t)=>{switch(t.type){case"LOADING":return{...e,loading:!0};case"LOADED":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization};case"RENDER":return{...e,loaded:!0,loading:!1,longRunningQuery:!1,error:null};case"LONG_RUNNING_QUERY":return{...e,longRunningQuery:!0};case"ERROR":return{...e,loading:!1,longRunningQuery:!1,error:t.error};default:throw new Error(`Unhandled type: ${t.type}`)}};function QE({delay:e=750}){const[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{const t=setTimeout(()=>i(!0),e);return()=>clearTimeout(t)},[]),n?(0,_t.jsx)(AE,{}):null}const YE=e=>!e.qError||7005===e.qError.qErrorCode,ZE=e=>e&&e.qError&&7005!==e.qError.qErrorCode,XE=(e,t,n,i,o)=>[...Array(Math.max(e,t.length)).keys()].map(e=>{const s=!(!t||!t[e]),r=s&&t[e].qError&&7005===t[e].qError.qErrorCode,a=s&&!r&&t[e].qError,l=r&&t[e].qCalcCondMsg,c=`${a?i:r?l||o:s&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!s&&!a&&e>=t.length||r,error:a}}),JE=e=>e&&(Array.isArray(e)?e:[e])||[],eD=(e,t,n,i)=>{const o=i.dimensions.min(),s=i.measures.min(),r=i.resolveLayout(t),a=XE(o,JE(r.qDimensionInfo||r.qItems),e=>i.dimensions.description(n,e,{}),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=XE(s,JE(r.qMeasureInfo),e=>i.measures.description(n,e,{}),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:a,reqMeasErrors:l}};function tD(){return new(Xu())}const nD=(0,t.forwardRef)(({halo:e,model:n,initialSnOptions:i,initialSnPlugins:o,initialError:s,onMount:r,currentId:a,emitter:l,navigation:c,onError:d},h)=>{const{app:u,types:g}=e,{nebbie:p}=e.public,{theme:m,translator:f,language:b,keyboardNavigation:v,externalFocusManagement:C,disableCellPadding:_=!1,navigation:y,queryParams:w}=(0,t.useContext)(rp),[A]=(0,t.useState)(l||tD),S=Ur(),[x,k,L]=yp(),[E,D]=(0,t.useReducer)(KE,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=s)?{title:I.message}:null,sn:null,visualization:null});var I;const[N,R]=(0,t.useState)(n),[T,{validating:M,canCancel:O,canRetry:q},P]=Cp(N),[B]=_p(u),[F,W,z]=yp(),[V,H]=(0,t.useState)(i),[j,U]=(0,t.useState)(o),$=`njs-cell-${a}`,[G]=H_(u,N,[`#${$}`,".njs-action-toolbar-popover"]),[K,Q]=(0,t.useState)(!1),Y=(0,t.useRef)({enter:null,leave:null}),{titleStyles:Z,bgColor:X,bgImage:J,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:n,app:i,themeName:o,disableThemeBorder:s,queryParams:r})=>{const{hostConfig:a}=(0,t.useContext)(rp),l=(0,t.useMemo)(()=>{if(e&&n){const o=e.components?e.components.find(e=>"general"===e.key):null,l=(t=e.visualization,WE[t.toLowerCase()]?WE[t.toLowerCase()]:t),c={main:AS(o,"main",n,l),footer:AS(o,"footer",n,l),subTitle:AS(o,"subTitle",n,l)},d=yS(o,n,l),h=_S(o,i,r,a?.host),u=function(e,t,n,i){const o=bS(e?.borderColor,"","borderColor",t,n);let s=e?.borderWidth;return!s&&!i&&(s=fS("","borderWidth",t,n)),s&&o?`${s} solid ${o}`:void 0}(o,n,l,s),g=function(e,t,n){return e?.borderRadius||fS("","borderRadius",t,n)}(o,n,l);return{titleStyles:c,bgColor:d,bgImage:h,border:u,borderRadius:g,boxShadow:wS(o,n,l)}}var t;return{}},[e,n,i,o,s]);return l})({layout:T,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:V?.disableThemeBorder,queryParams:w}),ie=!("rtl"!==V?.direction),oe=(0,t.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,t.useEffect)(()=>{z_(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&z&&z.focus())},oe.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()}},[]),(0,t.useEffect)(()=>{if(s)return void r();if(!B||!T)return;if(E.visualization===T.visualization&&E.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:s,aggMinM:r,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,s=0,r=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],h=d.dimensions.min(),u=d.measures.min(),g=d.resolveLayout(n),p=JE(g.qDimensionInfo||g.qItems),m=JE(g.qMeasureInfo),f=p.filter(YE),b=m.filter(YE);if(o+=h,s+=u,(f.length<h||b.length<u)&&(i=!0),i=i||p.some(ZE)||m.some(ZE),g.qError){r=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:s,hasLayoutErrors:r,layoutErrors:l}})(e,n,t),c=[],d=[];let h=null;for(let s=0;s<n.length;++s){const r=n[s];if(!a&&o){const n=h||await i.getProperties();h=n;const o=eD(e,t,n,r);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const u=c.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Dimensions",[u,s]),p=d.filter(e=>!(e.missing||e.error)).length,m=e.get("Visualization.Incomplete.Measures",[p,r]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],b=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:b}]})(f,T,e.generator.qae.data,N);D(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:E.sn,layout:T,model:N})})(E.sn);const e=g.getSupportedVersion(T.visualization,T.version);return(async(e,t)=>{D({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c,onMount:d,navigation:h})=>{try{const u=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i}),g=u.create({model:o,app:s,selections:r,nebbie:a,focusHandler:l,emitter:c,navigation:h});g&&(e({type:"LOADED",sn:g,visualization:n}),d())}catch(t){e(i?{type:"ERROR",error:{title:t.message,errorObject:t}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}}),d()}})({dispatch:D,types:g,visualization:e,version:t,model:N,app:u,selections:G,nebbie:p,focusHandler:oe.current,emitter:A,onMount:r,navigation:c??y})})(T.visualization,e),()=>{}},[g,E.sn,N,G,T,B,b]),(0,t.useEffect)(()=>{if(!M)return;const e=setTimeout(()=>D({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[M]),(0,t.useImperativeHandle)(h,()=>({getQae:()=>E.sn.generator.qae,getExtensionDefinition:()=>E.sn.generator.definition.ext,support(e,t,n){if(T&&E.loaded&&!E.error){const i=t||E.sn.generator.definition.ext?.support;if(i)return function(e,t,n){const i=t[e];return"function"==typeof i?i.call(null,n):"boolean"==typeof i&&i}(e,i,n||T)}return!1},toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:H,setSnPlugins:U,setModel:R,getImperativeHandle:()=>E.sn?.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>E.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=k;let n=JSON.parse(JSON.stringify(T));return"function"==typeof E.sn.component.setSnapshotData&&(n.snapshotData||(n.snapshotData={}),n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:f.language(),theme:S.name,appLayout:B,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)},getHypercubePath:()=>E.sn.generator.definition.ext?.options?.hypercubePath}),[E.sn,W,k,T,S.name,B]);let se=null;E.loading&&!E.longRunningQuery?se=(0,_t.jsx)(QE,{}):E.error?(d&&d(E.error.errorObject?E.error.errorObject:new zE(E.error.title)),se=(0,_t.jsx)(uE,{...E.error})):E.loaded&&(se=(0,_t.jsx)(FE,{sn:E.sn,halo:e,snOptions:V,snPlugins:j,layout:T,appLayout:B,cellId:a},T.visualization));const re=!!e.public.theme?.getStyle("","","_cards"),ae=e.public.galaxy?.flags;let le,ce;_?(le=!1,ce=void 0):ae?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(le=!1,ce=(({layout:e,isError:t,isCardTheme:n,titleStyles:i,translator:o})=>{if(n){const n=e?.showTitles&&!!e?.title,s=e?.showTitles&&!!e?.subtitle,r=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,a=e?.visualization,l=IE(e?.filters??[],o),c=!e?.footnote&&r&&l,d=e?.showTitles&&(!!e?.footnote||c);let h;return n&&(i.main.padding=UE(a)),s&&(i.subTitle.padding=((e,t)=>{const n=jE(e);return t?n?"0 10px":"0":UE(e)})(a,n)),d&&(-1===VE.indexOf(a)&&(i.footer.borderTop="1px solid #d9d9d9"),i.footer.padding="6px 10px"),(t||-1===HE.indexOf(a))&&(h=`${n||s?"0":"10px"} 10px ${d?"0":"5px"}`),h}})({layout:T,isError:E.error,isCardTheme:re,titleStyles:Z,translator:f})):(le=!0,ce=void 0);const de=GE.get(T?.visualization),he=f.get(de);return(0,_t.jsxs)(bm,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:X||"unset",backgroundImage:J&&J.url?`url(${J.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:J&&J.size,backgroundPosition:J&&J.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:x,id:$,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout(()=>{Q(!0),Y.current.enter=null},250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout(()=>{Q(!1),Y.current.leave=null},750))},children:[(0,_t.jsxs)(ud,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:S.spacing(1)}:{},...E.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${a}_title ${a}_type ${a}_content`,children:[T&&(0,_t.jsx)("div",{id:`${a}_type`,style:SE,"aria-label":he??T.visualization}),L&&T&&E.sn&&(0,_t.jsx)(EE,{layout:T,sn:E.sn,anchorEl:L,hovering:K,focusHandler:oe.current,titleStyles:Z,isRtl:ie,id:a,translator:f,children:" "}),(0,_t.jsx)(ud,{tabIndex:v&&!C?0:-1,onKeyDown:v&&!C?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,size:"grow",className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:F,children:se}),L&&T&&E.sn&&(0,_t.jsx)(PE,{layout:T,titleStyles:Z,translator:f,flags:ae,isCardTheme:re,isRtl:ie})]}),E.longRunningQuery&&(0,_t.jsx)(wE,{canCancel:O,canRetry:q,api:P})]})}),iD=nD;function oD(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function sD(e="/",t,n){const i=[];return Object.keys(t).forEach(o=>{const s=t[o];var r,a;"object"!=typeof n[o]||"object"!=typeof s||Array.isArray(s)?(r=s,a=n[o],(oD(r)&&oD(a)?JSON.stringify(r)===JSON.stringify(a):!Array.isArray(r)&&!Array.isArray(a)&&r===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...sD(`${e}${o}/`,t[o],n[o]))}),i}function rD(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 "${e.info.name}" has no "fn" function`)})}const aD=(e,t,n)=>{if(!e)return Promise.resolve();let i=kk.generate(t,n);return Mg()(!0,t,n),i&&i.length?(i=i.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,i,!0):e.applyPatches(i,!0)):Promise.resolve()},lD=()=>{};async function cD(e,n,i,o,s,r=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:s=async()=>{},onRender:r=()=>{},onError:a=()=>{}}={}){let l,c,d,h=lD,u=null,g=null,p=null,m=null,f=!1;const b=new Promise(e=>{p=e}),v=new Promise(e=>{m=e}),C=e=>()=>{e?.(),m(),r(),f=!0};let _={},y=[];const w=new(Xu());let A={};n.context?.enablePrivateExperimental&&(A={support:e=>!(!g||!f)&&u.current.support(e,c?.support,d),getPropertyPanelDefinition:()=>!(!g||!f)&&(c?c.definition:u.current.getExtensionDefinition().definition),async getHypercubePropertyHandler(){await v;const t=u.current.getExtensionDefinition(),n=t.data,i=await e.getEffectiveProperties();if(n){const o={app:e.app,dimensionDefinition:n.dimensions,measureDefinition:n.measures,dimensionProperties:i.qHyperCubeDef?.qDimensions?.[0]||uk.getDefaultDimension(),measureProperties:i.qHyperCubeDef?.qMeasures?.[0]||uk.getDefaultMeasure(),globalChangeListeners:void 0,path:u.current.getHypercubePath()};return"function"==typeof t.propertyHandler?t.propertyHandler(o):new XL(o)}},toggleFocus(e){u.current.toggleFocus(e)},setOnBlurHandler(e){u.current.setOnBlurHandler(e)},onContextMenu:(...e)=>u.current.onContextMenu(...e)});const S={id:e.id,model:e,async destroy(){await s(),h(),h=lD},async convertTo(t,i=!0,o=!1){if(i){if((s=await e.getLayout())&&!s.qHasSoftPatches&&!s.qExtendsId&&(s.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const i=await mk({halo:n,model:e,cellRef:u,newType:t});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,i.qProperty),i}const i=await e.getEffectiveProperties(),r=await mk({halo:n,model:e,cellRef:u,newType:t,properties:i}),a=r.qProperty;return await aD(e,i,a),r}var s;return await mk({halo:n,model:e,cellRef:u,newType:t})},async toggleDataView(t){let i;if(l||!1===t)l&&!0!==t&&(i=e,await n.app.destroySessionObject(l),l=void 0,c=void 0,d=void 0);else{let t=n.context.dataViewType;const o=await e.getEffectiveProperties();if(!n.types.getSupportedVersion(t)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const s=await mk({halo:n,model:e,cellRef:u,newType:t,properties:o,viewDataMode:!0});i=await n.app.createSessionObject(s.qProperty),l=i.id,c=u.current.getExtensionDefinition(),d=await e.getLayout()}i&&u.current.setModel(i)},get viewDataToggled(){return void 0!==l},addListener(e,t){w.addListener(e,t)},removeListener(e,t){w.removeListener(e,t)},getImperativeHandle:async()=>(await v,u.current.getImperativeHandle()),takeSnapshot:async()=>(await v,u.current.takeSnapshot()),...A,__DO_NOT_USE__:{mount(s){if(g)throw new Error("Already mounted");if(!(s instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return g=s,[h,u]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:s,onMount:r,emitter:a,initialError:l,navigation:c,onError:d}){const{root:h}=e,u=t.createRef(),g=lx(),p=Dd.createPortal((0,_t.jsx)(iD,{ref:u,halo:e,model:i,currentId:g,initialSnOptions:o,initialSnPlugins:s,initialError:l,onMount:r,emitter:a,navigation:c,onError:d}),n,g),m=()=>{h.remove(p),i.removeListener("closed",m)};return i.on("closed",m),h.addCell(g,u),(async()=>{try{await h.add(p,m)}catch(e){m(),r(),d(e)}})(),[m,u]}({halo:n,element:s,model:e,initialSnOptions:_,initialSnPlugins:y,initialError:o,onMount:p,emitter:w,navigation:i,onError:a}),b},async applyProperties(t){const n=sD("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;g?(async()=>{await b,u.current.setSnOptions({..._,...e,onInitialRender:C(t)})})():_={..._,...e,onInitialRender:C(t)}})(e)},plugins(e){(async e=>{rD(e),g?(async()=>{await b,u.current.setSnPlugins(e)})():y=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>e,convert:{async toType(t){const i=await e.getEffectiveProperties(),o=await mk({halo:n,model:e,cellRef:u,newType:t,properties:i}),s=o.qProperty;return await aD(e,i,s),o},async revert(){await e.clearSoftPatches()}}}};return S}({model:e,halo:i,navigation:o,initialError:s,onDestroy:r,onRender:a,onError:l});return c.__DO_NOT_USE__.options(n.options||{}),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}async function dD({type:e,version:t,fields:n,properties:i,extendProperties:o},s,r,a){let l={};const c=[],{modelStore:d}=a;try{const r=s.types.get({name:e,version:t});l=await r.initialProperties(i,o);const a=await r.supernova();n&&await ek({sn:a,properties:l,fields:n,children:c},s),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},l)}catch(t){l=r?null:{qInfo:{qType:e},visualization:e}}if(!r){const e=await s.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),d.set(e.id,e),e}return l}function hD(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const uD=(0,t.forwardRef)(({model:e,halo:n,initialSnOptions:i,initialSnPlugins:o,initialError:s,onMount:r,unmount:a,navigation:l,onError:c},d)=>{const{root:h}=n,[u,g]=(0,t.useState)(e),[p]=Cp(u),{theme:m,modelStore:f}=(0,t.useContext)(rp),[b,v]=(0,t.useState)([]),[C,_]=(0,t.useState)(void 0),[y,w]=(0,t.useState)(void 0),[A,S]=(0,t.useState)(""),x=(0,t.useRef)({cellCount:0,cellsRendered:0,initialRender:!1});l?.setCurrentSheetId?.(u.id),(0,t.useEffect)(()=>{if(p){const e=JSON.stringify(p.cells);if(e===A)return;S(e);const o=async()=>{b.forEach(e=>{h.removeCell(e.currentId)});const e=p.cells;x.cellCount=e.length,x.cellsRendered=0;const o=()=>{x.cellsRendered++,x.cellsRendered!==x.cellCount||x.initialRender||(x.initialRender=!0,i.onInitialRender())},{columns:s,rows:r}=p,a=await Promise.all(e.map(async e=>{let a;const l=new Promise(e=>{a=e}),c=b.find(t=>t.id===e.name);if(c)return c.bounds=hD(e,s,r),delete c.mountedPromise,c;const d=await async function({id:e,options:t,plugins:n,element:i},o,s){const{modelStore:r,rpcRequestModelStore:a}=s,l=`${e}`;let c=a.get(l);c||(c=o.app.getObject(e),a.set(l,c));const d=await c;return r.set(l,d),cD(d,{options:t,plugins:n,element:i},o)}({id:e.name},n,f);return{model:d.model,id:e.name,bounds:hD(e,s,r),cellRef:t.createRef(),currentId:lx(),mounted:a,mountedPromise:l,options:{...i,onInitialRender:o}}}));a.forEach(e=>h.addCell(e.currentId,e.cellRef)),v(a)};o()}},[p]),(0,t.useEffect)(()=>{const e=()=>{u.removeListener("closed",e),a()};return u.on("closed",e),()=>u.removeListener("closed",e)},[u]);const k=(0,t.useMemo)(()=>b?b.map(e=>function(e,t,n,i,o,s,r,a){const{x:l,y:c,width:d,height:h}=e.bounds,u={left:`${l}%`,top:`${c}%`,width:`${d}%`,height:`${h}%`,position:"absolute"},g=t.public.galaxy?.flags;return g?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(u.boxSizing="border-box",u.padding="4px"),(0,_t.jsx)("div",{style:u,children:(0,_t.jsx)(iD,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:i,initialError:o,onMount:s,navigation:r,onError:a})},e.model.id)}(e,n,e.options,o,s,e.mounted,l,c)):[],[b]);(0,t.useEffect)(()=>{const e=p?.components?p.components.find(e=>"general"===e.key):null;_(yS(e,n.public.theme)),w(_S(e,n.app))},[p,n.public.theme,n.app,m]),(0,t.useImperativeHandle)(d,()=>({setModel:g}),[]);const L=!p||void 0===p.height||Number.isNaN(p.height)?"100%":`${Number(p.height)}%`,E=b.map(e=>e.mountedPromise),D=E.filter(e=>!!e);return D.length&&Promise.all(E).then(()=>{r()}),(0,_t.jsx)("div",{className:"njs-sheet",style:{width:"100%",height:L,position:"relative",backgroundColor:C,backgroundImage:y&&y.url?`url(${y.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:y&&y.size,backgroundPosition:y&&y.pos},children:k})}),gD=uD,pD=()=>{};async function mD({id:e,options:n,plugins:i,element:o,onRender:s,onError:r,navigation:a},l,c){const{modelStore:d,rpcRequestModelStore:h}=c,u=`${e}`;let g=h.get(u);g||(g=l.app.getObject(e),h.set(u,g));const p=await g;d.set(u,p);const m=a||("sheet"===p.genericType?function(e,t,n){const{galaxy:i}=e.public;if(i.anything?.sense?.navigation)return i.anything?.sense?.navigation;const o={model:n},s={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:i,rpcRequestModelStore:r}=t,a=`${n}`;let l,c=r.get(a);c||(c=e.app.getObject(n),r.set(a,c));try{if(l=await c,"sheet"!==l.genericType)return}catch(e){return}i.set(a,l),o.sheetRef?.current?.setModel?.(l),o.model=l,s.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return z_(s),s}(l,c,p):void 0);return"sheet"===p.genericType?async function(e,n,i,o,s,r=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:s=async()=>{},onRender:r=()=>{},onError:a=()=>{}}={}){let l=pD,c=null,d=null,h=null,u=null;const g=new Promise(e=>{h=e}),p=new Promise(e=>{u=e}),m=e=>()=>{e?.(),u(),r()};let f={},b=[];const v={id:e.id,model:e,navigation:i,getImperativeHandle:async()=>(await p,c.current.getImperativeHandle()),async destroy(){await s(),l(),l=pD},__DO_NOT_USE__:{mount(s){if(d)throw new Error("Already mounted");if(!(s instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=s,[l,c]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:s,onMount:r,initialError:a,navigation:l,onError:c}){const{root:d}=e,h=t.createRef();let u;const g=()=>{d.remove(u)};return u=Dd.createPortal((0,_t.jsx)(gD,{ref:h,halo:e,model:i,initialSnOptions:o,initialSnPlugins:s,initialError:a,onMount:r,unmount:g,navigation:l,onError:c}),n,i.id),l.setSheetRef(h),d.add(u,g),[g,h]}({halo:n,element:s,model:e,initialSnOptions:f,initialSnPlugins:b,initialError:o,onMount:h,navigation:i,onError:a}),g},async applyProperties(t){const n=sD("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await g,c.current.setSnOptions({...f,...e,onInitialRender:m(t)})})():f={...f,...e,onInitialRender:m(t)}})(e)},plugins(e){(async e=>{rD(e),d?(async()=>{await g,c.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return v}({model:e,halo:i,navigation:o,initialError:s,onDestroy:r,onRender:a,onError:l});return n.options&&c.__DO_NOT_USE__.options(n.options),n.plugins&&c.__DO_NOT_USE__.plugins(n.plugins),n.element&&await c.__DO_NOT_USE__.mount(n.element),c}(p,{options:n,plugins:i,element:o,onRender:s,onError:r},l,m):cD(p,{options:n,plugins:i,element:o,onRender:s,onError:r},l,m)}function fD(e={}){return{isEnabled:t=>!0===e[t]}}n.dn(fD);var bD=n(77843),vD=n.n(bD);const CD={};function _D(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,s)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:s}=n,r={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&s&&s.deps&&s.deps.properties)||vD()(e,s.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!CD[o]){const s=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${s}' is not a fuction, wrap load promise in function`);const r=(i||n.load)({name:e,version:t}),a=Promise.resolve(r);CD[o]=a.then(e=>{if(!e)throw new Error(`load() of visualization '${s}' resolved to an invalid object`);return e}).catch(e=>{throw console.warn(e),new zE(`Failed to load visualization: '${s}'`,e)})}return CD[o]}(r.name,r.version,t,n.load).then(e=>(i=i||oE(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n={qInfo:{qType:r.name},visualization:r.name,version:r.version,showTitles:!0,...JSON.parse(o)};return t?(Mg()(!0,n,e),n):{...n,...e}})}};return r}({name:e,version:o},t,s),i=null},getMatchingVersionFromProperties:e=>{i||(i=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=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const yD={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${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())}};yD.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const wD=(e={},t={})=>({...e,...t}),AD=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t),SD=function e(n={}){const i=function(e){const t=Qu({initial:e});return Object.keys(Yu).forEach(e=>{t.translator.add(Yu[e])}),{translator:t.translator}}(n.context.language);function s(e,r){if(r)return s.createConfiguration(r)(e);let a={...n.context,translator:i.translator,hostConfig:n.hostConfig};const[l,c]=function({app:e,context:n}){let i,s=!1;const r=new Promise(e=>{i=e}),a=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","7.4.0"),l.setAttribute("data-app-id",e.id),document.body.appendChild(l),n&&lp(n);const c=dp(e.id),d=hp(e.id),h=o.createRoot(l);h.render((0,_t.jsx)(up,{ref:a,initialContext:n,renderCallback:i,modelStore:c,selectionStore:d}));const u={},g=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach(t=>{u[t].current?.toggleFocus(t===e)})},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add:(e,t)=>(async()=>{await r,p.push(e),g.push(t),a?.current?.setComps(p)})(),remove(e){s||(async()=>{await r;const t=p.indexOf(e);-1!==t&&(g[t]?.(),p.splice(t,1),g.splice(t,1)),a?.current?.setComps(p)})()},setMuiThemeName(e){(async()=>{await r,a?.current?.setMuiThemeName(e)})()},context(e){(async()=>{await r,e&&lp(e),a?.current?.setContext(e)})()},destroy(){s=!0,g.forEach(e=>{e&&e()}),c.destroy(),h.unmount(),document.body.removeChild(l)}},c,d,a,r]}({app:e,context:a}),d=function({themes:e=[],loadTheme:t,root:n}={}){const i=op();return{setTheme:async o=>{let s=e.filter(e=>e.id===o)[0],r="dark"===o?"dark":"light";if(!s&&t&&(s={load:t}),s&&s.load)try{const e=await Promise.race([s.load(o),sp(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(r="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(r))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:r},o),n.setMuiThemeName(r)},externalAPI:i.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:l});a.themeApi=d.externalAPI;const h={galaxy:{translator:i.translator,theme:d.externalAPI,flags:fD(n.flags),deviceType:(p=n.context.deviceType,"auto"!==p?p:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"),hostConfig:n.hostConfig,anything:n.anything},theme:d.externalAPI,translator:i.translator,nebbie:null},u={app:e,root:l,config:n,public:h,context:a,types:null},g=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=_D(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>{if(n[e])return n[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map(e=>({name:e,versions:Object.keys(n[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(CD).forEach(t=>{t.split("__")[0]===e&&(CD[t]=void 0)})}(e)}}}({halo:u});var p;n.types.forEach(e=>g.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let m=new Promise(e=>{(async()=>{if(await d.setTheme(n.context.theme),n.hostConfig&&it&&it.getWebResourceAuthParams){const{queryParams:e}=await it.getWebResourceAuthParams({hostConfig:n.hostConfig});a.queryParams=e,l.context(a)}})().then(e)}),f=null,b=null;const v={render:async e=>{await m,e.signal?.throwIfAborted();const t=e.id?mD(e,u,c):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:s,element:r,extendProperties:a,navigation:l,onRender:c,onError:d},h,u){let g={};const p=[],{modelStore:m,subscribe:f}=u;let b;try{const o=h.types.get({name:e,version:t});g=await o.initialProperties(i,a);const s=await o.supernova();n&&await ek({sn:s,properties:g,fields:n,children:p},h),i&&s&&s.qae.properties.onChange&&s.qae.properties.onChange.call({},g)}catch(t){b=t,g={qInfo:{qType:e},visualization:e}}const v=await h.app.createSessionObject(g);p.length>0&&await v.setFullPropertyTree({qProperty:g,qChildren:p}),m.set(v.id,v);const C=f(v);return cD(v,{options:o,plugins:s,element:r,onRender:c,onError:d},h,l,b,async()=>{await h.app.destroySessionObject(v.id),C()})}(e,u,c);if(e.signal){const n=()=>{t.then(e=>e?.destroy()).catch(()=>{})};return e.signal.addEventListener("abort",n,{once:!0}),function(e,t){if(!t)return e;let n;"function"==typeof t.throwIfAborted&&t.throwIfAborted();const i=new Promise((e,t)=>{n=t}),o=()=>n?.(t.reason);return t.addEventListener("abort",o,{once:!0}),Promise.race([e,i]).finally(()=>{t.removeEventListener("abort",o)})}(t,e.signal).finally(()=>{e.signal.removeEventListener("abort",n)})}return t},destroy:async()=>{l.destroy()},create:async e=>dD(e,u,!1,c),generateProperties:async e=>dD(e,u,!0,c),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])}),t&&(a={...a,...t,translator:i.translator},t.theme&&(await m,m=d.setTheme(t.theme),await m),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){b?console.error("Already mounted"):(b=function({element:e,app:t}){return Dd.createPortal((0,_t.jsx)(cx,{app:t}),e,lx())}({element:t,app:e}),l.add(b))},unmount(){b&&(l.remove(b),b=null)}}),f),field:async n=>{let i;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)i=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const s={fieldName:o,async mount(r,a={}){if(!r)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>s.emit("selectionActivated"),d=()=>s.emit("selectionDeactivated");return new Promise(o=>{[this._instance,this._ref]=function({element:e,app:n,fieldIdentifier:i,qId:o,stateName:s="$",options:r={},renderedCallback:a,flags:l}){const c=t.createRef();return[Dd.createPortal((0,_t.jsx)(jx,{ref:c,app:n,element:e,fieldIdentifier:i,qId:o,stateName:s,initialOptions:r,renderedCallback:a,flags:l}),e,lx()),c]}({element:r,app:e,fieldIdentifier:n,qId:i,options:Hx({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o,flags:u.public.galaxy.flags}),l.add(this._instance)})},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>s.emit("selectionActivated"),n=()=>s.emit("selectionDeactivated");if(s._ref?.current){const i=Hx({onSelectionActivated:t,onSelectionDeactivated:n,...e});s._ref.current.setOptions(i)}}}};return z_(s),s},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(n,i,o){v._popoverInstance&&(l.remove(v._popoverInstance),v._popoverInstance=null);const s=((e={})=>{const t={...Ux};return Mg()(!0,t,e),t})({onPopoverClose:()=>v.emit("fieldPopoverClose"),...o});v._popoverInstance=t.createElement($x,{element:n,key:lx(),app:e,fieldIdentifier:i,options:s,stateName:o.stateName||"$"}),l.add(v._popoverInstance)}}};return u.public.nebbie=v,u.types=g,z_(v),v}return s.createConfiguration=t=>e(((e,t)=>({context:wD(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:AD(e.types,t.types),themes:AD(e.themes,t.themes),flags:wD(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:wD(e.anything,t.anything)}))(n,t)),s.config=n,s}(yD),xD=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},kD=globalThis.crypto||{getRandomValues:()=>123456},LD=function(e){return t=>{const n=Mg()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^kD.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const i=n._mock;let o=n;return i&&(delete n._mock,o=Mg()({},n,i)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}},ED=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,DD=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const s=ED(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(s),i)}):s},ID=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ND(e){return!ID.includes(e)}function RD(e){const t=ED(e.getLayout);return t.qInfo&&t.qInfo.qId}function TD(e,t){let n=RD(e);const{delay:i}=t,{id:o,session:s,...r}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);n=n||o||"object - "+ +Date.now();const a={id:n,session:ED(s,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(r).reduce((e,[t,n])=>({...e,[t]:DD(n,{async:ND(t),delay:i})}),{}),genericType:e.type};return{[n]:a}}function MD(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!RD(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const OD=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(MD);const n=function(e,t){return e.reduce((e,n)=>({...e,...TD(n,t)}),{})}(e,t);return async e=>Promise.resolve(n[e])},qD=function(e){return()=>Promise.resolve({id:"app-layout",qLocaleInfo:e?.appLocaleInfo})},PD={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new xD,i=new LD(n),o=new OD(e,t),s=new qD(t),r={...t.appMethods||{},id:"app - "+ +Date.now(),session:n,createSessionObject:i,destroySessionObject:async()=>{},getObject:o,getAppLayout:s,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(r)}(e,t)},BD=PD,FD={generator:oE,hook:jk,theme:op,locale:Qu},WD=ul((0,_t.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),zD=ul((0,_t.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"})),VD=ul((0,_t.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"})),HD=ul((0,_t.jsx)("path",{d:"M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54s-2.94 8.27-7 9.54c.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2"})),jD=ul((0,_t.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}));function UD(e){return Er("MuiToolbar",e)}Dr("MuiToolbar",["root","gutters","regular","dense"]);const $D=_r("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Xa(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),GD=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:r="regular",...a}=n,l={...n,component:o,disableGutters:s,variant:r},c=(e=>{const{classes:t,disableGutters:n,variant:i}=e;return Lt({root:["root",!n&&"gutters",i]},UD,t)})(l);return(0,_t.jsx)($D,{as:o,className:kt(c.root,i),ref:t,ownerState:l,...a})}),KD=GD;function QD(e){return Er("MuiToggleButtonGroup",e)}const YD=Dr("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ZD=t.createContext({}),XD=t.createContext(void 0);function JD(e){return Er("MuiToggleButton",e)}const eI=Dr("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),tI=_r("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${YD.grouped}`]:t.grouped},{[`& .${YD.grouped}`]:t[`grouped${Vr(n.orientation)}`]},{[`& .${YD.firstButton}`]:t.firstButton},{[`& .${YD.lastButton}`]:t.lastButton},{[`& .${YD.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(Xa(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${YD.grouped}`]:{[`&.${YD.selected} + .${YD.grouped}.${YD.selected}`]:{borderTop:0,marginTop:0}},[`& .${YD.firstButton},& .${YD.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${YD.lastButton},& .${YD.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${YD.lastButton}.${eI.disabled},& .${YD.middleButton}.${eI.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${YD.grouped}`]:{[`&.${YD.selected} + .${YD.grouped}.${YD.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${YD.firstButton},& .${YD.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${YD.lastButton},& .${YD.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${YD.lastButton}.${eI.disabled},& .${YD.middleButton}.${eI.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),nI=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:r="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:h="horizontal",size:u="medium",value:g,...p}=i,m={...i,disabled:a,fullWidth:c,orientation:h,size:u},f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e;return Lt({root:["root",n,i&&"fullWidth"],grouped:["grouped",`grouped${Vr(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},QD,t)})(m),b=t.useCallback((e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},[d,g]),v=t.useCallback((e,t)=>{d&&d(e,g===t?null:t)},[d,g]),C=t.useMemo(()=>({className:f.grouped,onChange:l?v:b,value:g,size:u,fullWidth:c,color:r,disabled:a}),[f.grouped,l,v,b,g,u,c,r,a]),_=function(e){return t.Children.toArray(e).filter(e=>t.isValidElement(e))}(o),y=_.length,w=e=>{const t=0===e,n=e===y-1;return t&&n?"":t?f.firstButton:n?f.lastButton:f.middleButton};return(0,_t.jsx)(tI,{role:"group",className:kt(f.root,s),ref:n,ownerState:m,...p,children:(0,_t.jsx)(ZD.Provider,{value:C,children:_.map((e,t)=>(0,_t.jsx)(XD.Provider,{value:w(t),children:e},t))})})}),iI=nI;function oI(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const sI=_r(Lc,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Vr(n.size)}`]]}})(Xa(({theme:e})=>({...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,[`&.${eI.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${eI.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${eI.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),rI=t.forwardRef(function(e,n){const{value:i,...o}=t.useContext(ZD),s=t.useContext(XD),r=Sr({props:yr({...o,selected:oI(e.value,i)},e),name:"MuiToggleButton"}),{children:a,className:l,color:c="standard",disabled:d=!1,disableFocusRipple:h=!1,fullWidth:u=!1,onChange:g,onClick:p,selected:m,size:f="medium",value:b,...v}=r,C={...r,color:c,disabled:d,disableFocusRipple:h,fullWidth:u,size:f},_=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:s,color:r}=e;return Lt({root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${Vr(s)}`,r]},JD,t)})(C),y=s||"";return(0,_t.jsx)(sI,{className:kt(o.className,_.root,l,y),disabled:d,focusRipple:!h,ref:n,onClick:e=>{p&&(p(e,b),e.defaultPrevented)||g&&g(e,b)},onChange:g,value:b,ownerState:C,"aria-pressed":m,...v,children:a})}),aI=rI;function lI(e){return Er("MuiMenu",e)}Dr("MuiMenu",["root","paper","list"]);const cI={vertical:"top",horizontal:"right"},dI={vertical:"top",horizontal:"left"},hI=_r(Lm,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),uI=_r(xm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gI=_r(f_,{name:"MuiMenu",slot:"List"})({outline:0}),pI=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:r,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:h={},PopoverClasses:u,transitionDuration:g="auto",TransitionProps:{onEntering:p,...m}={},variant:f="selectedMenu",slots:b={},slotProps:v={},...C}=i,_=Zr(),y={...i,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:h,transitionDuration:g,TransitionProps:m,variant:f},w=(e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"],list:["list"]},lI,t)})(y),A=o&&!a&&d,S=t.useRef(null);let x=-1;t.Children.map(s,(e,n)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===f&&e.props.selected||-1===x)&&(x=n))});const k={slots:b,slotProps:{list:l,transition:m,paper:h,...v}},L=fh({elementType:b.root,externalSlotProps:v.root,ownerState:y,className:[w.root,r]}),[E,D]=Nl("paper",{className:w.paper,elementType:uI,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:y}),[I,N]=Nl("list",{className:kt(w.list,l.className),elementType:gI,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:y}),R="function"==typeof k.slotProps.transition?k.slotProps.transition(y):k.slotProps.transition;return(0,_t.jsx)(hI,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?cI:dI,slots:{root:b.root,paper:E,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:L,paper:D,backdrop:"function"==typeof v.backdrop?v.backdrop(y):v.backdrop,transition:{...R,onEntering:(...e)=>{((e,t)=>{S.current&&S.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),p&&p(e,t)})(...e),R?.onEntering?.(...e)}}},open:d,ref:n,transitionDuration:g,ownerState:y,...C,classes:u,children:(0,_t.jsx)(I,{actions:S,autoFocus:o&&(-1===x||a),autoFocusItem:A,variant:f,...N,children:s})})}),mI=pI,fI=new Map,bI=[],vI=bI.map,CI=bI.some,_I=bI.hasOwnProperty,yI=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,wI=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,AI=/(?:\.[^/]*|\/)$/;class SI extends Error{constructor(e){super(e)}}function xI(e){const t=yI.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function kI(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(bI.pop()(o(e)))}catch(e){n(new SI("invalid module"))}i.remove()},i.onerror=()=>{n(new SI("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=II,document.head.appendChild(i)})),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function s(e){return arguments.length>1?Promise.all(vI.call(arguments,n)).then(LI):n(e)}return s.alias=function(t){return kI((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i))},s.resolve=e,s}function LI(e){const t={};for(const n of e)for(const e in n)_I.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:EI(n,e)}):t[e]=n[e]);return t}function EI(e,t){return()=>e[t]}function DI(e){return"exports"==(e+="")||"module"===e}function II(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),bI.push(CI.call(t,DI)?e=>{const i={},o={exports:i};return Promise.all(vI.call(t,t=>"exports"==(t+="")?i:"module"===t?o:e(t))).then(e=>(n.apply(null,e),o.exports))}:e=>Promise.all(vI.call(t,e)).then(e=>"function"==typeof n?n.apply(null,e):n))}SI.prototype.name=SI.name,kI(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=fI.get(n);return i||fI.set(n,i=fetch(n).then(e=>{if(!e.ok)throw new SI("unable to load package.json");return e.redirected&&!fI.has(e.url)&&fI.set(e.url,i),e.json()})),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,o??location).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new SI("illegal name");const s=xI(i);if(!s)return`${e}${i}`;if(!s.version&&null!=o&&o.startsWith(e)){const t=await n(xI(o.substring(e.length)));s.version=t.dependencies&&t.dependencies[s.name]||t.peerDependencies&&t.peerDependencies[s.name]}if(s.path&&!AI.test(s.path)&&(s.path+=".js"),s.path&&s.version&&wI.test(s.version))return`${e}${s.name}@${s.version}/${s.path}`;const r=await n(s);return`${e}${r.name}@${r.version}/${s.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),AI.test(t)?t:`${t}.js`}}(r)||"index.js"}`}}()),II.amd={};const NI=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=kI(async e=>i(e));return o.alias({"@nebula.js/stardust":e})(n||t)},RI={};function TI(e){const[n,i]=(0,t.useState)();return(0,t.useEffect)(()=>{if(e){const t=()=>{e.getProperties().then(e=>{i({...e})})};return e.on("changed",t),t(),()=>{e.removeListener("changed",t)}}return()=>{}},[e,i]),[n,t=>e.setProperties(t)]}window.onHotChange=(e,t)=>(RI[e]||(RI[e]=[]),RI[e].push(t),window[e]&&t(),()=>{const n=RI[e].indexOf(t);RI[e].splice(n,1)});const MI=t.createContext();function OI({dc:e,def:t,properties:n,dimensions:i}){const o=n,s={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||lx(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>s.dimensions().length<s.maxDimensions(),canAddMeasure:()=>!1};return s}const qI={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},PI={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function BI(e,t="dimension"){const n="dimension"===t?qI:PI,[i]=pp(n,e),[o]=Cp(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function FI(e){return Er("MuiListSubheader",e)}Dr("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const WI=_r("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Vr(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Xa(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),zI=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:r=!1,disableSticky:a=!1,inset:l=!1,...c}=n,d={...n,color:o,component:s,disableGutters:r,disableSticky:a,inset:l},h=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:s}=e;return Lt({root:["root","default"!==n&&`color${Vr(n)}`,!i&&"gutters",o&&"inset",!s&&"sticky"]},FI,t)})(d);return(0,_t.jsx)(WI,{as:s,className:kt(h.root,i),ref:t,ownerState:d,...c})});zI&&(zI.muiSkipListHighlight=!0);const VI=zI;var HI=n(98586),jI=n.n(HI),UI=n(18428),$I=n.n(UI);const GI=ul((0,_t.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),KI=ul((0,_t.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}));function QI(e){return Er("MuiInput",e)}const YI={...ou,...Dr("MuiInput",["root","underline","input"])},ZI=_r(Cu,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bu(e,t),!n.disableUnderline&&t.underline]}})(Xa(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${YI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${YI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${YI.disabled}, .${YI.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${YI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),XI=_r(_u,{name:"MuiInput",slot:"Input",overridesResolver:vu})({}),JI=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:s,fullWidth:r=!1,inputComponent:a="input",multiline:l=!1,slotProps:c,slots:d={},type:h="text",...u}=n,g=(e=>{const{classes:t,disableUnderline:n}=e,i=Lt({root:["root",!n&&"underline"],input:["input"]},QI,t);return{...t,...i}})(n),p={root:{ownerState:{disableUnderline:i}}},m=c??s?Ci(c??s,p):p,f=d.root??o.Root??ZI,b=d.input??o.Input??XI;return(0,_t.jsx)(Au,{slots:{root:f,input:b},slotProps:m,fullWidth:r,inputComponent:a,multiline:l,ref:t,type:h,...u,classes:g})});JI.muiName="Input";const eN=JI;function tN(e){return Er("MuiFilledInput",e)}const nN={...ou,...Dr("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},iN=_r(Cu,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bu(e,t),!n.disableUnderline&&t.underline]}})(Xa(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${nN.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${nN.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nN.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nN.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${nN.disabled}, .${nN.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nN.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter($l()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),oN=_r(_u,{name:"MuiFilledInput",slot:"Input",overridesResolver:vu})(Xa(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),sN=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:s,fullWidth:r=!1,hiddenLabel:a,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:h={},type:u="text",...g}=n,p={...n,disableUnderline:i,fullWidth:r,inputComponent:l,multiline:c,type:u},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:s,hiddenLabel:r,multiline:a}=e,l=Lt({root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd","small"===s&&`size${Vr(s)}`,r&&"hiddenLabel",a&&"multiline"],input:["input"]},tN,t);return{...t,...l}})(n),f={root:{ownerState:p},input:{ownerState:p}},b=d??s?Ci(f,d??s):f,v=h.root??o.Root??iN,C=h.input??o.Input??oN;return(0,_t.jsx)(Au,{slots:{root:v,input:C},slotProps:b,fullWidth:r,inputComponent:l,multiline:c,ref:t,type:u,...g,classes:m})});sN.muiName="Input";const rN=sN;function aN(e){return Er("MuiFormLabel",e)}const lN=Dr("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cN=_r("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter($l()).map(([t])=>({props:{color:t},style:{[`&.${lN.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lN.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dN=_r("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xa(({theme:e})=>({[`&.${lN.error}`]:{color:(e.vars||e).palette.error.main}}))),hN=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiFormLabel"}),{children:i,className:o,color:s,component:r="label",disabled:a,error:l,filled:c,focused:d,required:h,...u}=n,g=nu({props:n,muiFormControl:tu(),states:["color","required","focused","disabled","error","filled"]}),p={...n,color:g.color||"primary",component:r,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},m=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:s,filled:r,required:a}=e;return Lt({root:["root",`color${Vr(n)}`,o&&"disabled",s&&"error",r&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]},aN,t)})(p);return(0,_t.jsxs)(cN,{as:r,ownerState:p,className:kt(m.root,o),ref:t,...u,children:[i,g.required&&(0,_t.jsxs)(dN,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),uN=hN;function gN(e){return Er("MuiInputLabel",e)}Dr("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const pN=_r(uN,{shouldForwardProp:e=>Cr(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lN.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Xa(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),mN=t.forwardRef(function(e,t){const n=Sr({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,margin:o,shrink:s,variant:r,className:a,...l}=n,c=tu();let d=s;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const h=nu({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),u={...n,disableAnimation:i,formControl:c,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:s,variant:r,required:a}=e,l=Lt({root:["root",n&&"formControl",!s&&"animated",o&&"shrink",i&&"medium"!==i&&`size${Vr(i)}`,r],asterisk:[a&&"asterisk"]},gN,t);return{...t,...l}})(u);return(0,_t.jsx)(pN,{"data-shrink":d,ref:t,className:kt(g.root,a),...l,ownerState:u,classes:g})}),fN=mN;function bN(e){return Er("MuiFormControl",e)}Dr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const vN=_r("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Vr(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),CN=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiFormControl"}),{children:o,className:s,color:r="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:u=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined",...b}=i,v={...i,color:r,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f},C=(e=>{const{classes:t,margin:n,fullWidth:i}=e;return Lt({root:["root","none"!==n&&`margin${Vr(n)}`,i&&"fullWidth"]},bN,t)})(v),[_,y]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{if(!BS(t,["Input","Select"]))return;const n=BS(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[w,A]=t.useState(()=>{let e=!1;return o&&t.Children.forEach(o,t=>{BS(t,["Input","Select"])&&(gu(t.props,!0)||gu(t.props.inputProps,!0))&&(e=!0)}),e}),[S,x]=t.useState(!1);l&&S&&x(!1);const k=void 0===d||l?S:d;let L;t.useRef(!1);const E=t.useCallback(()=>{A(!0)},[]),D=t.useCallback(()=>{A(!1)},[]),I=t.useMemo(()=>({adornedStart:_,setAdornedStart:y,color:r,disabled:l,error:c,filled:w,focused:k,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{x(!1)},onFocus:()=>{x(!0)},onEmpty:D,onFilled:E,registerEffect:L,required:p,variant:f}),[_,r,l,c,w,k,h,u,L,D,E,p,m,f]);return(0,_t.jsx)(eu.Provider,{value:I,children:(0,_t.jsx)(vN,{as:a,ownerState:v,className:kt(C.root,s),ref:n,...b,children:o})})}),_N=CN;function yN(e){return Er("MuiFormHelperText",e)}const wN=Dr("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var AN;const SN=_r("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Vr(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Xa(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${wN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wN.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),xN=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p",disabled:r,error:a,filled:l,focused:c,margin:d,required:h,variant:u,...g}=n,p=nu({props:n,muiFormControl:tu(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:s,contained:"filled"===p.variant||"outlined"===p.variant,variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete m.ownerState;const f=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:s,filled:r,focused:a,required:l}=e;return Lt({root:["root",o&&"disabled",s&&"error",i&&`size${Vr(i)}`,n&&"contained",a&&"focused",r&&"filled",l&&"required"]},yN,t)})(m);return(0,_t.jsx)(SN,{as:s,className:kt(f.root,o),ref:t,...g,ownerState:m,children:" "===i?AN||(AN=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})}),kN=xN;function LN(e){return Er("MuiNativeSelect",e)}const EN=Dr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),DN=_r("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${EN.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),IN=_r(DN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${EN.multiple}`]:t.multiple}]}})({}),NN=_r("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${EN.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),RN=_r(NN,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Vr(n.variant)}`],n.open&&t.iconOpen]}})({}),TN=t.forwardRef(function(e,n){const{className:i,disabled:o,error:s,IconComponent:r,inputRef:a,variant:l="standard",...c}=e,d={...e,disabled:o,variant:l,error:s},h=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:r}=e;return Lt({select:["select",n,i&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${Vr(n)}`,s&&"iconOpen",i&&"disabled"]},LN,t)})(d);return(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)(IN,{ownerState:d,className:kt(h.select,i),disabled:o,ref:a||n,...c}),e.multiple?null:(0,_t.jsx)(RN,{as:r,ownerState:d,className:h.icon})]})}),MN=TN;function ON(e){return Er("MuiSelect",e)}const qN=Dr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function PN(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function BN(e){return null==e||"string"==typeof e&&!e.trim()}var FN;const WN=_r(DN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qN.select}`]:t.select},{[`&.${qN.select}`]:t[n.variant]},{[`&.${qN.error}`]:t.error},{[`&.${qN.multiple}`]:t.multiple}]}})({[`&.${qN.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zN=_r(NN,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Vr(n.variant)}`],n.open&&t.iconOpen]}})({}),VN=_r("input",{shouldForwardProp:e=>vr(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),HN=t.forwardRef(function(e,n){const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:r,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:u,error:g=!1,IconComponent:p,inputRef:m,labelId:f,MenuProps:b={},multiple:v,name:C,onBlur:_,onChange:y,onClose:w,onFocus:A,onKeyDown:S,onMouseDown:x,onOpen:k,open:L,readOnly:E,renderValue:D,required:I,SelectDisplayProps:N={},tabIndex:R,type:T,value:M,variant:O="standard",...q}=e,[P,B]=of({controlled:M,default:d,name:"Select"}),[F,W]=of({controlled:L,default:c,name:"Select"}),z=t.useRef(null),V=t.useRef(null),[H,j]=t.useState(null),{current:U}=t.useRef(null!=L),[$,G]=t.useState(),[K,Q]=t.useState(null),Y=Kl(n,m),Z=t.useCallback(e=>{V.current=e,e&&j(e)},[]),X=H?.parentNode;t.useImperativeHandle(Y,()=>({focus:()=>{V.current.focus()},node:z.current,value:P}),[P]);const J=null!==H&&F;t.useEffect(()=>{if(!J||!X||r)return;if("undefined"==typeof ResizeObserver)return;const e=new ResizeObserver(()=>{G(X.clientWidth)});return e.observe(X),()=>{e.disconnect()}},[J,X,r]),t.useEffect(()=>{c&&F&&H&&!U&&(G(r?null:X.clientWidth),V.current.focus())},[H,r]),t.useEffect(()=>{s&&V.current.focus()},[s]),t.useEffect(()=>{if(!f)return;const e=Th(V.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&V.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[f]);const ee=(e,t)=>{e?(Q(function(e){return e?"mousedown"===e.type||"pointerdown"===e.type||"touchstart"===e.type?"pointer":"keydown"===e.type||"click"===e.type&&0===e.detail?"keyboard":null:null}(t)),k&&k(t)):(Q(null),w&&w(t)),U||(G(r?null:X.clientWidth),W(e))},te=t.Children.toArray(a),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(P)?P.slice():[];const t=P.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),P!==n&&(B(n),y)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:C}}),y(o,e)}v||ee(!1,t)}};let ie,oe;delete q["aria-invalid"];const se=[];let re=!1,ae=!1;(gu({value:P})||u)&&(D?ie=D(P):re=!0);const le=te.map(e=>{if(!t.isValidElement(e))return null;let n;if(v){if(!Array.isArray(P))throw new Error(Ei(2));n=P.some(t=>PN(t,e.props.value)),n&&re&&se.push(e.props.children)}else n=PN(P,e.props.value),n&&re&&(oe=e.props.children);return n&&(ae=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:ne(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})});re&&(ie=v?0===se.length?null:se.reduce((e,t,n)=>(e.push(t),n<se.length-1&&e.push(", "),e),[]):oe);let ce,de=$;!r&&U&&H&&(de=X.clientWidth),ce=void 0!==R?R:h?null:0;const he=N.id||(C?`mui-component-select-${C}`:void 0),ue={...e,variant:O,value:P,open:J,error:g},ge=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:r}=e;return Lt({select:["select",n,i&&"disabled",o&&"multiple",r&&"error"],icon:["icon",`icon${Vr(n)}`,s&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]},ON,t)})(ue),pe={...b.PaperProps,..."function"==typeof b.slotProps?.paper?b.slotProps.paper(ue):b.slotProps?.paper},me={...b.MenuListProps,..."function"==typeof b.slotProps?.list?b.slotProps.list(ue):b.slotProps?.list},fe=na();return(0,_t.jsxs)(t.Fragment,{children:[(0,_t.jsx)(WN,{as:"div",ref:Z,tabIndex:ce,role:"combobox","aria-controls":J?fe:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[f,he].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":I?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:e=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),ee(!0,e)),S?.(e))},onMouseDown:h||E?null:e=>{x?.(e),0===e.button&&(e.preventDefault(),V.current.focus(),ee(!0,e))},onBlur:e=>{!J&&_&&(Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:C}}),_(e))},onFocus:A,...N,ownerState:ue,className:kt(N.className,ge.select,l),id:he,children:BN(ie)?FN||(FN=(0,_t.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ie}),(0,_t.jsx)(VN,{"aria-invalid":g,value:Array.isArray(P)?P.join(","):P,name:C,ref:z,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(B(t.props.value),y&&y(e,t))},tabIndex:-1,disabled:h,className:ge.nativeInput,autoFocus:s,required:I,...q,ownerState:ue}),(0,_t.jsx)(zN,{as:p,className:ge.icon,ownerState:ue}),(0,_t.jsx)(i_,{value:K,children:(0,_t.jsx)(mI,{id:`menu-${C||""}`,anchorEl:X,open:J,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":f,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:fe,...me},paper:{...pe,style:{minWidth:de,...null!=pe?pe.style:null}}},children:le})})]})}),jN=HN,UN=ul((0,_t.jsx)("path",{d:"M7 10l5 5 5-5z"})),$N={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Cr(e)&&"variant"!==e},GN=_r(eN,$N)(""),KN=_r(Eu,$N)(""),QN=_r(rN,$N)(""),YN=t.forwardRef(function(e,n){const i=Sr({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:r={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=UN,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:b=!1,native:v=!1,onClose:C,onOpen:_,open:y,renderValue:w,SelectDisplayProps:A,variant:S="outlined",...x}=i,k=v?MN:jN,L=nu({props:i,muiFormControl:tu(),states:["variant","error"]}),E=L.variant||S,D={...i,variant:E,classes:r},I=(e=>{const{classes:t}=e,n=Lt({root:["root"]},ON,t);return{...t,...n}})(D),{root:N,...R}=I,T=u||{standard:(0,_t.jsx)(GN,{ownerState:D}),outlined:(0,_t.jsx)(KN,{label:p,ownerState:D}),filled:(0,_t.jsx)(QN,{ownerState:D})}[E],M=Kl(n,Tp(T));return(0,_t.jsx)(t.Fragment,{children:t.cloneElement(T,{inputComponent:k,inputProps:{children:s,error:L.error,IconComponent:d,variant:E,type:void 0,multiple:b,...v?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:C,onOpen:_,open:y,renderValue:w,SelectDisplayProps:{id:h,...A}},...g,classes:g?Ci(R,g.classes):R,...u?u.props.inputProps:{}},...(b&&v||c)&&"outlined"===E?{notched:!0}:{},ref:M,className:kt(T.props.className,a,I.root),...!u&&{variant:E},...x})})});YN.muiName="Select";const ZN=YN;function XN(e){return Er("MuiTextField",e)}Dr("MuiTextField",["root"]);const JN={standard:eN,filled:rN,outlined:Eu},eR=_r(_N,{name:"MuiTextField",slot:"Root"})({}),tR=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:r,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:u=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:b,inputRef:v,label:C,maxRows:_,minRows:y,multiline:w=!1,name:A,onBlur:S,onChange:x,onFocus:k,placeholder:L,required:E=!1,rows:D,select:I=!1,SelectProps:N,slots:R={},slotProps:T={},type:M,value:O,variant:q="outlined",...P}=n,B={...n,autoFocus:o,color:a,disabled:c,error:d,fullWidth:u,multiline:w,required:E,select:I,variant:q},F=(e=>{const{classes:t}=e;return Lt({root:["root"]},XN,t)})(B),W=na(p),z=g&&W?`${W}-helper-text`:void 0,V=C&&W?`${W}-label`:void 0,H=JN[q],j={slots:R,slotProps:{input:b,inputLabel:m,htmlInput:f,formHelperText:h,select:N,...T}},U={},$=j.slotProps.inputLabel;"outlined"===q&&($&&void 0!==$.shrink&&(U.notched=$.shrink),U.label=C),I&&(N&&N.native||(U.id=void 0),U["aria-describedby"]=void 0);const[G,K]=Nl("root",{elementType:eR,shouldForwardComponentProp:!0,externalForwardedProps:{...j,...P},ownerState:B,className:kt(F.root,r),ref:t,additionalProps:{disabled:c,error:d,fullWidth:u,required:E,color:a,variant:q}}),[Q,Y]=Nl("input",{elementType:H,externalForwardedProps:j,additionalProps:U,ownerState:B}),[Z,X]=Nl("inputLabel",{elementType:fN,externalForwardedProps:j,ownerState:B}),[J,ee]=Nl("htmlInput",{elementType:"input",externalForwardedProps:j,ownerState:B}),[te,ne]=Nl("formHelperText",{elementType:kN,externalForwardedProps:j,ownerState:B}),[ie,oe]=Nl("select",{elementType:ZN,externalForwardedProps:j,ownerState:B}),se=(0,_t.jsx)(Q,{"aria-describedby":z,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:u,multiline:w,name:A,rows:D,maxRows:_,minRows:y,type:M,value:O,id:W,inputRef:v,onBlur:S,onChange:x,onFocus:k,placeholder:L,inputProps:ee,slots:{input:R.htmlInput?J:void 0},...Y});return(0,_t.jsxs)(G,{...K,children:[null!=C&&""!==C&&(0,_t.jsx)(Z,{htmlFor:W,id:V,...X,children:C}),I?(0,_t.jsx)(ie,{"aria-describedby":z,id:W,labelId:V,value:O,input:se,...oe,children:s}):se,g&&(0,_t.jsx)(te,{id:z,...ne,children:g})]})}),nR=tR,iR="Search",oR={gridContainer:`${iR}-gridContainer`,gridItem:`${iR}-gridItem`},sR=_r(ud)(({theme:e})=>({[`& .${oR.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${oR.gridItem}`]:{padding:e.spacing(0,1,0,1)}}));function rR(){const e=document.querySelector('meta[name="viewport"]');e instanceof HTMLMetaElement&&(e.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0")}function aR({onChange:e=()=>{},onEnter:n=()=>{},onEscape:i=()=>{}}){const[o,s]=(0,t.useState)("");return(0,_t.jsxs)(sR,{className:oR.gridContainer,container:!0,direction:"row",alignItems:"center",children:[(0,_t.jsx)(ud,{children:(0,_t.jsx)(T_,{})}),(0,_t.jsx)(ud,{className:oR.gridItem,sx:{flex:1},children:(0,_t.jsx)(nR,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{s(t.target.value),e(t.target.value)},onFocus:rR,onKeyDown:e=>{switch(e.key){case"Enter":n(),s("");break;case"Escape":i()}}})})]})}function lR({field:e,onSelect:t,sub:n,parts:i}){return(0,_t.jsxs)(lh,{onClick:()=>t(e.qName),"data-key":e.qName,children:[(0,_t.jsx)(gh,{children:i.map((e,t)=>(0,_t.jsx)("span",{style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"},children:e.text},t))}),n&&(0,_t.jsx)(GI,{fontSize:"small"})]})}function cR({item:e,onSelect:t,parts:n}){return(0,_t.jsx)(lh,{onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId,children:(0,_t.jsx)(gh,{children:n.map((e,t)=>(0,_t.jsx)("span",{style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"},children:e.text},t))})})}function dR({aggr:e,field:t,onSelect:n}){return(0,_t.jsx)(lh,{onClick:()=>n(e),"data-key":e,children:(0,_t.jsx)(gh,{children:`${e}(${t})`})})}function hR({app:e,onSelect:n,title:i="",type:o="dimension",searchTerm:s=""}){const[r]=BI(e,o),a=(0,t.useMemo)(()=>r.slice().sort((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())),[r]);return r.length>0?(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(VI,{component:"div",style:{backgroundColor:"inherit"},children:i}),a.map(e=>{const t=$I()(e.qData.title,s),i=jI()(e.qData.title,t);return s&&0===t.length?null:(0,_t.jsx)(cR,{item:e,onSelect:n,parts:i},e.qInfo.qId)})]}):null}function uR({alignTo:e,show:n,close:i,onSelected:o,type:s}){const r=(0,t.useContext)(MI),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(""),h=Ur(),[u]=pp({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},r),[g]=Cp(u),p=(0,t.useMemo)(()=>(g&&g.qFieldList.qItems||[]).slice().sort((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===s?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return(0,_t.jsxs)(Lm,{open:n,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:h.palette.background.lightest}},children:[!a&&(0,_t.jsx)(aR,{onChange:d}),a&&(0,_t.jsxs)(nh,{dense:!0,component:"nav",children:[(0,_t.jsxs)(lh,{onClick:()=>l(null),children:[(0,_t.jsx)(c_,{children:(0,_t.jsx)(KI,{})}),(0,_t.jsx)(gh,{children:"Back"})]}),(0,_t.jsx)(VC,{}),(0,_t.jsx)(VI,{component:"div",children:"Aggregation"}),["sum","count","avg","min","max"].map(e=>(0,_t.jsx)(dR,{aggr:e,field:a,onSelect:f},e))]}),!a&&p.length>0&&(0,_t.jsxs)(nh,{dense:!0,component:"nav",style:{background:h.palette.background.lightest},children:[(0,_t.jsx)(hR,{app:r,onSelect:m,type:s,title:"measure"===s?"Measures":"Dimensions",searchTerm:c}),(0,_t.jsx)(VI,{component:"div",style:{backgroundColor:"inherit"},children:"Fields"}),p.map(e=>{const t=$I()(e.qName,c),n=jI()(e.qName,t);return c&&0===t.length?null:(0,_t.jsx)(lR,{field:e,onSelect:m,sub:"measure"===s,parts:n},e.qName)})]})]})}const gR=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter(t=>t.qInfo.qId===e.qLibraryId)[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function pR({items:e,type:n="dimension",label:i="",addLabel:o="Add",onAdded:s,onRemoved:r,canAdd:a=!0}){const[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(null),h=(0,t.useContext)(MI),[u]=BI(h,n);return(0,_t.jsxs)("div",{children:[(0,_t.jsx)(yd,{variant:"overline",children:i}),(0,_t.jsx)(nh,{dense:!0,children:e.map((e,t)=>(0,_t.jsx)(GS,{disableGutters:!0,secondaryAction:(0,_t.jsx)(Uc,{onClick:()=>{r(t)},size:"large",children:(0,_t.jsx)(Zd,{})}),children:(0,_t.jsx)(gh,{children:(0,_t.jsx)(gR,{field:e,libraryItems:u,type:n})})},e.qDef&&e.qDef.cId||t))}),(0,_t.jsx)(Bu,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a,children:o}),l&&(0,_t.jsx)(uR,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?s(e):e&&s("dimension"===n?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:n})]})}function mR({setProperties:e,target:n,properties:i}){const[o,s]=(0,t.useState)([]),r=n.dimensions&&n.dimensions.max&&n.dimensions.max()>1?OI:Yx,a=n.propertyPath.match("/qHyperCube")?Qx:r,l=((e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o})(i,n.propertyPath),c=(0,t.useMemo)(()=>a({def:n,dc:l,properties:i,dimensions:o}),[l,n,i,o]);return(0,_t.jsxs)("div",{style:{width:"100%"},children:[(0,_t.jsx)(yd,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"},children:n.propertyPath}),(0,_t.jsx)(pR,{onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,r=c.addDimension(n);e(i).then(()=>{s([...o,r])})},onRemoved:t=>{c.removeDimension(t),e(i).then(()=>{s([...o.slice(0,t),...o.slice(t+1)])})},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"},"dimensions"),(0,_t.jsx)(pR,{onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"},"measures")]})}function fR({setProperties:e,sn:t,properties:n}){if(!t)return null;const{targets:i}=t.qae.data;return i.length?(0,_t.jsx)(nh,{children:i.map(t=>(0,_t.jsx)(GS,{divider:!0,disableGutters:!0,children:(0,_t.jsx)(mR,{target:t,properties:n,setProperties:e})},t.propertyPath))}):(0,_t.jsx)(yd,{children:"No data targets found"})}const bR=t.createContext({});function vR(e){return Er("MuiAccordion",e)}const CR=Dr("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),_R=_r(bm,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${CR.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Xa(({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"}},[`&.${CR.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${CR.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Xa(({theme:e})=>({variants:[{props:e=>!e.square,style:{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}}}},{props:e=>!e.disableGutters,style:{[`&.${CR.expanded}`]:{margin:"16px 0"}}}]}))),yR=_r("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),wR=_r("div",{name:"MuiAccordion",slot:"Region"})({}),AR=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:r=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,slots:h={},slotProps:u={},TransitionComponent:g,TransitionProps:p,...m}=i,[f,b]=of({controlled:c,default:r,name:"Accordion",state:"expanded"}),v=t.useCallback(e=>{b(!f),d&&d(e,!f)},[f,d,b]),[C,..._]=t.Children.toArray(o),y=t.useMemo(()=>({expanded:f,disabled:a,disableGutters:l,toggle:v}),[f,a,l,v]),w={...i,disabled:a,disableGutters:l,expanded:f},A=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:s}=e;return Lt({root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},vR,t)})(w),S={slots:{transition:g,...h},slotProps:{transition:p,...u}},[x,k]=Nl("root",{elementType:_R,externalForwardedProps:{...S,...m},className:kt(A.root,s),shouldForwardComponentProp:!0,ownerState:w,ref:n}),[L,E]=Nl("heading",{elementType:yR,externalForwardedProps:S,className:A.heading,ownerState:w}),[D,I]=Nl("transition",{elementType:Gd,externalForwardedProps:S,ownerState:w}),[N,R]=Nl("region",{elementType:wR,externalForwardedProps:S,ownerState:w,className:A.region,additionalProps:{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region"}});return(0,_t.jsxs)(x,{...k,children:[(0,_t.jsx)(L,{...E,children:(0,_t.jsx)(bR.Provider,{value:y,children:C})}),(0,_t.jsx)(D,{in:f,timeout:"auto",...I,children:(0,_t.jsx)(N,{...R,children:_})})]})}),SR=AR;function xR(e){return Er("MuiAccordionSummary",e)}const kR=Dr("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),LR=_r(Lc,{name:"MuiAccordionSummary",slot:"Root"})(Xa(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${kR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${kR.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${kR.expanded}`]:{minHeight:64}}}]}})),ER=_r("span",{name:"MuiAccordionSummary",slot:"Content"})(Xa(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${kR.expanded}`]:{margin:"20px 0"}}}]}))),DR=_r("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(Xa(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${kR.expanded}`]:{transform:"rotate(180deg)"}}))),IR=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:r,focusVisibleClassName:a,onClick:l,slots:c,slotProps:d,...h}=i,{disabled:u=!1,disableGutters:g,expanded:p,toggle:m}=t.useContext(bR),f={...i,expanded:p,disabled:u,disableGutters:g},b=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e;return Lt({root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},xR,t)})(f),v={slots:c,slotProps:d},[C,_]=Nl("root",{ref:n,shouldForwardComponentProp:!0,className:kt(b.root,s),elementType:LR,externalForwardedProps:{...v,...h},ownerState:f,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:u,"aria-expanded":p,focusVisibleClassName:kt(b.focusVisible,a)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{m&&m(e),l&&l(e)})(t)}})}),[y,w]=Nl("content",{className:b.content,elementType:ER,externalForwardedProps:v,ownerState:f}),[A,S]=Nl("expandIconWrapper",{className:b.expandIconWrapper,elementType:DR,externalForwardedProps:v,ownerState:f});return(0,_t.jsxs)(C,{..._,children:[(0,_t.jsx)(y,{...w,children:o}),r&&(0,_t.jsx)(A,{...S,children:r})]})}),NR=IR;function RR(e){return Er("MuiAccordionDetails",e)}Dr("MuiAccordionDetails",["root"]);const TR=_r("div",{name:"MuiAccordionDetails",slot:"Root"})(Xa(({theme:e})=>({padding:e.spacing(1,2,2)}))),MR=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiAccordionDetails"}),{className:i,...o}=n,s=n,r=(e=>{const{classes:t}=e;return Lt({root:["root"]},RR,t)})(s);return(0,_t.jsx)(TR,{className:kt(r.root,i),ref:t,ownerState:s,...o})}),OR=MR,qR=ul((0,_t.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));let PR=null;const BR="AutoComponents",FR={summary:`${BR}-summary`,details:`${BR}-details`,root:`${BR}-root`},WR=_r(ud)(({theme:e})=>({[`& .${FR.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${FR.details}`]:{padding:e.spacing(1)}})),zR=_r(SR)(({theme:e})=>({[`& .${FR.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}})),VR={boolean:function({property:e,value:t,target:n,changed:i}){return(0,_t.jsx)(nf,{control:(0,_t.jsx)(_f,{checked:t,onChange:t=>{n[e]=t.target.checked,i()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:n,target:i,changed:o}){const[s,r]=(0,t.useState)(n);return(0,_t.jsx)(nR,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==n&&(i[e]=s,o())},label:e,value:s})},object:function({property:e,value:t,changed:n,app:i}){return(0,_t.jsxs)(zR,{square:!0,className:FR.root,children:[(0,_t.jsx)(NR,{expandIcon:(0,_t.jsx)(qR,{}),className:FR.summary,children:(0,_t.jsx)(yd,{children:e})}),(0,_t.jsx)(OR,{className:FR.details,children:UR(t,n,i)})]})},number:function({property:e,value:n,target:i,changed:o}){const[s,r]=(0,t.useState)(+n);return(0,_t.jsx)(nR,{variant:"standard",fullWidth:!0,onChange:e=>{r(e.target.value)},onBlur:()=>{s!==n&&(i[e]=+s,o())},label:e,value:s})},expression:function({property:e,value:n,target:i,changed:o}){const s=n.qStringExpression&&n.qStringExpression.qExpr?n.qStringExpression.qExpr:"",[r,a]=(0,t.useState)(s);return(0,_t.jsx)(nR,{variant:"standard",InputProps:{startAdornment:(0,_t.jsx)(R_,{position:"start",children:"="})},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{r!==n&&(i[e].qStringExpression={qExpr:`=${r}`},o())},label:e,value:r})},variable:function({property:e,value:n,target:i,changed:o,app:s}){const[r,a]=(0,t.useState)(n.name),[l,c]=(0,t.useState)([]);return(0,t.useEffect)(()=>{!async function(){const e=await async function(e){return PR||(PR=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await PR.getLayout()).qVariableList.qItems.map(e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName}))}(s);c(e)}()},[]),0===l.length?(0,_t.jsx)("em",{children:"No variables in app"}):(0,_t.jsx)(_N,{size:"small",fullWidth:!0,children:(0,_t.jsx)(ZN,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:r,renderValue:e=>0===e.length?(0,_t.jsx)("em",{children:"Select a variable"}):e,children:l.map(e=>(0,_t.jsx)(r_,{value:e.value,children:e.label},e.value))})})}},HR=/^q[A-Z]/;let jR=!1;function UR(e,t,n,i){i&&i.PP_EXPRESSIONS&&(jR=!0);const o=Object.keys(e).map(t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(HR.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":jR&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":jR&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown")(e[t],t);return!!VR[n]&&{Component:VR[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}}).filter(Boolean);return(0,_t.jsx)(WR,{container:!0,direction:"column",gap:0,alignItems:"stretch",children:o.map(i=>(0,_t.jsx)(ud,{style:{width:"100%"},children:(0,_t.jsx)(i.Component,{app:n,property:i.property,value:i.value,target:e,changed:t},i.key)},i.key))})}function $R({viz:e,sn:n,isTemp:i,storage:o,flags:s}){const[r,a]=TI(e?.model),l=(0,t.useContext)(MI),[c,d]=(0,t.useState)(!1!==o.get("readFromCache")),h=(0,t.useCallback)(()=>{a(r)},[e,n,r]);return n&&e&&r?(0,_t.jsxs)("div",{style:{minWidth:"250px",padding:"8px"},children:[i&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(ud,{item:!0,container:!0,alignItems:"center",children:(0,_t.jsx)(nf,{control:(0,_t.jsx)(_f,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})}),(0,_t.jsx)(VC,{})]}),(0,_t.jsx)(fR,{properties:r,setProperties:a,sn:n}),UR(r,h,l,s)]}):null}function GR(e){return Er("MuiDialog",e)}const KR=Dr("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),QR=t.createContext({}),YR=_r(em,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),ZR=_r(gm,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),XR=_r("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Vr(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),JR=_r(bm,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Vr(n.scroll)}`],t[`paperWidth${Vr(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Xa(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${KR.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${KR.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${KR.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),eT=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiDialog"}),o=Ur(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":r,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:d,children:h,className:u,disableEscapeKeyDown:g=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:f="sm",onClick:b,onClose:v,open:C,PaperComponent:_=bm,PaperProps:y={},role:w="dialog",scroll:A="paper",slots:S={},slotProps:x={},TransitionComponent:k=Yp,transitionDuration:L=s,TransitionProps:E,...D}=i,I={...i,disableEscapeKeyDown:g,fullScreen:p,fullWidth:m,maxWidth:f,scroll:A},N=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:s}=e;return Lt({root:["root"],backdrop:["backdrop"],container:["container",`scroll${Vr(n)}`],paper:["paper",`paperScroll${Vr(n)}`,`paperWidth${Vr(String(i))}`,o&&"paperFullWidth",s&&"paperFullScreen"]},GR,t)})(I),R=t.useRef(),T=na(a),M=t.useMemo(()=>({titleId:T}),[T]),O={slots:{transition:k,...S},slotProps:{transition:E,paper:y,backdrop:d,...x}},[q,P]=Nl("root",{elementType:ZR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:kt(N.root,u),ref:n}),[B,F]=Nl("backdrop",{elementType:YR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:N.backdrop}),[W,z]=Nl("paper",{elementType:JR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:N.paper,additionalProps:{elevation:24,role:w,"aria-describedby":r,"aria-labelledby":T,"aria-modal":l,tabIndex:-1,[Wp]:""}}),[V,H]=Nl("container",{elementType:XR,externalForwardedProps:O,ownerState:I,className:N.container}),[j,U]=Nl("transition",{elementType:Yp,externalForwardedProps:O,ownerState:I,additionalProps:{appear:!0,in:C,timeout:L,role:"presentation"}});return(0,_t.jsx)(q,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:L,as:c,...F}},disableEscapeKeyDown:g,onClose:v,open:C,onClick:e=>{b&&b(e),R.current&&(R.current=null,v&&v(e,"backdropClick"))},...P,...D,children:(0,_t.jsx)(j,{...U,children:(0,_t.jsx)(V,{onMouseDown:e=>{R.current=e.target===e.currentTarget},...H,children:(0,_t.jsx)(W,{as:_,...z,children:(0,_t.jsx)(QR.Provider,{value:M,children:h})})})})})}),tT=eT;function nT(e){return Er("MuiDialogTitle",e)}const iT=Dr("MuiDialogTitle",["root"]),oT=_r(yd,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),sT=t.forwardRef(function(e,n){const i=Sr({props:e,name:"MuiDialogTitle"}),{className:o,id:s,...r}=i,a=i,l=(e=>{const{classes:t}=e;return Lt({root:["root"]},nT,t)})(a),{titleId:c=s}=t.useContext(QR);return(0,_t.jsx)(oT,{component:"h2",className:kt(l.root,o),ownerState:a,ref:n,variant:"h6",id:s??c,...r})}),rT=sT;function aT(e){return Er("MuiDialogContent",e)}Dr("MuiDialogContent",["root","dividers"]);const lT=_r("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xa(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${iT.root} + &`]:{paddingTop:0}}}]}))),cT=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=n,r={...n,dividers:o},a=(e=>{const{classes:t,dividers:n}=e;return Lt({root:["root",n&&"dividers"]},aT,t)})(r);return(0,_t.jsx)(lT,{className:kt(a.root,i),ownerState:r,ref:t,...s})}),dT=cT;function hT(e){return Er("MuiDialogActions",e)}Dr("MuiDialogActions",["root","spacing"]);const uT=_r("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),gT=t.forwardRef(function(e,t){const n=Sr({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=n,r={...n,disableSpacing:o},a=(e=>{const{classes:t,disableSpacing:n}=e;return Lt({root:["root",!n&&"spacing"]},hT,t)})(r);return(0,_t.jsx)(uT,{className:kt(a.root,i),ownerState:r,ref:t,...s})}),pT=gT;n(13007),n(57625),n(58632),n(12436),n(75158),n(43372),n(48157),n(61139),n(81945),n(82481),n(62653),n(67669),n(66047),n(44551),n(66164),n(17616),n(21418),n(69720),n(45214),n(1023),n(93006),n(89359),n(40281),n(43950),n(18601),n(39640),n(16794),n(73538),n(26472),n(15045),n(2827),n(97731),n(7543),n(27873),n(57359),n(25951),n(99327),n(13232),n(65967),n(22384),n(85423),n(65241),n(62135),n(42568),n(13729),n(57334),n(45069),n(25864),n(63997),n(86607),n(84677),n(66215),n(12345),n(6803),n(31672),n(16013),n(15521),n(67607),n(34917),n(64910),n(27937),n(6469),n(42900),n(44043),n(65418),n(49289),n(55020),n(97293),n(77664),n(6291),n(81182),n(23316),n(62283);var mT,fT,bT,vT,CT,_T,yT,wT=n(6085),AT=Object.defineProperty,ST=(e,t,n)=>((e,t,n)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);(_T||(_T={})).create=function(e){return e},function(e){function t(e){return-32099<=e&&e<=-32e3}e.parseError=-32700,e.invalidRequest=-32600,e.methodNotFound=-32601,e.invalidParams=-32602,e.internalError=-32603,e.isServerError=t,e.serverError=function(e){if(!t(e))throw new Error("Invalid range for a server error.");return e},e.unexpectedServerError=-32e3,e.isApplicationError=function(e){return!0},e.applicationError=function(e){return e},e.genericApplicationError=-320100}(yT||(yT={}));var xT=class{constructor(){ST(this,"listeners",new Set),ST(this,"event",e=>(this.listeners.add(e),{dispose:()=>{this.listeners.delete(e)}}))}fire(e){this.listeners.forEach(t=>t(e))}},kT=class{constructor(e){ST(this,"_value"),ST(this,"eventEmitter"),this._value=e,this.eventEmitter=new xT}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.eventEmitter.fire(e))}get onChange(){return this.eventEmitter.event}};function LT(e,t,n){return e instanceof Set?(e.add(t),{dispose:()=>e.delete(t)}):(e.set(t,n),{dispose:()=>e.delete(t)})}var ET,DT,IT=class{constructor(){ST(this,"_state","none"),ST(this,"promise"),ST(this,"resolve",()=>{}),ST(this,"reject",()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}get state(){return this._state}},NT=(mT=class{constructor(){ST(this,"_unprocessedMessages",[]),ST(this,"_messageListener"),ST(this,"id",mT.id++),ST(this,"_state",new kT({state:"open"})),ST(this,"state",this._state)}setListener(e){if(this._messageListener=e,e)for(;this._unprocessedMessages.length>0&&void 0!==this._messageListener;){const e=this._unprocessedMessages.shift();this._messageListener(e)}}send(e){return this._sendImpl(e)}_dispatchReceivedMessage(e){0===this._unprocessedMessages.length&&this._messageListener?this._messageListener(e):this._unprocessedMessages.push(e)}_onConnectionClosed(){this._state.value={state:"closed",error:void 0}}log(e){return new NT(this,e??new RT)}},ST(mT,"id",0),class{constructor(e,t){ST(this,"baseStream"),ST(this,"logger"),this.baseStream=e,this.logger=t}get state(){return this.baseStream.state}setListener(e){void 0!==e?this.baseStream.setListener(t=>{this.logger.log(this.baseStream,"incoming",t),e(t)}):this.baseStream.setListener(void 0)}send(e){return this.logger.log(this.baseStream,"outgoing",e),this.baseStream.send(e)}toString(){return`StreamLogger/${this.baseStream.toString()}`}}),RT=class{log(e,t,n){const i="incoming"===t?"<-":"->";console.log(`${i} [${e.toString()}] ${JSON.stringify(n)}`)}},TT=class e{constructor(e){ST(this,"connect"),this.connect=e}mapContext(t){return new e(e=>this.connect(e?function(e,t){return{handleNotification:(n,i)=>e.handleNotification(n,t(i)),handleRequest:(n,i,o)=>e.handleRequest(n,i,t(o))}}(e,t):void 0))}},MT=class e{constructor(e,t,n){ST(this,"_stream"),ST(this,"_listener"),ST(this,"_logger"),ST(this,"_unprocessedResponses",new Map),ST(this,"_lastUsedRequestId",0),this._stream=e,this._listener=t,this._logger=n,this._stream.setListener(e=>{void 0!==e.method?void 0===e.id?this._processNotification(e):this._processRequest(e):this._processResponse(e)})}static createChannel(t,n){let i=!1;return new TT(o=>{if(i)throw new Error(`A channel to the stream ${t} was already constructed!`);return i=!0,new e(t,o,n)})}get state(){return this._stream.state}async _processNotification(e){if(void 0!==e.id)throw new Error;if(this._listener)try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}else this._logger&&this._logger.debug({text:"Notification ignored",message:e})}async _processRequest(e){if(void 0===e.id)throw new Error;let t,n;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:yT.internalError,message:"An unexpected exception was thrown.",data:void 0}}}else this._logger&&this._logger.debug({text:"Received request even though not listening for requests",message:e}),t={error:{code:yT.methodNotFound,message:"This endpoint does not listen for requests or notifications.",data:void 0}};n="result"in t?{jsonrpc:"2.0",id:e.id,result:t.result}:{jsonrpc:"2.0",id:e.id,error:t.error},await this._stream.send(n)}_processResponse(e){const t=""+e.id,n=this._unprocessedResponses.get(t);n?(this._unprocessedResponses.delete(t),n(e)):this._logger&&this._logger.debug({text:"Got an unexpected response message",message:e})}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,n){const i={jsonrpc:"2.0",id:this._newRequestId(),method:e.method,params:e.params||void 0};return n&&n(i.id),new Promise((e,t)=>{const n=""+i.id;this._unprocessedResponses.set(n,n=>{"result"in n?e({result:n.result}):(n.error||t(new Error("Response had neither 'result' nor 'error' field set.")),e({error:n.error}))}),this._stream.send(i).then(void 0,e=>{this._unprocessedResponses.delete(n),t(e)})})}sendNotification(e,t){const n={jsonrpc:"2.0",id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(n)}toString(){return"StreamChannel/"+this._stream.toString()}};(DT=ET||(ET={})).sAny=function(){return{deserializeFromJson:e=>({hasErrors:!1,value:e}),serializeToJson:e=>e}},DT.sEmptyObject=function(){return{deserializeFromJson:e=>({hasErrors:!1,value:{}}),serializeToJson:e=>({})}},DT.sVoidFromNull=function(){return{deserializeFromJson:e=>({hasErrors:!1,value:void 0}),serializeToJson:e=>null}};const OT=Symbol("OptionalMethodNotFound");var qT=class{contextualize(e){return new PT(this,e)}},PT=class extends qT{constructor(e,t){super(),ST(this,"underylingTypedChannel"),ST(this,"converters"),this.underylingTypedChannel=e,this.converters=t}async request(e,t,n){const i=await this.converters.getSendContext(n);return this.underylingTypedChannel.request(e,t,i)}async notify(e,t,n){const i=await this.converters.getSendContext(n);return this.underylingTypedChannel.notify(e,t,i)}registerNotificationHandler(e,t){return this.underylingTypedChannel.registerNotificationHandler(e,async(e,n)=>await t(e,await this.converters.getNewContext(n)))}registerRequestHandler(e,t){return this.underylingTypedChannel.registerRequestHandler(e,async(e,n,i)=>await t(e,n,await this.converters.getNewContext(i)))}},BT=class e extends qT{constructor(e,t={}){super(),ST(this,"channelCtor"),ST(this,"_requestSender"),ST(this,"_handler",new Map),ST(this,"_unknownNotificationHandler",new Set),ST(this,"_timeout"),ST(this,"sendExceptionDetails",!1),ST(this,"_logger"),ST(this,"listeningDeferred",new IT),ST(this,"onListening",this.listeningDeferred.promise),ST(this,"_requestDidErrorEventEmitter",new xT),ST(this,"onRequestDidError",this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=function(e,t){const n=setTimeout(t,1e3);return{dispose:()=>clearTimeout(n)}}(0,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(t,n={}){return new e(MT.createChannel(t,n.logger),n)}startListen(){if(this._requestSender)throw new Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&(this._timeout.dispose(),this._timeout=void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,n)=>this.handleRequest(e,t,n),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw new Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,n){const i=this._handler.get(e.method);if(!i)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:yT.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if("request"!=i.kind){const t=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e}}),{error:{code:yT.invalidRequest,message:t,data:{method:e.method}}}}const o=i.requestType.paramsSerializer.deserializeFromJson(e.params);if(o.hasErrors){const t=`Got invalid params: ${o.errorMessage}`;return this._logger&&this._logger.debug({text:t,data:{requestObject:e,errorMessage:o.errorMessage}}),{error:{code:yT.invalidParams,message:t,data:{errors:o.errorMessage}}}}{const s=o.value;let r;try{const e=await i.handler(s,t,n);if("error"in e||"errorMessage"in e){const t=e.error?i.requestType.errorSerializer.serializeToJson(e.error):void 0;r={error:{code:e.errorCode||yT.genericApplicationError,message:e.errorMessage||"An error was returned",data:t}}}else r={result:i.requestType.resultSerializer.serializeToJson(e.ok)}}catch(t){t instanceof WT?r={error:{code:t.code,message:t.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${t}.`,exception:t,data:{requestObject:e}}),r={error:{code:yT.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${t}.`:"Server has thrown an unexpected exception"}})}return r}}async handleNotification(e,t){const n=this._handler.get(e.method);if(!n){for(const t of this._unknownNotificationHandler)t(e);return void(0===this._unknownNotificationHandler.size&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}}))}if("notification"!=n.kind)return void(this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}}));const i=n.notificationType.paramsSerializer.deserializeFromJson(e.params);if(i.hasErrors)return void(this._logger&&this._logger.debug({text:`Got invalid params: ${i}`,data:{requestObject:e,errorMessage:i.errorMessage}}));const o=i.value;for(const i of n.handlers)try{i(o,t)}catch(t){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${t}.`,exception:t,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return LT(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw new Error(`Handler with method "${e.method}" already registered.`);return LT(this._handler,e.method,{kind:"request",requestType:e,handler:t})}registerNotificationHandler(e,t){let n=this._handler.get(e.method);if(n){if("notification"!==n.kind)throw new Error(`Method "${e.method}" was already registered as request handler.`);if(n.notificationType!==e)throw new Error(`Method "${e.method}" was registered for a different type.`)}else n={kind:"notification",notificationType:e,handlers:new Set},this._handler.set(e.method,n);return LT(n.handlers,t)}getRegisteredTypes(){const e=[];for(const t of this._handler.values())"notification"===t.kind?e.push(t.notificationType):"request"===t.kind&&e.push(t.requestType);return e}async request(e,t,n){if(!this.checkChannel(this._requestSender))throw new Error("Impossible");const i=e.paramsSerializer.serializeToJson(t);FT(i);const o=await this._requestSender.sendRequest({method:e.method,params:i},n);if("error"in o){if(e.isOptional&&o.error.code===yT.methodNotFound)return OT;let t;if(void 0!==o.error.data){const n=e.errorSerializer.deserializeFromJson(o.error.data);if(n.hasErrors)throw new Error(n.errorMessage);t=n.value}else t=void 0;const n=new WT(o.error.message,t,o.error.code);throw this._requestDidErrorEventEmitter.fire({error:n}),n}{const t=e.resultSerializer.deserializeFromJson(o.result);if(t.hasErrors)throw new Error("Could not deserialize response: "+t.errorMessage+`\n\n${JSON.stringify(o,null,2)}`);return t.value}}async notify(e,t,n){if(!this.checkChannel(this._requestSender))throw new Error;const i=e.paramsSerializer.serializeToJson(t);FT(i),this._requestSender.sendNotification({method:e.method,params:i},n)}};function FT(e){if(null!==e&&Array.isArray(e)&&"object"!=typeof e)throw new Error("Invalid value! Only null, array and object is allowed.")}var WT=class e extends Error{constructor(t,n,i=yT.genericApplicationError){super(t),ST(this,"data"),ST(this,"code"),this.data=n,this.code=i,Object.setPrototypeOf(this,e.prototype)}},zT=class e{constructor(e,t,n,i,o=!1){ST(this,"method"),ST(this,"paramsSerializer"),ST(this,"resultSerializer"),ST(this,"errorSerializer"),ST(this,"isOptional"),ST(this,"kind","request"),this.method=e,this.paramsSerializer=t,this.resultSerializer=n,this.errorSerializer=i,this.isOptional=o}withMethod(t){return new e(t,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new e(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},VT=class e{constructor(e,t){ST(this,"method"),ST(this,"paramsSerializer"),ST(this,"kind","notification"),this.method=e,this.paramsSerializer=t}withMethod(t){return new e(t,this.paramsSerializer)}};function HT(e){return new zT((e||{}).method,ET.sAny(),ET.sAny(),ET.sAny())}function jT(e){return new VT((e||{}).method,ET.sAny())}const UT=Symbol();var $T=(fT=UT,bT=class{constructor(e){ST(this,"error"),ST(this,fT),this.error=e}},ST(bT,"factory",e=>new bT(e)),bT);function GT(e){const t={};for(const[n,i]of Object.entries(e)){const e=i.method?i.method:n;t[n]=i.withMethod(e)}return t}var KT=class e{constructor(e=[],t,n){ST(this,"tags"),ST(this,"server"),ST(this,"client"),this.tags=e,this.server=t,this.client=n}_onlyDesignTime(){return new Error("This property is not meant to be accessed at runtime")}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,n,i){const o=this.buildCounterpart(e,n),s=this.registerHandlers(e,t,i,o);return{counterpart:o,dispose:()=>s.dispose()}}buildCounterpart(e,t){const n={};for(const[i,o]of Object.entries(t)){let t;t="request"===o.kind?o.isOptional?async(t,n)=>{void 0===t&&(t={});try{return await e.request(o,t,n)}catch(e){if(e&&e.code===yT.methodNotFound)return OT;throw e}}:(t,n)=>(void 0===t&&(t={}),e.request(o,t,n)):(t,n)=>(void 0===t&&(t={}),e.notify(o,t,n)),n[i]=t}return n}registerHandlers(e,t,n,i){const o=[];for(const[s,r]of Object.entries(t))if("request"===r.kind){let t=n[s];if(!t)continue;const a=this.createRequestHandler(i,t);o.push(e.registerRequestHandler(r,a))}else{const t=n[s];t&&o.push(e.registerNotificationHandler(r,(e,n)=>{t(e,{context:n,counterpart:i})}))}return{dispose:()=>o.forEach(e=>e.dispose())}}createRequestHandler(e,t){return async(n,i,o)=>{const s=await t(n,{context:o,counterpart:e,newErr:$T.factory,requestId:i});return s instanceof $T?s.error:{ok:s}}}static getServerFromStream(e,t,n,i){const o=BT.fromTransport(t,n),{server:s}=e.getServer(o,i);return o.startListen(),{channel:o,server:s}}static registerServerToStream(e,t,n,i){const o=BT.fromTransport(t,n),{client:s}=e.registerServer(o,i);return o.startListen(),{channel:o,client:s}}getServer(e,t){const{counterpart:n,dispose:i}=this.getInterface(e,this.client,this.server,t);return{server:n,dispose:i}}registerServer(e,t){const{counterpart:n,dispose:i}=this.getInterface(e,this.server,this.client,t);return{client:n,dispose:i}}withContext(){return new e(this.tags,this.server,this.client)}};let QT=function(e){return e.Comment="comment",e.Imports="imports",e.Region="region",e}({}),YT=function(e){return e[e.File=1]="File",e[e.Module=2]="Module",e[e.Namespace=3]="Namespace",e[e.Package=4]="Package",e[e.Class=5]="Class",e[e.Method=6]="Method",e[e.Property=7]="Property",e[e.Field=8]="Field",e[e.Constructor=9]="Constructor",e[e.Enum=10]="Enum",e[e.Interface=11]="Interface",e[e.Function=12]="Function",e[e.Variable=13]="Variable",e[e.Constant=14]="Constant",e[e.String=15]="String",e[e.Number=16]="Number",e[e.Boolean=17]="Boolean",e[e.Array=18]="Array",e[e.Object=19]="Object",e[e.Key=20]="Key",e[e.Null=21]="Null",e[e.EnumMember=22]="EnumMember",e[e.Struct=23]="Struct",e[e.Event=24]="Event",e[e.Operator=25]="Operator",e[e.TypeParameter=26]="TypeParameter",e}({}),ZT=function(e){return e[e.Deprecated=1]="Deprecated",e}({}),XT=function(e){return e[e.Type=1]="Type",e[e.Parameter=2]="Parameter",e}({}),JT=function(e){return e[e.Text=1]="Text",e[e.Method=2]="Method",e[e.Function=3]="Function",e[e.Constructor=4]="Constructor",e[e.Field=5]="Field",e[e.Variable=6]="Variable",e[e.Class=7]="Class",e[e.Interface=8]="Interface",e[e.Module=9]="Module",e[e.Property=10]="Property",e[e.Unit=11]="Unit",e[e.Value=12]="Value",e[e.Enum=13]="Enum",e[e.Keyword=14]="Keyword",e[e.Snippet=15]="Snippet",e[e.Color=16]="Color",e[e.File=17]="File",e[e.Reference=18]="Reference",e[e.Folder=19]="Folder",e[e.EnumMember=20]="EnumMember",e[e.Constant=21]="Constant",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter",e}({}),eM=function(e){return e[e.Deprecated=1]="Deprecated",e}({}),tM=function(e){return e[e.PlainText=1]="PlainText",e[e.Snippet=2]="Snippet",e}({}),nM=function(e){return e[e.Text=1]="Text",e[e.Read=2]="Read",e[e.Write=3]="Write",e}({}),iM=function(e){return e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e}({}),oM=function(e){return e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Information=3]="Information",e[e.Hint=4]="Hint",e}({}),sM=function(e){return e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated",e}({}),rM=function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e}({}),aM=function(e){return e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange",e}({}),lM=function(e){return e[e.Invoked=1]="Invoked",e[e.Automatic=2]="Automatic",e}({});var cM=class{constructor(e){this.method=e}};const dM={textDocumentImplementation:new cM("textDocument/implementation"),textDocumentTypeDefinition:new cM("textDocument/typeDefinition"),textDocumentDocumentColor:new cM("textDocument/documentColor"),textDocumentColorPresentation:new cM("textDocument/colorPresentation"),textDocumentFoldingRange:new cM("textDocument/foldingRange"),textDocumentDeclaration:new cM("textDocument/declaration"),textDocumentSelectionRange:new cM("textDocument/selectionRange"),textDocumentPrepareCallHierarchy:new cM("textDocument/prepareCallHierarchy"),textDocumentSemanticTokensFull:new cM("textDocument/semanticTokens/full"),textDocumentSemanticTokensFullDelta:new cM("textDocument/semanticTokens/full/delta"),textDocumentLinkedEditingRange:new cM("textDocument/linkedEditingRange"),workspaceWillCreateFiles:new cM("workspace/willCreateFiles"),workspaceWillRenameFiles:new cM("workspace/willRenameFiles"),workspaceWillDeleteFiles:new cM("workspace/willDeleteFiles"),textDocumentMoniker:new cM("textDocument/moniker"),textDocumentPrepareTypeHierarchy:new cM("textDocument/prepareTypeHierarchy"),textDocumentInlineValue:new cM("textDocument/inlineValue"),textDocumentInlayHint:new cM("textDocument/inlayHint"),textDocumentDiagnostic:new cM("textDocument/diagnostic"),textDocumentInlineCompletion:new cM("textDocument/inlineCompletion"),textDocumentWillSaveWaitUntil:new cM("textDocument/willSaveWaitUntil"),textDocumentCompletion:new cM("textDocument/completion"),textDocumentHover:new cM("textDocument/hover"),textDocumentSignatureHelp:new cM("textDocument/signatureHelp"),textDocumentDefinition:new cM("textDocument/definition"),textDocumentReferences:new cM("textDocument/references"),textDocumentDocumentHighlight:new cM("textDocument/documentHighlight"),textDocumentDocumentSymbol:new cM("textDocument/documentSymbol"),textDocumentCodeAction:new cM("textDocument/codeAction"),workspaceSymbol:new cM("workspace/symbol"),textDocumentCodeLens:new cM("textDocument/codeLens"),textDocumentDocumentLink:new cM("textDocument/documentLink"),textDocumentFormatting:new cM("textDocument/formatting"),textDocumentRangeFormatting:new cM("textDocument/rangeFormatting"),textDocumentRangesFormatting:new cM("textDocument/rangesFormatting"),textDocumentOnTypeFormatting:new cM("textDocument/onTypeFormatting"),textDocumentRename:new cM("textDocument/rename"),workspaceExecuteCommand:new cM("workspace/executeCommand"),workspaceDidCreateFiles:new cM("workspace/didCreateFiles"),workspaceDidRenameFiles:new cM("workspace/didRenameFiles"),workspaceDidDeleteFiles:new cM("workspace/didDeleteFiles"),workspaceDidChangeConfiguration:new cM("workspace/didChangeConfiguration"),textDocumentDidOpen:new cM("textDocument/didOpen"),textDocumentDidChange:new cM("textDocument/didChange"),textDocumentDidClose:new cM("textDocument/didClose"),textDocumentDidSave:new cM("textDocument/didSave"),textDocumentWillSave:new cM("textDocument/willSave"),workspaceDidChangeWatchedFiles:new cM("workspace/didChangeWatchedFiles")};!function(e){const t=GT(e.server),n=GT(e.client);new KT(e.tags||[],t,n)}({server:{textDocumentImplementation:HT({method:"textDocument/implementation"}),textDocumentTypeDefinition:HT({method:"textDocument/typeDefinition"}),textDocumentDocumentColor:HT({method:"textDocument/documentColor"}),textDocumentColorPresentation:HT({method:"textDocument/colorPresentation"}),textDocumentFoldingRange:HT({method:"textDocument/foldingRange"}),textDocumentDeclaration:HT({method:"textDocument/declaration"}),textDocumentSelectionRange:HT({method:"textDocument/selectionRange"}),textDocumentPrepareCallHierarchy:HT({method:"textDocument/prepareCallHierarchy"}),callHierarchyIncomingCalls:HT({method:"callHierarchy/incomingCalls"}),callHierarchyOutgoingCalls:HT({method:"callHierarchy/outgoingCalls"}),textDocumentSemanticTokensFull:HT({method:"textDocument/semanticTokens/full"}),textDocumentSemanticTokensFullDelta:HT({method:"textDocument/semanticTokens/full/delta"}),textDocumentSemanticTokensRange:HT({method:"textDocument/semanticTokens/range"}),textDocumentLinkedEditingRange:HT({method:"textDocument/linkedEditingRange"}),workspaceWillCreateFiles:HT({method:"workspace/willCreateFiles"}),workspaceWillRenameFiles:HT({method:"workspace/willRenameFiles"}),workspaceWillDeleteFiles:HT({method:"workspace/willDeleteFiles"}),textDocumentMoniker:HT({method:"textDocument/moniker"}),textDocumentPrepareTypeHierarchy:HT({method:"textDocument/prepareTypeHierarchy"}),typeHierarchySupertypes:HT({method:"typeHierarchy/supertypes"}),typeHierarchySubtypes:HT({method:"typeHierarchy/subtypes"}),textDocumentInlineValue:HT({method:"textDocument/inlineValue"}),textDocumentInlayHint:HT({method:"textDocument/inlayHint"}),inlayHintResolve:HT({method:"inlayHint/resolve"}),textDocumentDiagnostic:HT({method:"textDocument/diagnostic"}),workspaceDiagnostic:HT({method:"workspace/diagnostic"}),textDocumentInlineCompletion:HT({method:"textDocument/inlineCompletion"}),initialize:HT({method:"initialize"}),shutdown:HT({method:"shutdown"}),textDocumentWillSaveWaitUntil:HT({method:"textDocument/willSaveWaitUntil"}),textDocumentCompletion:HT({method:"textDocument/completion"}),completionItemResolve:HT({method:"completionItem/resolve"}),textDocumentHover:HT({method:"textDocument/hover"}),textDocumentSignatureHelp:HT({method:"textDocument/signatureHelp"}),textDocumentDefinition:HT({method:"textDocument/definition"}),textDocumentReferences:HT({method:"textDocument/references"}),textDocumentDocumentHighlight:HT({method:"textDocument/documentHighlight"}),textDocumentDocumentSymbol:HT({method:"textDocument/documentSymbol"}),textDocumentCodeAction:HT({method:"textDocument/codeAction"}),codeActionResolve:HT({method:"codeAction/resolve"}),workspaceSymbol:HT({method:"workspace/symbol"}),workspaceSymbolResolve:HT({method:"workspaceSymbol/resolve"}),textDocumentCodeLens:HT({method:"textDocument/codeLens"}),codeLensResolve:HT({method:"codeLens/resolve"}),textDocumentDocumentLink:HT({method:"textDocument/documentLink"}),documentLinkResolve:HT({method:"documentLink/resolve"}),textDocumentFormatting:HT({method:"textDocument/formatting"}),textDocumentRangeFormatting:HT({method:"textDocument/rangeFormatting"}),textDocumentRangesFormatting:HT({method:"textDocument/rangesFormatting"}),textDocumentOnTypeFormatting:HT({method:"textDocument/onTypeFormatting"}),textDocumentRename:HT({method:"textDocument/rename"}),textDocumentPrepareRename:HT({method:"textDocument/prepareRename"}),workspaceExecuteCommand:HT({method:"workspace/executeCommand"}),workspaceDidChangeWorkspaceFolders:jT({method:"workspace/didChangeWorkspaceFolders"}),windowWorkDoneProgressCancel:jT({method:"window/workDoneProgress/cancel"}),workspaceDidCreateFiles:jT({method:"workspace/didCreateFiles"}),workspaceDidRenameFiles:jT({method:"workspace/didRenameFiles"}),workspaceDidDeleteFiles:jT({method:"workspace/didDeleteFiles"}),notebookDocumentDidOpen:jT({method:"notebookDocument/didOpen"}),notebookDocumentDidChange:jT({method:"notebookDocument/didChange"}),notebookDocumentDidSave:jT({method:"notebookDocument/didSave"}),notebookDocumentDidClose:jT({method:"notebookDocument/didClose"}),initialized:jT({method:"initialized"}),exit:jT({method:"exit"}),workspaceDidChangeConfiguration:jT({method:"workspace/didChangeConfiguration"}),textDocumentDidOpen:jT({method:"textDocument/didOpen"}),textDocumentDidChange:jT({method:"textDocument/didChange"}),textDocumentDidClose:jT({method:"textDocument/didClose"}),textDocumentDidSave:jT({method:"textDocument/didSave"}),textDocumentWillSave:jT({method:"textDocument/willSave"}),workspaceDidChangeWatchedFiles:jT({method:"workspace/didChangeWatchedFiles"}),setTrace:jT({method:"$/setTrace"}),cancelRequest:jT({method:"$/cancelRequest"}),progress:jT({method:"$/progress"})},client:{workspaceWorkspaceFolders:HT({method:"workspace/workspaceFolders"}).optional(),workspaceConfiguration:HT({method:"workspace/configuration"}).optional(),workspaceFoldingRangeRefresh:HT({method:"workspace/foldingRange/refresh"}).optional(),windowWorkDoneProgressCreate:HT({method:"window/workDoneProgress/create"}).optional(),workspaceSemanticTokensRefresh:HT({method:"workspace/semanticTokens/refresh"}).optional(),windowShowDocument:HT({method:"window/showDocument"}).optional(),workspaceInlineValueRefresh:HT({method:"workspace/inlineValue/refresh"}).optional(),workspaceInlayHintRefresh:HT({method:"workspace/inlayHint/refresh"}).optional(),workspaceDiagnosticRefresh:HT({method:"workspace/diagnostic/refresh"}).optional(),clientRegisterCapability:HT({method:"client/registerCapability"}).optional(),clientUnregisterCapability:HT({method:"client/unregisterCapability"}).optional(),windowShowMessageRequest:HT({method:"window/showMessageRequest"}).optional(),workspaceCodeLensRefresh:HT({method:"workspace/codeLens/refresh"}).optional(),workspaceApplyEdit:HT({method:"workspace/applyEdit"}).optional(),windowShowMessage:jT({method:"window/showMessage"}),windowLogMessage:jT({method:"window/logMessage"}),telemetryEvent:jT({method:"telemetry/event"}),textDocumentPublishDiagnostics:jT({method:"textDocument/publishDiagnostics"}),logTrace:jT({method:"$/logTrace"}),cancelRequest:jT({method:"$/cancelRequest"}),progress:jT({method:"$/progress"})}}),vT=class{constructor(){ST(this,"_store",new hM)}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}},ST(vT,"None",Object.freeze({dispose(){}}));var hM=(CT=class{constructor(){ST(this,"_toDispose",new Set),ST(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(0!==this._toDispose.size)try{for(const e of this._toDispose)e.dispose()}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?CT.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}},ST(CT,"DISABLE_DISPOSED_WARNING",!1),CT);iM.Empty,iM.QuickFix,iM.Refactor,iM.RefactorExtract,iM.RefactorInline,iM.RefactorRewrite,iM.Source,iM.SourceOrganizeImports,iM.SourceFixAll,wT.eo.CodeActionTriggerType.Invoke,lM.Invoked,wT.eo.CodeActionTriggerType.Auto,lM.Automatic,JT.Text,wT.eo.CompletionItemKind.Text,JT.Method,wT.eo.CompletionItemKind.Method,JT.Function,wT.eo.CompletionItemKind.Function,JT.Constructor,wT.eo.CompletionItemKind.Constructor,JT.Field,wT.eo.CompletionItemKind.Field,JT.Variable,wT.eo.CompletionItemKind.Variable,JT.Class,wT.eo.CompletionItemKind.Class,JT.Interface,wT.eo.CompletionItemKind.Interface,JT.Module,wT.eo.CompletionItemKind.Module,JT.Property,wT.eo.CompletionItemKind.Property,JT.Unit,wT.eo.CompletionItemKind.Unit,JT.Value,wT.eo.CompletionItemKind.Value,JT.Enum,wT.eo.CompletionItemKind.Enum,JT.Keyword,wT.eo.CompletionItemKind.Keyword,JT.Snippet,wT.eo.CompletionItemKind.Snippet,JT.Color,wT.eo.CompletionItemKind.Color,JT.File,wT.eo.CompletionItemKind.File,JT.Reference,wT.eo.CompletionItemKind.Reference,JT.Folder,wT.eo.CompletionItemKind.Folder,JT.EnumMember,wT.eo.CompletionItemKind.EnumMember,JT.Constant,wT.eo.CompletionItemKind.Constant,JT.Struct,wT.eo.CompletionItemKind.Struct,JT.Event,wT.eo.CompletionItemKind.Event,JT.Operator,wT.eo.CompletionItemKind.Operator,JT.TypeParameter,wT.eo.CompletionItemKind.TypeParameter,eM.Deprecated,wT.eo.CompletionItemTag.Deprecated,wT.eo.CompletionTriggerKind.Invoke,rM.Invoked,wT.eo.CompletionTriggerKind.TriggerCharacter,rM.TriggerCharacter,wT.eo.CompletionTriggerKind.TriggerForIncompleteCompletions,rM.TriggerForIncompleteCompletions,tM.Snippet,wT.eo.CompletionItemInsertTextRule.InsertAsSnippet,YT.File,wT.eo.SymbolKind.File,YT.Module,wT.eo.SymbolKind.Module,YT.Namespace,wT.eo.SymbolKind.Namespace,YT.Package,wT.eo.SymbolKind.Package,YT.Class,wT.eo.SymbolKind.Class,YT.Method,wT.eo.SymbolKind.Method,YT.Property,wT.eo.SymbolKind.Property,YT.Field,wT.eo.SymbolKind.Field,YT.Constructor,wT.eo.SymbolKind.Constructor,YT.Enum,wT.eo.SymbolKind.Enum,YT.Interface,wT.eo.SymbolKind.Interface,YT.Function,wT.eo.SymbolKind.Function,YT.Variable,wT.eo.SymbolKind.Variable,YT.Constant,wT.eo.SymbolKind.Constant,YT.String,wT.eo.SymbolKind.String,YT.Number,wT.eo.SymbolKind.Number,YT.Boolean,wT.eo.SymbolKind.Boolean,YT.Array,wT.eo.SymbolKind.Array,YT.Object,wT.eo.SymbolKind.Object,YT.Key,wT.eo.SymbolKind.Key,YT.Null,wT.eo.SymbolKind.Null,YT.EnumMember,wT.eo.SymbolKind.EnumMember,YT.Struct,wT.eo.SymbolKind.Struct,YT.Event,wT.eo.SymbolKind.Event,YT.Operator,wT.eo.SymbolKind.Operator,YT.TypeParameter,wT.eo.SymbolKind.TypeParameter,ZT.Deprecated,wT.eo.SymbolTag.Deprecated,nM.Text,wT.eo.DocumentHighlightKind.Text,nM.Read,wT.eo.DocumentHighlightKind.Read,nM.Write,wT.eo.DocumentHighlightKind.Write,QT.Comment,wT.eo.FoldingRangeKind.Comment,QT.Imports,wT.eo.FoldingRangeKind.Imports,QT.Region,wT.eo.FoldingRangeKind.Region,wT.cj.Error,oM.Error,wT.cj.Warning,oM.Warning,wT.cj.Info,oM.Information,wT.cj.Hint,oM.Hint,oM.Error,wT.cj.Error,oM.Warning,wT.cj.Warning,oM.Information,wT.cj.Info,oM.Hint,wT.cj.Hint,sM.Unnecessary,wT.d_.Unnecessary,sM.Deprecated,wT.d_.Deprecated,wT.eo.SignatureHelpTriggerKind.Invoke,aM.Invoked,wT.eo.SignatureHelpTriggerKind.TriggerCharacter,aM.TriggerCharacter,wT.eo.SignatureHelpTriggerKind.ContentChange,aM.ContentChange,XT.Type,wT.eo.InlayHintKind.Type,XT.Parameter,wT.eo.InlayHintKind.Parameter,new Map([...Object.values(dM)].map(e=>[e.method,e])),"undefined"!=typeof WebSocket?WebSocket:"undefined"!=typeof MozWebSocket?MozWebSocket:void 0!==n.g?n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(self.WebSocket||self.MozWebSocket);const uM={},gM={};class pM{static getOrCreate(e){return gM[e]||(gM[e]=new pM(e)),gM[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,uM[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}}function mM(e){const t=e.id;uM[t]=e,wT.eo.register(e);const n=pM.getOrCreate(t);wT.eo.registerTokensProviderFactory(t,{create:async()=>(await n.load()).language}),wT.eo.onLanguageEncountered(t,async()=>{const e=await n.load();wT.eo.setLanguageConfiguration(t,e.conf)})}mM({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>n.e(9063).then(n.bind(n,49063))}),mM({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>n.e(8487).then(n.bind(n,68487))}),mM({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>n.e(7485).then(n.bind(n,77485))}),mM({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>n.e(2269).then(n.bind(n,22269))}),mM({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>n.e(3125).then(n.bind(n,83125))}),mM({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>n.e(8445).then(n.bind(n,58445))}),mM({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>n.e(9405).then(n.bind(n,39405))}),mM({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>n.e(839).then(n.bind(n,10839))}),mM({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>n.e(3457).then(n.bind(n,23457))}),mM({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>n.e(3457).then(n.bind(n,23457))}),mM({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>n.e(7517).then(n.bind(n,7517))}),mM({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>n.e(6861).then(n.bind(n,56861))}),mM({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>n.e(2989).then(n.bind(n,12989))}),mM({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>n.e(6177).then(n.bind(n,6177))}),mM({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>n.e(6389).then(n.bind(n,16389))}),mM({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>n.e(8751).then(n.bind(n,38751))}),mM({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>n.e(3029).then(n.bind(n,3029))}),mM({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>n.e(6837).then(n.bind(n,96837))}),mM({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>n.e(9341).then(n.bind(n,39341))}),mM({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>n.e(9879).then(n.bind(n,29879))}),mM({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAutoInterpolationDollar)}),mM({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAngleInterpolationDollar)}),mM({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagBracketInterpolationDollar)}),mM({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAngleInterpolationBracket)}),mM({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagBracketInterpolationBracket)}),mM({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAutoInterpolationDollar)}),mM({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>n.e(7341).then(n.bind(n,47341)).then(e=>e.TagAutoInterpolationBracket)}),mM({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>n.e(5123).then(n.bind(n,95123))}),mM({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>n.e(4909).then(n.bind(n,94909))}),mM({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>n.e(4291).then(n.bind(n,44291))}),mM({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>n.e(6189).then(n.bind(n,16189))}),mM({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>n.e(9693).then(n.bind(n,69693))}),mM({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>n.e(9677).then(n.bind(n,69677))}),mM({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>n.e(5551).then(n.bind(n,45551))}),mM({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>n.e(6301).then(n.bind(n,46301))}),mM({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>n.e(505).then(n.bind(n,70505))}),mM({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>n.e(2077).then(n.bind(n,22077))}),mM({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>n.e(3229).then(n.bind(n,43229))}),mM({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>n.e(2033).then(n.bind(n,22033))}),mM({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>n.e(1809).then(n.bind(n,41809))}),mM({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>n.e(9183).then(n.bind(n,29183))}),mM({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>n.e(4147).then(n.bind(n,64147))}),mM({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>n.e(2925).then(n.bind(n,52925))}),mM({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>n.e(9469).then(n.bind(n,89469))}),mM({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>n.e(2909).then(n.bind(n,72909))}),mM({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>n.e(9457).then(n.bind(n,89457))}),mM({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>n.e(713).then(n.bind(n,50713))}),mM({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>n.e(2781).then(n.bind(n,62781))}),mM({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>n.e(707).then(n.bind(n,80707))}),mM({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>n.e(8845).then(n.bind(n,68845))}),mM({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>n.e(2869).then(n.bind(n,72869))}),mM({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>n.e(2445).then(n.bind(n,82445))}),mM({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>n.e(189).then(n.bind(n,20189))}),mM({id:"pla",extensions:[".pla"],loader:()=>n.e(1573).then(n.bind(n,31573))}),mM({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>n.e(7085).then(n.bind(n,27085))}),mM({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>n.e(9833).then(n.bind(n,49833))}),mM({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>n.e(2861).then(n.bind(n,82861))}),mM({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>n.e(8765).then(n.bind(n,38765))}),mM({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>n.e(7425).then(n.bind(n,47425))}),mM({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>n.e(6107).then(n.bind(n,46107))}),mM({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>n.e(1517).then(n.bind(n,31517))}),mM({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>n.e(7193).then(n.bind(n,27193))}),mM({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>n.e(2625).then(n.bind(n,12625))}),mM({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>n.e(1549).then(n.bind(n,81549))}),mM({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>n.e(6901).then(n.bind(n,86901))}),mM({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>n.e(5085).then(n.bind(n,5085))}),mM({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>n.e(6023).then(n.bind(n,86023))}),mM({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>n.e(3479).then(n.bind(n,63479))}),mM({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>n.e(9325).then(n.bind(n,9325))}),mM({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>n.e(813).then(n.bind(n,20813))}),mM({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>n.e(7673).then(n.bind(n,47673))}),mM({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>n.e(8287).then(n.bind(n,8287))}),mM({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>n.e(9681).then(n.bind(n,9681))}),mM({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>n.e(2061).then(n.bind(n,12061))}),mM({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>n.e(4163).then(n.bind(n,34163))}),mM({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>n.e(9645).then(n.bind(n,59645))}),mM({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>n.e(4585).then(n.bind(n,54585))}),mM({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>n.e(77).then(n.bind(n,30077))}),mM({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>n.e(829).then(n.bind(n,90829))}),mM({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>n.e(1557).then(n.bind(n,91557))}),mM({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>n.e(1557).then(n.bind(n,91557))}),mM({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>n.e(8909).then(n.bind(n,28909))}),mM({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>n.e(1069).then(n.bind(n,71069))}),mM({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>n.e(5469).then(n.bind(n,45469))}),mM({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>n.e(7145).then(n.bind(n,7145))}),mM({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>n.e(4923).then(n.bind(n,34923))}),mM({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>n.e(3101).then(n.bind(n,83101))}),mM({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>n.e(101).then(n.bind(n,82482))}),mM({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>n.e(4401).then(n.bind(n,44401))});class fM{constructor(e,t,n){this._onDidChange=new wT.vl,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const bM={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},vM={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},CM=new fM("css",bM,vM),_M=new fM("scss",bM,vM),yM=new fM("less",bM,vM);function wM(){return Promise.all([n.e(9440),n.e(7441)]).then(n.bind(n,57441))}wT.eo.onLanguage("less",()=>{wM().then(e=>e.setupMode(yM))}),wT.eo.onLanguage("scss",()=>{wM().then(e=>e.setupMode(_M))}),wT.eo.onLanguage("css",()=>{wM().then(e=>e.setupMode(CM))});class AM{constructor(e,t,n){this._onDidChange=new wT.vl,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}const SM={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function xM(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===kM,documentFormattingEdits:e===kM,documentRangeFormattingEdits:e===kM}}const kM="html",LM="handlebars",EM="razor";function DM(e,t=SM,i=xM(e)){const o=new AM(e,t,i);let s;const r=wT.eo.onLanguage(e,async()=>{s=(await Promise.all([n.e(9440),n.e(4719)]).then(n.bind(n,54719))).setupMode(o)});return{defaults:o,dispose(){r.dispose(),s?.dispose(),s=void 0}}}DM(kM,SM,xM(kM)).defaults,DM(LM,SM,xM(LM)).defaults,DM(EM,SM,xM(EM)).defaults;const IM=new class{constructor(e,t,n){this._onDidChange=new wT.vl,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});wT.eo.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),wT.eo.onLanguage("json",()=>{Promise.all([n.e(9440),n.e(7325)]).then(n.bind(n,67325)).then(e=>e.setupMode(IM))}),n(9690);var NM=n(37553);const RM="__monacoFindWidgetTabIndexPatchApplied",TM="__monacoFindWidgetOriginalTabIndex";function MM(e,t){const n=e?._domNode;if(!n)return;const i=n.querySelectorAll('input, textarea, [tabindex], [role="button"], [role="checkbox"]');for(const e of i)if(e instanceof HTMLElement)if(t){if(!(TM in e.dataset))continue;const t=e.dataset[TM];""===t?e.removeAttribute("tabindex"):e.tabIndex=Number(t),delete e.dataset[TM]}else TM in e.dataset||(e.dataset[TM]=e.getAttribute("tabindex")??""),e.tabIndex=-1}if(!NM.CX[RM]){const e=NM.CX.prototype._reveal,t=NM.CX.prototype._hide;NM.CX.prototype._reveal=function(...t){e.apply(this,t),MM(this,!0)},NM.CX.prototype._hide=function(...e){t.apply(this,e),MM(this,!1)},NM.CX[RM]=!0}function OM({model:e,show:n,close:i}){const[o,s]=(0,t.useState)(""),[r,a]=(0,t.useState)(null),[l,c]=(0,t.useState)([]),[d,h,u]=yp(),g=Ur(),p=(0,t.useCallback)(()=>{l.length||e.setProperties(JSON.parse(r.getValue())).then(i)});return(0,t.useEffect)(()=>{if(!n)return;const t=()=>{e&&n&&e.getProperties().then(e=>{n&&s(JSON.stringify(e||{},null,2))})};return e.on("changed",t),t(),()=>{e&&e.removeListener("changed",t)}},[e&&e.id,n]),(0,t.useEffect)(()=>{if(!(d&&u&&h&&o))return;const{left:e,top:t,width:n,height:i}=h;if(0===e&&0===t&&0===n&&0===i)return;const s=wT.EN.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});s.layout({width:h.width,height:h.height});const r=s.onDidChangeModelDecorations(()=>{const e=wT.EN.getModelMarkers();c(e)});return s.focus(),a(s),()=>{r.dispose();const e=s.getModel();e&&e.dispose(),s.dispose()}},[u,h,o]),(0,_t.jsxs)(tT,{disableEscapeKeyDown:!0,open:n,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}},children:[(0,_t.jsx)(rT,{children:"Modify object properties"}),(0,_t.jsx)(dT,{dividers:!0,children:(0,_t.jsx)("div",{ref:d,style:{overflow:"hidden",height:"100%"}})}),(0,_t.jsxs)(pT,{children:[(0,_t.jsx)(Bu,{variant:"contained",onClick:i,children:"Cancel"}),(0,_t.jsx)(Bu,{variant:"contained",onClick:p,disabled:l.length>0,children:"Confirm"})]})]})}const qM=t.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),PM=t.createContext();function BM({id:e,onLoad:n}){const i=(0,t.useContext)(PM),o=(0,t.useRef)();return(0,t.useEffect)(()=>{const t=i.render({id:e,element:o.current});return t.then(e=>{n(e,o.current)}),()=>{t.then(e=>{e.destroy()})}},[e]),(0,_t.jsx)("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}n.dn(VM);const FM="Cell",WM={secondaryIcon:`${FM}-secondaryIcon`,drop:`${FM}-drop`},zM=_r(ud)(({theme:e})=>({[`& .${WM.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${WM.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}}));function VM({id:e,expandable:n,minHeight:i}){const o=(0,t.useContext)(MI),[s]=gp(),[r,a]=(0,t.useState)(null),[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)(null),{currentThemeName:u,activeViz:g,setActiveViz:p,setExpandedObject:m,expandedObject:f}=(0,t.useContext)(qM),b=f===e,v=(0,t.useRef)();(0,t.useEffect)(()=>{const t=o.getObject(e).then(t=>(a(t),s.set(`${e}`,t),t));return()=>{t.then(e=>e.emit("close"))}},[e]);const[C,_]=(0,t.useState)(!1),y=(0,t.useCallback)(()=>{_(!1)},[]),w=(0,t.useCallback)((e,t)=>{v.current={viz:e,el:t},h(e)},[e]),A=(0,t.useCallback)((e=!1)=>{if(v.current)if(e)c(!0),v.current.viz.__DO_NOT_USE__.exportImage().then(e=>{e&&e.url&&window.open(e.url),c(!1)});else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then(t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)})}},[r,u]),S=!b&&v.current&&g&&g===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=g===d;return(0,_t.jsxs)(zM,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"},children:[(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsxs)(KD,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1},children:[(0,_t.jsx)(OM,{model:r,show:C,close:y}),(0,_t.jsx)(Uc,{title:"Modify object properties",className:WM.secondaryIcon,disabled:!r,onClick:()=>_(!0),size:"large",children:Yd({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})}),(0,_t.jsx)(Uc,{title:"Open in single render view",className:WM.secondaryIcon,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})}),(0,_t.jsx)(Uc,{title:"Take and render as snapshot",className:WM.secondaryIcon,disabled:!r,onClick:()=>A(),size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})}),l?(0,_t.jsx)(Fc,{size:24}):(0,_t.jsx)(Uc,{title:"Export as image",className:WM.secondaryIcon,disabled:!r,onClick:()=>A(!0),size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})}),(0,_t.jsx)(ud,{sx:{flex:1}}),n&&(0,_t.jsx)(Uc,{title:"Edit",className:WM.secondaryIcon,disabled:!d||x,onClick:()=>p(d),size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})}),n&&(0,_t.jsx)(Uc,{title:"Expand",disabled:!r||!d,className:WM.secondaryIcon,onClick:()=>{b?m(null):(m(e),p(d))},size:"large",children:Yd({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:b?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})})]})}),(0,_t.jsx)(ud,{item:!0,xs:!0,style:{...S,flex:1,minHeight:0},className:WM.drop,children:(0,_t.jsx)(BM,{id:e,onLoad:w})})]})}function HM({info:e,storage:n,uid:i}){const o=(0,t.useContext)(PM),{activeViz:s,setActiveViz:r}=(0,t.useContext)(qM),[a]=TI(s?.model);return(0,t.useEffect)(()=>{if(!i)return;const t=o.render({type:e.supernova.name,properties:{...!1!==n.get("readFromCache")?n.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return t.then(e=>{r(e)}),()=>{t.then(e=>e.destroy())}},[i]),(0,t.useEffect)(()=>{a&&n.props(e.supernova.name,a)},[a]),s&&s.id===i?(0,_t.jsx)(ud,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"},children:(0,_t.jsx)(ud,{item:!0,xs:!0,style:{flex:1,minWidth:0},children:(0,_t.jsx)(VM,{id:i})})}):null}function jM({types:e,cache:n}){const i=(0,t.useContext)(MI),[o]=_p(i),[s,r]=(0,t.useState)(null),{expandedObject:a}=(0,t.useContext)(qM);if((0,t.useEffect)(()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then(e=>{r(e.slice(0,20))})},[o,e.join(":")]),!s)return null;const l=a?s.filter(e=>e.qInfo.qId===a):s;return(0,_t.jsx)(ud,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0},children:l[0]?l.map(e=>(0,_t.jsx)(ud,{item:!0,xs:12,md:a?12:6,lg:a?12:4,children:(0,_t.jsx)(VM,{id:e.qInfo.qId,expandable:!0,minHeight:600})},`${e.qInfo.qId}::${n}`)):(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsxs)("div",{children:[(0,_t.jsx)(yd,{display:"inline",children:"Could not find any components with "}),(0,_t.jsx)(yd,{display:"inline",children:(0,_t.jsx)("code",{children:`qType: "${e[0]}"`})}),(0,_t.jsx)(yd,{display:"inline",children:" in the current app"})]})})})}const UM=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],$M=["select","active","passive"];function GM(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function KM(){const e=(0,t.useRef)(),n=le(),{info:i}=mt(),{waiting:o,app:s}=(({info:e})=>{const[n,i]=(0,t.useState)(null),[o,s]=(0,t.useState)(!0);(0,t.useEffect)(()=>{s(!0),e&&r().then(e=>i(e)).catch(e=>console.log(e)).finally(()=>s(!1))},[e]);const r=async()=>{try{const{clientId:t,webIntegrationId:n,engine:i=null,engine:{host:o}={}}=e,s=e?.engine?.appId;if(!s)throw new Error("Missing appId in connection info");return n?rt({appId:s,hostConfig:{authType:"cookie",webIntegrationId:n,host:o}}).getDoc():t?rt({appId:s,hostConfig:{authType:"oauth2",clientId:t,host:o,redirectUri:`${window.location.origin}/auth/login/callback`,accessTokenStorage:"session"}}).getDoc():rt({appId:s,hostConfig:{authType:"noauth",host:`${!1!==i.secure?"https":"http"}://${i.host}${i.port?`:${i.port}`:""}`}}).getDoc()}catch(e){throw new Error("Failed to open app!",{cause:e})}};return{waiting:o,app:n,setApp:i}})({info:i}),r=(0,t.useMemo)(()=>Ct(s),[s]),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[g,p]=(0,t.useState)(r.get("themeName")),[m,f]=(0,t.useState)(r.get("language")||"en-US"),[b,v]=(0,t.useState)("light"),[C,_]=(0,t.useState)($M),[y,w]=(0,t.useState)(!0===r.get("objectListMode")),A=(0,t.useRef)(null),[S,x]=(0,t.useState)(),[k,L]=t.useState(null),[E,D]=t.useState(null),[I,N]=(0,t.useState)(!1),[R,T]=(0,t.useState)(null),M=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],[O,q]=(0,t.useState)(),P=(0,t.useMemo)(()=>ja(b),[b]),B=(0,t.useMemo)(()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d}),[a,c,g]);(0,t.useEffect)(()=>{(async()=>{i&&(await function(e){const t=()=>{NI(e.supernova.name,e.supernova.url).then(t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,RI[n]&&RI[n].forEach(e=>e())})};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map(e=>NI(e.name,e.url).then(t=>{window[e.name]=t}));return Promise.all(t)}return Promise.resolve()}(i),N(!0))})()},[i]),(0,t.useEffect)(()=>{if(o||!I)return;const e=SD(s,{context:{theme:g,language:m,interactions:GM(C),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map(e=>({id:e,load:()=>fetch(`/theme/${e}`).then(e=>e.json()).then(e=>(v("dark"===e.type?"dark":"light"),e))})):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach(t=>{e.__DO_NOT_USE__.types.register(t)}),T(e)},[s,i,o,I]),(0,t.useLayoutEffect)(()=>{R&&(R.context({theme:g}),"light"!==g&&"dark"!==g||v(g))},[R,g]);const F=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),x(e.current))};return(0,t.useEffect)(()=>{R&&(R.selections().then(e=>e.mount(A.current)),window.onHotChange(i?.supernova.name,()=>{R.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),R.__DO_NOT_USE__.types.register(i?.supernova),F(),R.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(u)}),F())},[R,i]),(0,t.useEffect)(()=>{const t=()=>{s&&s.destroySessionObject(e.current)};if(window.addEventListener("beforeunload",t),s){const e=dp(s.id),t=hp(s.id);q({modelStore:e,selectionStore:t,myKey:"this is the key here"})}return()=>{window.removeEventListener("beforeunload",t)}},[s]),(0,_t.jsx)(rp.Provider,{value:O,children:(0,_t.jsx)(MI.Provider,{value:s,children:(0,_t.jsx)(qa,{injectFirst:!0,children:(0,_t.jsx)(Ra,{theme:P,children:(0,_t.jsx)(PM.Provider,{value:R,children:(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",direction:"column",style:{background:P.palette.background.darkest,height:"100%"},gap:0,children:[(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)(KD,{variant:"dense",style:{background:P.palette.background.paper,boxShadow:P.shadows[1],width:"calc(100% - 48px)"},children:(0,_t.jsxs)(ud,{container:!0,gap:1,style:{width:"100%"},children:[(0,_t.jsx)(ud,{item:!0,container:!0,alignItems:"center",children:(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer",children:(0,_t.jsx)("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})})})}),(0,_t.jsx)(ud,{item:!0,container:!0,alignItems:"center",children:(0,_t.jsx)(Uc,{title:"Home",onClick:()=>n("/"),size:"large",children:(0,_t.jsx)(WD,{style:{verticalAlign:"middle"}})})}),(0,_t.jsx)(ud,{children:(0,_t.jsxs)(Uh,{value:y?1:0,onChange:(e,t)=>{const n=1===t;r.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation",children:[(0,_t.jsx)(Yh,{label:(0,_t.jsx)(yd,{children:"Create"}),value:0}),(0,_t.jsx)(Yh,{label:(0,_t.jsx)(yd,{children:"Edit"}),value:1})]})}),(0,_t.jsxs)(ud,{item:!0,container:!0,alignItems:"center",offset:{md:"auto"},children:[(0,_t.jsx)(ud,{item:!0,gap:1,children:(0,_t.jsx)(yd,{children:"State:"})}),(0,_t.jsx)(ud,{item:!0,gap:2,children:(0,_t.jsxs)(iI,{size:"small",value:C,onChange:(e,t)=>{_(t),R&&R.context({interactions:GM(t)})},color:"primary",children:[(0,_t.jsx)(aI,{value:"select",children:"Select"}),(0,_t.jsx)(aI,{value:"active",children:"Active"}),(0,_t.jsx)(aI,{value:"passive",children:"Passive"}),(0,_t.jsx)(aI,{value:"edit",children:"Edit"})]})}),(0,_t.jsx)(ud,{item:!0,children:M.length?(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Uc,{title:"Select theme",onClick:e=>L(e.currentTarget),size:"large",children:(0,_t.jsx)(zD,{fontSize:"small"})}),(0,_t.jsx)(mI,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>L(null),children:M.map(e=>(0,_t.jsx)(r_,{selected:e===g,onClick:()=>(e=>{L(null),r.save("themeName",e),p(e)})(e),children:e},e))})]}):(0,_t.jsx)(Uc,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";r.save("themeName",e),p(e),v(e)},size:"large",children:"dark"===g?(0,_t.jsx)(VD,{fontSize:"small"}):(0,_t.jsx)(HD,{fontSize:"small"})})}),(0,_t.jsxs)(ud,{item:!0,children:[(0,_t.jsx)(Bu,{startIcon:(0,_t.jsx)(jD,{}),title:"Select language",onClick:e=>D(e.currentTarget),children:m}),(0,_t.jsx)(mI,{anchorEl:E,open:!!E,keepMounted:!0,onClose:()=>D(null),children:UM.map(e=>(0,_t.jsx)(r_,{selected:e===m,onClick:()=>{return t=e,D(null),r.save("language",t),f(t),void(R&&R.context({language:t}));var t},children:e},e))})]})]})]})})}),(0,_t.jsx)(ud,{item:!0,style:{padding:P.spacing(1,1,0,1)},children:(0,_t.jsx)("div",{ref:A,style:{flex:"0 0 auto",boxShadow:P.shadows[1]}})}),(0,_t.jsx)(ud,{item:!0,xs:!0,style:{flex:1,minHeight:0,overflowX:"hidden",overflowY:"auto",padding:P.spacing(0,1,1,1)},children:(0,_t.jsx)(qM.Provider,{value:B,children:h?(0,_t.jsxs)(ud,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1,children:[(0,_t.jsx)(ud,{item:!0,xs:!0,style:{flex:1,minWidth:0},children:y?(0,_t.jsx)(jM,{cache:S,types:[i?.supernova.name]}):(0,_t.jsx)(HM,{info:i,storage:r,uid:S})}),a&&(0,_t.jsx)(ud,{item:!0,style:{background:P.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:P.shadows[1],padding:0},children:(0,_t.jsx)($R,{sn:h,viz:a,isTemp:!y,storage:r,flags:i?.flags})})]}):(0,_t.jsx)(ud,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center",children:(0,_t.jsx)(ud,{item:!0,children:(0,_t.jsx)(Fc,{})})})})})]})})})})})})}const QM=()=>(0,_t.jsx)(Ua,{children:(0,_t.jsxs)(Bl,{marginTop:5,children:[(0,_t.jsx)(yd,{variant:"h4",gutterBottom:!0,children:"Error!"}),(0,_t.jsx)(yd,{variant:"subtitle1",gutterBottom:!0,children:"OAUTH REDIRECT LINK ERROR!"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:["We updated our route which was previously had the responsibility to handle the redirected link including the correct credentials to have"," ",(0,_t.jsx)("code",{children:(0,_t.jsx)("b",{children:"/auth/"})})," ","part within it. This change is now impacting your redirect links if you already using your old client-id."]}),(0,_t.jsx)(yd,{variant:"h6",gutterBottom:!0,children:"Here is what you need to do:"}),(0,_t.jsxs)(yd,{variant:"body2",paragraph:!0,children:[(0,_t.jsx)("b",{children:"1."})," Go to your tenant that you created your client id",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"2."})," Open Managment console",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"3."})," Click on OAuth menu in left panel (if you dont see that menu it means you dont have access to it and you need to ask a person who has the proper access)",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"4."})," Find your Client id and from ... menu, click on edit",(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"5."}),' There is a section called "Add redirect URLs", find it and add your new link. The only difference is that your new link will include `/auth/` part in it, for example, if you had this redirect link previously:',(0,_t.jsx)("code",{children:"http://localhost:8000/login/callback"}),(0,_t.jsx)("br",{}),"now it will be like:",(0,_t.jsxs)("code",{children:["http://localhost:8000/",(0,_t.jsx)("b",{children:"auth/"}),"login/callback"]}),(0,_t.jsx)("br",{}),(0,_t.jsx)("br",{}),(0,_t.jsx)("b",{children:"6."})," Click on save and you are set!",(0,_t.jsx)("br",{})]})]})}),YM=()=>(0,_t.jsx)(je,{children:(0,_t.jsx)(St,{children:(0,_t.jsxs)(Se,{children:[(0,_t.jsxs)(we,{element:(0,_t.jsx)(Hl,{}),children:[(0,_t.jsx)(we,{path:"/",element:(0,_t.jsx)(Gu,{})}),(0,_t.jsx)(we,{path:"/app-list",element:(0,_t.jsx)(Ku,{})})]}),(0,_t.jsx)(we,{path:"/dev",element:(0,_t.jsx)(KM,{})}),(0,_t.jsx)(we,{path:"/login/callback",element:(0,_t.jsx)(QM,{})})]})})});o.createRoot(document.querySelector("#app")).render((0,_t.jsx)(YM,{}))})()})();
103
103
  //# sourceMappingURL=eHub.js.map