@nebula.js/cli-serve 6.0.0-alpha.4 → 6.0.0-alpha.6
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 +1 -1
- package/dist/eRender.js +1 -1
- package/package.json +8 -8
package/dist/eHub.js
CHANGED
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
animation: ${ud} 1.4s linear infinite;
|
|
100
100
|
`:null,md="string"!=typeof gd?Ba`
|
|
101
101
|
animation: ${gd} 1.4s ease-in-out infinite;
|
|
102
|
-
`:null,fd=Xs("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${va(n.color)}`]]}})(ql((({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:pd||{animation:`${ud} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),bd=Xs("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_d=Xs("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${va(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ql((({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:md||{animation:`${gd} 1.4s ease-in-out infinite`}}]})))),vd=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate",...h}=n,u={...n,color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d},g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e;return tn({root:["root",n,`color${va(i)}`],svg:["svg"],circle:["circle",`circle${va(n)}`,o&&"circleDisableShrink"]},hd,t)})(u),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Js.jsx)(fd,{className:en(g.root,i),style:{width:s,height:s,...m,...a},ownerState:u,ref:t,role:"progressbar",...f,...h,children:(0,Js.jsx)(bd,{className:g.svg,ownerState:u,viewBox:"22 22 44 44",children:(0,Js.jsx)(_d,{className:g.circle,style:p,ownerState:u,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})})})),Cd=vd;function yd(e){return sa("MuiIconButton",e)}const wd=aa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ad=Xs(dd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${va(n.color)}`],n.edge&&t[`edge${va(n.edge)}`],t[`size${va(n.size)}`]]}})(ql((({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.action.active,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}}]}))),ql((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar((e.vars||e).palette[t].main,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)}}],[`&.${wd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${wd.loading}`]:{color:"transparent"}})))),Sd=Xs("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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"}}]}))),xd=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:r,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium",id:d,loading:h=null,loadingIndicator:u,...g}=n,p=Lc(d),m=u??(0,Js.jsx)(Cd,{"aria-labelledby":p,color:"inherit",size:16}),f={...n,edge:i,color:s,disabled:a,disableFocusRipple:l,loading:h,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:i,edge:o,size:r,loading:s}=e;return tn({root:["root",s&&"loading",n&&"disabled","default"!==i&&`color${va(i)}`,o&&`edge${va(o)}`,`size${va(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},yd,t)})(f);return(0,Js.jsxs)(Ad,{id:h?p:d,className:en(b.root,r),centerRipple:!0,focusRipple:!l,disabled:a||h,ref:t,...g,ownerState:f,children:["boolean"==typeof h&&(0,Js.jsx)("span",{className:b.loadingWrapper,style:{display:"contents"},children:(0,Js.jsx)(Sd,{className:b.loadingIndicator,ownerState:f,children:h&&m})}),o]})})),kd=xd,Ed=t.createContext();function Ld(e){return sa("MuiGrid",e)}const Dd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Id=aa("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Dd.map((e=>`grid-xs-${e}`)),...Dd.map((e=>`grid-sm-${e}`)),...Dd.map((e=>`grid-md-${e}`)),...Dd.map((e=>`grid-lg-${e}`)),...Dd.map((e=>`grid-xl-${e}`))]),Nd=Id;function Rd({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const i=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return i.slice(0,i.indexOf(n))}const Td=Xs("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:o,item:r,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let d=[];i&&(d=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&i.push(n[`spacing-${t}-${String(o)}`])})),i}(s,c,t));const h=[];return c.forEach((e=>{const i=n[e];i&&h.push(t[`grid-${e}-${String(i)}`])})),[t.root,i&&t.container,r&&t.item,l&&t.zeroMinWidth,...d,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==a&&t[`wrap-xs-${String(a)}`],...h]}})((({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},..."wrap"!==e.wrap&&{flexWrap:e.wrap}})),(function({theme:e,ownerState:t}){return ro({theme:e},ao({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return e.startsWith("column")&&(t[`& > .${Nd.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let o={};if(n&&0!==i){const t=ao({values:i,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Rd({breakpoints:e.breakpoints.values,values:t})),o=ro({theme:e},t,((t,i)=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`calc(-1 * ${o})`,[`& > .${Nd.item}`]:{paddingTop:o}}:n?.includes(i)?{}:{marginTop:0,[`& > .${Nd.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let o={};if(n&&0!==i){const t=ao({values:i,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Rd({breakpoints:e.breakpoints.values,values:t})),o=ro({theme:e},t,((t,i)=>{const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${o})`,marginLeft:`calc(-1 * ${o})`,[`& > .${Nd.item}`]:{paddingLeft:o}}:n?.includes(i)?{}:{width:"100%",marginLeft:0,[`& > .${Nd.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((i,o)=>{let r={};if(t[o]&&(n=t[o]),!n)return i;if(!0===n)r={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=ao({values:t.columns,breakpoints:e.breakpoints.values}),a="object"==typeof s?s[o]:s;if(null==a)return i;const l=Math.round(n/a*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${n})`;c={flexBasis:e,maxWidth:e}}}r={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return 0===e.breakpoints.values[o]?Object.assign(i,r):i[e.breakpoints.up(o)]=r,i}),{})})),Md=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiGrid"}),{breakpoints:o}=wa(),r=Il(i),{className:s,columns:a,columnSpacing:l,component:c="div",container:d=!1,direction:h="row",item:u=!1,rowSpacing:g,spacing:p=0,wrap:m="wrap",zeroMinWidth:f=!1,...b}=r,_=g||p,v=l||p,C=t.useContext(Ed),y=d?a||12:C,w={},A={...b};o.keys.forEach((e=>{null!=b[e]&&(w[e]=b[e],delete A[e])}));const S={...r,columns:y,container:d,direction:h,item:u,rowSpacing:_,columnSpacing:v,wrap:m,zeroMinWidth:f,spacing:p,...w,breakpoints:o.keys},x=(e=>{const{classes:t,container:n,direction:i,item:o,spacing:r,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const i=e[t];if(Number(i)>0){const e=`spacing-${t}-${String(i)}`;n.push(e)}})),n}(r,l));const d=[];return l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)})),tn({root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,"row"!==i&&`direction-xs-${String(i)}`,"wrap"!==s&&`wrap-xs-${String(s)}`,...d]},Ld,t)})(S);return(0,Js.jsx)(Ed.Provider,{value:y,children:(0,Js.jsx)(Td,{ownerState:S,className:en(x.root,s),as:c,ref:n,...A})})})),Od=Md,qd=function(e){return(0,Js.jsx)(za,{...e,defaultTheme:Gs,themeId:Ks})};function Pd(e){return sa("MuiTypography",e)}const Bd=aa("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},Wd=Il,Vd=Xs("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${va(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ql((({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(Dc()).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${va(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}}]})))),zd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hd=t.forwardRef((function(e,t){const{color:n,...i}=na({props:e,name:"MuiTypography"}),o=Wd({...i,...!Fd[n]&&{color:n}}),{align:r="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:u=zd,...g}=o,p={...o,align:r,color:n,className:s,component:a,gutterBottom:l,noWrap:c,paragraph:d,variant:h,variantMapping:u},m=a||(d?"p":u[h]||zd[h])||"span",f=(e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:r,classes:s}=e;return tn({root:["root",r,"inherit"!==e.align&&`align${va(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]},Pd,s)})(p);return(0,Js.jsx)(Vd,{as:m,ref:t,className:en(f.root,s),...g,ownerState:p,style:{..."inherit"!==r&&{"--Typography-textAlign":r},...g.style}})})),jd=Hd;function Ud(e){return sa("MuiLink",e)}const $d=aa("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Gd=({theme:e,ownerState:t})=>{const n=t.color,i=ho(e,`palette.${n}.main`,!1)||ho(e,`palette.${n}`,!1)||t.color,o=ho(e,`palette.${n}.mainChannel`)||ho(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ar(i,.4)},Kd={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Yd=Xs(jd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${va(n.underline)}`],"button"===n.component&&t.button]}})(ql((({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)"}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Ar(e.palette[t].main,.4)}}))),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ar(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Ar(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"},[`&.${$d.focusVisible}`]:{outline:"auto"}}}]})))),Zd=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiLink"}),o=wa(),{className:r,color:s="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:s,component:a,focusVisible:m,underline:h,variant:u},_=(e=>{const{classes:t,component:n,focusVisible:i,underline:o}=e;return tn({root:["root",`underline${va(o)}`,"button"===n&&"button",i&&"focusVisible"]},Ud,t)})(b);return(0,Js.jsx)(Yd,{color:s,className:en(_.root,r),classes:d,component:a,onBlur:e=>{Ic(e.target)||f(!1),l&&l(e)},onFocus:e=>{Ic(e.target)&&f(!0),c&&c(e)},ref:n,ownerState:b,variant:u,...p,sx:[...void 0===Kd[s]?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...p.style,..."always"===h&&"inherit"!==s&&!Kd[s]&&{"--Link-underlineColor":Gd({theme:o,ownerState:b})}}})})),Xd=Zd;var Qd=s(8485);var Jd="unmounted",eh="exited",th="entering",nh="entered",ih="exiting",oh=function(e){function n(t,n){var i;i=e.call(this,t,n)||this;var o,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o=eh,i.appearStatus=th):o=nh:o=t.unmountOnExit||t.mountOnEnter?Jd:eh,i.state={status:o},i.nextCallback=null,i}Wc(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Jd?{status:eh}: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!==th&&n!==nh&&(t=th):n!==th&&n!==nh||(t=ih)}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===th){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Qd.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eh&&this.setState({status:Jd})},i.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[Qd.findDOMNode(this),i],r=o[0],s=o[1],a=this.getTimeouts(),l=i?a.appear:a.enter;e||n?(this.props.onEnter(r,s),this.safeSetState({status:th},(function(){t.props.onEntering(r,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:nh},(function(){t.props.onEntered(r,s)}))}))}))):this.safeSetState({status:nh},(function(){t.props.onEntered(r)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:Qd.findDOMNode(this);t?(this.props.onExit(i),this.safeSetState({status:ih},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:eh},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:eh},(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:Qd.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],r=o[0],s=o[1];this.props.addEndListener(r,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Jd)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,Pc(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Vc.Provider,{value:null},"function"==typeof i?i(e,o):t.cloneElement(t.Children.only(i),o))},n}(t.Component);function rh(){}oh.contextType=Vc,oh.propTypes={},oh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rh,onEntering:rh,onEntered:rh,onExit:rh,onExiting:rh,onExited:rh},oh.UNMOUNTED=Jd,oh.EXITED=eh,oh.ENTERING=th,oh.ENTERED=nh,oh.EXITING=ih;const sh=oh,ah=e=>e.scrollTop;function lh(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 ch(e){return sa("MuiCollapse",e)}aa("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const dh=Xs("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]}})(ql((({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"}}]})))),hh=Xs("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),uh=Xs("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),gh=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiCollapse"}),{addEndListener:o,children:r,className:s,collapsedSize:a="0px",component:l,easing:c,in:d,onEnter:h,onEntered:u,onEntering:g,onExit:p,onExited:m,onExiting:f,orientation:b="vertical",style:_,timeout:v=ks.standard,TransitionComponent:C=sh,...y}=i,w={...i,orientation:b,collapsedSize:a},A=(e=>{const{orientation:t,classes:n}=e;return tn({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},ch,n)})(w),S=wa(),x=Zc(),k=t.useRef(null),E=t.useRef(),L="number"==typeof a?`${a}px`:a,D="horizontal"===b,I=D?"width":"height",N=t.useRef(null),R=Nc(n,N),T=e=>t=>{if(e){const n=N.current;void 0===t?e(n):e(n,t)}},M=()=>k.current?k.current[D?"clientWidth":"clientHeight"]:0,O=T(((e,t)=>{k.current&&D&&(k.current.style.position="absolute"),e.style[I]=L,h&&h(e,t)})),q=T(((e,t)=>{const n=M();k.current&&D&&(k.current.style.position="");const{duration:i,easing:o}=lh({style:_,timeout:v,easing:c},{mode:"enter"});if("auto"===v){const t=S.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,E.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[I]=`${n}px`,e.style.transitionTimingFunction=o,g&&g(e,t)})),P=T(((e,t)=>{e.style[I]="auto",u&&u(e,t)})),B=T((e=>{e.style[I]=`${M()}px`,p&&p(e)})),F=T(m),W=T((e=>{const t=M(),{duration:n,easing:i}=lh({style:_,timeout:v,easing:c},{mode:"exit"});if("auto"===v){const n=S.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,E.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[I]=L,e.style.transitionTimingFunction=i,f&&f(e)}));return(0,Js.jsx)(C,{in:d,onEnter:O,onEntered:P,onEntering:q,onExit:B,onExited:F,onExiting:W,addEndListener:e=>{"auto"===v&&x.start(E.current||0,e),o&&o(N.current,e)},nodeRef:N,timeout:"auto"===v?null:v,...y,children:(e,{ownerState:t,...n})=>(0,Js.jsx)(dh,{as:l,className:en(A.root,s,{entered:A.entered,exited:!d&&"0px"===L&&A.hidden}[e]),style:{[D?"minWidth":"minHeight"]:L,..._},ref:R,ownerState:{...w,state:e},...n,children:(0,Js.jsx)(hh,{ownerState:{...w,state:e},className:A.wrapper,ref:k,children:(0,Js.jsx)(uh,{ownerState:{...w,state:e},className:A.wrapperInner,children:r})})})})}));gh&&(gh.muiSupportAuto=!0);const ph=gh,mh=({showGuid:e})=>t.createElement(ph,{in:e},t.createElement(jd,{variant:"h6",gutterBottom:!0,style:{marginTop:"1rem"}},"WebSocket URL"),t.createElement(jd,{variant:"body2",paragraph:!0},"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."),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"Qlik Cloud Services"),t.createElement(jd,{variant:"body2",paragraph:!0},t.createElement("b",null,"Web integration id format:"),"There are two ways in order to connect through WebSocket:",t.createElement("br",null),"1. ",t.createElement("code",null,"qlik-web-integration-id"),t.createElement("br",null),"2. ",t.createElement("code",null,"qlik-client-id"),t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"Web integration id:"),t.createElement("br",null),t.createElement("code",null,"wss://<tenant>.<region>.qlikcloud.com?qlik-web-integration-id=<web-integration-id>"),t.createElement("br",null),"Example: ",t.createElement("code",null,"wss://qlik.eu.qlikcloud.com?qlik-web-integration-id=xxx"),t.createElement("br",null),t.createElement("br",null),"For more info, visit"," ",t.createElement(Xd,{color:"secondary",underline:"always",href:"https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-adminster-web-integrations.htm"},"Managing web integrations"),"."),t.createElement(jd,{variant:"body2",paragraph:!0},t.createElement("b",null,"OAuth Client ID URL format:"),t.createElement("br",null),t.createElement("code",null,"wss://<tenant>.<region>.qlikcloud.com?qlik-client-id=<client-id>"),t.createElement("br",null),"Example: ",t.createElement("code",null,"wss://qlik.eu.qlikcloud.com?qlik-client-id=xxx"),t.createElement("br",null),"Redirect URL form: ",t.createElement("code",null,"http://localhost:8000/auth/login/callback"),t.createElement("br",null),"The ",t.createElement("code",null,"qlik-web-integration-id")," ",t.createElement("b",null,"OR")," ",t.createElement("code",null,"qlik-client-id")," must be present in order for QCS to confirm that the request originates from a whitelisted domain.",t.createElement("br",null),t.createElement("br",null)),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"Qlik Sense on Windows"),t.createElement(jd,{variant:"body2",paragraph:!0},"WebSocket URL format: ",t.createElement("code",null,"wss://<sense-host.com>/<virtual-proxy-prefix>"),t.createElement("br",null),"Example: ",t.createElement("code",null,"wss://mycompany.com/bi"),t.createElement("br",null),t.createElement("br",null),"Note that for the Qlik Sense Proxy to allow sessions from this webpage,",t.createElement("code",null,window.location.host)," needs to be whitelisted in QMC in your Qlik Sense on Windows deployment. In addition, you need to enable ",t.createElement("i",null,"Has secure attribute")," and set ",t.createElement("i",null,"SameSite attribute")," to ",t.createElement("i",null,"None"),".",t.createElement("br",null),'Also some "Additional reponse headers" needs to align with the whitelisted domain:',t.createElement("ul",null,t.createElement("li",null,"Access-Control-Allow-Origin: ",t.createElement("code",null,window.location.host)),t.createElement("li",null,"Access-Control-Allow-Credentials: true"),t.createElement("li",null,"Access-Control-Expose-Headers: qlik-csrf-token")),"Make sure you are logged in to Qlik Sense in another browser tab."),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"Qlik Sense Desktop"),t.createElement(jd,{variant:"body2",paragraph:!0},"WebSocket URL format: ",t.createElement("code",null,"ws://localhost:4848")));function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fh.apply(null,arguments)}function bh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function _h({size:e,style:n={},viewBox:i="0 0 16 16",shapes:o=[]}){const r={fontSize:bh(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return t.createElement("i",{style:r},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:i,fill:"currentColor"},o.map((({type:e,attrs:n},i)=>t.createElement(e,fh({key:i},n))))))}const vh=e=>_h((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)),Ch=t.createContext({});function yh(e){return sa("MuiList",e)}aa("MuiList",["root","padding","dense","subheader"]);const wh=Xs("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}}]}),Ah=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiList"}),{children:o,className:r,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...d}=i,h=t.useMemo((()=>({dense:a})),[a]),u={...i,component:s,dense:a,disablePadding:l},g=(e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return tn({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},yh,t)})(u);return(0,Js.jsx)(Ch.Provider,{value:h,children:(0,Js.jsxs)(wh,{as:s,className:en(g.root,r),ref:n,ownerState:u,...d,children:[c,o]})})})),Sh=Ah,xh=Ia;function kh(e){return sa("MuiListItemButton",e)}const Eh=aa("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Lh=Xs(dd,{shouldForwardProp:e=>Zs(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]}})(ql((({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"}},[`&.${Eh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eh.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}}]})))),Dh=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:h,selected:u=!1,className:g,...p}=i,m=t.useContext(Ch),f=t.useMemo((()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c})),[o,m.dense,l,c]),b=t.useRef(null);xh((()=>{r&&b.current&&b.current.focus()}),[r]);const _={...i,alignItems:o,dense:f.dense,disableGutters:c,divider:d,selected:u},v=(e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:r,divider:s,selected:a}=e,l=tn({root:["root",i&&"dense",!r&&"gutters",s&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",a&&"selected"]},kh,n);return{...n,...l}})(_),C=Nc(b,n);return(0,Js.jsx)(Ch.Provider,{value:f,children:(0,Js.jsx)(Lh,{ref:C,href:p.href||p.to,component:(p.href||p.to)&&"div"===s?"button":s,focusVisibleClassName:en(v.focusVisible,h),ownerState:_,className:en(v.root,g),...p,classes:v,children:a})})})),Ih=Dh;function Nh(e){return sa("MuiListItemText",e)}const Rh=aa("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Th=Xs("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rh.primary}`]:t.primary},{[`& .${Rh.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,[`.${Bd.root}:where(& .${Rh.primary})`]:{display:"block"},[`.${Bd.root}:where(& .${Rh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Mh=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemText"}),{children:o,className:r,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h,slots:u={},slotProps:g={},...p}=i,{dense:m}=t.useContext(Ch);let f=null!=l?l:o,b=d;const _={...i,disableTypography:s,inset:a,primary:!!f,secondary:!!b,dense:m},v=(e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:r}=e;return tn({root:["root",n&&"inset",r&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Nh,t)})(_),C={slots:u,slotProps:{primary:c,secondary:h,...g}},[y,w]=pc("root",{className:en(v.root,r),elementType:Th,externalForwardedProps:{...C,...p},ownerState:_,ref:n}),[A,S]=pc("primary",{className:v.primary,elementType:jd,externalForwardedProps:C,ownerState:_}),[x,k]=pc("secondary",{className:v.secondary,elementType:jd,externalForwardedProps:C,ownerState:_});return null==f||f.type===jd||s||(f=(0,Js.jsx)(A,{variant:m?"body2":"body1",component:S?.variant?void 0:"span",...S,children:f})),null==b||b.type===jd||s||(b=(0,Js.jsx)(x,{variant:"body2",color:"textSecondary",...k,children:b})),(0,Js.jsxs)(y,{...w,children:[f,b]})})),Oh=Mh,qh=({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"))),Ph=()=>{const e=Y(),{info:n,setError:i,cachedConnectionsData:o}=Xt();return o.cachedConnections.length?t.createElement(Tl,{mb:2},t.createElement(jd,{variant:"h6"},"Previous connections"),t.createElement(Sh,null,o.cachedConnections.map((r=>t.createElement(Ih,{key:r,component:"a",onClick:()=>(t=>{i(),e(`/app-list?engine_url=${t.replace("?","&")}`)})(r),disabled:qh({item:r,info:n})},t.createElement(Oh,{primary:r}),t.createElement(kd,{onClick:()=>o.removeCachedConnection(r),"data-testid":"close-btn",size:"large",edge:"end"},t.createElement(vh,null))))))):null},Bh=function(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...r}=e,s=o?{}:dc(n,i),{props:a,internalRef:l}=gc({...r,externalSlotProps:s}),c=lc(l,s?.ref,e.additionalProps?.ref);return cc(t,{...a,ref:c},i)};function Fh(e,t=166){let n;function i(...i){clearTimeout(n),n=setTimeout((()=>{e.apply(this,i)}),t)}return i.clear=()=>{clearTimeout(n)},i}const Wh=Fh;function Vh(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function zh(e){return e&&e.ownerDocument||document}function Hh(e){return zh(e).defaultView||window}const jh=Hh,Uh={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},$h=Zl((0,Js.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Gh=Zl((0,Js.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Kh(e){return sa("MuiTabScrollButton",e)}const Yh=aa("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Zh=Xs(dd,{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,[`&.${Yh.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Xh=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:r={},direction:s,orientation:a,disabled:l,...c}=n,d=La(),h={isRtl:d,...n},u=(e=>{const{classes:t,orientation:n,disabled:i}=e;return tn({root:["root",n,i&&"disabled"]},Kh,t)})(h),g=o.StartScrollButtonIcon??$h,p=o.EndScrollButtonIcon??Gh,m=Bh({elementType:g,externalSlotProps:r.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),f=Bh({elementType:p,externalSlotProps:r.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,Js.jsx)(Zh,{component:"div",className:en(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"===s?(0,Js.jsx)(g,{...m}):(0,Js.jsx)(p,{...f})})})),Qh=Xh;function Jh(e){return sa("MuiTabs",e)}const eu=aa("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tu=zh,nu=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iu=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ou=(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)}},ru=Xs("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eu.scrollButtons}`]:t.scrollButtons},{[`& .${eu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(ql((({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:{[`& .${eu.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),su=Xs("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"}}]}),au=Xs("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"}}]}),lu=Xs("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(ql((({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}}]})))),cu=Xs((function(e){const{onChange:n,...i}=e,o=t.useRef(),r=t.useRef(null),s=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return xh((()=>{const e=Wh((()=>{const e=o.current;s(),e!==o.current&&n(o.current)})),t=jh(r.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[n]),t.useEffect((()=>{s(),n(o.current)}),[n]),(0,Js.jsx)("div",{style:Uh,...i,ref:r})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),du={},hu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiTabs"}),o=wa(),r=La(),{"aria-label":s,"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:_="auto",selectionFollowsFocus:v,slots:C={},slotProps:y={},TabIndicatorProps:w={},TabScrollButtonProps:A={},textColor:S="primary",value:x,variant:k="standard",visibleScrollbar:E=!1,...L}=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:_,textColor:S,variant:k,visibleScrollbar:E,fixed:!D,hideScrollbar:D&&!E,scrollableX:D&&!I,scrollableY:D&&I,centered:c&&!D,scrollButtonsHideMobile:!g},P=(e=>{const{vertical:t,fixed:n,hideScrollbar:i,scrollableX:o,scrollableY:r,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return tn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",i&&"hideScrollbar",o&&"scrollableX",r&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Jh,l)})(q),B=Bh({elementType:C.StartScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:q}),F=Bh({elementType:C.EndScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:q}),[W,V]=t.useState(!1),[z,H]=t.useState(du),[j,U]=t.useState(!1),[$,G]=t.useState(!1),[K,Y]=t.useState(!1),[Z,X]=t.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,J=t.useRef(null),ee=t.useRef(null),te={slots:C,slotProps:{indicator:w,scrollButton: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[Q.get(x)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ie=Tc((()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,i=0;I?(n="top",t&&e&&(i=t.top-e.top+e.scrollTop)):(n=r?"right":"left",t&&e&&(i=(r?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:i,[O]:t?t[O]:0};if("number"!=typeof z[n]||"number"!=typeof z[O])H(o);else{const e=Math.abs(z[n]-o[n]),t=Math.abs(z[O]-o[O]);(e>=1||t>=1)&&H(o)}})),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,i={},o=()=>{}){const{ease:r=Vh,duration:s=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)/s);t[e]=r(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},re=e=>{let t=J.current[N];t+=I?e:e*(r?-1:1),oe(t)},se=()=>{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=()=>{re(-1*se())},le=()=>{re(se())},[ce,{onChange:de,...he}]=pc("scrollbar",{className:en(P.scrollableX,P.hideScrollbar),elementType:cu,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:q}),ue=t.useCallback((e=>{de?.(e),X({overflow:null,scrollbarWidth:e})}),[de]),[ge,pe]=pc("scrollButtons",{className:en(P.scrollButtons,A.className),elementType:Qh,externalForwardedProps:te,ownerState:q,additionalProps:{orientation:f,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:F}}}),me=Tc((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=Tc((()=>{D&&!1!==_&&Y(!K)}));t.useEffect((()=>{const e=Wh((()=>{J.current&&ie()}));let t;const n=jh(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!==_){const n=e[0],i=e[t-1],o={root:J.current,threshold:.99},r=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),o);r.observe(n);const s=new IntersectionObserver((e=>{G(!e[0].isIntersecting)}),o);return s.observe(i),()=>{r.disconnect(),s.disconnect()}}}),[D,_,K,d?.length]),t.useEffect((()=>{V(!0)}),[]),t.useEffect((()=>{ie()})),t.useEffect((()=>{me(du!==z)}),[me,z]),t.useImperativeHandle(l,(()=>({updateIndicator:ie,updateScrollButtons:fe})),[ie,fe]);const[be,_e]=pc("indicator",{className:en(P.indicator,w.className),elementType:lu,externalForwardedProps:te,ownerState:q,additionalProps:{style:z}}),ve=(0,Js.jsx)(be,{..._e});let Ce=0;const ye=t.Children.map(d,(e=>{if(!t.isValidElement(e))return null;const n=void 0===e.props.value?Ce:e.props.value;Q.set(n,Ce);const i=n===x;return Ce+=1,t.cloneElement(e,{fullWidth:"fullWidth"===k,indicator:i&&!W&&ve,selected:i,selectionFollowsFocus:v,onChange:m,textColor:S,value:n,...1!==Ce||!1!==x||e.props.tabIndex?{}:{tabIndex:0}})})),we=(()=>{const e={};e.scrollbarSizeListener=D?(0,Js.jsx)(ce,{...he,onChange:ue}):null;const t=D&&("auto"===_&&(j||$)||!0===_);return e.scrollButtonStart=t?(0,Js.jsx)(ge,{direction:r?"right":"left",onClick:ae,disabled:!j,...pe}):null,e.scrollButtonEnd=t?(0,Js.jsx)(ge,{direction:r?"left":"right",onClick:le,disabled:!$,...pe}):null,e})(),[Ae,Se]=pc("root",{ref:n,className:en(P.root,h),elementType:ru,externalForwardedProps:{...te,...L,component:u},ownerState:q}),[xe,ke]=pc("scroller",{ref:J,className:P.scroller,elementType:su,externalForwardedProps:te,ownerState:q,additionalProps:{style:{overflow:Z.overflow,[I?"margin"+(r?"Left":"Right"):"marginBottom"]:E?void 0:-Z.scrollbarWidth}}}),[Ee,Le]=pc("list",{ref:ee,className:en(P.list,P.flexContainer),elementType:au,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=tu(t).activeElement;if("tab"!==n.getAttribute("role"))return;let i="horizontal"===f?"ArrowLeft":"ArrowUp",o="horizontal"===f?"ArrowRight":"ArrowDown";switch("horizontal"===f&&r&&(i="ArrowRight",o="ArrowLeft"),e.key){case i:e.preventDefault(),ou(t,n,iu);break;case o:e.preventDefault(),ou(t,n,nu);break;case"Home":e.preventDefault(),ou(t,null,nu);break;case"End":e.preventDefault(),ou(t,null,iu)}})(t),e.onKeyDown?.(t)}})});return(0,Js.jsxs)(Ae,{...Se,children:[we.scrollButtonStart,we.scrollbarSizeListener,(0,Js.jsxs)(xe,{...ke,children:[(0,Js.jsx)(Ee,{"aria-label":s,"aria-labelledby":a,"aria-orientation":"vertical"===f?"vertical":null,role:"tablist",...Le,children:ye}),W&&ve]}),we.scrollButtonEnd]})})),uu=hu;function gu(e){return sa("MuiTab",e)}const pu=aa("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),mu=Xs(dd,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${va(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${pu.iconWrapper}`]:t.iconWrapper},{[`& .${pu.icon}`]:t.icon}]}})(ql((({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:{[`& > .${pu.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${pu.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${pu.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${pu.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${pu.selected}`]:{opacity:1},[`&.${pu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pu.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pu.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)}}]})))),fu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiTab"}),{className:o,disabled:r=!1,disableFocusRipple:s=!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:_,wrapped:v=!1,...C}=i,y={...i,disabled:r,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:c,label:!!h,fullWidth:a,textColor:b,wrapped:v},w=(e=>{const{classes:t,textColor:n,fullWidth:i,wrapped:o,icon:r,label:s,selected:a,disabled:l}=e;return tn({root:["root",r&&s&&"labelIcon",`textColor${va(n)}`,i&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},gu,t)})(y),A=l&&h&&t.isValidElement(l)?t.cloneElement(l,{className:en(w.icon,l.props.className)}):l;return(0,Js.jsxs)(mu,{focusRipple:!s,className:en(w.root,o),ref:n,role:"tab","aria-selected":m,disabled:r,onClick:e=>{!m&&u&&u(e,_),g&&g(e)},onFocus:e=>{f&&!m&&u&&u(e,_),p&&p(e)},ownerState:y,tabIndex:m?0:-1,...C,children:["top"===c||"start"===c?(0,Js.jsxs)(t.Fragment,{children:[A,h]}):(0,Js.jsxs)(t.Fragment,{children:[h,A]}),d]})})),bu=fu;var _u;const vu=Xs("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Zs})({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%"}),Cu=Xs("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Zs})(ql((({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})}}]})))),yu=t.createContext(void 0);function wu(){return t.useContext(yu)}function Au({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 Su(e){return sa("MuiInputBase",e)}const xu=aa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function ku(e){return sa("MuiOutlinedInput",e)}const Eu={...xu,...aa("MuiOutlinedInput",["root","notchedOutline","input"])};function Lu(e){return parseInt(e,10)||0}const Du={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Iu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Nu=t.forwardRef((function(e,n){const{onChange:i,maxRows:o,minRows:r=1,style:s,value:a,...l}=e,{current:c}=t.useRef(null!=a),d=t.useRef(null),h=lc(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=Hh(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 s=i.boxSizing,a=Lu(i.paddingBottom)+Lu(i.paddingTop),l=Lu(i.borderBottomWidth)+Lu(i.borderTopWidth),c=n.scrollHeight;n.value="x";const h=n.scrollHeight;let u=c;return r&&(u=Math.max(Number(r)*h,u)),o&&(u=Math.min(Number(o)*h,u)),u=Math.max(u,h),{outerHeightStyle:u+("border-box"===s?a+l:0),overflowing:Math.abs(u-c)<=1}}),[o,r,e.placeholder]),m=Rc((()=>{const e=d.current,t=p();if(!e||!t||Iu(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||Iu(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 Ia((()=>{const e=Fh(f),t=d?.current;if(!t)return;const n=Hh(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]),Ia((()=>{f()})),(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)("textarea",{value:a,onChange:e=>{c||f(),i&&i(e)},ref:h,rows:r,style:s,...l}),(0,Js.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...Du,...s,paddingTop:0,paddingBottom:0}})]})})),Ru=Nu,Tu=function(e){return"string"==typeof e};function Mu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ou(e,t=!1){return e&&(Mu(e.value)&&""!==e.value||t&&Mu(e.defaultValue)&&""!==e.defaultValue)}var qu;const Pu=(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${va(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Bu=(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]},Fu=Xs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pu})(ql((({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",[`&.${xu.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%"}}]})))),Wu=Xs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Bu})(ql((({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] + .${xu.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},[`&.${xu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{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"}}]}}))),Vu=function(e){return function(t){return(0,Js.jsx)(qd,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),zu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:r,autoFocus:s,className:a,color:l,components:c={},componentsProps:d={},defaultValue:h,disabled:u,disableInjectingGlobalStyles:g,endAdornment:p,error:m,fullWidth:f=!1,id:b,inputComponent:_="input",inputProps:v={},inputRef:C,margin:y,maxRows:w,minRows:A,multiline:S=!1,name:x,onBlur:k,onChange:E,onClick:L,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:V,...z}=i,H=null!=v.value?v.value:V,{current:j}=t.useRef(null!=H),U=t.useRef(),$=t.useCallback((e=>{}),[]),G=Nc(U,C,v.ref,$),[K,Y]=t.useState(!1),Z=wu(),X=Au({props:i,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});X.focused=Z?Z.focused:K,t.useEffect((()=>{!Z&&u&&K&&(Y(!1),k&&k())}),[Z,u,K,k]);const Q=Z&&Z.onFilled,J=Z&&Z.onEmpty,ee=t.useCallback((e=>{Ou(e)?Q&&Q():J&&J()}),[Q,J]);xh((()=>{j&&ee({value:H})}),[H,ee,j]),t.useEffect((()=>{ee(U.current)}),[]);let te=_,ne=v;S&&"input"===te&&(ne=O?{type:void 0,minRows:O,maxRows:O,...ne}:{type:void 0,maxRows:w,minRows:A,...ne},te=Ru),t.useEffect((()=>{Z&&Z.setAdornedStart(Boolean(F))}),[Z,F]);const ie={...i,color:X.color||"primary",disabled:X.disabled,endAdornment:p,error:X.error,focused:X.focused,formControl:Z,fullWidth:f,hiddenLabel:X.hiddenLabel,multiline:S,size:X.size,startAdornment:F,type:W},oe=(e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:r,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:h,size:u,startAdornment:g,type:p}=e;return tn({root:["root",`color${va(n)}`,i&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",u&&"medium"!==u&&`size${va(u)}`,d&&"multiline",g&&"adornedStart",r&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled","search"===p&&"inputTypeSearch",d&&"inputMultiline","small"===u&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]},Su,t)})(ie),re=B.root||c.Root||Fu,se=P.root||d.root||{},ae=B.input||c.Input||Wu;return ne={...ne,...P.input??d.input},(0,Js.jsxs)(t.Fragment,{children:[!g&&"function"==typeof Vu&&(qu||(qu=(0,Js.jsx)(Vu,{}))),(0,Js.jsxs)(re,{...se,ref:n,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),L&&L(e)},...z,...!Tu(re)&&{ownerState:{...ie,...se.ownerState}},className:en(oe.root,se.className,a,T&&"MuiInputBase-readOnly"),children:[F,(0,Js.jsx)(yu.Provider,{value:null,children:(0,Js.jsx)(ae,{"aria-invalid":X.error,"aria-describedby":o,autoComplete:r,autoFocus:s,defaultValue:h,disabled:X.disabled,id:b,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:x,placeholder:R,readOnly:T,required:X.required,rows:O,value:H,onKeyDown:I,onKeyUp:N,type:W,...ne,...!Tu(ae)&&{as:te,ownerState:{...ie,...ne.ownerState}},ref:G,className:en(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),Z&&Z.onBlur?Z.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||U.current;if(null==t)throw new Error(lo(1));ee({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{D&&D(e),v.onFocus&&v.onFocus(e),Z&&Z.onFocus?Z.onFocus(e):Y(!0)}})}),p,M?M({...X,startAdornment:F}):null]})]})})),Hu=zu,ju=Xs(Fu,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pu})(ql((({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 .${Eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Eu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Eu.focused} .${Eu.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{[`&.${Eu.focused} .${Eu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${Eu.error} .${Eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Eu.disabled} .${Eu.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"}}]}}))),Uu=Xs((function(e){const{children:t,classes:n,className:i,label:o,notched:r,...s}=e,a=null!=o&&""!==o,l={...e,notched:r,withLabel:a};return(0,Js.jsx)(vu,{"aria-hidden":!0,className:i,ownerState:l,...s,children:(0,Js.jsx)(Cu,{ownerState:l,children:a?(0,Js.jsx)("span",{children:o}):_u||(_u=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ql((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),$u=Xs(Wu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Bu})(ql((({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}}]})))),Gu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:r=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:h={},type:u="text",...g}=i,p=(e=>{const{classes:t}=e,n=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ku,t);return{...t,...n}})(i),m=wu(),f=Au({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:r,hiddenLabel:f.hiddenLabel,multiline:l,size:f.size,type:u},_=d.root??o.Root??ju,v=d.input??o.Input??$u,[C,y]=pc("notchedOutline",{elementType:Uu,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:d,slotProps:h},additionalProps:{label:null!=a&&""!==a&&f.required?(0,Js.jsxs)(t.Fragment,{children:[a," ","*"]}):a}});return(0,Js.jsx)(Hu,{slots:{root:_,input:v},slotProps:h,renderSuffix:e=>(0,Js.jsx)(C,{...y,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:r,inputComponent:s,multiline:l,ref:n,type:u,...g,classes:{...p,notchedOutline:null}})}));Gu.muiName="Input";const Ku=Gu,Yu=t.createContext({}),Zu=t.createContext(void 0),Xu=[{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}}}],Qu=Xs(dd,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${va(n.color)}`],t[`size${va(n.size)}`],t[`${n.variant}Size${va(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ql((({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"},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{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]},[`&.${wl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wl.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)",[`&.${wl.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(Dc()).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.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Ar(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.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.text.primary,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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.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}),[`&.${wl.loading}`]:{color:"transparent"}}}]}}))),Ju=Xs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${va(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}},...Xu]}))),eg=Xs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${va(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}},...Xu]}))),tg=Xs("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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}}]}))),ng=Xs("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ig=t.forwardRef((function(e,n){const i=t.useContext(Yu),o=t.useContext(Zu),r=na({props:Qs(i,e),name:"MuiButton"}),{children:s,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:_,loadingPosition:v="center",size:C="medium",startIcon:y,type:w,variant:A="text",...S}=r,x=Lc(f),k=_??(0,Js.jsx)(Cd,{"aria-labelledby":x,color:"inherit",size:16}),E={...r,color:a,component:l,disabled:d,disableElevation:h,disableFocusRipple:u,fullWidth:m,loading:b,loadingIndicator:k,loadingPosition:v,size:C,type:w,variant:A},L=(e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:r,loading:s,loadingPosition:a,classes:l}=e,c=tn({root:["root",s&&"loading",r,`${r}${va(t)}`,`size${va(o)}`,`${r}Size${va(o)}`,`color${va(t)}`,n&&"disableElevation",i&&"fullWidth",s&&`loadingPosition${va(a)}`],startIcon:["icon","startIcon",`iconSize${va(o)}`],endIcon:["icon","endIcon",`iconSize${va(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},yl,l);return{...l,...c}})(E),D=(y||b&&"start"===v)&&(0,Js.jsx)(Ju,{className:L.startIcon,ownerState:E,children:y||(0,Js.jsx)(ng,{className:L.loadingIconPlaceholder,ownerState:E})}),I=(g||b&&"end"===v)&&(0,Js.jsx)(eg,{className:L.endIcon,ownerState:E,children:g||(0,Js.jsx)(ng,{className:L.loadingIconPlaceholder,ownerState:E})}),N=o||"",R="boolean"==typeof b?(0,Js.jsx)("span",{className:L.loadingWrapper,style:{display:"contents"},children:b&&(0,Js.jsx)(tg,{className:L.loadingIndicator,ownerState:E,children:k})}):null;return(0,Js.jsxs)(Qu,{ownerState:E,className:en(i.className,L.root,c,N),component:l,disabled:d||b,focusRipple:!u,focusVisibleClassName:en(L.focusVisible,p),ref:n,type:w,id:b?x:f,...S,classes:L,children:[D,"end"!==v&&R,s,"end"===v&&R,I]})})),og=ig,rg=({isCredentialProvided:e,inputs:t,fields:n})=>e?!t["engine-websocket-url"]:Object.entries(t).length!==n.length||Object.values(t).some((e=>!e)),sg=({isCredentialProvided:e,field:t})=>e?`You have provided "${t}" through cli or nebula.config.js file already!`:t;function ag({error:{message:e,hints:n}}){return t.createElement(t.Fragment,null,t.createElement(jd,{variant:"subtitle1",color:"error",gutterBottom:!0,style:{marginBottom:0}},e),n.map((e=>t.createElement(jd,{key:e,variant:"body2"},e))))}function lg({info:e,fields:n,error:i,isCredentialProvided:o}){const r=Y(),{setError:s}=Xt(),[a,l]=(0,t.useState)({});return t.createElement("form",{onSubmit:e=>{e.preventDefault(),s();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"]),r(`/app-list?engine_url=${t.toString().replace("?","&")}`)}},t.createElement(Od,{container:!0,spacing:2,direction:"column",justifyContent:"center"},n.map(((n,i)=>t.createElement(Od,{item:!0,xs:12,key:n},t.createElement(Ku,{fullWidth:!0,autoFocus:0===i,disabled:o&&1===i,name:n.split(" ").map((e=>e.toLowerCase())).join("-"),error:e?.invalid,placeholder:0===i?n:sg({field:n,isCredentialProvided:o}),onChange:e=>(e=>{l({...a,[e.target.name]:e.target.value})})(e)})))),t.createElement(Od,{container:!0,item:!0,xs:12,alignItems:"center"},t.createElement(Od,{item:!0,xs:10},i&&t.createElement(ag,{error:i})),t.createElement(Od,{container:!0,item:!0,xs:2,direction:"row",alignItems:"center",justifyContent:"flex-end"},t.createElement(og,{type:"submit",variant:"contained",size:"large",disabled:rg({isCredentialProvided:o,inputs:a,fields:n})},"Connect")))))}const cg=[{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"]}],dg=({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 hg(){const{info:e,error:n}=Xt(),[i,o]=(0,t.useState)(0);return(0,t.useEffect)((()=>{const t=(e=>e?e.isWebIntegrationIdProvided?cg.findIndex((e=>"Web Integration Id"===e.label)):e.isClientIdProvided?cg.findIndex((e=>"Client Id"===e.label)):0:0)(e);t&&o(t)}),[e]),t.createElement(Tl,null,t.createElement(jd,{variant:"h6",gutterBottom:!0},"New connection with:"),t.createElement(Tl,{sx:{width:"100%"}},t.createElement(Tl,{sx:{borderBottom:1,borderColor:"divider"}},t.createElement(uu,{value:i,onChange:(e,t)=>o(t),"aria-label":"basic tabs example"},cg.map((({id:n,label:i})=>t.createElement(bu,{key:n,label:i,disabled:dg({info:e,label:i})}))))),cg.map((({id:o,formFields:r})=>t.createElement(ug,{tabIdx:i,idx:o,key:o},t.createElement(lg,{info:e,error:n,fields:r,isCredentialProvided:e?.isWebIntegrationIdProvided||e?.isClientIdProvided}))))))}function ug({children:e,tabIdx:n,idx:i}){return n===i?t.createElement(Tl,{sx:{p:3,pb:1}},e):null}const{useEffect:gg}=s(7552),pg=()=>{const{cachedConnectionsData:e}=Xt(),[n,i]=(0,t.useState)(!1);return(()=>{const{cachedConnectionsData:e}=Xt();gg((()=>{(async()=>{try{await(await fetch("/auth/deauthorize")).json()}catch(e){console.error("deauthorization failed: ",e)}})()}),[e.cachedConnections.length])})(),(0,t.useEffect)((()=>{i(!e.cachedConnections.length)}),[e.cachedConnections.length]),t.createElement(yc,null,t.createElement(Od,{container:!0},t.createElement(Od,{item:!0,xs:!0},t.createElement(jd,{variant:"h5",gutterBottom:!0},"Connect to an engine")),t.createElement(Od,{item:!0},t.createElement(kd,{onClick:()=>i(!n),size:"small"},t.createElement(Ec,null)))),t.createElement(Ph,null),t.createElement(hg,null),t.createElement(mh,{showGuid:n}))},mg=()=>{const e=Y(),n=$(),{info:i,glob:o,treatAsDesktop:r}=Xt(),{loading:s,appList:a}=(({glob:e,info:n})=>{const i=Y(),{setInfo:o,setActiveStep:r}=Xt(),[s,a]=(0,t.useState)(),[l,c]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{r(1),zt().then((e=>{o(e)}))}),[]),(0,t.useEffect)((()=>{if(s?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/auth/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,n,e]),{appList:s,loading:l}})({glob:o,info:i});return t.createElement(yc,null,t.createElement(jd,{variant:"h5",gutterBottom:!0},"Select an app"),s&&t.createElement(Cd,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&t.createElement(jd,{component:"span"},"No apps found!"),a&&a.length>0&&t.createElement(Sh,null,a.map((o=>t.createElement(Ih,{button:!0,component:"a",key:o.qDocId,onClick:()=>(async({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=i.enigma.secure?"wss":"ws",s=i.enigma.port?`:${i.enigma.port}`:"",a=i.enigma.prefix?`/${i.enigma.prefix}`:"",l=("localhost"===i.enigma.host?`${i.enigma.host}${s}`:i.enigma.host)+a,c=await Pt(`https://${i.enigma.host}${a}`),d=c?`&qlik-csrf-token=${c}`:"",h=`${r}://${l}/app/${encodeURIComponent(n)}${d}`;e(`/dev/${o.replace(i.engineUrl,h)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:n,targetApp:r?o.qDocName:o.qDocId})},t.createElement(Oh,{primary:o.qTitle,secondary:o.qDocId}))))))};function fg(e){return globalThis.process?.argv?Promise.all([s.e(714),s.e(554)]).then(s.bind(s,3554)):s.e(316).then(s.bind(s,2316)).then((t=>t.importRuntimeModule("auth@v1",e)))}s(4152);var bg={registerAuthModule:function(e,t){fg().then((n=>n.registerAuthModule(e,t)))},setDefaultHostConfig:function(e){fg(e).then((t=>t.setDefaultHostConfig(e)))},registerHostConfig:function(e,t){fg(t).then((n=>n.registerHostConfig(e,t)))},unregisterHostConfig:function(e){fg().then((t=>t.unregisterHostConfig(e)))},getAccessToken:async function({hostConfig:e}){return fg(e).then((t=>t.getAccessToken({hostConfig:e})))},getWebResourceAuthParams:async function({hostConfig:e}){return fg(e).then((t=>t.getWebResourceAuthParams({hostConfig:e})))}};const _g=({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 r;return r=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))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},vg=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 Cg=s(6775),yg=s.n(Cg);function wg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ag(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Sg(){}var xg=.7,kg=1/xg,Eg="\\s*([+-]?\\d+)\\s*",Lg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ig=/^#([0-9a-f]{3,8})$/,Ng=new RegExp(`^rgb\\(${Eg},${Eg},${Eg}\\)$`),Rg=new RegExp(`^rgb\\(${Dg},${Dg},${Dg}\\)$`),Tg=new RegExp(`^rgba\\(${Eg},${Eg},${Eg},${Lg}\\)$`),Mg=new RegExp(`^rgba\\(${Dg},${Dg},${Dg},${Lg}\\)$`),Og=new RegExp(`^hsl\\(${Lg},${Dg},${Dg}\\)$`),qg=new RegExp(`^hsla\\(${Lg},${Dg},${Dg},${Lg}\\)$`),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 Bg(){return this.rgb().formatHex()}function Fg(){return this.rgb().formatRgb()}function Wg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ig.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vg(t):3===n?new jg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zg(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=Ng.exec(e))?new jg(t[1],t[2],t[3],1):(t=Rg.exec(e))?new jg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Tg.exec(e))?zg(t[1],t[2],t[3],t[4]):(t=Mg.exec(e))?zg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Og.exec(e))?Zg(t[1],t[2]/100,t[3]/100,1):(t=qg.exec(e))?Zg(t[1],t[2]/100,t[3]/100,t[4]):Pg.hasOwnProperty(e)?Vg(Pg[e]):"transparent"===e?new jg(NaN,NaN,NaN,0):null}function Vg(e){return new jg(e>>16&255,e>>8&255,255&e,1)}function zg(e,t,n,i){return i<=0&&(e=t=n=NaN),new jg(e,t,n,i)}function Hg(e,t,n,i){return 1===arguments.length?((o=e)instanceof Sg||(o=Wg(o)),o?new jg((o=o.rgb()).r,o.g,o.b,o.opacity):new jg):new jg(e,t,n,null==i?1:i);var o}function jg(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Ug(){return`#${Yg(this.r)}${Yg(this.g)}${Yg(this.b)}`}function $g(){const e=Gg(this.opacity);return`${1===e?"rgb(":"rgba("}${Kg(this.r)}, ${Kg(this.g)}, ${Kg(this.b)}${1===e?")":`, ${e})`}`}function Gg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yg(e){return((e=Kg(e))<16?"0":"")+e.toString(16)}function Zg(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qg(e,t,n,i)}function Xg(e){if(e instanceof Qg)return new Qg(e.h,e.s,e.l,e.opacity);if(e instanceof Sg||(e=Wg(e)),!e)return new Qg;if(e instanceof Qg)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Qg(s,a,l,e.opacity)}function Qg(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Jg(e){return(e=(e||0)%360)<0?e+360:e}function ep(e){return Math.max(0,Math.min(1,e||0))}function tp(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}wg(Sg,Wg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bg,formatHex:Bg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xg(this).formatHsl()},formatRgb:Fg,toString:Fg}),wg(jg,Hg,Ag(Sg,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new jg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xg:Math.pow(xg,e),new jg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jg(Kg(this.r),Kg(this.g),Kg(this.b),Gg(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:Ug,formatHex:Ug,formatHex8:function(){return`#${Yg(this.r)}${Yg(this.g)}${Yg(this.b)}${Yg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$g,toString:$g})),wg(Qg,(function(e,t,n,i){return 1===arguments.length?Xg(e):new Qg(e,t,n,null==i?1:i)}),Ag(Sg,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new Qg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xg:Math.pow(xg,e),new Qg(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 jg(tp(e>=240?e-240:e+120,o,i),tp(e,o,i),tp(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Qg(Jg(this.h),ep(this.s),ep(this.l),Gg(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=Gg(this.opacity);return`${1===e?"hsl(":"hsla("}${Jg(this.h)}, ${100*ep(this.s)}%, ${100*ep(this.l)}%${1===e?")":`, ${e})`}`}}));var np=s(5205),ip=s.n(np);const op=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"]}]}}'),rp=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"}'),sp=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"}}}}'),ap=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),lp={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}},cp=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,dp=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,hp=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,up=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,gp=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,pp=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:mp}=Math,{round:fp}=Math;class bp{constructor(...e){let t,n,i,o,r,s,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof bp)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,s=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=fp(255*g),p=fp(255*p),m=fp(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,s=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=fp(255*g),p=fp(255*p),m=fp(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]),r=parseFloat(h[5]),t%=360,n/=100,r/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,r=r<0?0:r>1?1:r,s=r*n,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=r-s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=fp(255*g),p=fp(255*p),m=fp(255*m),f=1}else lp[u.toLowerCase()]?(i=u.toLowerCase(),g=lp[i].r,p=lp[i].g,m=lp[i].b,f="number"==typeof lp[i].a?lp[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=mp(g),this._g=mp(p),this._b=mp(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=bp.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=bp.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=bp.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=bp.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=bp.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=bp.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=bp.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=bp.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 r=parseFloat(n[5]);const s=parseFloat(n[7]);return r+=e,r=Math.max(0,Math.min(r,100)),`hsla(${i},${o},${r},${s})`}isEqual(e){return e instanceof bp||(e=new bp(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[mp(this._r+(e._r-this._r)*t),mp(this._g+(e._g-this._g)*t),mp(this._b+(e._b-this._b)*t),mp(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 bp(i)}static toRGB(e){return e instanceof bp?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=bp.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof bp?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=bp.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 bp?(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=bp.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,r=0;"string"==typeof e&&(e=new bp(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(s,a,l),d=Math.min(s,a,l);if(i=t?.21*s+.72*a+.07*l:(c+d)/2,c===d)n=0,r=0;else{switch(o=c-d,n=i>.5?o/(2-c-d):o/(c+d),c){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsl(${360*r},${100*n},${100*i})`}static toHSLA(e,t){let n,i,o,r=0;"string"==typeof e&&(e=new bp(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(s,a,l),h=Math.min(s,a,l);if(i=t?.21*s+.72*a+.07*l:(d+h)/2,d===h)n=0,r=0;else{switch(o=d-h,n=i>.5?o/(2-d-h):o/(d+h),d){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsla(${360*r},${100*n},${100*i},${c})`}static toHSVComponents(e){let t,n,i=0;"string"==typeof e&&(e=new bp(e));const o=e._r/255,r=e._g/255,s=e._b/255,a=Math.max(o,r,s),l=Math.min(o,r,s),c=a;if(a===l)t=0,i=0;else{switch(n=a-l,t=0===n?0:n/c,a){case o:i=(r-s)/n+(r<s?6:0);break;case r:i=(s-o)/n+2;break;case s:i=(o-r)/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 bp)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,i=0,o=0,r=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),r=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),r=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),r=parseInt(t[3]+t[3],16))),(i<<16)+(o<<8)+r}static blend(e,t,n){const i=(16711680&(e=bp.toNumber(e)))>>16,o=(65280&e)>>8,r=255&e;return(i+(((16711680&(t=bp.toNumber(t)))>>16)-i)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(r+((255&t)-r)*n)}static getBlend(e,t,n){const i=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,r=e._b+(t._b-e._b)*n,s=e._a+(t._a-e._a)*n;return new bp(i,o,r,s)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(cp.test(e)||dp.test(e)||hp.test(e)||up.test(e)||gp.test(e)||pp.test(e)||lp[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 bp(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const _p=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Wg(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([Wg(e),Wg(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 r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return Hg(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))}(s,a,i-o);return l}};function vp(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Cp(e,t,n){const i=[],o=new _p(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function yp(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=vp(1/t*o,t,n);r=e.getColor(i);break}}i.push(Wg(r).formatHex())}return i}function wp(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function Ap(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 Sp(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=wp(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=Ap(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function xp(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?xp(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function kp(e){const t=Wg(e);if(!t)return 0;const{r:n,g:i,b:o}=t.rgb(),[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function Ep(){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]=Sp(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=Wg(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?sp:rp;let i=ap;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=ip()(!0,{},op,i,n),r=ip()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return r.palettes.data&&r.palettes.data.length||(r.palettes.data=o.palettes.data),r.palettes.ui&&r.palettes.ui.length||(r.palettes.ui=o.palettes.ui),r.scales&&r.scales.length||(r.scales=o.scales),t(r)}(r,Sp.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 bp(n);return i.setAlpha(e.alpha),i.isInvalid()?n:i.toRGBA()}}}(e);const a=o.getStyle("","","color"),l=kp(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(kp);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=kp(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(yg().prototype).forEach((e=>{o[e]=yg().prototype[e]})),yg().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}Sp.resolveRawTheme=e=>{const t=ip()(!0,{},e);return xp(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=Cp(e,n,!0),o=Cp(yp(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(yp(o,e,t));return r}(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 Lp=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));const Dp=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null}),Ip={active:!0,select:!0,passive:!0,edit:!1};function Np(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(Ip).forEach((e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=Ip[e],n[e]=!Ip[e])})),e.constraints=n,e.interactions=t}const Rp=(e={},n=()=>{})=>{const i=e,o=[],r={},s={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,r[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(r).forEach((e=>{r[e]&&r[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]),[s]},s]};function Tp(e){const[t,n]=Rp({}),[i,o]=Rp({}),[r,s]=Rp({}),[a,l]=Rp({}),[c,d]=Rp({}),[,h]=Rp({}),u=({type:e,value:t})=>{const i=h.get(t.id);h.set(t.id,{});const r=()=>{o.clear(t.id),d.set(t.id,{}),d.dispatch(!0)},a=()=>{t.removeListener("closed",a),t.removeListener("changed",r),n.clear(t.id),o.clear(t.id),s.clear(t.id),l.clear(t.id),d.clear(t.id),h.clear(t.id)};return"SET"===e&&(i||(t.on("changed",r),t.once("closed",a))),a},[g,p]=Rp({},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:r,rpcRequestSessionModelStore:s,modelChangedStore:d,appId:e}}function Mp(e){const[t,n]=Rp({}),[i,o]=Rp({}),[r,s]=Rp({});return{useAppSelectionsStore:t,useAppModalStore:i,appSelectionsStore:n,appModalStore:o,useModalObjectStore:r,modalObjectStore:s,appId:e}}const Op=(0,t.forwardRef)((({initialContext:e,renderCallback:n,modelStore:i,selectionStore:o},r)=>{const[s,a]=(0,t.useState)(e),[l,c]=(0,t.useState)(),{theme:d}=(0,t.useMemo)((()=>({theme:Ll(l)})),[l]),[h,u]=(0,t.useState)([]);return(0,t.useEffect)((()=>{n&&n()}),[]),(0,t.useImperativeHandle)(r,(()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),s&&(s.modelStore=i,s.selectionStore=o),t.createElement(Cl,{injectFirst:!0},t.createElement(cl,{theme:d},t.createElement(Dp.Provider,{value:s},h)))}));function qp(){const{useModelStore:e}=(0,t.useContext)(Dp).modelStore;return e()}function Pp(e,n,...i){const o=n?`${n.id}/${JSON.stringify(e)}`:null,[r]=qp(),[s]=function(){const{useRpcRequestSessionModelStore:e}=(0,t.useContext)(Dp).modelStore;return e()}(),[a,l]=(0,t.useState)();return(0,t.useEffect)((()=>{n&&(async()=>{let t=s.get(o);t||(t=n.createSessionObject(e),s.set(o,t));const i=await t;r.set(o,i),l(i)})()}),[n,...i]),[a]}const Bp={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Fp(e){return Pp(Bp,e)}const Wp=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function Vp(e,n){const i=e?`${e.id}`:null,[o]=function(){const{useRpcResultStore:e}=(0,t.useContext)(Dp).modelStore;return e()}(),[r,s]=(0,t.useReducer)(Wp,i?o.get(i):null),[a]=function(){const{useModelChangedStore:e}=(0,t.useContext)(Dp).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=(0,t.useContext)(Dp).modelStore;return e()}();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async t=>{let r=c[n];(!r||r&&r.rpcRetry)&&(r={rpc:e[n](),rpcRetry:!1},c[n]=r,s({type:"INVALID",method:n,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{await new Promise((e=>{setTimeout(e,0)}));const t=await r.rpc;s({type:"VALID",result:t,key:i,method:n,model:e,rpcResultStore:o})}catch(e){15!==e.code||t||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const t=e.session.getObjectApi({handle:-1});await t.cancelRequest(c[n].rpc.requestId),s({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]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},h]}function zp(e){const[t,{validating:n,canCancel:i,canRetry:o},r]=Vp(e,"getLayout");return e?.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:i,canRetry:o},r]:[t,{validating:n,canCancel:i,canRetry:o},r]}function Hp(e){return Vp(e,"getAppLayout")}function jp(){const[e,n]=(0,t.useState)(),[i,o]=(0,t.useState)(),r=(0,t.useCallback)((e=>{e&&n(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,t.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Up=e=>_h((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)),$p=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"}}]}),Gp=e=>_h($p(e));function Kp(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Yp(e){return`scale(${e}, ${e**2})`}const Zp={entering:{opacity:1,transform:Yp(1)},entered:{opacity:1,transform:"none"}},Xp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qp=t.forwardRef((function(e,n){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=sh,...b}=e,_=Zc(),v=t.useRef(),C=wa(),y=t.useRef(null),w=Nc(y,Kp(r),n),A=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},S=A(d),x=A(((e,t)=>{ah(e);const{duration:n,delay:i,easing:o}=lh({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Xp?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=A(c),E=A(g),L=A((e=>{const{duration:t,delay:n,easing:i}=lh({style:p,timeout:m,easing:s},{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:Xp?o:.666*o,delay:Xp?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Yp(.75),h&&h(e)})),D=A(u);return(0,Js.jsx)(f,{appear:o,in:a,nodeRef:y,onEnter:x,onEntered:k,onEntering:S,onExit:L,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&_.start(v.current||0,e),i&&i(y.current,e)},timeout:"auto"===m?null:m,...b,children:(e,{ownerState:n,...i})=>t.cloneElement(r,{style:{opacity:0,transform:Yp(.75),visibility:"exited"!==e||a?void 0:"hidden",...Zp[e],...p,...r.props.style},ref:w,...i})})}));Qp&&(Qp.muiSupportAuto=!0);const Jp=Qp,em=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tm(e){const t=[],n=[];return Array.from(e.querySelectorAll(em)).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 nm(){return!0}const im=function(e){const{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=tm,isEnabled:a=nm,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=lc(Kp(n),m),b=t.useRef(null);t.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),t.useEffect((()=>{if(!l||!m.current)return;const e=zh(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}}),[l]),t.useEffect((()=>{if(!l||!m.current)return;const e=zh(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==h.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==h.current||(n=s(m.current)),n.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=n[0],i=n[n.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)("div",{tabIndex:l?0:-1,onFocus:_,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,Js.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:h,"data-testid":"sentinelEnd"})]})};function om(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const rm=t.forwardRef((function(e,n){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=t.useState(null),l=lc(t.isValidElement(i)?Kp(i):null,n);if(Ia((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),Ia((()=>{if(s&&!r)return om(n,s),()=>{om(n,null)}}),[n,s,r]),r){if(t.isValidElement(i)){const e={ref:l};return t.cloneElement(i,e)}return i}return s?Qd.createPortal(i,s):s})),sm={entering:{opacity:1},entered:{opacity:1}},am=t.forwardRef((function(e,n){const i=wa(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:b=o,TransitionComponent:_=sh,...v}=e,C=t.useRef(null),y=Nc(C,Kp(a),n),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},A=w(u),S=w(((e,t)=>{ah(e);const n=lh({style:f,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),x=w(h),k=w(m),E=w((e=>{const t=lh({style:f,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),L=w(p);return(0,Js.jsx)(_,{appear:s,in:c,nodeRef:C,onEnter:S,onEntered:x,onEntering:A,onExit:E,onExited:L,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:b,...v,children:(e,{ownerState:n,...i})=>t.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...sm[e],...f,...a.props.style},ref:y,...i})})})),lm=am;function cm(e){return sa("MuiBackdrop",e)}aa("MuiBackdrop",["root","invisible"]);const dm=Xs("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"}}]}),hm=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiBackdrop"}),{children:i,className:o,component:r="div",invisible:s=!1,open:a,components:l={},componentsProps:c={},slotProps:d={},slots:h={},TransitionComponent:u,transitionDuration:g,...p}=n,m={...n,component:r,invisible:s},f=(e=>{const{classes:t,invisible:n}=e;return tn({root:["root",n&&"invisible"]},cm,t)})(m),b={slots:{transition:u,root:l.Root,...h},slotProps:{...c,...d}},[_,v]=pc("root",{elementType:dm,externalForwardedProps:b,className:en(f.root,o),ownerState:m}),[C,y]=pc("transition",{elementType:lm,externalForwardedProps:b,ownerState:m});return(0,Js.jsx)(C,{in:a,timeout:g,...p,...y,children:(0,Js.jsx)(_,{"aria-hidden":!0,...v,classes:f,ref:t,children:i})})})),um=hm;function gm(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function pm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function mm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fm(e){return parseInt(Hh(e).getComputedStyle(e).paddingRight,10)||0}function bm(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=!r.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&&mm(e,o)}))}function _m(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const vm=()=>{},Cm=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&&mm(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);bm(t,e.mount,e.modalRef,i,!0);const o=_m(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=_m(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=zh(e);return t.body===e?Hh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=pm(Hh(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${fm(i)+e}px`;const t=zh(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${fm(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=zh(i).body;else{const t=i.parentElement,n=Hh(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=_m(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&&mm(e.modalRef,t),bm(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&&mm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ym(e){return sa("MuiModal",e)}aa("MuiModal",["root","hidden","backdrop"]);const wm=Xs("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ql((({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"}}]})))),Am=Xs(um,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Sm=t.forwardRef((function(e,n){const i=na({name:"MuiModal",props:e}),{BackdropComponent:o=Am,BackdropProps:r,classes:s,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:_=!1,disableScrollLock:v=!1,hideBackdrop:C=!1,keepMounted:y=!1,onBackdropClick:w,onClose:A,onTransitionEnter:S,onTransitionExited:x,open:k,slotProps:E={},slots:L={},theme:D,...I}=i,N={...i,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:f,disablePortal:b,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:C,keepMounted:y},{getRootProps:R,getBackdropProps:T,getTransitionProps:M,portalRef:O,isTopModal:q,exited:P,hasTransition:B}=function(e){const{container:n,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:h}=e,u=t.useRef({}),g=t.useRef(null),p=t.useRef(null),m=lc(p,h),[f,b]=t.useState(!d),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const C=()=>(u.current.modalRef=p.current,u.current.mount=g.current,u.current),y=()=>{Cm.mount(C(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},w=Rc((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||zh(g.current).body;Cm.add(C(),e),p.current&&y()})),A=()=>Cm.isTopModal(C()),S=Rc((e=>{g.current=e,e&&(d&&A()?y():p.current&&mm(p.current,v))})),x=t.useCallback((()=>{Cm.remove(C(),v)}),[v]);t.useEffect((()=>()=>{x()}),[x]),t.useEffect((()=>{d?w():_&&r||x()}),[d,x,_,r,w]);const k=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&A()&&(i||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hc(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:E(t),open:d}},getTransitionProps:()=>({onEnter:gm((()=>{b(!1),s&&s()}),l?.props.onEnter??vm),onExited:gm((()=>{b(!0),a&&a(),r&&x()}),l?.props.onExited??vm)}),rootRef:m,portalRef:S,isTopModal:A,exited:f,hasTransition:_}}({...N,rootRef:n}),F={...N,exited:P},W=(e=>{const{open:t,exited:n,classes:i}=e;return tn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ym,i)})(F),V={};if(void 0===c.props.tabIndex&&(V.tabIndex="-1"),B){const{onEnter:e,onExited:t}=M();V.onEnter=e,V.onExited=t}const z={slots:{root:u.Root,backdrop:u.Backdrop,...L},slotProps:{...g,...E}},[H,j]=pc("root",{ref:n,elementType:wm,externalForwardedProps:{...z,...I,component:h},getSlotProps:R,ownerState:F,className:en(a,W?.root,!F.open&&F.exited&&W?.hidden)}),[U,$]=pc("backdrop",{ref:r?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:e=>T({...e,onClick:t=>{w&&w(t),e?.onClick&&e.onClick(t)}}),className:en(r?.className,W?.backdrop),ownerState:F});return y||k||B&&!P?(0,Js.jsx)(rm,{ref:O,container:d,disablePortal:b,children:(0,Js.jsxs)(H,{...j,children:[!C&&o?(0,Js.jsx)(U,{...$}):null,(0,Js.jsx)(im,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:q,open:k,children:t.cloneElement(c,V)})]})}):null})),xm=Sm;function km(e){return sa("MuiPaper",e)}aa("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 Em=Xs("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}`]]}})(ql((({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)"}}]})))),Lm=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiPaper"}),i=wa(),{className:o,component:r="div",elevation:s=1,square:a=!1,variant:l="elevation",...c}=n,d={...n,component:r,elevation:s,square:a,variant:l},h=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e;return tn({root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]},km,o)})(d);return(0,Js.jsx)(Em,{as:r,ownerState:d,className:en(h.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${Ar("#fff",Ts(s))}, ${Ar("#fff",Ts(s))})`}},...c.style}})})),Dm=Lm;function Im(e){return sa("MuiPopover",e)}function Nm(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return n=>{const i="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...i}):e,r=en(n?.className,i?.className,o?.className);return{...i,...o,...!!r&&{className:r},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const n=t,i=en(n?.className,e?.className);return{...t,...e,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Rm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Tm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Mm(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Om(e){return"function"==typeof e?e():e}aa("MuiPopover",["root","paper"]);const qm=Xs(xm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pm=Xs(Dm,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Bm=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={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:_={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:C="auto",TransitionProps:y={},disableScrollLock:w=!1,...A}=i,S=t.useRef(),x={...i,anchorOrigin:s,anchorReference:l,elevation:u,marginThreshold:g,transformOrigin:_,TransitionComponent:v,transitionDuration:C,TransitionProps:y},k=(e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},Im,t)})(x),E=t.useCallback((()=>{if("anchorPosition"===l)return a;const e=Om(r),t=(e&&1===e.nodeType?e:tu(S.current).body).getBoundingClientRect();return{top:t.top+Rm(t,s.vertical),left:t.left+Tm(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),L=t.useCallback((e=>({vertical:Rm(e,_.vertical),horizontal:Tm(e,_.horizontal)})),[_.horizontal,_.vertical]),D=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===l)return{top:null,left:null,transformOrigin:Mm(n)};const i=E();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=jh(Om(r)),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&&s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>u){const e=c-u;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Mm(n)}}),[r,l,E,L,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))),[r,w,R]),t.useEffect((()=>{p&&R()})),t.useImperativeHandle(o,(()=>p?{updatePosition:()=>{R()}}:null),[p,R]),t.useEffect((()=>{if(!p)return;const e=Wh((()=>{R()})),t=jh(Om(r));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,R]);let T=C;const M={slots:{transition:v,...f},slotProps:{transition:y,paper:m,...b}},[O,q]=pc("transition",{elementType:Jp,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"!==C||O.muiSupportAuto||(T=void 0);const P=h||(r?tu(Om(r)).body:void 0),[B,{slots:F,slotProps:W,...V}]=pc("root",{ref:n,elementType:qm,externalForwardedProps:{...M,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:f.backdrop},slotProps:{backdrop:Nm("function"==typeof b.backdrop?b.backdrop(x):b.backdrop,{invisible:!0})},container:P,open:p},ownerState:x,className:en(k.root,d)}),[z,H]=pc("paper",{ref:S,className:k.paper,elementType:Pm,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:u,style:I?void 0:{opacity:0}},ownerState:x});return(0,Js.jsx)(B,{...V,...!Tu(B)&&{slots:F,slotProps:W,disableScrollLock:w},children:(0,Js.jsx)(O,{...q,timeout:T,children:(0,Js.jsx)(z,{...H,children:c})})})})),Fm=Bm;var Wm=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}}(),Vm=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},zm=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,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Vm(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),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},Vm(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),Wm(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,r=n.minimumBatchSize,s=void 0===r?10:r,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,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var h=r[0]-1;if(t(h))break;r[0]=h}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,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],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).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 Hm=zm,jm=["S","XS"],Um=e=>e.reduce(((e,t)=>e.concat(t)));async function $m({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 r=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",r,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const Gm="RowColumn",Km={row:`${Gm}-row`,rowBorderBottom:`${Gm}-rowBorderBottom`,column:`${Gm}-column`,fieldRoot:`${Gm}-fieldRoot`,cell:`${Gm}-cell`,labelText:`${Gm}-labelText`,labelDense:`${Gm}-labelDense`,highlighted:`${Gm}-highlighted`,checkboxLabel:`${Gm}-checkboxLabel`,icon:`${Gm}-icon`,S:`${Gm}-S`,XS:`${Gm}-XS`,A:`${Gm}-A`,X:`${Gm}-X`,frequencyCount:`${Gm}-frequencyCount`,barContainer:`${Gm}-barContainer`,bar:`${Gm}-bar`,barSelected:`${Gm}-barSelected`,barWithCheckbox:`${Gm}-barWithCheckbox`,barSelectedWithCheckbox:`${Gm}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Gm}-excludedTextWithCheckbox`},Ym=`.${Km.fieldRoot}`,Zm=e=>!(e?.metaKey||e?.ctrlKey);const Xm=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Qm=e=>_h(Xm(e)),Jm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ef=({cell:e,checkboxes:t})=>{return(((n=e)?"A"===n.qState:null)||Jm(e))&&t;var n},tf=e=>e.filter((e=>!!e)).join(" ").trim(),nf=e=>e||"-",of=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:i})=>"P"===t?`${e.freqMinWidth}px`:n&&!i?"max-content":"25%",rf=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,sf=({theme:e,checkboxes:t,styles:n,selectionState:i})=>{if(t)return"selected"===i?{[`& .${Km.labelText}`]:{color:n.selections.selected}}:{};const o=n.selections,r=o[i],s=o[`${i}Contrast`];return{background:r,color:s,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${Km.labelText}`]:{color:s},[`& .${Km.icon}`]:{color:s}}},af={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},lf=Xs("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:r,sizes:s,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=sf({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),g=sf({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{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${Km.row}`]:{flexWrap:"nowrap",...c.content},[`& .${Km.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${Km.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${Km.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Km.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...af,...h},[`& .${Km.labelDense}`]:{lineHeight:"18px"},[`& .${Km.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Km.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...af,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${Km.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${Km.S}`]:{...u,border:n?"none":void 0},[`& .${Km.XS}`]:{...sf({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${Km.A}`]:{...sf({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${Km.X}`]:{...g,border:n?"none":void 0},[`& .${Km.X}, & .${Km.XS}`]:{border:n?"none":void 0,[`& .${Km.barSelected} .bar-filled`]:{...p}},[`& .${Km.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...af,flex:`0 0 ${of({sizes:s,frequencyMode:a,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==a&&l?s.freqMinWidth:"max-content",maxWidth:rf({sizes:s,frequencyMode:a,isGridMode:n}),textAlign:"rtl"===r?"left":"right",paddingLeft:"rtl"!==r?"8px":0},[`&.${Km.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Km.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...p}},[`& .${Km.barSelected}`]:{"& .bar-filled":{...m}},[`& .${Km.barWithCheckbox}`]:{left:"rtl"===r?4:29,width:"calc(100% - 33px)"},[`& .${Km.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${Km.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}})),cf=t.memo(lf);function df(e){return sa("MuiFormControlLabel",e)}const hf=aa("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uf=Xs("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hf.label}`]:t.label},t.root,t[`labelPlacement${va(n.labelPlacement)}`]]}})(ql((({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${hf.disabled}`]:{cursor:"default"},[`& .${hf.label}`]:{[`&.${hf.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}}]})))),gf=Xs("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ql((({theme:e})=>({[`&.${hf.error}`]:{color:(e.vars||e).palette.error.main}})))),pf=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiFormControlLabel"}),{checked:o,className:r,componentsProps:s={},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}=i,C=wu(),y=l??a.props.disabled??C?.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=Au({props:i,muiFormControl:C,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:r}=e;return tn({root:["root",n&&"disabled",`labelPlacement${va(i)}`,o&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},df,t)})(x),E={slots:f,slotProps:{...s,...b}},[L,D]=pc("typography",{elementType:jd,externalForwardedProps:E,ownerState:x});let I=h;return null==I||I.type===jd||c||(I=(0,Js.jsx)(L,{component:"span",...D,className:en(k.label,D?.className),children:I})),(0,Js.jsxs)(uf,{className:en(k.root,r),ownerState:x,ref:n,...v,children:[t.cloneElement(a,A),w?(0,Js.jsxs)("div",{children:[I,(0,Js.jsxs)(gf,{ownerState:x,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]})})),mf=pf,ff=function({controlled:e,default:n,name:i,state:o="value"}){const{current:r}=t.useRef(void 0!==e),[s,a]=t.useState(n);return[r?e:s,t.useCallback((e=>{r||a(e)}),[])]};function bf(e){return sa("PrivateSwitchBase",e)}aa("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _f=Xs(dd,{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}}]}),vf=Xs("input",{name:"MuiSwitchBase",shouldForwardProp:Zs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Cf=t.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:r,disabled:s,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:_=!1,tabIndex:v,type:C,value:y,slots:w={},slotProps:A={},...S}=e,[x,k]=ff({controlled:i,default:Boolean(r),name:"SwitchBase",state:"checked"}),E=wu();let L=s;E&&void 0===L&&(L=E.disabled);const D="checkbox"===C||"radio"===C,I={...e,checked:x,disabled:L,disableFocusRipple:a,edge:l},N=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e;return tn({root:["root",n&&"checked",i&&"disabled",o&&`edge${va(o)}`],input:["input"]},bf,t)})(I),R={slots:w,slotProps:{input:h,...A}},[T,M]=pc("root",{ref:t,elementType:_f,className:N.root,shouldForwardComponentProp:!0,externalForwardedProps:{...R,component:"span",...S},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{f&&f(e),E&&E.onFocus&&E.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{p&&p(e),E&&E.onBlur&&E.onBlur(e)})(t)}}),ownerState:I,additionalProps:{centerRipple:!0,focusRipple:!a,disabled:L,role:void 0,tabIndex:null}}),[O,q]=pc("input",{ref:u,elementType:vf,className:N.input,externalForwardedProps:R,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),m&&m(e,t)})(t)}}),ownerState:I,additionalProps:{autoFocus:n,checked:i,defaultChecked:r,disabled:L,id:D?d:void 0,name:g,readOnly:b,required:_,tabIndex:v,type:C,..."checkbox"===C&&void 0===y?{}:{value:y}}});return(0,Js.jsxs)(T,{...M,children:[(0,Js.jsx)(O,{...q}),x?o:c]})})),yf=Cf,wf=Zl((0,Js.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Af=Zl((0,Js.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Sf=Zl((0,Js.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function xf(e){return sa("MuiCheckbox",e)}const kf=aa("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ef=Xs(yf,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${va(n.size)}`],"default"!==n.color&&t[`color${va(n.color)}`]]}})(ql((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{[`&.${kf.checked}, &.${kf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${kf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),Lf=(0,Js.jsx)(Af,{}),Df=(0,Js.jsx)(wf,{}),If=(0,Js.jsx)(Sf,{}),Nf=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiCheckbox"}),{checkedIcon:o=Lf,color:r="primary",icon:s=Df,indeterminate:a=!1,indeterminateIcon:l=If,inputProps:c,size:d="medium",disableRipple:h=!1,className:u,slots:g={},slotProps:p={},...m}=i,f=a?l:s,b=a?l:o,_={...i,disableRipple:h,color:r,indeterminate:a,size:d},v=(e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,r=tn({root:["root",n&&"indeterminate",`color${va(i)}`,`size${va(o)}`]},xf,t);return{...t,...r}})(_),C=p.input??c,[y,w]=pc("root",{ref:n,elementType:Ef,className:en(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:p,...m},ownerState:_,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:Nm("function"==typeof C?C(_):C,{"data-indeterminate":a})}}});return(0,Js.jsx)(y,{...w,classes:v})})),Rf=Nf,Tf="ListBoxCheckbox",Mf={cbIcon:`${Tf}-cbIcon`,cbIconChecked:`${Tf}-cbIconChecked`,cbIconExcluded:`${Tf}-cbIconExcluded`,cbIconAlternative:`${Tf}-cbIconAlternative`,checkbox:`${Tf}-checkbox`,dense:`${Tf}-dense`},Of=Xs(Rf,{shouldForwardProp:e=>"styles"!==e})((({styles:e})=>({[`& .${Mf.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"},[`& .${Mf.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:'""'}},[`& .${Mf.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${Mf.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${Mf.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${Mf.dense}`]:{padding:"4px 8px"}}))),qf=(e,n=!0,i=!1)=>t.createElement("span",{className:e.cbIcon},i&&t.createElement("span",{className:n&&i?e.cbIconExcluded:""}));function Pf({onChange:e,checked:n,label:i,dense:o,excluded:r,styles:s,showGray:a=!0,dataN:l}){return t.createElement(Of,{edge:"start",onChange:e,checked:n,disableRipple:!0,className:[Mf.checkbox,o&&Mf.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":i,"data-n":l},name:i,icon:qf(Mf,a,r),checkedIcon:t.createElement("span",{className:Mf.cbIconChecked}),styles:s})}const Bf=Zl((0,Js.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Ff=Zl((0,Js.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Wf=Xs("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Zs})({position:"relative",display:"flex"}),Vf=Xs(Bf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),zf=Xs(Ff,{name:"MuiRadioButtonIcon"})(ql((({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})}}]})))),Hf=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return(0,Js.jsxs)(Wf,{className:n.root,ownerState:o,children:[(0,Js.jsx)(Vf,{fontSize:i,className:n.background,ownerState:o}),(0,Js.jsx)(zf,{fontSize:i,className:n.dot,ownerState:o})]})},jf=gm,Uf=t.createContext(void 0);function $f(e){return sa("MuiRadio",e)}const Gf=aa("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Kf=Xs(yf,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${va(n.size)}`],t[`color${va(n.color)}`]]}})(ql((({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Gf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t,disabled:!1},style:{[`&.${Gf.checked}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),Yf=(0,Js.jsx)(Hf,{checked:!0}),Zf=(0,Js.jsx)(Hf,{}),Xf=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:r=Yf,color:s="primary",icon:a=Zf,name:l,onChange:c,size:d="medium",className:h,disabled:u,disableRipple:g=!1,slots:p={},slotProps:m={},inputProps:f,...b}=i,_=wu();let v=u;_&&void 0===v&&(v=_.disabled),v??=!1;const C={...i,disabled:v,disableRipple:g,color:s,size:d},y=(e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${va(n)}`,"medium"!==i&&`size${va(i)}`]};return{...t,...tn(o,$f,t)}})(C),w=t.useContext(Uf);let A=o;const S=jf(c,w&&w.onChange);let x=l;w&&(void 0===A&&(A=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(w.value,i.value)),void 0===x&&(x=w.name));const k=m.input??f,[E,L]=pc("root",{ref:n,elementType:Kf,className:en(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:C,additionalProps:{type:"radio",icon:t.cloneElement(a,{fontSize:a.props.fontSize??d}),checkedIcon:t.cloneElement(r,{fontSize:r.props.fontSize??d}),disabled:v,name:x,checked:A,slots:p,slotProps:{input:"function"==typeof k?k(C):k}}});return(0,Js.jsx)(E,{...L,classes:y})})),Qf="ListBoxRadioButton-radioButton",Jf=Xs(Xf,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((({checked:e,styles:t,dense:n})=>({[`&.${Qf}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}})));function eb({onChange:e,checked:n,label:i,dense:o,dataN:r,styles:s}){return t.createElement(Jf,{checked:n,onChange:e,value:i,name:i,className:Qf,inputProps:{"data-n":r},disableRipple:!0,size:o?"small":"medium",dense:o,styles:s})}const tb=function({label:e,dense:n,showGray:i=!0,checkboxes:o,cell:r,valueTextAlign:s}){return t.createElement(jd,{component:"span",variant:"body2",className:tf([Km.labelText,n&&Km.labelDense,i&&ef({cell:r,checkboxes:o})&&Km.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,e))},nb=function({label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?t.createElement(tb,{label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},ib=function({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){const g=t.createElement(Pf,{onChange:e,label:n,checked:o,dense:r,excluded:Jm(s),isGridCol:a,showGray:l,dataN:i,styles:u}),p=t.createElement(eb,{onChange:e,label:n,checked:o,dense:r,dataN:i,styles:u});return t.createElement(mf,{control:c?p:g,className:Km.checkboxLabel,label:t.createElement(nb,{label:n,dense:r,showGray:l,checkboxes:d,cell:s,valueTextAlign:h}),key:i})};function ob({labels:e,dense:n,showGray:i,checkboxes:o}){const r=e.map((([e,n],i)=>t.createElement("span",{id:i,className:n?Km.highlighted:""},e)));return t.createElement(tb,{label:r,dense:n,showGray:i,checkboxes:o})}const rb=function({onChange:e,labels:n,checkboxes:i,dense:o,showGray:r,qElemNumber:s,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:h,styles:u}){const g=t.createElement(ob,{labels:n,dense:o,showGray:r,checkboxes:i});return i?t.createElement(ib,{onChange:e,label:g,qElemNumber:s,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:r,isSingleSelect:d,checkboxes:i,valueTextAlign:h,styles:u}):g};function sb({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){return d?t.createElement(ib,{onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}):t.createElement(tb,{label:n,dense:r,showGray:!0,checkboxes:d,cell:s,valueTextAlign:h})}const ab=t.memo(sb),lb=function({qFrequency:e,histogram:n,checkboxes:i,isSelected:o,frequencyMax:r}){if(!e||!n||"-"===nf(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:i,frequencyMax:r});return t.createElement(Tl,{className:tf([Km.bar,i&&Km.barWithCheckbox,o&&(i?Km.barSelectedWithCheckbox:Km.barSelected)])},t.createElement(Tl,{className:"bar-filled",width:s}))},cb=function({cell:e,checkboxes:n,dense:i,showGray:o}){const r=nf(e?.qFrequency);return t.createElement(Od,{item:!0,style:{display:"flex",alignItems:"center"},className:Km.frequencyCount,"aria-label":r,title:r},t.createElement(jd,{noWrap:!0,color:"inherit",variant:"body2",className:tf([i&&Km.labelDense,Km.labelText,o&&ef({cell:e,checkboxes:n})&&Km.excludedTextWithCheckbox])},r))};function db({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 hb=Xs(Od,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o,fillHeight:r})=>{const s="padding"+("rtl"===o?"Left":"Right");return{[`&.${Km.fieldRoot}`]:{...db({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}),[s]:i?"8px":void 0}}})),ub=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===ub.ARROW_UP||e===ub.ARROW_DOWN||e===ub.ARROW_LEFT||e===ub.ARROW_RIGHT}),gb=ub;function pb(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function mb(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function fb({containerRef:e,enabled:n}){const[i,o]=(0,t.useState)(!1);return{enabled:n,active:i,innerTabStops:!n||i,blur(t){if(!n)return;o(!1);const i=mb(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),pb(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"),r=t?.querySelector(".value.last-focused"),s=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||r||s||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}}}const bb=e=>+e.getAttribute("data-n"),_b=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},vb=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(),pb(e),o},Cb=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},yb=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:i}=e,o=i.classList.contains("listbox-container"),r=n.closest(".listbox-container"),s=mb(r),a=1===s?.querySelectorAll(".listbox-container").length;if(o||a)t.blur(!0);else{pb(r),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},wb={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"},Ab=function({index:e,rowIndex:n,columnIndex:i,style:o,data:r}){const{onChange:s,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:_,layoutOptions:v={},freqIsAllowed:C,isSingleSelect:y,actions:w,frequencyMax:A="",histogram:S=!1,keyboard:x,showGray:k=!0,showTick:E=!0,columnCount:L=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}=r,{dense:V=!1,dataLayout:z="singleColumn",layoutOrder:H}=v,{itemPadding:j}=M;let U,$;const G={max:null,currentIndex:null};if("number"==typeof n&&"number"==typeof i){"row"===H?(U=n*L+i,G.max=D,G.currentIndex=n):(U=i*D+n,G.max=L,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,Y]=(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 Z=(0,t.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===gb.ARROW_LEFT||e===gb.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:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%i,e<t?n:n-1):(t=s%n,e<i-1?n:t)};let l=e,c=t;if(r===gb.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=s%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:_=!1,metaKey:v=!1}=u;switch(g){case gb.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){_b(e)||Cb(e)||(t?a.focusSelection():yb(c,a));break}a.focusSelection()||Cb(e)||_b(e)||(h.blur(),yb(c,a));break}case gb.SHIFT:f(!0);break;case gb.SPACE:e([bb(h)],!1,c);break;case gb.ARROW_DOWN:case gb.ARROW_RIGHT:d=p(g,h,!0),b&&d&&(m&&(e([bb(h)],!0),f(!1)),e([bb(d)],!0));break;case gb.ARROW_UP:case gb.ARROW_LEFT:d=p(g,h,!1),b&&d&&(m&&(e([bb(h)],!0),f(!1)),e([bb(d)],!0));break;case gb.ENTER:if(i(),void 0===l)return;break;case gb.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case gb.HOME:if(s.setFirst(!0),_){r?.("overflowStart");break}r?.("start");break;case gb.END:if(s.setLast(!0),_){r?.("overflowEnd");break}r?.("end");break;case gb.A:if(_||v){t();break}return;case gb.F:if(_||v){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:x,isModal:P,rowCount:D,columnCount:L,rowIndex:n,columnIndex:i,layoutOrder:H}),[w,x?.innerTabStops,D,L,n,i,H]),X=(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]),Q="S"===X?.qState||"XS"===X?.qState||"L"===X?.qState||"XL"===X?.qState,J=(0,t.useMemo)((()=>(({column:e,histogram:t,cell:n,showGray:i})=>{if(!n)return[];const o=[e?Km.column:Km.row];t||o.push(Km.rowBorderBottom);const r=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?Km.XS:Km.S;break;case"S":case"L":n=Km.S;break;case"A":n=!!t&&Km.A;break;case"X":case"XL":n=!!t&&Km.X;break;default:n=!1}return n}({cell:n,showGray:i});return r&&o.push(r),o})({column:m,histogram:S,cell:X,showGray:k})),[X?.qState,S,V]),ee=(0,t.useCallback)((e=>{e.preventDefault()}),[f]),te=(0,t.useMemo)((()=>X&&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:_,cell:X,textAlign:b})),[_,X,b]);if(!X)return null;const ne="grid"===z&&"column"===H,ie=X?.qText??"";let oe;if(X.qHighlightRanges?.qRanges?.length){const e=X.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];oe=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(ie,e)}const re={alignItems:"center",display:"flex",fontSize:"8px"},se="rtl"===_,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:se?8:f?0:void 0,paddingRight:f?0:se?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Q&&p,de=!f&&Q&&!p,he=!f&&E,ue=f||!E,ge=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:r,showSearch:s}){const a=wb[n],l=e.get(a),c=[];if(i){const t=s?"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,r+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:O,label:ie,qState:X.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:q}),pe=!se&&"right"===te||se&&"left"===te;return t.createElement(cf,{className:Km.barContainer,checkboxes:f,style:$,styles:F,isGridCol:ne,isGridMode:"grid"===z,dense:V,direction:_,sizes:M,frequencyMode:N,freqHitsValue:pe,contentFontStyle:B,"data-testid":"listbox.item"},t.createElement(hb,{role:"row","aria-label":ge,"aria-selected":Q,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:Y,container:!0,dataLayout:z,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:tf(["value",...J]),classes:{root:Km.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Z,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&x.innerTabStops?0:-1,"data-n":X?.qElemNumber,direction:_,fillHeight:W},X?.qFrequency&&t.createElement(lb,{qFrequency:X?.qFrequency,histogram:S,checkboxes:f,isSelected:Q,frequencyMax:A}),t.createElement(Od,{item:!0,style:ae,className:tf([Km.cell,Km.selectedCell]),title:`${ie}`},oe?t.createElement(rb,{onChange:s,labels:oe,checkboxes:f,dense:V,showGray:k,qElemNumber:X.qElemNumber,isSelected:Q,cell:X,isGridCol:ne,isSingleSelect:y,valueTextAlign:te,styles:F}):t.createElement(ab,{onChange:s,label:ie,qElemNumber:X.qElemNumber,isSelected:Q,dense:V,cell:X,isGridCol:ne,showGray:k,isSingleSelect:y,checkboxes:f,valueTextAlign:te,styles:F})),C&&t.createElement(cb,{cell:X,checkboxes:f,dense:V,showGray:k}),he&&t.createElement(Od,{item:!0,className:Km.icon},ce&&t.createElement(Up,{style:re,size:"small"}),de&&t.createElement(Qm,{style:re,size:"small"}))))};var Sb=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||Sb(i)&&Sb(o)))return!1;var i,o;return!0}const kb=function(e,t){var n;void 0===t&&(t=xb);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Eb="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Lb(e){cancelAnimationFrame(e.id)}function Db(e,t){var n=Eb(),i={id:requestAnimationFrame((function o(){Eb()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var Ib=-1;function Nb(e){if(void 0===e&&(e=!1),-1===Ib||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Ib=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ib}var Rb=null;function Tb(e){if(void 0===e&&(e=!1),null===Rb||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?Rb="positive-descending":(t.scrollLeft=1,Rb=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Rb}return Rb}var Mb=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ob(e){var n,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=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,Bc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Bc(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=kb((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=kb((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.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:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=kb((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(Tb()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"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&&Lb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Db(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Wc(n,e),n.getDerivedStateFromProps=function(e,t){return qb(e,t),b(e),null};var _=n.prototype;return _.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)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,h=r.height,u=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,b=Nb();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var _=a(this.props,this._instanceProps),v=l(this.props,this._instanceProps)>g?b:0,C=_>h?b:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,v):f})},_.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()},_.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(Tb()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lb(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,n=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?Mb:g,m=e.outerElementType,f=e.outerTagName,b=e.rowCount,_=e.style,v=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),A=w[0],S=w[1],x=this._getVerticalRangeToRender(),k=x[0],E=x[1],L=[];if(o>0&&b)for(var D=k;D<=E;D++)for(var I=A;I<=S;I++)L.push((0,t.createElement)(n,{columnIndex:I,data:u,isScrolling:v?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:rn({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,t.createElement)(d||h||"div",{children:L,ref:c,style:{height:N,pointerEvents:y?"none":void 0,width:R}}))},_._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 r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,h,u,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,b=m.scrollLeft,_=m.scrollTop,v=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(b,_,f,C,v)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=r(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]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)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(r-1,u+f)),h,u]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var qb=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Pb=function(e,t){return e};function Bb(e){var n,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=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,Bc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Bc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=kb((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=kb((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,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var h=i(n.props,e,n._instanceProps),u=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,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=kb((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(Tb()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,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&&Lb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Db(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Wc(n,e),n.getDerivedStateFromProps=function(e,t){return Fb(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,r=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?Nb():0:l.scrollHeight>l.clientHeight?Nb():0}this.scrollTo(s(this.props,e,t,r,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 r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Tb()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lb(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,n=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?Pb:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,b=e.style,_=e.useIsScrolling,v=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,A=this._getRangeToRender(),S=A[0],x=A[1],k=[];if(d>0)for(var E=S;E<=x;E++)k.push((0,t.createElement)(n,{data:h,key:g(E,h),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var L=o(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:rn({position:"relative",height:s,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},b)},(0,t.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":L,pointerEvents:C?"none":void 0,width:y?L:"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 r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),h=o&&"backward"!==r?1:Math.max(1,n),u=o&&"forward"!==r?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 Fb=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Wb=Ob({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,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+r+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,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),h=Math.max(0,t*s-a+r+s);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,r=e.width,s=t*i,a=Math.ceil((r+n-s)/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,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Vb=Bb({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,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===s||"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+r);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,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,h=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const zb="#BBB",Hb="#f1f1f1",jb="ListBox-styledScrollbars";function Ub({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,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)(s,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||r.state.show;r.set(p)}function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$b.apply(null,arguments)}const{StyledFixedSizeList:Gb,StyledFixedSizeGrid:Kb}=function(){const e=e=>({scrollbarColor:`${zb} ${Hb}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Hb},"&::-webkit-scrollbar-thumb":{backgroundColor:zb,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Ui(Vb,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${jb}`]:e(t)}))),StyledFixedSizeGrid:Ui(Wb,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${jb}`]:e(t)})))}}(),Yb=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 Zb(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Xb({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[Qb,Jb]=Rp({});function e_(e){const t=`${e.id}`,[n]=Qb();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function t_(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n_(e){return e instanceof t_(e).Element||e instanceof Element}function i_(e){return e instanceof t_(e).HTMLElement||e instanceof HTMLElement}function o_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t_(e).ShadowRoot||e instanceof ShadowRoot)}var r_=Math.max,s_=Math.min,a_=Math.round;function l_(){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 c_(){return!/^((?!chrome|android).)*safari/i.test(l_())}function d_(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&i_(e)&&(o=e.offsetWidth>0&&a_(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&a_(i.height)/e.offsetHeight||1);var s=(n_(e)?t_(e):window).visualViewport,a=!c_()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,h=i.height/r;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function h_(e){var t=t_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function u_(e){return e?(e.nodeName||"").toLowerCase():null}function g_(e){return((n_(e)?e.ownerDocument:e.document)||window.document).documentElement}function p_(e){return d_(g_(e)).left+h_(e).scrollLeft}function m_(e){return t_(e).getComputedStyle(e)}function f_(e){var t=m_(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function b_(e,t,n){void 0===n&&(n=!1);var i=i_(t),o=i_(t)&&function(e){var t=e.getBoundingClientRect(),n=a_(t.width)/e.offsetWidth||1,i=a_(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),r=g_(t),s=d_(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==u_(t)||f_(r))&&(a=function(e){return e!==t_(e)&&i_(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:h_(e);var t}(t)),i_(t)?((l=d_(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=p_(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function __(e){var t=d_(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 v_(e){return"html"===u_(e)?e:e.assignedSlot||e.parentNode||(o_(e)?e.host:null)||g_(e)}function C_(e){return["html","body","#document"].indexOf(u_(e))>=0?e.ownerDocument.body:i_(e)&&f_(e)?e:C_(v_(e))}function y_(e,t){var n;void 0===t&&(t=[]);var i=C_(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=t_(i),s=o?[r].concat(r.visualViewport||[],f_(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(y_(v_(s)))}function w_(e){return["table","td","th"].indexOf(u_(e))>=0}function A_(e){return i_(e)&&"fixed"!==m_(e).position?e.offsetParent:null}function S_(e){for(var t=t_(e),n=A_(e);n&&w_(n)&&"static"===m_(n).position;)n=A_(n);return n&&("html"===u_(n)||"body"===u_(n)&&"static"===m_(n).position)?t:n||function(e){var t=/firefox/i.test(l_());if(/Trident/i.test(l_())&&i_(e)&&"fixed"===m_(e).position)return null;var n=v_(e);for(o_(n)&&(n=n.host);i_(n)&&["html","body"].indexOf(u_(n))<0;){var i=m_(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 x_="top",k_="bottom",E_="right",L_="left",D_="auto",I_=[x_,k_,E_,L_],N_="start",R_="end",T_="viewport",M_="popper",O_=I_.reduce((function(e,t){return e.concat([t+"-"+N_,t+"-"+R_])}),[]),q_=[].concat(I_,[D_]).reduce((function(e,t){return e.concat([t,t+"-"+N_,t+"-"+R_])}),[]),P_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B_(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 F_(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var W_={placement:"bottom",modifiers:[],strategy:"absolute"};function V_(){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 z_(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?W_:o;return function(e,t,n){void 0===n&&(n=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},W_,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},r,o.options,a),o.scrollParents={reference:n_(e)?y_(e):e.contextElement?y_(e.contextElement):[],popper:y_(t)};var d,h,u=function(e){var t=B_(e);return P_.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,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:l,options:i});s.push(a||function(){})}})),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(V_(t,n)){o.rects={reference:b_(t,S_(n),"fixed"===o.options.strategy),popper:__(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 r=o.orderedModifiers[i],s=r.fn,c=r.options,d=void 0===c?{}:c,h=r.name;"function"==typeof s&&(o=s({state:o,options:d,name:h,instance:l})||o)}else o.reset=!1,i=-1}}},update:F_((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),a=!0}};if(!V_(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var H_={passive:!0};function j_(e){return e.split("-")[0]}function U_(e){return e.split("-")[1]}function $_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G_(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?j_(o):null,s=o?U_(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case x_:t={x:a,y:n.y-i.height};break;case k_:t={x:a,y:n.y+n.height};break;case E_:t={x:n.x+n.width,y:l};break;case L_:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?$_(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case N_:t[c]=t[c]-(n[d]/2-i[d]/2);break;case R_:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var K_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y_(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=s.x,g=void 0===u?0:u,p=s.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=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),v=L_,C=x_,y=window;if(c){var w=S_(n),A="clientHeight",S="clientWidth";w===t_(n)&&"static"!==m_(w=g_(n)).position&&"absolute"===a&&(A="scrollHeight",S="scrollWidth"),(o===x_||(o===L_||o===E_)&&r===R_)&&(C=k_,m-=(h&&w===y&&y.visualViewport?y.visualViewport.height:w[A])-i.height,m*=l?1:-1),o!==L_&&(o!==x_&&o!==k_||r!==R_)||(v=E_,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&&K_),E=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:a_(n*o)/o||0,y:a_(i*o)/o||0}}({x:g,y:m},t_(n)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((x={})[C]=_?"0":"",x[v]=b?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[C]=_?m+"px":"",t[v]=b?g+"px":"",t.transform="",t))}var Z_={left:"right",right:"left",bottom:"top",top:"bottom"};function X_(e){return e.replace(/left|right|bottom|top/g,(function(e){return Z_[e]}))}var Q_={start:"end",end:"start"};function J_(e){return e.replace(/start|end/g,(function(e){return Q_[e]}))}function ev(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o_(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nv(e,t,n){return t===T_?tv(function(e,t){var n=t_(e),i=g_(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=c_();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+p_(e),y:l}}(e,n)):n_(t)?function(e,t){var n=d_(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):tv(function(e){var t,n=g_(e),i=h_(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=r_(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=r_(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+p_(e),l=-i.scrollTop;return"rtl"===m_(o||n).direction&&(a+=r_(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(g_(e)))}function iv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ov(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function rv(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?T_:c,h=n.elementContext,u=void 0===h?M_:h,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,b=iv("number"!=typeof f?f:ov(f,I_)),_=u===M_?"reference":M_,v=e.rects.popper,C=e.elements[p?_:u],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=y_(v_(e)),n=["absolute","fixed"].indexOf(m_(e).position)>=0&&i_(e)?S_(e):e;return n_(n)?t.filter((function(e){return n_(e)&&ev(e,n)&&"body"!==u_(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(t,n){var o=nv(e,n,i);return t.top=r_(o.top,t.top),t.right=s_(o.right,t.right),t.bottom=s_(o.bottom,t.bottom),t.left=r_(o.left,t.left),t}),nv(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(n_(C)?C:C.contextElement||g_(e.elements.popper),l,d,s),w=d_(e.elements.reference),A=G_({reference:w,element:v,strategy:"absolute",placement:o}),S=tv(Object.assign({},v,A)),x=u===M_?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},E=e.modifiersData.offset;if(u===M_&&E){var L=E[o];Object.keys(k).forEach((function(e){var t=[E_,k_].indexOf(e)>=0?1:-1,n=[x_,k_].indexOf(e)>=0?"y":"x";k[e]+=L[n]*t}))}return k}const sv={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,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,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=j_(f),_=l||(b!==f&&p?function(e){if(j_(e)===D_)return[];var t=X_(e);return[J_(e),t,J_(t)]}(f):[X_(f)]),v=[f].concat(_).reduce((function(e,n){return e.concat(j_(n)===D_?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q_:l,d=U_(i),h=d?a?O_:O_.filter((function(e){return U_(e)===d})):I_,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]=rv(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[j_(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)}),[]),C=t.rects.reference,y=t.rects.popper,w=new Map,A=!0,S=v[0],x=0;x<v.length;x++){var k=v[x],E=j_(k),L=U_(k)===N_,D=[x_,k_].indexOf(E)>=0,I=D?"width":"height",N=rv(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),R=D?L?E_:L_:L?k_:x_;C[I]>y[I]&&(R=X_(R));var T=X_(R),M=[];if(r&&M.push(N[E]<=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=v.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 av(e,t,n){return r_(e,s_(t,n))}const lv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,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=rv(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=j_(t.placement),_=U_(t.placement),v=!_,C=$_(b),y="x"===C?"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),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(r){var D,I="y"===C?x_:L_,N="y"===C?k_:E_,R="y"===C?"height":"width",T=w[C],M=T+f[I],O=T-f[N],q=g?-S[R]/2:0,P=_===N_?A[R]:S[R],B=_===N_?-S[R]:-A[R],F=t.elements.arrow,W=g&&F?__(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[I],H=V[N],j=av(0,A[R],W[R]),U=v?A[R]/2-q-j-z-k.mainAxis:P-j-z-k.mainAxis,$=v?-A[R]/2+q+j+H+k.mainAxis:B+j+H+k.mainAxis,G=t.elements.arrow&&S_(t.elements.arrow),K=G?"y"===C?G.clientTop||0:G.clientLeft||0:0,Y=null!=(D=null==E?void 0:E[C])?D:0,Z=T+$-Y,X=av(g?s_(M,T+U-Y-K):M,T,g?r_(O,Z):O);w[C]=X,L[C]=X-T}if(a){var Q,J="x"===C?x_:L_,ee="x"===C?k_:E_,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[x_,L_].indexOf(b),se=null!=(Q=null==E?void 0:E[y])?Q:0,ae=re?ie:te-A[ne]-S[ne]-se+k.altAxis,le=re?te+A[ne]+S[ne]-se-k.altAxis:oe,ce=g&&re?function(e,t,n){var i=av(e,t,n);return i>n?n:i}(ae,te,le):av(g?ae:ie,te,g?le:oe);w[y]=ce,L[y]=ce-te}t.modifiersData[i]=L}},requiresIfExists:["offset"]},cv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=j_(n.placement),l=$_(a),c=[L_,E_].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return iv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ov(e,I_))}(o.padding,n),h=__(r),u="y"===l?x_:L_,g="y"===l?k_:E_,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=S_(r),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,v=d[u],C=b-h[c]-d[g],y=b/2-h[c]/2+_,w=av(v,y,C),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)))&&ev(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dv(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 hv(e){return[x_,E_,k_,L_].some((function(t){return e[t]>=0}))}var uv=z_({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,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=t_(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,H_)})),a&&l.addEventListener("resize",n.update,H_),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H_)})),a&&l.removeEventListener("resize",n.update,H_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G_({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,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:j_(t.placement),variation:U_(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,Y_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y_(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];i_(o)&&u_(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]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i_(i)&&u_(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=q_.reduce((function(e,n){return e[n]=function(e,t,n){var i=j_(e),o=[L_,x_].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[L_,E_].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e}),{}),a=s[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]=s}},sv,lv,cv,{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,r=t.modifiersData.preventOverflow,s=rv(t,{elementContext:"reference"}),a=rv(t,{altBoundary:!0}),l=dv(s,i),c=dv(a,o,r),d=hv(l),h=hv(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 gv(e){return sa("MuiPopper",e)}function pv(e){return"function"==typeof e?e():e}aa("MuiPopper",["root"]);const mv={},fv=t.forwardRef((function(e,n){const{anchorEl:i,children:o,direction:r,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:h,slotProps:u={},slots:g={},TransitionProps:p,ownerState:m,...f}=e,b=t.useRef(null),_=lc(b,n),v=t.useRef(null),C=lc(v,h),y=t.useRef(C);Ia((()=>{y.current=C}),[C]),t.useImperativeHandle(h,(()=>v.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,r),[A,S]=t.useState(w),[x,k]=t.useState(pv(i));t.useEffect((()=>{v.current&&v.current.forceUpdate()})),t.useEffect((()=>{i&&k(pv(i))}),[i]),Ia((()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{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=uv(x,b.current,{placement:w,...d,modifiers:e});return y.current(t),()=>{t.destroy(),y.current(null)}}),[x,s,a,l,d,w]);const E={placement:A};null!==p&&(E.TransitionProps=p);const L=(e=>{const{classes:t}=e;return tn({root:["root"]},gv,t)})(e),D=g.root??"div",I=Bh({elementType:D,externalSlotProps:u.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:L.root});return(0,Js.jsx)(D,{...I,children:"function"==typeof o?o(E):o})})),bv=Xs(t.forwardRef((function(e,n){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=mv,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:b={},..._}=e,[v,C]=t.useState(!0);if(!l&&!d&&(!m||v))return null;let y;if(r)y=r;else if(i){const e=pv(i);y=e&&void 0!==e.nodeType?zh(e).body:zh(null).body}const w=d||!l||m&&!v?void 0:"none",A=m?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,Js.jsx)(rm,{disablePortal:a,container:y,children:(0,Js.jsx)(fv,{anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!v:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:b,..._,style:{position:"fixed",top:0,left:0,display:w,...p},TransitionProps:A,children:o})})})),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_v=t.forwardRef((function(e,t){const n=La(),i=na({props:e,name:"MuiPopper"}),{anchorEl:o,component:r,components:s,componentsProps:a,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,slots:b,slotProps:_,...v}=i,C=b?.root??s?.Root,y={anchorEl:o,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,...v};return(0,Js.jsx)(bv,{as:r,direction:n?"rtl":"ltr",slots:{root:C},slotProps:_??a,...y,ref:t})}));function vv(e){return sa("MuiTooltip",e)}const Cv=aa("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),yv=Xs(_v,{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]}})(ql((({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"] .${Cv.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cv.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cv.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Cv.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Cv.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Cv.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Cv.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Cv.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),wv=Xs("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${va(n.placement.split("-")[0])}`]]}})(ql((({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ar(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,[`.${Cv.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Cv.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Cv.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:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Cv.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Cv.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t}))),Av=Xs("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ql((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ar(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let Sv=!1;const xv=new Yc;let kv={x:0,y:0};function Ev(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const Lv=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:r,classes:s,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:_,leaveDelay:v=0,leaveTouchDelay:C=1500,onClose:y,onOpen:w,open:A,placement:S="bottom",PopperComponent:x,PopperProps:k={},slotProps:E={},slots:L={},title:D,TransitionComponent:I,TransitionProps:N,...R}=i,T=t.isValidElement(r)?r:(0,Js.jsx)("span",{children:r}),M=wa(),O=La(),[q,P]=t.useState(),[B,F]=t.useState(null),W=t.useRef(!1),V=u||b,z=Zc(),H=Zc(),j=Zc(),U=Zc(),[$,G]=ff({controlled:A,default:!1,name:"Tooltip",state:"open"});let K=$;const Y=Lc(_),Z=t.useRef(),X=Tc((()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),U.clear()}));t.useEffect((()=>X),[X]);const Q=e=>{xv.clear(),Sv=!0,G(!0),w&&!K&&w(e)},J=Tc((e=>{xv.start(800+v,(()=>{Sv=!1})),G(!1),y&&K&&y(e),z.start(M.transitions.duration.shortest,(()=>{W.current=!1}))})),ee=e=>{W.current&&"touchstart"!==e.type||(q&&q.removeAttribute("title"),H.clear(),j.clear(),p||Sv&&m?H.start(Sv?m:p,(()=>{Q(e)})):Q(e))},te=e=>{H.clear(),j.start(v,(()=>{J(e)}))},[,ne]=t.useState(!1),ie=e=>{Ic(e.target)||(ne(!1),te(e))},oe=e=>{q||P(e.currentTarget),Ic(e.target)&&(ne(!0),ee(e))},re=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 se=Nc(Kp(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?Y:null):(le["aria-label"]=ce?D:null,le["aria-labelledby"]=K&&!ce?Y:null);const de={...le,...R,...T.props,className:en(R.className,T.props.className),onTouchStart:re,ref:se,...b?{onMouseMove:e=>{const t=T.props;t.onMouseMove&&t.onMouseMove(e),kv={x:e.clientX,y:e.clientY},ae.current&&ae.current.update()}}:{}},he={};g||(de.onTouchStart=e=>{re(e),j.clear(),z.clear(),X(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(f,(()=>{document.body.style.WebkitUserSelect=Z.current,ee(e)}))},de.onTouchEnd=e=>{T.props.onTouchEnd&&T.props.onTouchEnd(e),X(),j.start(C,(()=>{J(e)}))}),h||(de.onMouseOver=Ev(ee,de.onMouseOver),de.onMouseLeave=Ev(te,de.onMouseLeave),V||(he.onMouseOver=ee,he.onMouseLeave=te)),d||(de.onFocus=Ev(oe,de.onFocus),de.onBlur=Ev(ie,de.onBlur),V||(he.onFocus=oe,he.onBlur=ie));const ue={...i,isRtl:O,arrow:o,disableInteractive:V,placement:S,PopperComponentProp:x,touch:W.current},ge="function"==typeof E.popper?E.popper(ue):E.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:r}=e;return tn({popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${va(r.split("-")[0])}`],arrow:["arrow"]},vv,t)})(ue),fe="function"==typeof E.transition?E.transition(ue):E.transition,be={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...L},slotProps:{arrow:E.arrow??l.arrow,popper:{...k,...ge??l.popper},tooltip:E.tooltip??l.tooltip,transition:{...N,...fe??l.transition}}},[_e,ve]=pc("popper",{elementType:yv,externalForwardedProps:be,ownerState:ue,className:en(me.popper,k?.className)}),[Ce,ye]=pc("transition",{elementType:Jp,externalForwardedProps:be,ownerState:ue}),[we,Ae]=pc("tooltip",{elementType:wv,className:me.tooltip,externalForwardedProps:be,ownerState:ue}),[Se,xe]=pc("arrow",{elementType:Av,className:me.arrow,externalForwardedProps:be,ownerState:ue,ref:F});return(0,Js.jsxs)(t.Fragment,{children:[t.cloneElement(T,de),(0,Js.jsx)(_e,{as:x??_v,placement:S,anchorEl:b?{getBoundingClientRect:()=>({top:kv.y,left:kv.x,right:kv.x,bottom:kv.y,width:0,height:0})}:q,popperRef:ae,open:!!q&&K,id:Y,transition:!0,...he,...ve,popperOptions:pe,children:({TransitionProps:e})=>(0,Js.jsx)(Ce,{timeout:M.transitions.duration.shorter,...e,...ye,children:(0,Js.jsxs)(we,{...Ae,children:[D,o?(0,Js.jsx)(Se,{...xe}):null]})})})]})})),Dv=Lv,Iv=Xs(jd,{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 Nv({width:e,text:n,dense:i,tooltip:o}){const{translator:r}=(0,t.useContext)(Dp);return t.createElement(Dv,{title:o?r.get(n):""},t.createElement(Iv,{width:e,dense:i,component:"div",variant:"body1",py:"12px"},r.get(n)))}const Rv=Zl((0,Js.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Tv=Xs(Dm)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),Mv=Xs("div")((()=>({paddingLeft:"6px",flexGrow:1}))),Ov=Xs("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),qv=Xs(Rv)((()=>({fontSize:"14px"})));function Pv({text:e,dismiss:n,dense:i,parentWidth:o=0}){const r="function"==typeof n,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return t.createElement(Tv,{left:a,style:{maxWidth:s}},t.createElement(Mv,null,t.createElement(Nv,{text:e,dense:i,width:l,tooltip:c})),t.createElement(Ov,{dense:i},r&&t.createElement(kd,{"aria-label":"close",onClick:()=>n()},t.createElement(qv,null))))}function Bv({itemWidth:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["N",void 0].includes(n);return!(!i||!r&&!o)}const Fv=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Wv=e=>{const t=Fv(e);return`Max(AGGR(Count(${t}), ${t}))`},Vv=Xs("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function zv({model:e,app:n,constraints:i,layout:o,selections:r,selectionState:s,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:_,keyScroll:v={state:{},reset:()=>{}},currentScrollIndex:C={set:()=>{}},renderedCallback:y,onCtrlF:w,showSearch:A,isModal:S,styles:x}){const{translator:k}=(0,t.useContext)(Dp),[E,L]=(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,r]=(0,t.useState)(),[s,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=Wv(i);return(await t.evaluateEx(o)).qNumber})(n,e);r(t),a(!1)})()}),[i&&n]),{frequencyMax:i?o:n?.frequencyMax,awaitingFrequencyMax:s}})(n,o),{isLoadingData:P,...B}=function({local:e,loaderRef:n,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,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],r=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=s?s(n):n;e.current.validPages=!0,a.current.pages=i,h(i),c(!1),t()}));o&&o(r)}),g?r: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}=e_(e),V=(0,t.useCallback)(B.loadMoreItems,[o]),[z,H]=(0,t.useState)({show:!1,dismissed:!1}),[j,U]=(0,t.useState)([]);B?.pages&&s.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:Y}=function({selectionState:e,selections:n,checkboxes:i=!1,doc:o=document,loaderRef:r}){const s=(0,t.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,t.useEffect)((()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=r.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)}}),[r.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),$m({selections:n,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.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 Um(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}=s.current;if(n===t)return;const i=l(s.current.startElemNumber,t);e.updateItems(i,!0,s.current.elemNumbers)},d=(0,t.useCallback)((t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&Zm(t.nativeEvent);s.current.elemNumbers=[n],s.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),s.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&&Zm(t);s.current.isRange=!1,s.current.startElemNumber=n,s.current.elemNumbers=[n],s.current.toggle=i,s.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(s.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&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,t.useCallback)((e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())}),[]),p=(0,t.useCallback)((t=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,e.isSelected(s.current.startElemNumber)||(e.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)}),[]),m=(0,t.useCallback)((t=>{if(s.current.active||s.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(Ym)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(Ym)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(s.current.active=!0,l(n,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[n,i])}),[]),f=(0,t.useCallback)((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,c(t),s.current.touchElemNumbers=[],s.current.active=!1,s.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 r=!e.isSingleSelect&&Zm(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(t,i,s),e.setSelectableValuesUpdating(),$m({selections:n,elemNumbers:i?s:t,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:I,doc:document,loaderRef:R}),{layoutOptions:Z={}}=o||{};let X=!0;Z.dataLayout&&(X="singleColumn"===Z.dataLayout||"row"===Z?.layoutOrder);const Q="grid"===Z?.dataLayout,J=e=>{const t={...X?{rowIndex:e}:{columnIndex:e}},n=Q?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"===v.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&v.reset());T.current.dataOffset=0,J(0)}};u&&u.call(null,ee),(0,t.useEffect)((()=>{_&&!E&&R.current&&(R.current._listRef.scrollToItem(_.initScrollPos),L(!0))}),[R.current]),(0,t.useEffect)((()=>{ee()}),[o,T.current.dataOffset]);let te=100;const ne="grid"!==Z.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:Z,model:e});let re=Bv({itemWidth:d,layout:o,frequencyMode:h});const se=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:r,checkboxes:s,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=Yb({text:Zb(e),font:f}),_=Yb({text:Zb(5),font:f}),v=Yb({text:Zb(8),font:f}),C=r?_:0,y=s?20:0;let w=56+C+y;!s&&w>=80&&(w+=20);let A,S,x,k,E=b+18+C+y;!s&&E>=80&&(E+=20),E=Math.min(150,Math.max(E,w));const L=Xb({isGridMode:"grid"===g,dense:u}),D=n??8*L;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 r=e?.maxColumns||3,s=n-10;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,i))));a=!1!==e?.auto?l:Math.min(t,r,l),a=Math.max(a,1);const c=s/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:h,listCount:i,containerWidth:e,columnAutoWidth:E,itemMinWidth:w}))):(A={overflowY:"hidden"},({rowCount:k,columnWidth:x,columnCount:S}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){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,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:L,listCount:i,listHeight:D,columnAutoWidth:E,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:L,listHeight:D,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(i,R),maxCount:{row:I,column:N},itemPadding:4,textWidth:b,freqMinWidth:_,freqMaxWidth:v}}({layout:o,width:d,height:c,listCount:oe,count:ie,freqIsAllowed:re,checkboxes:I,styles:x});ae.columnWidth&&(re=Bv({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)(Dp),r=[];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]);r.push(t)}const s=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});r.push(s);const a=r.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 r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:X,sizes:ae,layout:o,offset:T.current.dataOffset});T.current.dataOffset=n,i&&s.triggerStateChanged(),J(t)};(0,t.useEffect)((()=>{const e=v.state;e.up?J(C.state.start-e.up):e.down?J(C.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&v.reset()}),[v.state.up,v.state.down,v.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:n,checkboxes:i,local:o,isVertical:r,pages:s,selectionState:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:h,select:u,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:b,showGray:_,scrollState:v,direction:C,sizes:y,listCount:w,overflowDisclaimer:A,setScrollPosition:S,focusListItems:x,setCurrentScrollIndex:k,constraints:E,frequencyMax:L,freqIsAllowed:D,translator:I,showSearch:N,isModal:R,styles:T}){const{layoutOptions:M={}}=e||{},{columnWidth:O,listHeight:q,itemHeight:P,rowCount:B,columnCount:F}=y||{},W=("grid"===M.dataLayout?O:n)>80,V={direction:"rtl"===C?"rtl":"ltr",useIsScrolling:!0,className:jb},z=e?.qListObject.qDimensionInfo.qLocked,H=q<=P,j={isLocked:z,column:!r,pages:s,...z||a.selectDisabled()?{}:l,checkboxes:i,layoutOptions:M,deducedFrequencyMode:c,freqIsAllowed:D,isSingleSelect:h,textAlign:m,sizes:y,actions:{select:u,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:S,selectAll:g,onCtrlF:p},frequencyMax:L,histogram:d,keyboard:b,showGray:_,showTick:W,dataOffset:o.current.dataOffset,focusListItems:x,direction:C,translator:I,showSearch:N,isModal:R,styles:T,fillHeight:H};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,t.createElement(Gb,$b({},V,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:q,width:n,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),Ub({renderProps:t,layoutOptions:M,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:A,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),Ab)),Grid:({onItemsRendered:i,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=y,{layoutOrder:l}=M||{},c=Math.min(q,B*P+a);return o.current.listRef=r,t.createElement(Kb,$b({},V,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:n,columnCount:F,columnWidth:O,rowCount:B,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:F,rowCount:B},onItemsRendered:t=>{const n="row"===l;k({start:n?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:n?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,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=s,g=c*o,p=a):(h=l,u=s*r,g=c,p=a*r),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:l,rowCount:B,columnCount:F});Ub({renderProps:t,layoutOptions:M,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:A,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(r)},ref:r}),Ab)}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,deducedFrequencyMode:se,histogram:N,keyboard:f,showGray:b,interactionEvents:K,select:Y,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:ue,isVertical:ne,pages:j,selectionState:s,isSingleSelect:D,selections:r,scrollState:_,local:T,sizes:ae,listCount:le,overflowDisclaimer:{state:z,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:C.set,constraints:i,frequencyMax:O,freqIsAllowed:re,translator:k,showSearch:A,isModal:S,styles:x}),{columnWidth:be,listHeight:_e,itemHeight:ve}=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:_e,itemHeight:ve})),t.createElement(Vv,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},de),!le&&$>0&&t.createElement(Nv,{width:d,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Hm,{isItemLoaded:G,itemCount:le||1,loadMoreItems:V.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:R,role:"grid"},ne?me:fe),z.show&&!z.dismissed&&t.createElement(Pv,{text:"Listbox.ItemsOverflow",dismiss:()=>H((e=>({...e,dismissed:!0}))),parentWidth:R?.current?._listRef?.props?.width,dense:Z?.dense}))}const Hv=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"}}]}),jv=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"}}]}),Uv=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"}}]}),$v=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"}}]}),Gv=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1,selections:r})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",a=()=>{r.isActive()||r.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:Hv,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:Uv,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectPossible(s)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:jv,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAlternative(s)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:$v,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectExcluded(s)}}].filter(Boolean)};function Kv(e){return sa("MuiDivider",e)}const Yv=aa("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zv=Xs("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]}})(ql((({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.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ar(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%"}}}]})))),Xv=Xs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(ql((({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)`}}]})))),Qv=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,orientation:s="horizontal",component:a=(o||"vertical"===s?"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:s,role:d,textAlign:h,variant:u},m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e;return tn({root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},Kv,i)})(p);return(0,Js.jsx)(Zv,{as:a,className:en(m.root,r),role:d,ref:t,ownerState:p,"aria-orientation":"separator"!==d||"hr"===a&&"vertical"!==s?void 0:s,...g,children:o?(0,Js.jsx)(Xv,{className:m.wrapper,ownerState:p,children:o}):null})}));Qv&&(Qv.muiSkipListHighlight=!0);const Jv=Qv,eC=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 tC(e){const t=wa(),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}}const nC={className:"njs-cell-action"},iC=t.forwardRef((({ariaExpanded:e=!1,item:n,addAnchor:i=!1},o)=>{const r=wa(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=tC(n);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),h=n.keyboardAction||n.action,u=h?e=>["Enter"].includes(e.key)&&h():null,g=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,p=`actions-toolbar-${n.key}`;return t.createElement(kd,{ref:i?null:o,title:n.label,onClick:n.action,onKeyDown:u,onKeyUp:g,disabled:a,style:l,className:[nC.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":n.label,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&_h(n.getSvgIconShape()),i&&t.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),oC=iC,rC=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"}}]}),sC=e=>_h(rC(e)),aC=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"}}]}),lC=e=>_h(aC(e));function cC(e){return sa("MuiListItemIcon",e)}const dC=aa("MuiListItemIcon",["root","alignItemsFlexStart"]);function hC(e){return sa("MuiMenuItem",e)}const uC=aa("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gC=Xs(dd,{shouldForwardProp:e=>Zs(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]}})(ql((({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"}},[`&.${uC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yv.inset}`]:{marginLeft:52},[`& .${Rh.root}`]:{marginTop:0,marginBottom:0},[`& .${Rh.inset}`]:{paddingLeft:36},[`& .${dC.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,[`& .${dC.root} svg`]:{fontSize:"1.25rem"}}}]})))),pC=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:u,...g}=i,p=t.useContext(Ch),m=t.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=t.useRef(null);xh((()=>{o&&f.current&&f.current.focus()}),[o]);const b={...i,dense:m.dense,divider:a,disableGutters:l},_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a=tn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},hC,s);return{...s,...a}})(i),v=Nc(f,n);let C;return i.disabled||(C=void 0!==h?h:-1),(0,Js.jsx)(Ch.Provider,{value:m,children:(0,Js.jsx)(gC,{ref:v,role:d,tabIndex:C,component:r,focusVisibleClassName:en(_.focusVisible,c),className:en(_.root,u),...g,ownerState:b,classes:_})})})),mC=pC,fC=Xs("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(ql((({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]})))),bC=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemIcon"}),{className:o,...r}=i,s=t.useContext(Ch),a={...i,alignItems:s.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return tn({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cC,n)})(a);return(0,Js.jsx)(fC,{className:en(l.root,o),ownerState:a,ref:n,...r})})),_C=bC,vC=pm;function CC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function yC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wC(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 AC(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&wC(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const SC=t.forwardRef((function(e,n){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,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});xh((()=>{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=`${vC(jh(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=Nc(g,n);let f=-1;t.Children.forEach(s,((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>=s.length&&(f=-1))):f===n&&(f+=1,f>=s.length&&(f=-1))}));const b=t.Children.map(s,((e,n)=>{if(n===f){const n={};return r&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),t.cloneElement(e,n)}return e}));return(0,Js.jsx)(Sh,{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=tu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),AC(t,i,c,l,CC);else if("ArrowUp"===n)e.preventDefault(),AC(t,i,c,l,yC);else if("Home"===n)e.preventDefault(),AC(t,null,c,l,CC);else if("End"===n)e.preventDefault(),AC(t,null,c,l,yC);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&wC(i,o);o.previousKeyMatched&&(a||AC(t,i,!1,l,CC,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1,...u,children:b})})),xC=SC;function kC(){return kC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kC.apply(null,arguments)}const EC="More-icon",LC=Xs(Fm)((({theme:e})=>({pointerEvents:"none",[`& .${EC} *`]:{color:e.palette.text.primary}})));function DC({item:e,autoFocus:n,onActionClick:i=()=>{}}){const{hidden:o,disabled:r,hasSvgIconShape:s}=tC(e);return o?null:t.createElement(mC,{autoFocus:n,title:e.label,onClick:()=>{e.action(),i()},disabled:r,tabindex:"0"},s&&t.createElement(_C,{className:EC},_h(e.getSvgIconShape())),t.createElement(jd,{noWrap:!0},e.label))}const IC=t.forwardRef((({actions:e=[],show:n=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=()=>{},disablePortal:a=!0},l)=>{const c=e.length>0,d=e.findIndex((e=>!e.disabled));return c&&t.createElement(LC,kC({},o,{onClose:s,ref:l,open:n,anchorEl:i.current,getContentAnchorEl:a?null:void 0,container:a?i.current:void 0,disablePortal:a,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(xC,{id:"moreMenuList"},e.map(((e,n)=>t.createElement(DC,{key:n,item:e,autoFocus:n===d,onActionClick:s})))))}));const NC="ActionsToolbar",RC={item:`${NC}-item`,itemSpacing:`${NC}-itemSpacing`},TC=Xs(Fm)((({theme:e})=>({[`& .${RC.itemSpacing}`]:{padding:e.spacing(0,.25)}}))),MC=t.forwardRef((({className:e,ariaExpanded:n=!1,actions:i=[],addAnchor:o=!1,isRtl:r=!1},s)=>i.length>0?t.createElement(Od,{item:!0,container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e},i.map(((e,i)=>t.createElement(Od,{item:!0,key:e.key,className:`${RC.itemSpacing} ${RC.item}`},t.createElement(oC,{ariaExpanded:n,key:e.key,item:e,ref:0===i?s:null,addAnchor:o}))))):null)),OC={pointerEvents:"none"},qC=function({show:e=!0,actions:n=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:r,more:s={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:r=()=>{}}){const{translator:s}=(0,t.useContext)(Dp);return[{key:"clear",type:"icon-button",label:s.get("Selection.Clear"),enabled:()=>e.canClear(n),action:()=>e.clear(),getSvgIconShape:aC},{key:"cancel",type:"icon-button",label:s.get("Selection.Cancel"),enabled:()=>e.canCancel(n),action:()=>{o(),e.cancel()},keyboardAction:()=>{r(),o(),e.cancel()},getSvgIconShape:rC},{key:"confirm",type:"icon-button",label:s.get("Selection.Confirm"),enabled:()=>e.canConfirm(n),action:()=>{i(),e.confirm()},keyboardAction:()=>{r(),i(),e.confirm()},getSvgIconShape:Xm}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,t.useContext)(Dp),[f,b]=(0,t.useState)(!1),_={vertical:12,horizontal:d?0:(a.anchorEl?.clientWidth??0)-7},v={vertical:"bottom",horizontal:d?-7:"right"},C=(0,t.useRef)(),y=(0,t.useRef)(),w=wa(),A=(0,t.useMemo)((()=>({margin:w.spacing(.5,0)}))),S=e=>{const t=C.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 r=>{const{target:s,nativeEvent:a}=r,{keyCode:l}=a;switch(l){case gb.ARROW_LEFT:case gb.ARROW_DOWN:case gb.ARROW_RIGHT:case gb.ARROW_UP:if(s.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)})(s);let t=[gb.ARROW_LEFT,gb.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)}r.stopPropagation(),r.preventDefault();break;case gb.SPACE:r.preventDefault();break;case gb.TAB:e&&t?.refocusContent&&(r.shiftKey&&n(!1)===r.target||!r.shiftKey&&n(!0)===r.target)&&(r.preventDefault(),r.stopPropagation(),t.refocusContent());break;case gb.ESCAPE:i&&(i.onCancel(),i.api.cancel(),r.preventDefault(),r.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=s.enabled,E=s.actions;const L=s.alignTo||y,D=n.filter((e=>!e.hidden));if(D.length>i){const e=D.splice(-(D.length-i)-1);k=!0,E=[...e,...s.actions]}if(!o.show&&0===D.length&&!k)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:eC,hidden:!1,active:f,enabled:()=>k,action:()=>b(!f)},N=D.length>0,R=E.length>0,T=N&&o.show||R&&o.show,M=t.createElement(Od,{ref:C,onKeyDown:x,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"}},r?.length&&t.createElement(MC,{className:"actions-toolbar-extra-actions",actions:r,isRtl:d}),N&&t.createElement(MC,{actions:D}),R&&t.createElement(MC,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:f,actions:[I],addAnchor:!0}),T&&t.createElement(Od,{item:!0,className:RC.itemSpacing,style:A},t.createElement(Jv,{orientation:"vertical"})),o.show&&t.createElement(MC,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&t.createElement(IC,{show:f,actions:E,alignTo:L,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{b(!1)},disablePortal:s.disablePortal}));return a.show?t.createElement(TC,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:_,transformOrigin:v,hideBackdrop:!0,style:OC,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)}}}},M):e&&M};function PC(e){return sa("MuiInputAdornment",e)}const BC=aa("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var FC;const WC=Xs("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${va(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(ql((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${BC.positionStart}&:not(.${BC.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),VC=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d,...h}=i,u=wu()||{};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:r,variant:s}=e;return tn({root:["root",n&&"disablePointerEvents",o&&`position${va(o)}`,s,i&&"hiddenLabel",r&&`size${va(r)}`]},PC,t)})(p);return(0,Js.jsx)(yu.Provider,{value:null,children:(0,Js.jsx)(WC,{as:s,ownerState:p,className:en(m.root,r),ref:n,...h,children:"string"!=typeof o||l?(0,Js.jsxs)(t.Fragment,{children:["start"===c?FC||(FC=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]}):(0,Js.jsx)(jd,{color:"textSecondary",children:o})})})})),zC=VC,HC=e=>_h((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)),jC="/qListObjectDef",UC=e=>e?.substring(0,64e3),$C=Xs(Ku,{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}})),GC=Xs(kd)((()=>({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 KC({popoverOpen:e,selections:n,selectionState:i,model:o,keyboard:r,dense:s=!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)(Dp),[b,_]=(0,t.useState)(""),[v,C]=(0,t.useState)(!1),y=(0,t.useRef)(),w=(0,t.useRef)(),A=f.get("Listbox.Clear.Search"),{getStoreValue:S,setStoreValue:x}=e_(o),k="rtl"===u,E=async()=>{try{await o.abortListObjectSearch(jC)}finally{_("")}};(0,t.useEffect)((()=>a?()=>E():()=>{}),[a]),(0,t.useEffect)((()=>(n.on("deactivated",E),()=>{n.removeListener&&n.removeListener("deactivated",E)})),[]),(0,t.useEffect)((()=>{if(v&&y.current){const e=b.length-1;y.current.setSelectionRange(e,e),C(!1)}}),[v,y.current]),(0,t.useEffect)((()=>{x("inputText",b)}),[b]);const L=()=>{y.current?.focus()},D=()=>{E(),L()};return(0,t.useImperativeHandle)(m,(()=>({focus(){L()}}))),a&&!1!==h?t.createElement($C,{styles:p,dense:s,isRtl:k,startAdornment:t.createElement(zC,{position:"start",sx:{marginLeft:s?"8px":"9px"}},t.createElement(HC,{size:s?"small":"normal"})),endAdornment:t.createElement(zC,{position:"end",sx:{marginLeft:0}},""!==b&&t.createElement(GC,{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?L():vb(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(sC,{size:s?"small":"normal"}))),className:"search",inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:b,onFocus:()=>{d&&(_("**"),C(!0)),c&&!i.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=UC(e.target.value);return _(t),t.length?o.searchListObjectFor(jC,t):E()},onKeyDown:async t=>{const{currentTarget:s}=t,a=s.closest(".listbox-container");switch(t.key){case"Enter":(async()=>{let e;const t=UC(b),r=await o.searchListObjectFor(jC,t);i.selectDisabled()||r&&t.length&&S("listCount")>0&&(e=o.acceptListObjectSearch(jC,!0),n.selectionsMade=!0,i.clearItemStates(!1),_(""))})();break;case"Escape":if(vb(a),n.cancel(),e)return;break;case"Tab":t.shiftKey?Cb(a)||r.focusSelection():w.current?w.current.focus():vb(a);break;case"f":case"F":if(!t.ctrlKey&&!t.metaKey)return;g&&(g(),vb(a));break;default:return}t.preventDefault(),t.stopPropagation()},autoFocus:l,inputProps:{tabIndex:r.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}const YC=(0,t.forwardRef)(KC);function ZC(e){if(!e.session)return[];const{selectionStore:n}=(0,t.useContext)(Dp),[i]=n.useAppSelectionsStore(),o=e?e.id:null;let r=i.get(o);return(0,t.useEffect)((()=>{e&&!r&&(r=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:i,appModalStore:o}=t,r=async(e=!0)=>{const{model:t,objectSelections:o}=i.get(n)||{};t&&(await t.endSelections(e),i.clear(n),o.emit("deactivated"))},s={begin:async({model:t,paths:o,accept:s=!0,objectSelections:a})=>{if(a===i.get(n)?.objectSelections)return;r(s),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(s),c(!0))}};await c()},end:r};o.set(n,s);const a={model:e,isInModal:()=>!!i.get(n),isModal:e=>e?i.get(n)?.objectSelections===e:!!i.get(n),forward:()=>s.end().then((()=>e.forward())),back:()=>s.end().then((()=>e.back())),clear:()=>s.end().then((()=>e.clearAll())),clearField:(t,n="$")=>s.end().then((()=>e.getField(t,n).then((e=>e.clear()))))};return a}({app:e,selectionStore:n}),i.set(o,r),i.dispatch(!0))}),[e]),[r]}function XC(e){return Object.keys(yg().prototype).forEach((t=>{e[t]=yg().prototype[t]})),yg().init(e),e}const QC=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={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:s}))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!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 r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(s),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:s}),noModal:(e=!1)=>t.end(e)};return XC(s),s};function JC(e,n,i,o){const r=Array.isArray(i)?i:[i],[s]=ZC(e),[a]=zp(n),{appModalStore:l}=(0,t.useContext)(Dp).selectionStore,c=l.get(e.id),[d,h]=(0,t.useState)();return(0,t.useEffect)((()=>{s&&n&&!d&&h(QC({appSelections:s,appModal:c,model:n}))}),[s,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:r,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 ey(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:r}){this.setPages=e;const s=this.lastRowCount===r.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===r.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&a||(this.lastRowCount=r.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=r.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,!!jm.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Um(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=i,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=r?.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 ty=(e,t,n=void 0)=>e?.[t]??n;function ny(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return ty(t,"qSelected",0)+ty(t,"qSelectedExcluded",0)+ty(t,"qLocked",0)+ty(t,"qLockedExcluded",0)>0}function iy(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 oy(e){if("object"==typeof e&&iy(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 ry={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}};function sy(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,i=0,o=0,r=1;if(null!==(s=e[0])&&"object"==typeof s&&"type"in s&&"qcm-color"===s.type)({r:n,g:i,b:o,a:r}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(iy(e[0]))({r:n,g:i,b:o}=e[0]),"a"in e[0]&&({a:r}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const s=e[0];let a;if(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))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(s))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10),r=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(s))r=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(s))n=parseInt(a[1],16),i=parseInt(a[2],16),o=parseInt(a[3],16),r=1;else if(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))n=parseInt(a[1]+a[1],16),i=parseInt(a[2]+a[2],16),o=parseInt(a[3]+a[3],16),r=1;else if(a=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*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=s-.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),r=1}else if(a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);r=parseFloat(a[7]),e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*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=s-.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(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s*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=s-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),r=1}else{const e=s.toLowerCase();if(function(e){return e in ry}(e)){const t=ry[e];({r:n,g:i,b:o}=t),r="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(r=(4278190080&e[0])>>>24,r/=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],r=4===e.length?e[3]:1):t.invalid=!0;var s;return Number.isNaN(+n+i+o+r)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(i),t.b=Math.floor(o),t.a=r,t}function ay(e){let t,n,i;if(iy(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?oy(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 ly(e){let t,n,i=0;const o="string"==typeof e?sy(e):e,r=o.r/255,s=o.g/255,a=o.b/255,{a:l}=o,c=Math.max(r,s,a),d=Math.min(r,s,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 r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i,s:100*t,l:100*h,a:l}}function cy(e){let t,n,i=0;const o="string"==typeof e?sy(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,a),d=l;if(l===c)t=0,i=0;else{switch(n=l-c,t=0===n?0:n/d,l){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*d}}function dy(e){if(iy(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?oy(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function hy(e,t){return iy(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:hy(sy(e),t)}function uy(e){return iy(e)?1===e.a?dy(e):hy(e):uy(sy(e))}const gy=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function py(e){return.2126*gy(e.r)+.7152*gy(e.g)+.0722*gy(e.b)}function my(...e){const t=sy(...e);return t.invalid||py(t)<.4}function fy(...e){const t=sy(...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=ly(n)),n.spaces.hslaObject),o=e=>{const t=i(),{h:n,s:o,l:r,a:s}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(r+e,100))}, ${s})`};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=sy(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:()=>my(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=dy(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=hy(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=uy(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=ay(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,i=0;const o="string"==typeof e?sy(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,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 r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/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}=ly(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}=cy(e);return`hsv(${t}, ${n}, ${i})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=cy(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)=>fy(o(18*e)),getDarkenedColor:(e=1)=>fy(o(18*-e))}}function by(e,t){if(!e||!t)return;const n=py(e),i=py(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}function _y(e,t){const n=fy("#FFFFFF"),i=fy(e),o=fy(t);if(i.isInvalid()||o.isInvalid()||i.getAlpha()<1||o.getAlpha()<1)return t;const r=by(n,i),s=by(o,i),a=r>s||r>4.5;return!a&&s>3?o.getHex():a?"#FFFFFF":"#000000"}function vy(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 Cy,yy,wy,Ay="top",Sy="top-right",xy="right",ky="bottom-right",Ey="bottom",Ly="bottom-left",Dy="left",Iy="top-left";vy(vy(vy(vy(vy(vy(vy(vy(vy(vy(Cy={},"equal-equal",[Ay,Ey]),"equal-higher",[Ey,ky]),"equal-lower",[Ay,Sy]),"equal-void",[Ay,Ey]),"higher-equal",[Dy,Ly,Ay,Sy]),"higher-higher-acute",[Ey,Ly,Dy,Sy]),"higher-higher-obtuse",[Ey,Ay]),"higher-lower-negative",[Ay,Sy,xy]),"higher-lower-positive",[Ey,Ly,Dy]),"higher-void",[Ay]),vy(vy(vy(vy(vy(vy(vy(vy(vy(vy(Cy,"lower-equal",[Ay]),"lower-higher-negative",[Ay,Iy]),"lower-higher-positive",[ky]),"lower-lower-acute",[Ay,Iy,Dy,Sy,xy]),"lower-lower-obtuse",[Ay,Ey]),"lower-void",[Ay]),"void-equal",[Ay]),"void-higher",[Ay,Ey]),"void-lower",[Ay,Ey,Dy]),"void-void",[Ay]),vy(Cy,"unclassified",[Ay,Ey,xy,Dy,Sy,ky,Ly,Iy]);var Ny=function(){if(wy)return yy;wy=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)},r=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,o=e.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!r)return!1;for(i in n);return void 0===i||e.call(n,i)},s=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 yy=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&&(r(l)||(c=o(l)))?(c?(c=!1,d=i&&o(i)?i:[]):d=i&&r(i)?i:{},s(h,{name:n,newValue:e(p,d,l)})):void 0!==l&&s(h,{name:n,newValue:l}));return h},yy}();function Ry(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ty(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function My(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ny);var Oy=1/.7,qy="\\s*([+-]?\\d+)\\s*",Py="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",By="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fy=/^#([0-9a-f]{3,8})$/,Wy=new RegExp(`^rgb\\(${qy},${qy},${qy}\\)$`),Vy=new RegExp(`^rgb\\(${By},${By},${By}\\)$`),zy=new RegExp(`^rgba\\(${qy},${qy},${qy},${Py}\\)$`),Hy=new RegExp(`^rgba\\(${By},${By},${By},${Py}\\)$`),jy=new RegExp(`^hsl\\(${Py},${By},${By}\\)$`),Uy=new RegExp(`^hsla\\(${Py},${By},${By},${Py}\\)$`),$y={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 Gy(){return this.rgb().formatHex()}function Ky(){return this.rgb().formatRgb()}function Yy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fy.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zy(t):3===n?new ew(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Xy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Xy(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=Wy.exec(e))?new ew(t[1],t[2],t[3],1):(t=Vy.exec(e))?new ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zy.exec(e))?Xy(t[1],t[2],t[3],t[4]):(t=Hy.exec(e))?Xy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jy.exec(e))?sw(t[1],t[2]/100,t[3]/100,1):(t=Uy.exec(e))?sw(t[1],t[2]/100,t[3]/100,t[4]):$y.hasOwnProperty(e)?Zy($y[e]):"transparent"===e?new ew(NaN,NaN,NaN,0):null}function Zy(e){return new ew(e>>16&255,e>>8&255,255&e,1)}function Xy(e,t,n,i){return i<=0&&(e=t=n=NaN),new ew(e,t,n,i)}function Qy(e){return e instanceof My||(e=Yy(e)),e?new ew((e=e.rgb()).r,e.g,e.b,e.opacity):new ew}function Jy(e,t,n,i){return 1===arguments.length?Qy(e):new ew(e,t,n,null==i?1:i)}function ew(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function tw(){return`#${rw(this.r)}${rw(this.g)}${rw(this.b)}`}function nw(){const e=iw(this.opacity);return`${1===e?"rgb(":"rgba("}${ow(this.r)}, ${ow(this.g)}, ${ow(this.b)}${1===e?")":`, ${e})`}`}function iw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ow(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rw(e){return((e=ow(e))<16?"0":"")+e.toString(16)}function sw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lw(e,t,n,i)}function aw(e){if(e instanceof lw)return new lw(e.h,e.s,e.l,e.opacity);if(e instanceof My||(e=Yy(e)),!e)return new lw;if(e instanceof lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new lw(s,a,l,e.opacity)}function lw(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function cw(e){return(e=(e||0)%360)<0?e+360:e}function dw(e){return Math.max(0,Math.min(1,e||0))}function hw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ry(My,Yy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gy,formatHex:Gy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return aw(this).formatHsl()},formatRgb:Ky,toString:Ky}),Ry(ew,Jy,Ty(My,{brighter(e){return e=null==e?Oy:Math.pow(Oy,e),new ew(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ew(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ew(ow(this.r),ow(this.g),ow(this.b),iw(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:tw,formatHex:tw,formatHex8:function(){return`#${rw(this.r)}${rw(this.g)}${rw(this.b)}${rw(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nw,toString:nw})),Ry(lw,(function(e,t,n,i){return 1===arguments.length?aw(e):new lw(e,t,n,null==i?1:i)}),Ty(My,{brighter(e){return e=null==e?Oy:Math.pow(Oy,e),new lw(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new lw(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 ew(hw(e>=240?e-240:e+120,o,i),hw(e,o,i),hw(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new lw(cw(this.h),dw(this.s),dw(this.l),iw(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=iw(this.opacity);return`${1===e?"hsl(":"hsla("}${cw(this.h)}, ${100*dw(this.s)}%, ${100*dw(this.l)}%${1===e?")":`, ${e})`}`}}));const uw=Math.PI/180,gw=180/Math.PI,pw=4/29,mw=6/29,fw=3*mw*mw;function bw(e){if(e instanceof _w)return new _w(e.l,e.a,e.b,e.opacity);if(e instanceof Aw)return Sw(e);e instanceof ew||(e=Qy(e));var t,n,i=ww(e.r),o=ww(e.g),r=ww(e.b),s=vw((.2225045*i+.7168786*o+.0606169*r)/1);return i===o&&o===r?t=n=s:(t=vw((.4360747*i+.3850649*o+.1430804*r)/.96422),n=vw((.0139322*i+.0971045*o+.7141733*r)/.82521)),new _w(116*s-16,500*(t-s),200*(s-n),e.opacity)}function _w(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function vw(e){return e>.008856451679035631?Math.pow(e,1/3):e/fw+pw}function Cw(e){return e>mw?e*e*e:fw*(e-pw)}function yw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ww(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Aw(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Sw(e){if(isNaN(e.h))return new _w(e.l,0,0,e.opacity);var t=e.h*uw;return new _w(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ry(_w,(function(e,t,n,i){return 1===arguments.length?bw(e):new _w(e,t,n,null==i?1:i)}),Ty(My,{brighter(e){return new _w(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _w(this.l-18*(null==e?1:e),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 ew(yw(3.1338561*(t=.96422*Cw(t))-1.6168667*(e=1*Cw(e))-.4906146*(n=.82521*Cw(n))),yw(-.9787684*t+1.9161415*e+.033454*n),yw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ry(Aw,(function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Aw)return new Aw(e.h,e.c,e.l,e.opacity);if(e instanceof _w||(e=bw(e)),0===e.a&&0===e.b)return new Aw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*gw;return new Aw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Aw(e,t,n,null==i?1:i)}),Ty(My,{brighter(e){return new Aw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Aw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sw(this).rgb()}}));var xw=e=>()=>e;function kw(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):xw(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?kw: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):xw(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=Jy(e)).r,(t=Jy(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=kw(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);var Ew="center",Lw="bottom";function Dw(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 Iw(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 Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iw(Object(n),!0).forEach((function(t){Dw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}[{key:"NoDataExist",alignment:Ew,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:Ew,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:Ew,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:Ew},{key:"DataRangeIncludingZero",alignment:Lw},{key:"LimitedData",alignment:Lw},{key:"NegativeOrZeroValues",alignment:Lw}].reduce((function(e,t){return e[t.key]=t,e}),{});var Rw=Object.prototype.hasOwnProperty,Tw=Object.prototype.toString,Mw=Object.defineProperty,Ow=Object.getOwnPropertyDescriptor,qw=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Tw.call(e)},Pw=function(e){if(!e||"[object Object]"!==Tw.call(e))return!1;var t,n=Rw.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Rw.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Rw.call(e,t)},Bw=function(e,t){Mw&&"__proto__"===t.name?Mw(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Fw=function(e,t){if("__proto__"===t){if(!Rw.call(e,t))return;if(Ow)return Ow(e,t).value}return e[t]},Ww=function e(){var t,n,i,o,r,s,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=Fw(a,n),a!==(o=Fw(t,n))&&(d&&o&&(Pw(o)||(r=qw(o)))?(r?(r=!1,s=i&&qw(i)?i:[]):s=i&&Pw(i)?i:{},Bw(a,{name:n,newValue:e(d,s,o)})):void 0!==o&&Bw(a,{name:n,newValue:o}));return a};function Vw(e,t,n,i){if(!e)return-1;const o=n.cache,r=e.origin?e.origin():null;r&&(e=r);let s=o.fields.indexOf(e),a=-1,l=-1;if(-1===s)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){s=t;break}if(Array.isArray(i)&&i.some(((e,t)=>e!==t))){const e=i.indexOf(s);-1!==e&&(s=e)}return s-=t.qArea.qLeft,s<0||s>=t.qArea.qWidth?-1:l>=0?e=>e[s].qAttrDims.qValues[l]:a>=0?e=>e[s].qAttrExps.qValues[a]:e=>e[s]}function zw(e,t,n){let{key:i}=n;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 Hw(e){let{cache:t,f:n,mainCell:i,p:o,prop:r,page:s,rowIdx:a,row:l,sourceKey:c,target:d,targetProp:h,columnOrder:u}=e,g=i;if(o.field&&o.field!==n){const e=Vw(o.field,s,{cache:t},u);if(-1===e)return;g=Ww({qRow:a},e(l))}d[h]=zw(o,g,{key:c})}function jw(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const s=t.raw(),a=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:c,main:d}=i.normalizeConfig(o[e],t),h=Object.keys(c),u=!!o[e].trackBy,g=typeof o[e].trackBy,p={},m=[],f=[];for(let t=0;t<s.qDataPages.length;t++){const r=Vw(l,s.qDataPages[t],{cache:n},s.qColumnOrder);if(-1!==r)for(let b=0;b<s.qDataPages[t].qMatrix.length;b++){const _=s.qDataPages[t].qArea.qTop+b,v=Ww({qRow:_},r(s.qDataPages[t].qMatrix[b])),C=zw(d,v,{key:a});if(!d.filter||d.filter(v)){for(let e=0;e<h.length;e++){const i=c[h[e]];let o=i.fields||[i];i.fields&&(C[h[e]]=[]);for(let r=0;r<o.length;r++)Hw({cache:n,f:l,mainCell:v,p:o[r],prop:h[e],props:c,page:s.qDataPages[t],rowIdx:_,row:s.qDataPages[t].qMatrix[b],sourceKey:a,target:i.fields?C[h[e]]:C,targetProp:i.fields?r:h[e],columnOrder:s.qColumnOrder});if(i.fields){const t=C[h[e]].map((e=>e.value)),n=C[h[e]].map((e=>e.label));C[h[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(C[h[e]].value)}}}u&&i.track({cfg:o[e],itemData:v,obj:C,target:m,tracker:p,trackType:g}),f.push(C)}}}const b=u?i.collect(m,{main:d,propsArr:h,props:c}):f;r=[...r,...b]}return r}function Uw(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 $w(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kw)):void 0===t&&(t=Gw);for(var n,i,o,r,s,a=new Xw(e),l=[a];n=l.pop();)if((o=t(n.data))&&(s=(o=Array.from(o)).length))for(n.children=o,r=s-1;r>=0;--r)l.push(i=o[r]=new Xw(o[r])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(Zw)}function Gw(e){return e.children}function Kw(e){return Array.isArray(e)?e[1]:null}function Yw(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Zw(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xw(e){this.data=e,this.depth=this.height=0,this.parent=null}function Qw(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}Xw.prototype=$w.prototype={constructor:Xw,count:function(){return this.eachAfter(Uw)},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,r=this,s=[r],a=[],l=-1;r=s.pop();)if(a.push(r),n=r.children)for(i=0,o=n.length;i<o;++i)s.push(n[i]);for(;r=a.pop();)e.call(t,r,++l,this);return this},eachBefore:function(e,t){for(var n,i,o=this,r=[o],s=-1;o=r.pop();)if(e.call(t,o,++s,this),n=o.children)for(i=n.length-1;i>=0;--i)r.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 $w(this).eachBefore(Yw)},[Symbol.iterator]:function*(){var e,t,n,i,o=this,r=[o];do{for(e=r.reverse(),r=[];o=e.pop();)if(yield o,t=o.children)for(n=0,i=t.length;n<i;++n)r.push(t[n])}while(r.length)}};var Jw={depth:-1},eA={},tA={};function nA(e){return e.id}function iA(e){return e.parentId}function oA(e){let t=e.length;if(t<2)return"";for(;--t>1&&!rA(e,t););return e.slice(0,t)}function rA(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function sA(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=sA(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]=sA(i,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function aA(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,...aA(e[o].children,t-1,n)]);return i}function lA(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=>aA(e.children,i-1,n)}return!1}const cA=/^qDimensionInfo(?:\/(\d+))?/,dA=/^\/?qMeasureInfo\/(\d+)/,hA=/\/qAttrExprInfo\/(\d+)/,uA=/\/qAttrDimInfo\/(\d+)/;function gA(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function pA(e,t){let{cube:n}=t;if(!e)return-1;let i=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,r=-1,s=-1,a=-1,l=-1,c=-1,d=-1,h=i;const u=n.qEffectiveInterColumnSortOrder,g=gA(n);return cA.test(h)&&(o=!0,r=+cA.exec(h)[1],h=i.replace(cA,"")),dA.test(h)&&("K"===n.qMode?c=+dA.exec(h)[1]:u&&-1!==u.indexOf(-1)?(c=+dA.exec(h)[1],d=0):d=+dA.exec(h)[1],h=h.replace(dA,"")),h&&(uA.exec(h)?a=+uA.exec(h)[1]:hA.exec(h)&&(s=+hA.exec(h)[1])),l=o?"S"===n.qMode?g[r]:u?u.indexOf(r):r: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:s}}function mA(e,t){let n,i,o=lA(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 fA(e,t,n){let{key:i}=n;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 bA(e){let{propsArr:t,props:n,item:i,itemData:o,ret:r,sourceKey:s}=e;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;r[t[e]]={value:n,label:g?g(b):null!=b?b:String(n)},h.field&&(r[t[e]].source={field:h.field.key(),key:s})}}c&&(r[t[e]]={value:"function"==typeof a.value?a.value(c,i):c,label:"function"==typeof a.label?a.label(d,i):d})}}const _A=(e,t,n)=>{const i="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",r=sA(i,e);return r&&r[0]?(t.tree=$w(r[0],n.children||(e=>e[o])),t.tree):null};const vA=e=>{let{propsArr:t,props:n,cube:i,cache:o,itemDepthObject:r,f:s}=e;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields?a.fields:[a];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==s){const e=mA(r,pA(t.field,{cube:i,cache:o}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function CA(){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(),r=t.key(),s="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)))),r=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(i.indexOf(e)))),s={__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]],r="".concat(i,"__").concat(null!==(a=t.qElemNumber)&&void 0!==a?a:t.qElemNo);s[r]||(s[r]=Nw({__id:r,__parent:i,qValues:[]},t),l=!0),i=r}if(l)for(let e=0;e<r.length;e++){const t=n[r[e]];s[i].qValues.push(t)}}const l=Object.keys(s).map((e=>s[e]));return function(){var e,t=nA,n=iA;function i(i){var o,r,s,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 rA(e,t-1)&&!rA(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,i)))),n=t.map(oA),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(oA(e)),u.push(tA));g=(e,n)=>t[n],p=(e,t)=>n[t]}for(s=0,o=u.length;s<o;++s)r=u[s],c=u[s]=new Xw(r),null!=(d=g(r,s,i))&&(d+="")&&(h=c.id=d,m.set(h,m.has(h)?eA:c)),null!=(d=p(r,s,i))&&(d+="")&&(c.parent=d);for(s=0;s<o;++s)if(d=(c=u[s]).parent){if(!(l=m.get(d)))throw new Error("missing: "+d);if(l===eA)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===tA&&1===a.children.length;)a=a.children[0],--o;for(let e=u.length-1;e>=0&&(c=u[e]).data===tA;--e)c.data=null}if(a.parent=Jw,a.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(Zw),a.parent=null,o>0)throw new Error("cycle");return a}return i.id=function(e){return arguments.length?(t=Qw(e),i):t},i.parentId=function(e){return arguments.length?(n=Qw(e),i):n},i.path=function(t){return arguments.length?(e=Qw(t),i):e},i}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}(t):_A(o,n,e);if(!s)return null;const a=s.height,l=[];for(let r=0;r<=a;r++){let s=null;if(r>0)if("S"===o.qMode){let e=gA(o)[r-1];s=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[r-1];r>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),s=n.fields[e]}const{props:a,main:c}=i.normalizeConfig(Nw(Nw({},e),{},{field:s?s.key():void 0}),t),d=Object.keys(a);l[r]={propsArr:d,props:a,main:c};const h=s?pA(s,{cube:o,cache:n}):{fieldDepth:0};vA({propsArr:d,props:a,cube:o,cache:n,itemDepthObject:h,f:s})}const c=s.copy().descendants(),d=s.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],s=o.data,a=fA(i,s,{key:r});bA({propsArr:t,props:n,item:o,itemData:s,ret:a,sourceKey:r,isTree:!0}),d[e].data=a}return s}function yA(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let s=0;s<o.length;s++)if(void 0!==o[s].field){const a=t.raw(),l=t.key();if(!_A(a,n,e))continue;const c="object"==typeof o[s].field?o[s].field:t.field(o[s].field),{props:d,main:h}=i.normalizeConfig(o[s],t),u=Object.keys(d),g=pA(c,{cube:a,cache:n}),{nodeFn:p,attrFn:m,valueFn:f}=mA({fieldDepth:0},g);vA({propsArr:u,props:d,cube:a,cache:n,itemDepthObject:g,f:c});const b=!!o[s].trackBy,_=typeof o[s].trackBy,v={},C=[],y=p(n.tree),w=[];for(let e=0;e<y.length;e++){const t=y[e],n=m?m(f(t)):f(t);if(h.filter&&!h.filter(n))continue;const r=fA(h,n,{key:l});bA({propsArr:u,props:d,item:t,itemData:n,ret:r,sourceKey:l}),b&&i.track({cfg:o[s],itemData:n,obj:r,target:C,tracker:v,trackType:_}),w.push(r)}const A=b?i.collect(C,{main:h,propsArr:u,props:d}):w;r=[...r,...A]}return r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof self&&self;var wA,AA,SA=(wA=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,i,o,r,s,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,_=e.substring(b,b+1),v=b+("."===_||","===_?1:0),C=f>0?e.substring(v,u):"";if(n=(t="-"===(e=e.substring(g,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(i=e.match(/[^\d\-\+#]/g))&&i[i.length-1]||".",r=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(r),e[0]=d.join(""),(s=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-s;)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,v=0;v<u;v++)m+=h.charAt(v),!((v-b+1)%l)&&v<u-l&&(m+=r);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(i=t.join(""))&&""!==i||(n=!1),p+(n?"-":"")+i+C}},wA(AA={exports:{}}),AA.exports);function xA(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const kA={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"},EA=/%\)?$/,LA=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,DA=/^\(oct\)/i,IA=/^\(dec\)/i,NA=/^\(hex\)/i,RA=/^\(bin\)/i,TA=/^\(rom\)/i,MA=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,OA=/#|0/g;function qA(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 PA(e,t,n){const i=xA(e);return n?i:new RegExp(i||"",t)}function BA(e,t,n,i){let o,r,s,a,l,c,d,h,u,g=e.pattern;var p,m;i&&(e.abbreviate=!0),p=t,(m=n)&&(m=xA(m)),p&&(p=xA(p)),u=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),s=g.match(u),s=s?s[0]:"",a=s?g.substr(0,g.indexOf(s)):g,l=s?g.substring(g.indexOf(s)+s.length):"",s||(s=g?"#":"##########"),t&&t===n&&(o=s.split(n),r=o.pop(),s=o.join("")+n+r,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(s=s.replace(PA(c,"g"),t)),d=n,n=".",d&&(s=s.replace(PA(d,"g"),n)),h=s.match(/#/g),h=h?h.length:0;const f=g.split(d);let b;f[1]&&(b=f[1].match(OA)),e.prefix=a||"",e.postfix=l||"",e.pattern=g,e.maxPrecision=b?b.length:2,e.percentage=EA.test(g),e.numericPattern=s||"",e.numericRegex=new RegExp("".concat(PA(t,null,!0),"|").concat(PA(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=n,e.temp=h}class FA{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 kA;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 FA(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],MA.test(e[0])&&(i.positive.isFunctional=!0),e[1]?MA.test(e[1])&&(i.negative.isFunctional=!0):i.negative=!1,e[2]?MA.test(e[2])&&(i.zero.isFunctional=!0):i.zero=!1;const o="U"===this.type;i.positive.isFunctional||BA(i.positive,t,n,o),i.negative&&!i.negative.isFunctional&&BA(i.negative,t,n,o),i.zero&&!i.zero.isFunctional&&BA(i.zero,t,n,o)}formatValue(e){let t,n,i,o,r,s,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,r=d.d,s=d.t,d.isFunctional)e=function(e,t,n){let i;return LA.test(t)?e=qA(e,Number(/\d{2}/.exec(t)[0]),t,n):DA.test(t)?e=qA(e,8,t,n):IA.test(t)?e=qA(e,10,t,n):NA.test(t)?e=qA(e,16,t,n):RA.test(t)?e=qA(e,2,t,n):TA.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)),r=(e-o)/1e3,s=[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<s.length;n++)if(s[n]<=o){i+=a[n],o-=s[n];break}for(n=0;n<r;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,r);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,r=t[0];for(a=0,n=Number(Number(e).toExponential().split("e")[1]);r<=n&&a<t.length;)a++,r=t[a];a>0&&(i=t[a-1]),i&&n>0&&i>0?o=i:(n<0&&i<0||!i)&&(r<0&&r-n<=d.maxPrecision?o=r:i<=n&&!(r>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(r)[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(r)[0];if(n+=r,e=SA(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+=r+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(".",r));else{for(l+=r,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(i)/Math.log(10)))),a=0;a<t;a++)l+="#";e=SA(l,e)}e=e.replace(d.numericRegex,(e=>e===s?d.groupTemp:e===r?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 WA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:i=!1,toKey:o=e=>e}=t;let r,s,a=Object.create(null),l=Object.create(null),c=0,d=0;return r=i?function(){return s=o(...arguments),r.has(s)?r.get(s):r.set(s,e(...arguments))}:t=>(s=o(t),r.has(s)?r.get(s):r.set(s,e(t))),r.set=(e,t)=>(c>=n&&(delete a[l[d]],delete l[d],c--,d++),a[e]=t,l[c]=e,c++,t),r.get=e=>a[e],r.has=e=>e in a,r.clear=()=>{a=Object.create(null),l=Object.create(null),c=0,d=0},r.size=()=>c,r}function VA(e,t,n,i,o){const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new FA(...t)}(o,e,t,n,i),s=WA(r.formatValue.bind(r),{toKey:e=>isNaN(e)?e:+e});function a(e){return s(e)}return a.format=function(e,t,n,i){return s.clear(),r.format(t,e,n,i)},a.pattern=function(e){return e&&(s.clear(),r.pattern=e,r.prepare()),r.pattern},a}const zA="D",HA="T",jA="TS",UA=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$A=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],GA=["January","February","March","April","May","June","July","August","September","October","November","December"],KA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function YA(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function ZA(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class XA{constructor(e,t,n){const i=e||{};i.qCalendarStrings||(i.qCalendarStrings={qLongDayNames:UA,qDayNames:$A,qLongMonthNames:GA,qMonthNames:KA}),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={[HA]:i.qTimeFmt||"hh:mm:ss",[zA]:i.qDateFmt||"YYYY-MM-DD",[jA]:i.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new XA(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*ZA(t),i=60*ZA(n),o=60*ZA(i),r=1e3*ZA(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(i),s:Math.floor(o),f:Math.round(r)}}(e),o=i.d,r=i.h,s=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)||(r+=24*o),/h+/gi.test(t)||(s+=60*r),/m+/gi.test(t)||(a+=60*s),/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:r,m:s,s:a,f:l,t:d}}(e,t));const o=(r=this,s=i,{"Y+|y+":{Y:"".concat(Number("".concat(s.year).slice(-2))),YY:YA("".concat(s.year).slice(-2),2),YYY:YA("".concat(s.year).slice(-3),3),def:e=>YA("".concat(s.year),e.length)},"M+":{M:s.month+1,MM:YA("".concat(s.month+1),2),MMM:r.locale_months_abbr[s.month],def:r.locale_months[s.month]},"W+|w+":{W:s.day,WW:YA("".concat(s.day),2),WWW:r.locale_days_abbr[s.day],def:r.locale_days[s.day]},"D+|d+":{D:s.date,def:e=>YA("".concat(s.date),e.length)},"h+|H+":{h:s.h,def:e=>YA("".concat(s.h),e.length)},"m+":{m:s.m,def:e=>YA("".concat(s.m),e.length)},"s+|S+":{s:s.s,def:e=>YA("".concat(s.s),e.length)},"f+|F+":{def(e){let t="".concat(s.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=s.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var r,s;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 QA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new XA(...t)}function JA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=QA(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=WA(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 r(e){return e=o(e),i(e)}return r.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},r.locale=function(o){return n=QA(o,e,t),i=WA(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},r.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},r}function eS(){let e,{meta:t,id:n,key:i,localeInfo:o,fieldExtractor:r,value:s,type:a,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=s||("dimension"===a?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===a?"first":"avg",h=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return JA(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:".",r="U",s=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,i=e.qNumFormat.qThou||i,o=e.qNumFormat.qDec||o,r=e.qNumFormat.qType||r,s=s&&-1===["M"].indexOf(e.qNumFormat.qType)):s=!0,(s||"U"===r)&&(n="#".concat(o,"##"),r="U"),VA(n,i,o,r,t)}(t,o),u="dimension"===a?"first":(e,t)=>h(t),g={id:()=>n,key:()=>i,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>a,origin:()=>l,items:()=>(e||(e=r(g)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:u,formatter:()=>h,tags:()=>t.qTags};return g}function tS(e,t,n,i,o){return(t[e]||[]).map(((t,r)=>{const s="".concat(i?"".concat(i,"/"):"").concat(e,"/").concat(r),a={instance:eS(Ww({id:"".concat(n?"".concat(n,"/"):"").concat(s),key:s,meta:t},o))};return a.attrDims=tS("qAttrDimInfo",t,n,s,Ww({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),a.attrExps=tS("qAttrExprInfo",t,n,s,Ww({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),a.measures=tS("qMeasureInfo",t,n,s,Ww({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),a}))}function nS(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const r=nS.util,s={cache:i,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},a={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;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,s),fields:()=>i.fields.slice(),extract:e=>s.extractor(e,a,i,r),hierarchy:e=>s.hierarchy(e,a,i,r),_cache:()=>i};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(s.extractor=yA,s.hierarchy=CA,s.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(s.extractor=jw,s.pages=o.qDataPages,s.hierarchy=CA):s.extractor=()=>[],s.fieldExtractor=e=>s.extractor({field:e},a,i,r);const l="S"===o.qMode?e=>e.qElemNumber:void 0,c="S"===o.qMode?e=>e.qNum:void 0;i.wrappedFields.push(...tS("qDimensionInfo",o,e,"",Ww({},s,{value:l,type:"dimension"}))),i.wrappedFields.push(...tS("qMeasureInfo",o,e,"",Ww({},s,{value:c,type:"measure"}))),i.fields=i.wrappedFields.map((e=>e.instance));const d=e=>{e.forEach((e=>{i.allFields.push(e.instance),d(e.measures),d(e.attrDims),d(e.attrExps)}))};return d(i.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=a.field(t.from),o=eS(Nw({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>s.extractor({field:e},a,i,r),key:t.key,type:n.type(),localeInfo:s.localeInfo,value:n.value},t.override||{}));i.virtualFields.push(o)})),i.allFields.push(...i.virtualFields),a}const iS=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],oS=/\/qDimensionInfo(?:\/(\d+))?/,rS=/\/qMeasureInfo\/(\d+)/,sS=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,aS=/\/qAttrExprInfo\/(\d+)/,lS=/\/?qHyperCube/,cS=/\/?qTreeData/,dS=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),hS=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function uS(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,r=[],s={},a=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,i=-1,o=-1,r="",s=e=>e;lS.test(e)?(r="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),s=dS):cS.test(e)&&(r="".concat(n.substr(0,n.indexOf("qTreeData")+9)),s=hS);let a=!0;if(oS.test(e)&&(i=+oS.exec(e)[1]),rS.test(e)&&(o=+rS.exec(e)[1]),sS.test(e)){o=-1,i=0;const e=+sS.exec(n)[2];isNaN(e)||(i=e,n=n.replace(/\/\d+$/,"")),a=!1}if(aS.test(e)){const e=o;if(t){o=0;const s=sA(r,t);o+=(s.qMeasureInfo||[]).length,i>-1?(o=s.qDimensionInfo.slice(0,i).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),i=-1):(o=s.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=s.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+aS.exec(n)[1]}else i>-1?(i=-1,o=+aS.exec(n)[1]):o+=+aS.exec(n)[1]+1}return iS.forEach((e=>{let[t,i]=e;n=n.replace(t,i)})),a&&(n=s(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,s.multiRangeSelectTreeDataValues||(s.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>s.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,s.rangeSelectHyperCubeValues||(s.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>s.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,s.selectHyperCubeContinuousRange||(s.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>s.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,r=i.qNoOfLeftDims,a=i.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(s.selectPivotCells||(s.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===r||a>=r)&&r>-1?n.forEach((e=>{s.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:a-r})})):n.forEach((e=>{s.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!s.selectPivotCells.cells.length}}else s.selectHyperCubeCells||(s.selectHyperCubeCells={path:t.path,cols:[]}),s.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||s.selectHyperCubeCells.values)||(s.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!s.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,r.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&a?[{method:"resetMadeSelections",params:[]}]:(s.rangeSelectHyperCubeValues&&r.push({method:"rangeSelectHyperCubeValues",params:[s.rangeSelectHyperCubeValues.path,s.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),s.selectHyperCubeContinuousRange&&r.push({method:"selectHyperCubeContinuousRange",params:[s.selectHyperCubeContinuousRange.path,s.selectHyperCubeContinuousRange.ranges]}),s.selectHyperCubeCells&&r.push({method:"selectHyperCubeCells",params:[s.selectHyperCubeCells.path,s.selectHyperCubeCells.values,s.selectHyperCubeCells.cols]}),s.selectPivotCells&&r.push({method:"selectPivotCells",params:[s.selectPivotCells.path,s.selectPivotCells.cells]}),s.multiRangeSelectTreeDataValues&&r.push({method:"multiRangeSelectTreeDataValues",params:[s.multiRangeSelectTreeDataValues.path,s.multiRangeSelectTreeDataValues.ranges]}),r);var c}function gS(e){nS.util=e.data("matrix").util,e.data("q",nS),e.formatter("q-number",VA),e.formatter("q-time",JA)}gS.qBrushHelper=uS,gS.selections=uS;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const pS=/,(?![^(]*\))/,mS=/\s(?![^(]*\))/,fS=/^[0-9]+[a-zA-Z%]+?$/,bS=["none","inset","initial","inherit"],_S=e=>{if(!e)return;const t=e.split(mS).filter((e=>!bS.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||fS.test(e))(t)||bS.includes(t.toLowerCase())?void 0:t;return n},vS=e=>e?e.split(pS).map((e=>e.trim())):[];function CS(e,t,n,i){return n&&i?n.getStyle(`object.${i}`,e,t):n?n.getStyle("",e,t):void 0}function yS(e,t,n,i,o){return e&&i?"none"!==e.color?i.getColorPickerColor(e):void 0:CS(t,n,i,o)}const wS={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},AS={"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 SS(e,t,n){const i=e?.bgImage;if(i){let o="";if("media"===i.mode||"media"===e.useImage){let e;const r=i?.mediaUrl,{qUrl:s}=r?.qStaticContentUrl||{};o=s?decodeURIComponent(s):void 0,o=function(e,t){return t?function(e){let t,n,i,o;return e?.session?.config?(t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host):""}(e)+t:void 0}(t,o),n&&(e=Object.entries(n).map((([e,t])=>`&${e}=${encodeURIComponent(t)}`)).join("&"),o=`${o}?${e}`)}"expression"===i.mode&&(o=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const r=function(e){let t="center center";return e?.bgImage?.position&&(t=AS[e.bgImage.position]),t}(e),s=function(e){let t=wS.originalSize;const n=e?.bgImage?.sizing;return n&&(t=wS[n]),t}(e);return o?{url:o,pos:r,size:s}:void 0}}function xS(e,t,n){const i=e?.bgColor;return i&&t&&(i.useExpression||i.useColorExpression)?t.validateColor(i.colorExpression):yS(i?.color,"","backgroundColor",t,n)}function kS(e,t,n){const i=CS("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&bS.includes(e.toLowerCase()))return e.toLowerCase();const i=vS(e);if(1!==i.length)return e;let o=n;if(!o){const n=vS(t);if(1!==n.length)return e;o=_S(n[0])}if(!o)return e;const r=_S(i[0]);return r?e.replace(r,o):`${e} ${o}`})(e?.shadow?.boxShadow||i,i,yS(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function ES(e,t,n,i){const o=e?.title?.[t]||{},r=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:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const LS={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},DS=["theme","selections"];function IS({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r}){return function({app:e,themeApi:t,theme:n,queryParams:i,components:o=[],checkboxes:r=!1}){const s=function(e=[]){const t={};return e.forEach((e=>{const n=e?.key;DS.includes(n)&&(t[n]=e)})),t}(o),a=(e,n)=>t.getStyle("object.listBox",e,n),l=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,c=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:i,checkboxes:o}){const r=i.theme?.content?.fontColor,s=e(r)||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,r=`${i}Contrast`,c=e(l[i])||n("",`dataColors.${i}`)||"possible"===i&&n("","backgroundColor")||t.palette?.selected?.[o]||LS[i],d=a?_y(c,s):s||t.palette?.selected[`${r}Text}`];return{[i]:c,[r]:d}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:l,theme:n,getListboxStyle:a,overrides:s,checkboxes:r}),d=s.theme||{},h=l(d.header?.fontColor)||a("title.main","color"),u=function({themeApi:e,themeOverrides:t}){let n;const i=t?.background;return i?(n=i?.useExpression?xS({bgColor:i},e,"listBox"):e.getColorPickerColor(i?.color),n):n}({themeApi:t,themeOverrides:d}),g=d.background?.image?SS({bgImage:d.background.image},e,i):void 0,p=u||a("","backgroundColor")||n.palette.background.default,m=function(e,t){const n=fy(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(p,a),f=function(e){return _y("#fff",e("content","color"))}(a),b=d.header?.fontStyle||{},_=d.content?.fontStyle||{},v=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:p,backgroundImage:g?.url&&!g?.url.startsWith("url(")?`url('${g.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:g?.size,backgroundPosition:g?.pos},header:{color:h,fontSize:d.header?.fontSize||a("title.main","fontSize"),fontFamily:d.header?.fontFamily||a("title.main","fontFamily"),fontWeight:v(b.bold,"bold","normal")||a("title.main","fontWeight")||"bold",textDecoration:b.underline?"underline":"initial",fontStyle:v(b.italic,"italic","normal")||a("title.main","fontStyle")||"initial"},content:{backgroundColor:r?void 0:c.possible,color:c.possibleContrast||a("content","color"),fontSize:d.content?.fontSize||a("content","fontSize"),fontFamily:d.content?.fontFamily||a("content","fontFamily"),fontWeight:v(_.bold,"bold","normal")||a("content","fontWeight")||"normal",textDecoration:_.underline?"underline":"initial",fontStyle:v(_.italic,"italic","normal")||a("content","fontStyle")||"initial"},search:{color:f,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:m,backdropFilter:"blur(8px)"},selections:c}}({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r})}function NS({alignTo:e,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,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,_]=(0,t.useState)(0),v=wa(),C=(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}},s,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:E}=(0,t.useContext)(Dp),L=(0,t.useRef)(),D=(0,t.useRef)(),[I]=JC(s,y,D),[N]=zp(y),[R]=(0,t.useState)((()=>ey({selectDisabled:u}))),T=fb({containerRef:D,enabled:k}),{checkboxes:M=h}=N||{},O=IS({themeApi:x,theme:v,hostConfig:E,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),r()},B=Gv({layout:N,model:y,translator:S,selectionState:R,selections:I}),F=ny(N);return t.createElement(Fm,{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},t.createElement(Od,{container:!0,direction:"column",gap:0,ref:D},t.createElement(Od,{item:!0,container:!0,style:{direction:p,padding:v.spacing(1)}},t.createElement(Od,{item:!0},q?t.createElement(kd,{onClick:A,disabled:!q,size:"large"},t.createElement(Up,{title:S.get("Listbox.Unlock")})):t.createElement(kd,{onClick:w,disabled:!F,size:"large"},t.createElement(Gp,{title:S.get("Listbox.Lock")}))),t.createElement(Od,{item:!0,xs:!0}),t.createElement(Od,{item:!0},t.createElement(qC,{layout:N,more:{enabled:!q,actions:B,alignTo:L,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")}}))),t.createElement(Od,{item:!0,xs:!0},t.createElement("div",{ref:L}),t.createElement(Od,{item:!0},t.createElement(YC,{ref:C,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})),t.createElement(zv,{model:y,app:s,layout:N,selections:I,selectionState:R,direction:p,onSetListCount:e=>_(e),onCtrlF:()=>{C.current.focus()},styles:O,keyboard:T}))))}function RS({field:e,api:n,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=()=>{}}){const{translator:a}=(0,t.useContext)(Dp),l=r||(0,t.useRef)(),c=wa(),[d,h]=(0,t.useState)(!1),u=()=>{h(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,b=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,v=0===_&&0===g.qTotal;let C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:b}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,A=null,S=null,x=null;return r||(w=t.createElement(Od,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},t.createElement(jd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label),t.createElement(jd,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?A=t.createElement(Od,{item:!0},t.createElement(kd,{size:"large"},t.createElement(Up,null))):g.qOneAndOnlyOne||(A=t.createElement(Od,{item:!0},t.createElement(kd,{title:a.get("Selection.Clear"),onClick:t=>{t.stopPropagation(),n.clearField(g.qField,e.states[i])},size:"large"},t.createElement(vh,null)))),S=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===v&&y.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),x=t.createElement(Od,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&h(!d)})||null},w,A,S,d&&t.createElement(NS,{alignTo:l,show:d,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}))),r?t.createElement(NS,{alignTo:l,show:!0,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}):x}const TS=e=>{const n=t.useRef({});return t.useEffect((()=>{n.current=e})),n.current};function MS(e){return sa("MuiBadge",e)}const OS=aa("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"]),qS=Xs("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),PS=Xs("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${va(n.anchorOrigin.vertical)}${va(n.anchorOrigin.horizontal)}${va(n.overlap)}`],"default"!==n.color&&t[`color${va(n.color)}`],n.invisible&&t.invisible]}})(ql((({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(Dc(["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:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}))));function BS(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const FS=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:r,component:s,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:_="standard",...v}=n,{badgeContent:C,invisible:y,max:w,displayValue:A}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=TS({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:g,invisible:u,badgeContent:p,showZero:b}),S=TS({anchorOrigin:BS(i),color:h,overlap:d,variant:_,badgeContent:p}),x=y||null==C&&"dot"!==_,{color:k=h,overlap:E=d,anchorOrigin:L,variant:D=_}=x?S:n,I=BS(L),N="dot"!==D?A:void 0,R={...n,badgeContent:C,invisible:x,max:w,displayValue:N,showZero:b,anchorOrigin:I,color:k,overlap:E,variant:D},T=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e;return tn({root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${va(n.vertical)}${va(n.horizontal)}`,`anchorOrigin${va(n.vertical)}${va(n.horizontal)}${va(o)}`,`overlap${va(o)}`,"default"!==t&&`color${va(t)}`]},MS,s)})(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]=pc("root",{elementType:qS,externalForwardedProps:{...M,...v},ownerState:R,className:en(T.root,o),ref:t,additionalProps:{as:s}}),[P,B]=pc("badge",{elementType:PS,externalForwardedProps:M,ownerState:R,className:T.badge});return(0,Js.jsxs)(O,{...q,children:[c,(0,Js.jsx)(P,{...B,children:N})]})})),WS=FS,VS=function(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function zS(e){return sa("MuiListItem",e)}function HS(e){return sa("MuiListItemSecondaryAction",e)}aa("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),aa("MuiListItemSecondaryAction",["root","disableGutters"]);const jS=Xs("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}}]}),US=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...r}=i,s=t.useContext(Ch),a={...i,disableGutters:s.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return tn({root:["root",t&&"disableGutters"]},HS,n)})(a);return(0,Js.jsx)(jS,{className:en(l.root,o),ownerState:a,ref:n,...r})}));US.muiName="ListItemSecondaryAction";const $S=US,GS=Xs("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]}})(ql((({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:{[`& > .${Eh.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}}]})))),KS=Xs("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),YS=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItem"}),{alignItems:o="center",children:r,className:s,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:_={},slots:v={},...C}=i,y=t.useContext(Ch),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(r),x=S.length&&VS(S[S.length-1],["ListItemSecondaryAction"]),k={...i,alignItems:o,dense:w.dense,disableGutters:p,disablePadding:m,divider:f,hasSecondaryAction:x},E=(e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:r,divider:s,hasSecondaryAction:a}=e;return tn({root:["root",i&&"dense",!o&&"gutters",!r&&"padding",s&&"divider","flex-start"===t&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},zS,n)})(k),L=Nc(A,n),D=v.root||l.Root||GS,I=_.root||c.root||{},N={className:en(E.root,I.className,s),...C};let R=a||"li";return x?(R=N.component||a?R:"div","li"===d&&("li"===R?R="div":"li"===N.component&&(N.component="div")),(0,Js.jsx)(Ch.Provider,{value:w,children:(0,Js.jsxs)(KS,{as:d,className:en(E.container,h),ref:L,ownerState:k,...u,children:[(0,Js.jsx)(D,{...I,...!Tu(D)&&{as:R,ownerState:{...k,...I.ownerState}},...N,children:S}),S.pop()]})})):(0,Js.jsx)(Ch.Provider,{value:w,children:(0,Js.jsxs)(D,{...I,as:R,ref:L,...!Tu(D)&&{ownerState:{...k,...I.ownerState}},...N,children:[S,b&&(0,Js.jsx)($S,{children:b})]})})})),ZS=YS,XS=e=>_h((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)),QS="MultiState-item",JS=Xs(Od)((({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 ex({field:e,api:n,moreAlignTo:i=null,onClose:o=()=>{}}){const[r,s]=(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)(Dp),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=t.createElement(t.Fragment,null,t.createElement(Od,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(WS,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},t.createElement(jd,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label))),t.createElement(Od,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(Od,{item:!0},t.createElement(kd,{size:"large"},t.createElement(XS,null)))));const f=t.createElement(Sh,{dense:!0},t.createElement(ZS,{title:g,onClick:()=>{e.states.forEach((t=>n.clearField(e.name,t)))}},t.createElement(og,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>t.createElement(ZS,{key:o,title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},t.createElement(Tl,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(RS,{field:e,api:n,stateIx:o,skipHandleShowListBoxPopover:!0})))))),b=t.createElement(Fm,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?b:t.createElement(JS,{container:!0,gap:0,className:QS,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,s(!r))}},m,r&&b,a>-1&&t.createElement(NS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?t.createElement(NS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const tx="More",nx={item:`${tx}-item`,badge:`${tx}-badge`},ix=Xs(Od)((({theme:e})=>({[`&.${nx.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${nx.badge}`]:{padding:e.spacing(0,1)}})));function ox({items:e=[],api:n}){const i=wa(),[o,r]=(0,t.useState)(!1),[s,a]=(0,t.useState)(-1),[l,c]=(0,t.useState)(null),d=(0,t.useRef)(),h=()=>{a(-1)};let u=null;return s>-1&&(u=e[s].states.length>1?t.createElement(ex,{field:e[s],api:n,moreAlignTo:d,onClose:h}):t.createElement(RS,{field:e[s],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),t.createElement(ix,{container:!0,gap:0,className:nx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},t.createElement(Od,{item:!0},t.createElement(Tl,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(jd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),t.createElement(Od,{item:!0},t.createElement(kd,{size:"large"},t.createElement(XS,null))),o&&t.createElement(Fm,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(Sh,{dense:!0},e.map(((e,i)=>t.createElement(ZS,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},t.createElement(Tl,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(ex,{field:e,api:n}):t.createElement(RS,{field:e,api:n}))))))),u)}function rx({api:e,app:n}){const i=wa(),[o]=Fp(n),[r]=zp(o),[s,a]=(0,t.useState)({items:[],more:[]}),{modalObjectStore:l}=(0,t.useContext)(Dp).selectionStore,[c,d]=jp(),[h,u]=(0,t.useState)(0);return(0,t.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);u(n)}),[d]),(0,t.useEffect)((()=>{if(!(n&&o&&r&&h))return;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))))}(r);a((t=>{const i=e;if((()=>{const{model:e}=l.get(n.id)||{};return"njsListbox"===e?.genericType})()&&i.length+1===t.items.length){const e=t.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);i.splice(o,0,e)}let o=[];return h<i.length&&(o=i.splice(h-i.length)),{items:i,more:o}}))}),[n,o,r,e.isInModal(),h]),t.createElement(Od,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((n=>t.createElement(Od,{item:!0,key:`${n.states.join("::")}::${n.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.states.length>1?t.createElement(ex,{field:n,api:e}):t.createElement(RS,{field:n,api:e})))),s.more.length>0&&t.createElement(Od,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.createElement(ox,{items:s.more,api:e})))}const sx=e=>_h((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)),ax=e=>_h((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 lx({api:e,app:n}){const{translator:i}=(0,t.useContext)(Dp),[o]=function(e){const[n]=Fp(e),[i]=zp(n),[o]=Hp(e),[r,s]=(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}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),r=(n.qStateNames||[]).map((e=>e)).join("::");o!==r&&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})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,n,i]}(n);return t.createElement(Od,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(Od,{item:!0},t.createElement(kd,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},t.createElement(sx,null))),t.createElement(Od,{item:!0},t.createElement(kd,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},t.createElement(ax,null))),t.createElement(Od,{item:!0},t.createElement(kd,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},t.createElement(lC,null))))}const cx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function dx([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function hx(){return cx.map(dx).join("")}function ux({app:e}){const n=wa(),[i]=ZC(e);return i?t.createElement(Od,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},t.createElement(Od,{item:!0,style:{borderRight:`1px solid ${n.palette.divider}`}},t.createElement(lx,{api:i,app:e})),t.createElement(Od,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},t.createElement(rx,{api:i,app:e}))):null}let gx;gx="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;let px=null,mx=null;const fx=gx.clearTimeout,bx=gx.setTimeout,_x=gx.cancelAnimationFrame||gx.mozCancelAnimationFrame||gx.webkitCancelAnimationFrame,vx=gx.requestAnimationFrame||gx.mozRequestAnimationFrame||gx.webkitRequestAnimationFrame;null==_x||null==vx?(px=fx,mx=function(e){return bx(e,20)}):(px=function([e,t]){_x(e),fx(t)},mx=function(e){const t=vx((function(){fx(n),e()})),n=bx((function(){_x(t),e()}),20);return[t,n]});class Cx 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"),r=parseFloat(i.paddingRight||"0"),s=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,d=l.width-o-r,h=this._parentNode.offsetHeight-s-a,u=this._parentNode.offsetWidth-o-r;(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,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=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},r=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;s(this),this.__resizeRAF__&&px(this.__resizeRAF__),this.__resizeRAF__=mx((function(){r(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(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=gx.getComputedStyle(r);c&&"static"===c.position&&(r.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%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__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",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(h),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__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:r=!1,doNotBailOutOnEmptyChildren:s=!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 _=!1;return o||(0===u&&(_=!0),f.height=0,b.height=u,b.scaledHeight=g),r||(0===m&&(_=!0),f.width=0,b.width=m,b.scaledWidth=p),s&&(_=!1),(0,t.createElement)(d,{ref:this._setRef,style:{...f,...c},...h},!_&&e(b))}}function yx({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:i,isModal:o,constraints:r,selections:s}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:i=!1}=t.nativeEvent,r=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case gb.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(i)vb(a)||_b(a)||yb(t,e);else if(!(Cb(a)||_b(a)||vb(a)))break;r();break;case gb.ENTER:case gb.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),r();break;case gb.ESCAPE:yb(t,e),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=r?.select||r?.active,t=o();return e||t})())return;const{keyCode:s,ctrlKey:a=!1,shiftKey:l=!1}=e;switch(s){case gb.ARROW_UP:n({up:1});break;case gb.ARROW_DOWN:n({down:1});break;case gb.PAGE_UP:n({up:i.stop-i.start});break;case gb.PAGE_DOWN:n({down:i.stop-i.start});break;case gb.HOME:n({scrollPosition:a&&l?"overflowStart":"start"});break;case gb.END:n({scrollPosition:a&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const wx=Xs("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Ax({text:e}){const{translator:n}=(0,t.useContext)(Dp);return t.createElement(wx,null,n.get(e))}const Sx={fontSize:"12px"},xx=Xs(dd)((({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"}}))),kx=Xs(Od,{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}}))),Ex=Xs(jd)((({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})));function Lx({translator:e,toggleLock:n,keyboard:i,isLoading:o}){const r=e.get("SelectionToolbar.ClickToUnlock");return t.createElement(xx,{title:r,tabIndex:i.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?t.createElement(Cd,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(Up,{disableRipple:!0,style:Sx}),!o&&t.createElement(jd,{fontSize:"14px"},r))}const Dx=e=>_h((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)),Ix=e=>_h((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)),Nx=e=>_h((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)),Rx=Xs(og)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}))),Tx=function({iconData:e,translator:n,iconStyle:i,disabled:o,keyboard:r}){if(!e)return;const{icon:s,tooltip:a,onClick:l,onKeyDown:c}=e,d=s,h=n.get(a);return l?t.createElement(Rx,{variant:"outlined",onClick:l,tabIndex:r.innerTabStops?0:-1,title:h,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},t.createElement(d,{style:i})):t.createElement(d,{title:h,size:"large",style:{...i,padding:"7px"}})};function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mx.apply(null,arguments)}let Ox=0;const qx=function({layout:e,translator:n,styles:i,isRtl:o,showLock:r,showSearchIcon:s,constraints:a,onShowSearch:l,classes:c,containerRect:d,isPopover:h,showToolbar:u,showDetachedToolbarOnly:g,containerRef:p,model:m,selectionState:f,isDirectQuery:b,selections:_,keyboard:v,autoConfirm:C,app:y,disablePortal:w}){const[A,S]=(0,t.useState)(g),[x,k]=(0,t.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[E,L]=(0,t.useState)(!1);(0,t.useEffect)((()=>{k(e?.qListObject?.qDimensionInfo?.qLocked)}),[e?.qListObject?.qDimensionInfo?.qLocked]);const D=(0,t.useRef)(null),I=(({dimInfo:e,app:t,selections:n,isPopover:i,active:o,keyboard:r})=>{switch(e.qGrouping){case"H":return{icon:Ix,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const s=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:s?Nx:Dx,tooltip:"Listbox.Cyclic",onClick:s?a:void 0,onKeyDown:s?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case gb.SPACE:case gb.ENTER:a();break;case gb.TAB:{if(!r.enabled)return;let n;n=e.shiftKey?r.focusSelection():_b(t)||vb(t),n||yb(e,r)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:y,selections:_,isPopover:h,active:!a?.active,keyboard:v}),N=r&&x,R=!r&&x,T=s||R||I,M=9-(T?7:0),O=o?9-(T?7:0):4,q=(s?28:0)+(R?28:0)+(I?28:0),P=function({isLocked:e,setLocked:t,settingLockedState:n,model:i,setSettingLockedState:o}){return()=>{const r=new Date;if(r-Ox<500)return Promise.resolve();if(n)return()=>{};o(!0),Ox=r;const s=e?i.unlock:i.lock;return t(!e),s.call(i,"/qListObjectDef").catch((()=>{t(e)})).finally((()=>{setTimeout((()=>{o(!1)}),0)}))}}({isLocked:x,setLocked:k,settingLockedState:E,setSettingLockedState:L,model:m}),B=Gv({layout:e,model:m,translator:n,selectionState:f,isDirectQuery:b,selections:_}),F=x||!r?void 0:[{key:"lock",type:void 0,label:n.get("SelectionToolbar.ClickToLock"),getSvgIconShape:$p,enabled:()=>!E&&!f.selectDisabled()&&ny(e),action:P}],W=a?.active?t.createElement(HC,{title:n.get("Listbox.Search"),size:"large",style:{...Sx,padding:"7px"}}):t.createElement(kd,{onClick:l,tabIndex:-1,title:n.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(HC,{style:Sx}));(0,t.useEffect)((()=>{if(!D.current||!d)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:i,paddingRight:o}){const r=i+o;return!!(e.width<(t?.current?.clientWidth??0)+n+r+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:d,titleRef:D,iconsWidth:q,paddingLeft:M,paddingRight:O});S(g||e)}),[q,M,O,D.current,g,Object.entries(d||{}).sort().join(",")]);const V=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,extraItems:r,selections:s,keyboard:a,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:r,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:s,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!h&&A,showToolbar:u,containerRef:p,isPopover:h,isLocked:x,extraItems:F,listboxSelectionToolbarItems:B,selections:_,keyboard:v,autoConfirm:C,disablePortal:w}),z=t.createElement(qC,Mx({isRtl:o,layout:e},V));if(g)return z;const H=R?t.createElement(Up,{size:"large",style:{...Sx,padding:"7px"}}):void 0;return t.createElement(kx,{item:!0,container:!0,styles:i,isRtl:o,marginY:1,paddingLeft:`${M}px`,paddingRight:`${O}px`,className:"header-container"},N&&t.createElement(Lx,{isLoading:E,translator:n,toggleLock:P,keyboard:v}),T&&t.createElement(Od,{item:!0,container:!0,alignItems:"center",width:q,className:"header-action-container"},H||s&&W,t.createElement(Tx,{iconData:I,iconStyle:Sx,disabled:_.isActive()&&h,translator:n,keyboard:v})),t.createElement(Od,{item:!0,xs:!0,minWidth:0,justifyContent:o?"flex-end":"flex-start",className:c.listBoxHeader},t.createElement(Ex,{variant:"h6",noWrap:!0,ref:D,title:e.title,styles:i},e.title)),t.createElement(Od,{item:!0,display:"flex"},z))},Px="ListBoxInline",Bx={listBoxHeader:`${Px}-listBoxHeader`,screenReaderOnly:`${Px}-screenReaderOnly`,listboxWrapper:`${Px}-listboxWrapper`},Fx=Xs(Od,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((({theme:e,containerPadding:t,isGridMode:n,styles:i})=>({...i.background,[`& .${Bx.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${Bx.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${Bx.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:n?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})));function Wx({options:e,layout:n}){const{app:i,direction:o,frequencyMode:r,checkboxes:s,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:_,toolbar:v=!0,isPopover:C=!1,showLock:y=!1,components:w,selectDisabled:A=()=>!1,disablePortal:S=!0}=e,x=wa(),{translator:k,keyboardNavigation:E,themeApi:L,queryParams:D,constraints:I}=(0,t.useContext)(Dp),{checkboxes:N=s}=n||{},R=IS({app:i,themeApi:L,theme:x,queryParams:D,components:w,checkboxes:N}),T=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),M=(0,t.useRef)(),O=(0,t.useRef)(),[q,P]=jp(),[B,F]=(0,t.useState)(!1),[W,V]=(0,t.useState)(!1),z=(0,t.useRef)(!1),[H,j]=(0,t.useState)({down:0,up:0,scrollPosition:""}),U=e=>j((t=>({...t,...e}))),[$,G]=(0,t.useState)({start:0,stop:0}),[K]=ZC(i),[Y]=(0,t.useState)((()=>ey({selectDisabled:A}))),Z=fb({containerRef:M,enabled:E}),X=(0,t.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:K})),[i,K]),Q=n?.qListObject.qDimensionInfo.qError,J=Q&&I.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ee,handleOnMouseEnter:te,handleOnMouseLeave:ne,globalKeyDown:ie}=(0,t.useMemo)((()=>yx({keyboard:Z,hovering:z,updateKeyScroll:U,containerRef:M,currentScrollIndex:$,app:i,appSelections:K,constraints:I,isModal:X,selections:h})),[Z,z,U,M,$,i,K,I,X]);(0,t.useEffect)((()=>(document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)})),[ie]),(0,t.useEffect)((()=>{!0===a&&V(!0);const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&V(!1)};return C&&(h.isActive()||(h.on("activated",e),h.on("deactivated",t)),F(C)),v&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),F(C||h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}}),[v,h,C]);const{wildCardSearch:oe,searchEnabled:re,autoConfirm:se=!1,layoutOptions:ae={}}=n??{},le=n?.qListObject?.qDimensionInfo?.qLocked,ce=!1!==re&&"toggle"===a&&!le,de=n?.title?.length&&!1!==n?.showTitle,he=v&&!de&&!C,ue=v&&de||C,ge="rtl"===o;if(!(d&&n&&k&&R))return null;const pe=!0===a||"toggle"===a&&W&&!1!==re,me=ae.dense??!1,fe=()=>{V(!W)},be=()=>{"toggle"===a?fe():O.current.focus()},_e=pe&&("toggle"===a||l),ve="grid"===ae?.dataLayout,Ce=function({isGridMode:e,dense:t,height:n,layoutOrder:i}){let o;if(e){let r;r=Xb({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===i?`${r} 4px`:`${r} 6px ${r} 4px`}else o=void 0;return o}({isGridMode:ve,dense:me,height:M.current?.clientHeight,layoutOrder:ae.layoutOrder});Q&&_?.();const ye=ue?30:0,we=t.createElement(qx,{app:i,showSearchIcon:ce,onShowSearch:fe,isPopover:C,showToolbar:B,isDirectQuery:T,autoConfirm:se,showDetachedToolbarOnly:he,layout:n,translator:k,styles:R,isRtl:ge,showLock:y,constraints:I,classes:Bx,containerRect:P,containerRef:M,model:d,selectionState:Y,selections:h,keyboard:Z,disablePortal:S});return t.createElement(t.Fragment,null,he&&we,t.createElement(Fx,{className:"listbox-container",container:!0,tabIndex:Z.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ce,styles:R,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ee,onMouseEnter:te,onMouseLeave:ne,ref:e=>{M.current=e,q(e)},isGridMode:ve,"aria-label":Z.active?k.get("Listbox.ScreenReaderInstructions"):""},ue&&we,t.createElement(Od,{item:!0,container:!0,direction:"column",height:"100%",minHeight:ye,role:"region","aria-label":k.get("Listbox.ResultFilterLabel")},t.createElement(Od,{item:!0},t.createElement(YC,{ref:O,selections:h,selectionState:Y,model:d,dense:me,keyboard:Z,visible:pe,search:a,autoFocus:_e,beginSelectionOnFocus:!C,wildCardSearch:oe,searchEnabled:re,direction:o,hide:ce&&fe,styles:R})),t.createElement(Od,{item:!0,xs:!0,className:Bx.listboxWrapper},Q?t.createElement(Ax,{text:J}):t.createElement(Cx,null,(({height:e,width:s})=>t.createElement(zv,{model:d,app:i,constraints:I,layout:n,selections:h,selectionState:Y,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:N,height:e,width:s,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:Z,showGray:f,scrollState:b,keyScroll:{state:H,reset:()=>j({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:$,set:G},renderedCallback:_,onCtrlF:be,isModal:X,styles:R})))))))}const Vx=t.memo(Wx),zx=function({options:e={}}){const{model:n}=e,[i]=zp(n);return t.createElement(Vx,{options:e,layout:i})};const Hx={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 jx(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 Ux=(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}},$x=(0,t.forwardRef)((({app:e,fieldIdentifier:n,qId:i,stateName:o,element:r,initialOptions:s,renderedCallback:a},l)=>{const[c,d]=(0,t.useState)(s),{isExistingObject:h,hasExternalSelectionsApi:u}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:c});h||Object.assign(c,{frequencyMode:jx(c.frequencyMode)});const[g,p]=(0,t.useState)(0);(0,t.useEffect)((()=>{if(g)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(g+1)}),[h,u]);const m=h?function({app:e,qId:n,options:i={}}){const[o,r]=(0,t.useState)(),[s]=qp(),{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 s.get(t)||await e.getObject(t)}(n));if(!t){if(!s.get(o.id)){s.set(o.id,o);const e=()=>{s.clear(o.id)};o.once("closed",e),i=()=>{o.removeListener("closed",e)}}r(o)}}(),()=>{t=!0,i()}}),[]),o}({app:e,qId:i,options:c}):function({app:e,fieldIdentifier:n,stateName:i,options:o={}}){const[r,s]=(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;r&&r.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?s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),u(n))}),[]);const{dense:f,checkboxes:b,listLayout:_,properties:v={}}=o,C={dense:f};"horizontal"===_&&(C.dataLayout="grid",C.layoutOrder="column",C.maxVisibleColumns={auto:!0},C.maxVisibleRows={auto:!1,maxRows:1});const y=(0,t.useRef)();y.current||(y.current=hx());const w=ip()(!0,{},Hx,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:b,layoutOptions:C,title:g});let A;if(ip()(!0,w,v),n.qLibraryId?(w.qListObjectDef.qLibraryId=n.qLibraryId,A=n.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[n],A=n),"P"!==m&&p)if(r?.multiFieldDim)w.frequencyMax="fetch";else{const e=n.qLibraryId?r:A;w.frequencyMax={qValueExpression:Wv(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:c}),f=(0,t.useRef)(r),b=u?c.selectionsApi:JC(e,m,[f,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],_=(0,t.useMemo)((()=>({...c,selections:b,model:m,app:e,renderedCallback:a})),[c,b,m,e]);return(0,t.useImperativeHandle)(l,(()=>({setOptions:e=>d(e)})),[]),b&&m?t.createElement(zx,{options:_}):null})),Gx={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Kx({app:e,fieldIdentifier:n,stateName:i,element:o,options:r={}}){const[s,a]=(0,t.useState)(!!r.show);return t.createElement(NS,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:n,stateName:i,autoFocus:r.autoFocus,components:r.components,sortCriteria:r.sortCriteria,direction:r.direction})}function Yx(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Zx(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 Xx({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 r="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||hx(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),Yx(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,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(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Zx(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||hx(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),Yx(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,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(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Zx(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 Qx({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||hx(),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 Jx=e=>({qDef:{qFieldDefs:[e]}});function ek({children:e,halo:t}){const n={async addDimension(n){const i=(e=>{let t;return t="string"==typeof e?ip()(!0,{},Hx,{qListObjectDef:Jx(e)}):e.qListObjectDef?ip()(!0,{},Hx,e):ip()(!0,{},Hx,{qListObjectDef:e}),t})(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||hx(),!i.title)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 tk(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 nk({sn:e,properties:t,fields:n,children:i},o){if(!n.length)return;const r=e.qae.data.targets[0];if(!r)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:s}=r,a=s.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")?Qx:e.match("/qChildListDef")?ek:Xx}(s),d=c({dc:l,def:r,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===tk(t)?await d.addMeasure(t):await d.addDimension(t)}}const ik={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 r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},ok=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},rk=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},ak=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)},lk=2**53-1;function ck(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function dk(e,t){const n=ip()(!0,{},t,e);return ik.getValue(n,"qOtherTotalSpec.qOtherCounted")||ik.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ik.getValue(n,"qOtherTotalSpec.qOtherLimit")||ik.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function hk(e,t){return ip()(!0,{},t,e)}function uk(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const gk={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===ik.getValue(e,t)&&ik.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:ck,importCommonProperties:function(e,t,n){const i="masterobject"===ik.getValue(t,"properties.qInfo.qType")?"masterobject":ik.getValue(n,"qInfo.qType");ik.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:dk,createDefaultMeasure:hk,resolveValue:uk,getHypercubePath:function(e){const t=ik.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?(rk(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=ip()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?ik.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||ck(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=ip()(!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},r=uk(o.max,n.dimensions.length,lk),s=uk(o.min,n.dimensions.length,0);return{maxDimensions:uk(i.max,r,lk),minDimensions:uk(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(dk(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(dk(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(dk(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(dk(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(dk(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(hk(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(hk(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(hk(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(hk(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(hk(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=ik.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=ik.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},pk={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=ik.getValue(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ok(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.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&&(gk.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!ik.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=gk.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=ik.getValue(t,o||"").qHyperCubeDef,l=ik.getValue(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=gk.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=gk.getDefaultDimension(),defaultMeasure:p=gk.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,gk.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&gk.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),gk.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),gk.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),gk.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),gk.copyPropertyIfExist("qMaxStackedCells",a,l),gk.copyPropertyIfExist("qNoOfLeftDims",a,l),gk.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),gk.copyPropertyOrSetDefault("qMode",a,l,"S"),gk.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),gk.copyPropertyOrSetDefault("qSortbyYValue",a,l),gk.copyPropertyOrSetDefault("qIndentMode",a,l),gk.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),gk.importCommonProperties(s,e,t),gk.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),gk.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},mk=e=>ik.getValue(e,"data.targets.0.propertyPath"),fk=async({halo:e,model:t,cellRef:n,newType:i,properties:o,viewDataMode:r=!1})=>{const s=o?{qProperty:o}:await t.getFullPropertyTree(),a=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return pk.exportProperties})(mk(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 pk.importProperties})(mk(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:s,hypercubePath:gk.getHypercubePath(a),viewDataMode:r}),initialProperties:{qInfo:{qType:i},visualization:i,...ik.getValue(d,"properties.initial",{})},dataDefinition:ik.getValue(d,"data.targets.0.",{}),hypercubePath:gk.getHypercubePath(d),viewDataMode:r})},bk={hypercube:pk},_k=ip().bind(null,!0),vk={},{isArray:Ck}=Array;function yk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function wk(e){return void 0===e}function Ak(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Sk(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=wk(e[i||t])?r:e[t],e=e[i||t]})),e}function xk(e,t){let n=!0;if(yk(e)&&yk(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 r=function(e){return e?_k({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;xk(r,s)||Ak(t,o)||(wk(s)?i.push({op:"add",path:a,value:r}):yk(r)&&yk(s)?i=i.concat(vk.generate(s,r,a)):Ck(r)&&Ck(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&wk(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(!wk(t[0])&&wk(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(vk.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{wk(t[o])&&!Ak(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 r=t.from?t.from.split("/").splice(-1)[0]:null;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(yk(o)&&yk(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!Ak(s,e)&&delete s[e]})),_k(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(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(Ck(n)?n.splice(+i,1):delete n[i]);var s}))},vk.clone=function(e){return _k({},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)):_k(e,t)};const kk=vk;let Ek,Lk;function Dk(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 Ik(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 Nk(e){Tk(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 Rk(e){if(e.__hooks.obsolete)return Promise.resolve();Lk=-1,Ek=e;let t=-1;Ek.__hooks.initiated&&(t=Ek.__hooks.list.length);try{Ek.fn.call(null)}catch(e){console.error(e)}Ek.__hooks.initiated=!0,t>-1&&t!==Ek.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=Ek.__hooks;return Pk(Ek),Lk=void 0,Ek=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){Tk(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){Tk(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 Tk(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 Mk(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 Ok(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 qk(e){return e.__hooks.imperativeHandle}function Pk(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Bk(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Pk(e))}function Fk(e){if(void 0===Ek)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Ek.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Wk(e){return Fk(++Lk),Ek.context[e]}function Vk(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function zk(e){return{__hooked:!0,fn:e,initiate:Ik,run:Rk,teardown:Nk,runSnaps:Mk,runMenu:Ok,focus:CE,blur:yE,observeActions:Bk,getImperativeHandle:qk,updateRectOnNextRun:Vk}}function Hk(e){const t=Fk(++Lk);if(!t.value){t.component=Ek;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,Rk(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function jk(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=Fk(++Lk);Dk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Ek.__hooks.pendingEffects.indexOf(n)&&Ek.__hooks.pendingEffects.push(n))}function Uk(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=Fk(++Lk);Dk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Ek.__hooks.pendingLayoutEffects.push(n))}function $k(e,t){t||console.warn("useMemo called without dependencies.");const n=Fk(++Lk);return Dk(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Gk(e){return $k((()=>({current:e})),[])}function Kk(e,t){const[n,i]=Hk((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Fk(++Lk);return o.component||(o.component=Ek),Uk((()=>{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 Yk(){return Wk("element")}function Zk(){const e=Yk(),t=Ek.__hooks.resizer,[n,i]=Hk((()=>{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()),Uk((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};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 Xk(){return Wk("layout")}function Qk(){const e=Wk("layout"),[t]=Hk({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Jk(){return Wk("appLayout")}function eE(){const e=Wk("model");return e&&e.session?e:void 0}function tE(){const e=Wk("app");return e&&e.session?e:void 0}function nE(){const e=Wk("global");return e&&e.session?e:void 0}function iE(){return Wk("selections")}function oE(){return Wk("theme")}function rE(){return Wk("nebbie")}function sE(){return Wk("translator")}function aE(){return Wk("deviceType")}function lE(){return Wk("navigation")}function cE(){return Wk("plugins")}function dE(e,t){const[n]=Hk({action(){n._config.action.call(null)}});return n.component||(n.component=Ek,Ek.__hooks.actions.list.push(n)),$k((()=>{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 hE(){return Ek.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),Ek.__hooks.contraintsWarning=!1),Wk("constraints")}function uE(){return Wk("interactions")}function gE(){return Wk("options")}function pE(e,t){const n=Fk(++Lk);if(!n.imperative){if(Ek.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(Dk(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],Ek.__hooks.imperativeHandle=i}}function mE(e){const t=Fk(++Lk);t.value||(t.value=1,Ek.__hooks.snaps.push(t)),t.fn=e}function fE(e){const t=Fk(++Lk);t.value||(t.value=1,Ek.__hooks.menus.push(t)),t.fn=e}function bE(){Fk(++Lk);const e=Ek.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function _E(){return Wk("emitter")}function vE(){const e=Wk("keyboardNavigation"),t=Wk("focusHandler");if(!Ek.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n.enabled&&n.active&&(yE(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Ek);Ek.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),CE(this))}.bind(Ek);Ek.__hooks.accessibility.focusFunction=n;const i=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Ek);Ek.__hooks.accessibility.focusSelectionFunction=i}const n=Ek.__hooks.accessibility.focusFunction,i=Ek.__hooks.accessibility.exitFunction,o=Ek.__hooks.accessibility.focusSelectionFunction,[r,s]=Hk({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return Ek.__hooks.accessibility.setter=s,Ek.__hooks.accessibility.enabled=e,jk((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function CE(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 yE(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 wE={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},AE=Object.keys(wE);function SE(e,t){console.warn("Obsolete API - time to get hooked!");const n={...wE};var i;i=n,Object.keys(yg().prototype).forEach((e=>{i[e]=yg().prototype[e]})),yg().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==AE.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const r=function({sn:e,component:t}){const n={},i=[],o=(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(yg().prototype).forEach((e=>{i[e]=yg().prototype[e]})),yg().init(i),i);var i;return n})(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}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const xE=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],kE=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map((([e,t])=>e+(Math.random()*(t-e)|0).toString(32))).join(""),EE=(e,t)=>e&&e.find((e=>e.qDef?.cId===t))||null,LE=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??kE()}}),DE=e=>({...LE(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),IE=(e,t,n)=>{const i=t;e.forEach(((e,t)=>{const o=e.qTags,r={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(i,n.properties,o,r,n):(r.qSortByNumeric=1,r.qSortByAscii=1),i.qDef.qSortCriterias?i.qDef.qSortCriterias[t]=r:i.qDef.qSortCriterias=[r]}))},NE=new Error("Not supported in this object, need to implement in subclass."),RE=e=>e?[...e].map((e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e)):[],TE=(e,t)=>{if(e)return t&&ik.getValue(e,t)?ik.getValue(e,t).qHyperCube:e.qHyperCube};function ME(e,t){return e.filter(((e,n)=>t.includes(n)))}function OE(e,t,n=void 0){const i=e.getAlternativeDimensions(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function qE(e,t,n){rk(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function PE(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 BE(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function FE(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function WE(e,t,n,i,o,r){await e.autoSortDimension(t),rk(e.hcProperties.qInterColumnSortOrder,n+r),i.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function VE(e,t,n=void 0){const i=e.getAlternativeMeasures(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function zE(e,t){rk(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function HE(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<1e3}function jE(e,t,n,i){const o=e-n.length;let[r]=n.splice(n.length-1,1);return i.splice(0,0,r),[r]=i.splice(o+1,1),n.splice(t,0,r),Promise.resolve(r)}const UE=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 EE(t,e.id)??EE(n,e.id)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw NE}addDimensions(){throw NE}removeDimension(){throw NE}removeDimensions(){throw NE}autoSortDimension(){throw NE}replaceDimension(){throw NE}getSorting(){throw NE}createLibraryDimension(e){let t=ip()(!0,{},this.dimensionProperties||{},e.defaults||{});return t=DE(t),t.qLibraryId=e.id,t.qDef.autoSort=!0,t.qDef.qSortCriterias=xE,delete t.qDef.qFieldDefs,delete t.qDef.qFieldLabels,t}createFieldDimension(e){let t=ip()(!0,{},this.dimensionProperties||{},e.defaults||{});return t=DE(t),e.field||(t.qDef.qFieldDefs=[],t.qDef.qFieldLabels=[],t.qDef.qSortCriterias=[]),t.qDef.qFieldDefs=[e.field],t.qDef.qFieldLabels=e.label?[e.label]:[""],t.qDef.qSortCriterias=xE,t.qDef.autoSort=!0,t}addFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t)}addFieldDimensions(e){const t=e.map((e=>this.createFieldDimension(e)));return this.addDimensions(t)}addLibraryDimension(e){const t=this.createLibraryDimension(e);return this.addDimension(t)}addLibraryDimensions(e){const t=e.map((e=>this.createLibraryDimension(e)));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>this.createLibraryDimension(e)));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>this.createFieldDimension(e)));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e){const t=this.createLibraryDimension(e);return this.addDimension(t,!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 NE}addMeasures(){throw NE}removeMeasure(){throw NE}removeMeasures(){throw NE}autoSortMeasure(){throw NE}replaceMeasure(){throw NE}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return EE(t,e.id)??EE(n,e.id)}createExpressionMeasure(e){const t=ip()(!0,{},this.measureProperties||{},e.defaults||{});return t.qDef=t.qDef??{},t.qDef.qNumFormat=t.qDef.qNumFormat??{},t.qDef.qDef=e.expression,t.qDef.qLabel=e.label,t.qDef.autoSort=!0,t}addExpressionMeasure(e){const t=this.createExpressionMeasure(e);return this.addMeasure(t)}addExpressionMeasures(e){const t=e.map((e=>this.createExpressionMeasure(e)));return this.addMeasures(t)}createLibraryMeasure(e){const t=ip()(!0,{},this.measureProperties||{},e.defaults||{});return t.qDef=t.qDef??{},t.qDef.qNumFormat=t.qDef.qNumFormat??{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(t.qDef),t.qLibraryId=e.id,t.qDef.autoSort=!0,delete t.qDef.qDef,delete t.qDef.qLabel,t}addLibraryMeasure(e){const t=this.createLibraryMeasure(e);return this.addMeasure(t)}addLibraryMeasures(e){const t=e.map((e=>this.createLibraryMeasure(e)));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>this.createLibraryMeasure(e)));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>this.createExpressionMeasure(e)));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e){const t=this.createExpressionMeasure(e);return this.addMeasure(t,!0)}addAlternativeLibraryMeasure(e){const t=this.createLibraryMeasure(e);return this.addMeasure(t,!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})}))}},$E=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()=>(qE(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)},GE=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)},KE=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)},YE=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}))},ZE=class extends UE{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?ik.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=RE(this.hcProperties.qDimensions),this.hcProperties.qMeasures=RE(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=TE(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e){const t=DE(e.dimension);return FE(this,e.alternative)?OE(this,t,e.index):$E(this,t,e.index)}async addDimensions(e){const t=this.getDimensions(),n=t.length,i=[];let o=0;const{dimensions:r}=e;for await(const s of r){if(BE(this,t))return i;const r=DE(s);if(FE(this,e.alternative||!1)){const e=await OE(this,r);i.push(e)}else t.length<this.maxDimensions()&&(await WE(this,r,n,t,i,o),o++)}return i}removeDimension(e){const{alternative:t,index:n}=e;t&&YE(this,n),GE(this,n)}async removeDimensions(e){const t=this.getAlternativeDimensions(),n=this.getDimensions();if(0===e.indexes.length)return[];let i=[];const o=[...e.indexes].sort(((e,t)=>t-e));if(e.alternative&&t.length>0){i=ME(t,e.indexes);for await(const e of o)await YE(this,e)}else if(n.length>0){i=ME(n,e.indexes);for await(const e of o)await GE(this,e)}return i}replaceDimension(e){const{index:t,dimension:n}=e;return this.autoSortDimension(n).then((()=>function(e,t,n){if(!n)return;const i=e.getDimensions(),o=i[t],r={...n,qDef:{...n.qDef,cId:kE()}};return i[t]=r,r&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,t,n)))}reinsertDimension(e){const t=LE(e.dimension);return FE(this,e.alternative)?OE(this,t,e.index).then((()=>{PE(this,t)})):function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?(i.splice(o,0,t),qE(e,i),PE(e,t)):Promise.resolve(t)}(this,t,e.index)}moveDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions();return e.fromIndex<t.length&&e.toIndex<t.length?Promise.resolve(ak(t,e.fromIndex,e.toIndex)):e.fromIndex<t.length&&e.toIndex>=t.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e.fromIndex,e.toIndex,t,n):e.fromIndex>=t.length&&e.toIndex<t.length?Promise.resolve(jE(e.fromIndex,e.toIndex,t,n)):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;ak(i,o,r)}(e.fromIndex,e.toIndex,t,n))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const i=t?.qLibraryId&&(o=t.qLibraryId,(r=n)&&r.find((e=>e.qInfo.qId===o))||null);var o,r;return i&&IE(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&&IE([i],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=TE(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e){const t=LE(e.measure);return HE(this,e.alternative)?VE(t,this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures,e.index):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((()=>(zE(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,t,e.index)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){const t=this.getMeasures(),n=[];let i=0;return e.measures.forEach((async o=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,t))return!1;const r=LE(o);return HE(this,e.alternative||!1)?(VE(this,r),n.push(r)):t.length<this.maxMeasures()&&(await function(e,t,n,i,o){const r=e.getDimensions(),s={...t};return s.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},rk(e.hcProperties.qInterColumnSortOrder,r.length+n.length+o),n.push(s),i.push(s),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,s,e.properties,e),Promise.resolve(i)}(this,r,t,n,i),i++),!0})),n}removeMeasure(e){const{index:t,alternative:n}=e;n&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,t),KE(this,t)}async removeMeasures(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();let i=[];if(0===e.length)return i;if(e.alternative&&n.length>0)i=ME(n,e.indexes),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.indexes);else if(t.length>0){i=ME(t,e.indexes);const n=[...e.indexes].sort(((e,t)=>t-e));for await(const e of n)await KE(this,e)}return i}replaceMeasure(e){const{index:t,measure:n}=e;return this.autoSortMeasure(n).then((()=>function(e,t,n){const i=e.getMeasures(),o=i[t],r={...n,qDef:{...n.qDef,cId:kE()}};return i[t]=r,r&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,t,n)))}reinsertMeasure(e){const t=LE(e.measure);return HE(this,e.alternative)?VE(this,t,e.index):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),zE(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,t,e.index)}moveMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return e.fromIndex<t.length&&e.toIndex<t.length?Promise.resolve(ak(t,e.fromIndex,e.toIndex)):e.fromIndex<t.length&&e.toIndex>=t.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e.fromIndex,e.toIndex,t,n):e.fromIndex>=t.length&&e.toIndex<t.length?jE(e.fromIndex,e.toIndex,t,n):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;ak(i,o,r)}(e.fromIndex,e.toIndex,t,n))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e){ik.move(this.hcProperties.qInterColumnSortOrder,e.fromIndex,e.toIndex)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},XE=()=>{};function QE(e,t){return void 0===e?()=>t:()=>e}function JE(e){const t=e||{};return{min:"function"==typeof t.min?t.min:QE(t.min,0),max:"function"==typeof t.max?t.max:QE(t.max,1e3),added:t.added||t.add||XE,description:t.description||XE,moved:t.moved||t.move||XE,removed:t.removed||t.remove||XE,replaced:t.replaced||t.replace||XE,isDefined:()=>!!e}}function eL(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:JE(e.dimensions),measures:JE(e.measures)}}function tL(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(eL)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function nL(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:tL(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=zk(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==Rk&&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 r={},s=["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)}s.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!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.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 s.forEach((e=>{r[e]=JSON.stringify(c.context[e])})),r.themeName=c.context.theme?c.context.theme.name():void 0,r.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):SE(e,t),r=[];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 r=kk.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));kk.apply(o,s);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const a=kk.generate(r,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)},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new ZE(e)}:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}function iL(e){return sa("MuiIcon",e)}aa("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const oL=Xs("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${va(n.color)}`],t[`fontSize${va(n.fontSize)}`]]}})(ql((({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(Dc()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),rL=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium",...l}=n,c={...n,baseClassName:i,color:r,component:s,fontSize:a},d=(e=>{const{color:t,fontSize:n,classes:i}=e;return tn({root:["root","inherit"!==t&&`color${va(t)}`,`fontSize${va(n)}`]},iL,i)})(c);return(0,Js.jsx)(oL,{as:s,className:en(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})}));rL.muiName="Icon";const sL=rL,aL=e=>_h((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 lL({d:e}){const n=wa();let i="inherit",o=n.palette.success.main;e.missing?o=n.palette.warning.main:e.error&&(i="error",o=n.palette.error.main);const r={color:o},s=t.createElement(jd,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},t.createElement(sL,null,e.missing||e.error?t.createElement(aL,{style:r}):t.createElement(Qm,{style:r})));return t.createElement(Od,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(Od,{item:!0},s),t.createElement(Od,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(jd,{noWrap:!0,component:"p"},t.createElement(jd,{component:"span",variant:"subtitle2",color:i},e.description),t.createElement(jd,{component:"span"}," "),t.createElement(jd,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function cL({data:e}){const n=wa();return t.createElement(Od,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,n)=>t.createElement(lL,{d:e,key:n})));return o.length>0&&t.createElement(Od,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:n.spacing(2)}},t.createElement(jd,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function dL({title:e="Error",message:n="",data:i=[]}){return t.createElement(Od,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(Od,{item:!0},t.createElement(aL,{style:{fontSize:"38px"}})),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"h6",align:"center","data-tid":"error-title"},e)),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),t.createElement(cL,{data:i}))}function hL(){return hL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hL.apply(null,arguments)}const uL="Progress",gL={root:`${uL}-root`,front:`${uL}-front`,back:`${uL}-back`},pL=Xs("div")((({theme:e})=>({[`&.${gL.root}`]:{position:"relative",display:"inline-block"},[`& .${gL.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${gL.back}`]:{color:e.palette.divider}}))),mL={small:16,medium:32,large:64,xlarge:128};function fL({size:e="medium",...n}){const i=mL[e];return t.createElement(pL,{className:gL.root},t.createElement(Cd,hL({variant:"determinate",value:100,className:gL.back,size:i,thickness:3},n)),t.createElement(Cd,hL({variant:"indeterminate",disableShrink:!0,className:gL.front,size:i,thickness:3},n)))}function bL(){return bL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bL.apply(null,arguments)}const _L={stripes:"LongRunningQuery-stripes"},vL=Xs(Od)((()=>({[`& .${_L.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 CL({cancel:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(vL,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(Od,{item:!0},t.createElement(fL,null)),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),t.createElement(Od,bL({item:!0},i),t.createElement(og,{variant:"contained",onClick:e},n.get("Cancel"))))}function yL({retry:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(Od,{item:!0},t.createElement(aL,{style:{fontSize:"38px"}})),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),t.createElement(Od,{item:!0},t.createElement(og,bL({variant:"contained",onClick:e},i),n.get("Retry"))))}function wL({canCancel:e,canRetry:n,api:i}){const{translator:o}=(0,t.useContext)(Dp);return t.createElement(Od,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:_L.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&t.createElement(CL,{cancel:i.cancel,translator:o,className:_L.cancel}),n&&t.createElement(yL,{retry:i.retry,translator:o,className:_L.retry}))}function AL(){return t.createElement(Od,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(fL,{size:"large"}))}const SL={width:0,height:0},xL="Header",kL={containerStyle:`${xL}-containerStyle`,containerTitleStyle:`${xL}-containerTitleStyle`},EL=Xs(Od)((({theme:e})=>({[`&.${kL.containerStyle}`]:{flexGrow:0},[`&.${kL.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),LL=function({id:e,layout:n,sn:i,anchorEl:o,hovering:r,focusHandler:s,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=[kL.containerStyle,...d||h?[kL.containerTitleStyle]:[]],f=r||u,b=t.createElement(qC,{show:!1,selections:{show:u,api:i.component.selections,onKeyDeactivate:s.refocusContent},actions:g,popover:{show:f,anchorEl:o},focusHandler:s,layout:n,isRtl:l});return t.createElement(EL,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(Od,{item:!0,zeroMinWidth:!0,xs:!0,dir:l?"rtl":"ltr"},t.createElement(Od,{container:!0,wrap:"nowrap",direction:"column"},d?t.createElement(Dv,{title:n.title},t.createElement(jd,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:a.main},n.title)):t.createElement("div",{id:`${e}_title`,style:SL,"aria-label":c.get("Accessibility.Object.NoTitle")}),h&&t.createElement(Dv,{title:n.subtitle},t.createElement(jd,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:a.subTitle},n.subtitle)))),t.createElement(Od,{item:!0},b))},DL=(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 r,s,a="=";n&&i?(r=`${t.conditionField?.aggregator}(${Fv(t.conditionField?.field)})`,s=`${t.firstValue?.fixedValue}`):!n&&i?(r="",s=`${t.firstValue?.fixedValue}`,a=""):n||i?(r=`${t.conditionField?.aggregator}(${Fv(t.conditionField?.field)})`,s=`${t.firstValue?.aggregator}(${Fv(t.firstValue?.field)})`):(r=`${Fv(e.field)}`,s=`${t.firstValue?.aggregator}(total ${Fv(t.firstValue?.field)})`);const l=`${a}${r}${o[0]}${s}`;let c="";if(o.length>1){if(!i&&(!t.secondValue?.aggregator||!t.secondValue?.field)||i&&!t.secondValue?.fixedValue)return"";let e,s;n&&i?(e=`${t.secondValue?.fixedValue}`,s=` and ${r}`):!n&&i?(e=`${t.secondValue?.fixedValue}`,s=""):n||i?(e=`${t.secondValue?.aggregator}(${Fv(t.secondValue?.field)})`,s=` and ${r}`):(e=`${t.secondValue?.aggregator}(total ${Fv(t.secondValue?.field)})`,s=` and ${r}`),c=`${s}${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))},IL=(e,t)=>DL(e,t).map((e=>`${e.field}: ${e.label}`)).join("; "),NL=e=>_h((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 RL({styles:e,children:n}){return t.createElement(jd,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"}},n)}const TL=function({layout:e,translator:n,filtersFootnoteString:i,footerStyle:o,isRtl:r}){const s=DL(e?.filters??[],n),a={color:o?.color,fontFamily:o?.fontFamily,fontSize:o?.fontSize,fontWeight:o?.fontWeight};return t.createElement(Dv,{title:i},t.createElement(Od,{container:!0,wrap:"nowrap",sx:{backgroundColor:o?.backgroundColor,padding:o?.padding,borderTop:o?.borderTop},"data-testid":"filters-footnote",justifyContent:r?"flex-end":"flex-start"},t.createElement(Od,{item:!0,display:"flex"},t.createElement(NL,{style:{fontSize:"12px",color:o.color,margin:"auto"}}),t.createElement(RL,{styles:{...a,marginLeft:"2px"}},n.get("Object.FiltersApplied")," ")),t.createElement(Od,{item:!0,display:"flex"},s.map((e=>t.createElement(Od,{container:!0,wrap:"nowrap",key:`${e.field}-${e.label}`},t.createElement(RL,{styles:{...a,fontWeight:"bold"}},`${e.field}:`),t.createElement(RL,{styles:a}," ",e.label," ")))))))},ML="Footer-itemStyle",OL=Xs(Od)((()=>({[`& .${ML}`]:{minWidth:0,width:"100%"}}))),qL="njs-cell-footer",PL=function({layout:e,titleStyles:n={},translator:i,flags:o,isCardTheme:r,isRtl:s}){const a=n.footer,l=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,c=IL(e?.filters??[],i),d=!e?.footnote&&l&&c,h=o?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),u=r?"1px":"6px";return e&&e.showTitles&&(e.footnote||d)?t.createElement(OL,{container:!0},t.createElement(Od,{item:!0,className:ML,"data-testid":qL,sx:{paddingTop:e=>h?u:e.spacing(1)}},e.footnote&&t.createElement(Dv,{title:e.footnote},t.createElement(jd,{noWrap:!0,variant:"body2",className:qL,style:a,align:s?"right":"left"},e.footnote)),d&&t.createElement(TL,{layout:e,translator:i,filtersFootnoteString:c,footerStyle:a,isRtl:s}))):null};class BL{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 FL=function({sn:e,snOptions:n,snPlugins:i,layout:o,appLayout:r,halo:s,cellId:a}){const{component:l}=e,{theme:c,language:d,constraints:h,interactions:u,keyboardNavigation:g}=(0,t.useContext)(Dp),[p]=(0,t.useState)((()=>new BL)),[m,f]=(0,t.useState)(!1),[b,_]=(0,t.useState)(0),[v,C,y]=jp(),[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&&C&&(!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"),s.app&&s.app.session&&t.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:i,embed:s.public.nebbie,context:{constraints:h,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:g,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:t}}})).then((e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),_(b+1))}))})))}),[C,n,i,w,y,o,r,c,d,h,u,m,g]),t.createElement("div",{ref:v,"data-render-count":b,style:{position:"relative",height:"100%"},className:"njs-viz"},t.createElement("div",{ref:S,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}}))},WL={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"};class VL extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const zL=["action-button","sn-nav-menu","filterpane","sn-shape"],HL=[...zL,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],jL=e=>-1===zL.indexOf(e),UL=e=>jL(e)?"10px 10px 0":"10px 0 0",$L=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])=>{$L.set(e,t)}));const GL=$L,KL=(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 YL({delay:e=750}){const[n,i]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),n?t.createElement(AL,null):null}const ZL=e=>!e.qError||7005===e.qError.qErrorCode,XL=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),QL=e=>e&&(Array.isArray(e)?e:[e])||[],JL=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t),a=XL(o,QL(s.qDimensionInfo||s.qItems),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=XL(r,QL(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:a,reqMeasErrors:l}};function eD(){return new(yg())}const tD=(0,t.forwardRef)((({halo:e,model:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,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:_,externalFocusManagement:v,disableCellPadding:C=!1,navigation:y,queryParams:w}=(0,t.useContext)(Dp),[A]=(0,t.useState)(l||eD),S=wa(),[x,k,E]=jp(),[L,D]=(0,t.useReducer)(KL,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=r)?{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]=zp(N),[B]=Hp(u),[F,W,V]=jp(),[z,H]=(0,t.useState)(i),[j,U]=(0,t.useState)(o),$=`njs-cell-${a}`,[G]=JC(u,N,[`#${$}`,".njs-action-toolbar-popover"]),[K,Y]=(0,t.useState)(!1),Z=(0,t.useRef)({enter:null,leave:null}),{titleStyles:X,bgColor:Q,bgImage:J,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:n,app:i,themeName:o,disableThemeBorder:r,queryParams:s})=>{const a=(0,t.useMemo)((()=>{if(e&&n){const o=e.components?e.components.find((e=>"general"===e.key)):null,a=(t=e.visualization,WL[t.toLowerCase()]?WL[t.toLowerCase()]:t),l={main:ES(o,"main",n,a),footer:ES(o,"footer",n,a),subTitle:ES(o,"subTitle",n,a)},c=xS(o,n,a),d=SS(o,i,s),h=function(e,t,n,i){const o=yS(e?.borderColor,"","borderColor",t,n);let r=e?.borderWidth;return!r&&!i&&(r=CS("","borderWidth",t,n)),r&&o?`${r} solid ${o}`:void 0}(o,n,a,r),u=function(e,t,n){return e?.borderRadius||CS("","borderRadius",t,n)}(o,n,a);return{titleStyles:l,bgColor:c,bgImage:d,border:h,borderRadius:u,boxShadow:kS(o,n,a)}}var t;return{}}),[e,n,i,o,r]);return a})({layout:T,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:z?.disableThemeBorder,queryParams:w}),ie=!("rtl"!==z?.direction),oe=(0,t.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,t.useEffect)((()=>{XC(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&V&&V.focus())},oe.current.refocusContent=()=>{L.sn.component&&"function"==typeof L.sn.component.focus&&L.sn.component.focus()}}),[]),(0,t.useEffect)((()=>{if(r)return void s();if(!B||!T)return;if(L.visualization===T.visualization&&L.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!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=QL(g.qDimensionInfo||g.qItems).filter(ZL),m=QL(g.qMeasureInfo).filter(ZL);if(o+=h,r+=u,(p.length<h||m.length<u)&&(i=!0),g.qError){s=!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:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let h=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=h||await i.getProperties();h=n;const o=JL(e,t,n,s);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,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),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:L.sn,layout:T,model:N})})(L.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:r,selections:s,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:r,selections:s,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:s,navigation:c??y})})(T.visualization,e),()=>{}}),[g,L.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:()=>L.sn.generator.qae,getExtensionDefinition:()=>L.sn.generator.definition.ext,support(e,t,n){if(T&&L.loaded&&!L.error){const i=t||L.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 L.sn.component.focus&&(e?L.sn.component.focus():L.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:H,setSnPlugins:U,setModel:R,getImperativeHandle:()=>L.sn?.component&&"function"==typeof L.sn.component.getImperativeHandle?L.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>L.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=k;let n=JSON.parse(JSON.stringify(T));return"function"==typeof L.sn.component.setSnapshotData&&(n=await L.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)}})),[L.sn,W,k,T,S.name,B]);let re=null;L.loading&&!L.longRunningQuery?re=t.createElement(YL,null):L.error?(d&&d(L.error.errorObject?L.error.errorObject:new VL(L.error.title)),re=t.createElement(dL,L.error)):L.loaded&&(re=t.createElement(FL,{key:T.visualization,sn:L.sn,halo:e,snOptions:z,snPlugins:j,layout:T,appLayout:B,cellId:a}));const se=!!e.public.theme?.getStyle("","","_cards"),ae=e.public.galaxy?.flags;let le,ce;C?(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,r=e?.showTitles&&!!e?.subtitle,s=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,a=e?.visualization,l=IL(e?.filters??[],o),c=!e?.footnote&&s&&l,d=e?.showTitles&&(!!e?.footnote||c);let h;return n&&(i.main.padding=UL(a)),r&&(i.subTitle.padding=((e,t)=>{const n=jL(e);return t?n?"0 10px":"0":UL(e)})(a,n)),d&&(-1===zL.indexOf(a)&&(i.footer.borderTop="1px solid #d9d9d9"),i.footer.padding="6px 10px"),(t||-1===HL.indexOf(a))&&(h=`${n||r?"0":"10px"} 10px ${d?"0":"5px"}`),h}})({layout:T,isError:L.error,isCardTheme:se,titleStyles:X,translator:f})):(le=!0,ce=void 0);const de=GL.get(T?.visualization),he=f.get(de);return t.createElement(Dm,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Q||"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:()=>{Z.current.leave&&clearTimeout(Z.current.leave),Z.enter||(Z.current.enter=setTimeout((()=>{Y(!0),Z.current.enter=null}),250))},onMouseLeave:()=>{Z.current.enter&&clearTimeout(Z.current.enter),Z.current.leave||(Z.current.leave=setTimeout((()=>{Y(!1),Z.current.leave=null}),750))}},t.createElement(Od,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:S.spacing(1)}:{},...L.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${a}_title ${a}_type ${a}_content`},T&&t.createElement("div",{id:`${a}_type`,style:SL,"aria-label":he??T.visualization}),E&&T&&L.sn&&t.createElement(LL,{layout:T,sn:L.sn,anchorEl:E,hovering:K,focusHandler:oe.current,titleStyles:X,isRtl:ie,id:a,translator:f}," "),t.createElement(Od,{tabIndex:_&&!v?0:-1,onKeyDown:_&&!v?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:F},re),E&&T&&L.sn&&t.createElement(PL,{layout:T,titleStyles:X,translator:f,flags:ae,isCardTheme:se,isRtl:ie})),L.longRunningQuery&&t.createElement(wL,{canCancel:O,canRetry:q,api:P}))})),nD=tD;function iD(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function oD(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?function(e,t){return iD(e)&&iD(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(r,n[o])||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):i.push(...oD(`${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 sD=(e,t,n)=>{if(!e)return Promise.resolve();let i=kk.generate(t,n);return ip()(!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()},aD=()=>{};async function lD(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l,c,d,h=aD,u=null,g=null,p=null,m=null,f=!1;const b=new Promise((e=>{p=e})),_=new Promise((e=>{m=e})),v=e=>()=>{e?.(),m(),s(),f=!0};let C={},y=[];const w=new(yg());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 _;const t=u.current.getQae();if(!t?.data?.targets?.[0]?.propertyPath)return;const n=t.data.targets[0].propertyPath,i=u.current.getExtensionDefinition().data,o=await e.getEffectiveProperties();if(n&&i){const t={app:e.app,dimensionDefinition:i.dimensions,measureDefinition:i.measures,dimensionProperties:o.qHyperCubeDef?.qDimensions?.[0]||gk.getDefaultDimension(),measureProperties:o.qHyperCubeDef?.qMeasures?.[0]||gk.getDefaultMeasure(),globalChangeListeners:void 0,path:n};return new ZE(t)}},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 r(),h(),h=aD},async convertTo(t,i=!0,o=!1){if(i){if((r=await e.getLayout())&&!r.qHasSoftPatches&&!r.qExtendsId&&(r.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const i=await fk({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(),s=await fk({halo:n,model:e,cellRef:u,newType:t,properties:i}),a=s.qProperty;return await sD(e,i,a),s}var r;return await fk({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 r=await fk({halo:n,model:e,cellRef:u,newType:t,properties:o,viewDataMode:!0});i=await n.app.createSessionObject(r.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 _,u.current.getImperativeHandle()),takeSnapshot:async()=>(await _,u.current.takeSnapshot()),...A,__DO_NOT_USE__:{mount(r){if(g)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return g=r,[h,u]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,emitter:a,initialError:l,navigation:c,onError:d}){const{root:h}=e,u=t.createRef(),g=hx(),p=Qd.createPortal(t.createElement(nD,{ref:u,halo:e,model:i,currentId:g,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:s,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(),s(),d(e)}})(),[m,u]}({halo:n,element:r,model:e,initialSnOptions:C,initialSnPlugins:y,initialError:o,onMount:p,emitter:w,navigation:i,onError:a}),b},async applyProperties(t){const n=oD("/",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({...C,...e,onInitialRender:v(t)})})():C={...C,...e,onInitialRender:v(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 fk({halo:n,model:e,cellRef:u,newType:t,properties:i}),r=o.qProperty;return await sD(e,i,r),o},async revert(){await e.clearSoftPatches()}}}};return S}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,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}async function cD({type:e,version:t,fields:n,properties:i,extendProperties:o},r,s,a){let l={};const c=[],{modelStore:d}=a;try{const s=r.types.get({name:e,version:t});l=await s.initialProperties(i,o);const a=await s.supernova();n&&await nk({sn:a,properties:l,fields:n,children:c},r),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},l)}catch(t){l=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),d.set(e.id,e),e}return l}function dD(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 hD=(0,t.forwardRef)((({model:e,halo:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,unmount:a,navigation:l,onError:c},d)=>{const{root:h}=n,[u,g]=(0,t.useState)(e),[p]=zp(u),{theme:m,modelStore:f}=(0,t.useContext)(Dp),[b,_]=(0,t.useState)([]),[v,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:r,rows:s}=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=dD(e,r,s),delete c.mountedPromise,c;const d=await async function({id:e,options:t,plugins:n,element:i},o,r){const{modelStore:s,rpcRequestModelStore:a}=r,l=`${e}`;let c=a.get(l);c||(c=o.app.getObject(e),a.set(l,c));const d=await c;return s.set(l,d),lD(d,{options:t,plugins:n,element:i},o)}({id:e.name},n,f);return{model:d.model,id:e.name,bounds:dD(e,r,s),cellRef:t.createRef(),currentId:hx(),mounted:a,mountedPromise:l,options:{...i,onInitialRender:o}}})));a.forEach((e=>h.addCell(e.currentId,e.cellRef))),_(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,n,i,o,r,s,a,l){const{x:c,y:d,width:h,height:u}=e.bounds,g={left:`${c}%`,top:`${d}%`,width:`${h}%`,height:`${u}%`,position:"absolute"},p=n.public.galaxy?.flags;return p?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(g.boxSizing="border-box",g.padding="4px"),t.createElement("div",{style:g,key:e.model.id},t.createElement(nD,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,navigation:a,onError:l}))}(e,n,e.options,o,r,e.mounted,l,c))):[]),[b]);(0,t.useEffect)((()=>{const e=p?.components?p.components.find((e=>"general"===e.key)):null;C(xS(e,n.public.theme)),w(SS(e,n.app))}),[p,n.public.theme,n.app,m]),(0,t.useImperativeHandle)(d,(()=>({setModel:g})),[]);const E=!p||void 0===p.height||Number.isNaN(p.height)?"100%":`${Number(p.height)}%`,L=b.map((e=>e.mountedPromise)),D=L.filter((e=>!!e));return D.length&&Promise.all(L).then((()=>{s()})),t.createElement("div",{className:"njs-sheet",style:{width:"100%",height:E,position:"relative",backgroundColor:v,backgroundImage:y&&y.url?`url(${y.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:y&&y.size,backgroundPosition:y&&y.pos}},k)})),uD=hD,gD=()=>{};async function pD({id:e,options:n,plugins:i,element:o,onRender:r,onError:s,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},r={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,a=`${n}`;let l,c=s.get(a);c||(c=e.app.getObject(n),s.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,r.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return XC(r),r}(l,c,p):void 0);return"sheet"===p.genericType?async function(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l=gD,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(),s()};let f={},b=[];const _={id:e.id,model:e,navigation:i,getImperativeHandle:async()=>(await p,c.current.getImperativeHandle()),async destroy(){await r(),l(),l=gD},__DO_NOT_USE__:{mount(r){if(d)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=r,[l,c]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a,navigation:l,onError:c}){const{root:d}=e,h=t.createRef();let u;const g=()=>{d.remove(u)};return u=Qd.createPortal(t.createElement(uD,{ref:h,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s,unmount:g,navigation:l,onError:c}),n,i.id),l.setSheetRef(h),d.add(u,g),[g,h]}({halo:n,element:r,model:e,initialSnOptions:f,initialSnPlugins:b,initialError:o,onMount:h,navigation:i,onError:a}),g},async applyProperties(t){const n=oD("/",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 _}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,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:r,onError:s},l,m):lD(p,{options:n,plugins:i,element:o,onRender:r,onError:s},l,m)}function mD(e={}){return{isEnabled:t=>!0===e[t]}}var fD=s(1440),bD=s.n(fD);const _D={};function vD(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||bD()(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!_D[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);_D[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new VL(`Failed to load visualization: '${r}'`,e)}))}return _D[o]}(s.name,s.version,t,n.load).then((e=>(i=i||nL(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e,t=!1){return this.supernova().then((()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(ip()(!0,n,e),n):{...n,...e}}))}};return s}({name:e,version:o},t,r),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 CD={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()))}};CD.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const yD=(e={},t={})=>({...e,...t}),wD=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),AD=function e(n={}){const o=function(e){const t=_g({initial:e});return Object.keys(vg).forEach((e=>{t.translator.add(vg[e])})),{translator:t.translator}}(n.context.language);function r(e,s){if(s)return r.createConfiguration(s)(e);let a={...n.context,translator:o.translator,hostConfig:n.hostConfig};const[l,c]=function({app:e,context:n}){let o,r=!1;const s=new Promise((e=>{o=e})),a=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","6.0.0-alpha.4"),l.setAttribute("data-app-id",e.id),document.body.appendChild(l),n&&Np(n);const c=Tp(e.id),d=Mp(e.id),h=i.createRoot(l);h.render(t.createElement(Op,{ref:a,initialContext:n,renderCallback:o,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 s,p.push(e),g.push(t),a.current.setComps(p)})(),remove(e){r||(async()=>{await s;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 s,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await s,e&&Np(e),a.current.setContext(e)})()},destroy(){r=!0,g.forEach((e=>{e&&e()})),c.destroy(),h.unmount(),document.body.removeChild(l)}},c,d,a,s]}({app:e,context:a}),d=function({themes:e=[],loadTheme:t,root:n}={}){const i=Ep();return{setTheme:async o=>{let r=e.filter((e=>e.id===o))[0],s="dark"===o?"dark":"light";if(!r&&t&&(r={load:t}),r&&r.load)try{const e=await Promise.race([r.load(o),Lp(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(s))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:s},o),n.setMuiThemeName(s)},externalAPI:i.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:l});a.themeApi=d.externalAPI;const h={galaxy:{translator:o.translator,theme:d.externalAPI,flags:mD(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:o.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]=vD(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(_D).forEach((t=>{t.split("__")[0]===e&&(_D[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&&bg&&bg.getWebResourceAuthParams){const{queryParams:e}=await bg.getWebResourceAuthParams({hostConfig:n.hostConfig});a.queryParams=e,l.context(a)}})().then(e)})),f=null,b=null;const _={render:async e=>(await m,e.id?pD(e,u,c):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,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 r=await o.supernova();n&&await nk({sn:r,properties:g,fields:n,children:p},h),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},g)}catch(t){b=t,g={qInfo:{qType:e},visualization:e}}const _=await h.app.createSessionObject(g);p.length>0&&await _.setFullPropertyTree({qProperty:g,qChildren:p}),m.set(_.id,_);const v=f(_);return lD(_,{options:o,plugins:r,element:s,onRender:c,onError:d},h,l,b,(async()=>{await h.app.destroySessionObject(_.id),v()}))}(e,u,c)),destroy:async()=>{l.destroy()},create:async e=>cD(e,u,!1,c),generateProperties:async e=>cD(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:o.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(n){b?console.error("Already mounted"):(b=function({element:e,app:n}){return Qd.createPortal(t.createElement(ux,{app:n}),e,hx())}({element:n,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 r={fieldName:o,async mount(s,a={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>r.emit("selectionActivated"),d=()=>r.emit("selectionDeactivated");return new Promise((o=>{[this._instance,this._ref]=function({element:e,app:n,fieldIdentifier:i,qId:o,stateName:r="$",options:s={},renderedCallback:a}){const l=t.createRef();return[Qd.createPortal(t.createElement($x,{ref:l,app:n,element:e,fieldIdentifier:i,qId:o,stateName:r,initialOptions:s,renderedCallback:a}),e,hx()),l]}({element:s,app:e,fieldIdentifier:n,qId:i,options:Ux({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>r.emit("selectionActivated"),n=()=>r.emit("selectionDeactivated");if(r._ref?.current){const i=Ux({onSelectionActivated:t,onSelectionDeactivated:n,...e});r._ref.current.setOptions(i)}}}};return XC(r),r},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(n,i,o){_._popoverInstance&&(l.remove(_._popoverInstance),_._popoverInstance=null);const r=((e={})=>{const t={...Gx};return ip()(!0,t,e),t})({onPopoverClose:()=>_.emit("fieldPopoverClose"),...o});_._popoverInstance=t.createElement(Kx,{element:n,key:hx(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),l.add(_._popoverInstance)}}};return u.public.nebbie=_,u.types=g,XC(_),_}return r.createConfiguration=t=>e(((e,t)=>({context:yD(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:wD(e.types,t.types),themes:wD(e.themes,t.themes),flags:yD(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:yD(e.anything,t.anything)}))(n,t)),r.config=n,r}(CD),SD=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},xD=globalThis.crypto||{getRandomValues:()=>123456},kD=function(e){return t=>{const n=ip()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^xD.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const i=n._mock;let o=n;return i&&(delete n._mock,o=ip()({},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,LD=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=ED(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},DD=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ID(e){return!DD.includes(e)}function ND(e){const t=ED(e.getLayout);return t.qInfo&&t.qInfo.qId}function RD(e,t){let n=ND(e);const{delay:i}=t,{id:o,session:r,...s}=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(r,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:LD(n,{async:ID(t),delay:i})})),{}),genericType:e.type};return{[n]:a}}function TD(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!ND(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const MD=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(TD);const n=function(e,t){return e.reduce(((e,n)=>({...e,...RD(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},OD=function(){return()=>Promise.resolve({id:"app-layout"})},qD={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new SD,i=new kD(n),o=new MD(e,t),r=new OD,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,destroySessionObject:async()=>{},getObject:o,getAppLayout:r,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(s)}(e,t)},PD=qD,BD={generator:nL,hook:zk,theme:Ep,locale:_g},FD=Zl((0,Js.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),WD=Zl((0,Js.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"}),"ColorLens"),VD=Zl((0,Js.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"}),"WbSunny"),zD=Zl((0,Js.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"}),"Brightness3"),HD=Zl((0,Js.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"}),"Language");function jD(e){return sa("MuiToolbar",e)}aa("MuiToolbar",["root","gutters","regular","dense"]);const UD=Xs("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ql((({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}]})))),$D=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular",...a}=n,l={...n,component:o,disableGutters:r,variant:s},c=(e=>{const{classes:t,disableGutters:n,variant:i}=e;return tn({root:["root",!n&&"gutters",i]},jD,t)})(l);return(0,Js.jsx)(UD,{as:o,className:en(c.root,i),ref:t,ownerState:l,...a})})),GD=$D;function KD(e){return sa("MuiToggleButtonGroup",e)}const YD=aa("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ZD=t.createContext({}),XD=t.createContext(void 0);function QD(e){return sa("MuiToggleButton",e)}const JD=aa("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),eI=Xs("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${YD.grouped}`]:t.grouped},{[`& .${YD.grouped}`]:t[`grouped${va(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]}})(ql((({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}.${JD.disabled},& .${YD.middleButton}.${JD.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}.${JD.disabled},& .${YD.middleButton}.${JD.disabled}`]:{borderLeft:"1px solid transparent"}}}]})))),tI=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="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 tn({root:["root",n,i&&"fullWidth"],grouped:["grouped",`grouped${va(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},KD,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]),_=t.useCallback(((e,t)=>{d&&d(e,g===t?null:t)}),[d,g]),v=t.useMemo((()=>({className:f.grouped,onChange:l?_:b,value:g,size:u,fullWidth:c,color:s,disabled:a})),[f.grouped,l,_,b,g,u,c,s,a]),C=function(e){return t.Children.toArray(e).filter((e=>t.isValidElement(e)))}(o),y=C.length,w=e=>{const t=0===e,n=e===y-1;return t&&n?"":t?f.firstButton:n?f.lastButton:f.middleButton};return(0,Js.jsx)(eI,{role:"group",className:en(f.root,r),ref:n,ownerState:m,...p,children:(0,Js.jsx)(ZD.Provider,{value:v,children:C.map(((e,t)=>(0,Js.jsx)(XD.Provider,{value:w(t),children:e},t)))})})})),nI=tI;function iI(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const oI=Xs(dd,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${va(n.size)}`]]}})(ql((({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,[`&.${JD.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${JD.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{[`&.${JD.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette[t].main,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),r=t.useContext(XD),s=na({props:Qs({...o,selected:iI(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,..._}=s,v={...s,color:c,disabled:d,disableFocusRipple:h,fullWidth:u,size:f},C=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e;return tn({root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${va(r)}`,s]},QD,t)})(v),y=r||"";return(0,Js.jsx)(oI,{className:en(o.className,C.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:v,"aria-pressed":m,..._,children:a})})),sI=rI;function aI(e){return sa("MuiMenu",e)}aa("MuiMenu",["root","paper","list"]);const lI={vertical:"top",horizontal:"right"},cI={vertical:"top",horizontal:"left"},dI=Xs(Fm,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hI=Xs(Pm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uI=Xs(xC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),gI=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,className:s,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}=i,C=La(),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 tn({root:["root"],paper:["paper"],list:["list"]},aI,t)})(y),A=o&&!a&&d,S=t.useRef(null);let x=-1;t.Children.map(r,((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,..._}},E=Bh({elementType:b.root,externalSlotProps:_.root,ownerState:y,className:[w.root,s]}),[L,D]=pc("paper",{className:w.paper,elementType:hI,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:y}),[I,N]=pc("list",{className:en(w.list,l.className),elementType:uI,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,Js.jsx)(dI,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lI:cI,slots:{root:b.root,paper:L,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:E,paper:D,backdrop:"function"==typeof _.backdrop?_.backdrop(y):_.backdrop,transition:{...R,onEntering:(...e)=>{((e,t)=>{S.current&&S.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),p&&p(e,t)})(...e),R?.onEntering?.(...e)}}},open:d,ref:n,transitionDuration:g,ownerState:y,...v,classes:u,children:(0,Js.jsx)(I,{actions:S,autoFocus:o&&(-1===x||a),autoFocusItem:A,variant:f,...N,children:r})})})),pI=gI,mI=new Map,fI=[],bI=fI.map,_I=fI.some,vI=fI.hasOwnProperty,CI=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,yI=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,wI=/(?:\.[^/]*|\/)$/;class AI extends Error{constructor(e){super(e)}}function SI(e){const t=CI.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function xI(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(fI.pop()(o(e)))}catch(e){n(new AI("invalid module"))}i.remove()},i.onerror=()=>{n(new AI("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=DI,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(bI.call(arguments,n)).then(kI):n(e)}return r.alias=function(t){return xI(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function kI(e){const t={};for(const n of e)for(const e in n)vI.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 LI(e){return"exports"==(e+="")||"module"===e}function DI(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),fI.push(_I.call(t,LI)?e=>{const i={},o={exports:i};return Promise.all(bI.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(bI.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}AI.prototype.name=AI.name,xI(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=mI.get(n);return i||mI.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new AI("unable to load package.json");return e.redirected&&!mI.has(e.url)&&mI.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,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new AI("illegal name");const r=SI(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(SI(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!wI.test(r.path)&&(r.path+=".js"),r.path&&r.version&&yI.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),wI.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),DI.amd={};const II=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=xI((async e=>i(e)));return o.alias({"@nebula.js/stardust":e})(n||t)},NI={};function RI(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]),[n,t=>e.setProperties(t)]}window.onHotChange=(e,t)=>(NI[e]||(NI[e]=[]),NI[e].push(t),window[e]&&t(),()=>{const n=NI[e].indexOf(t);NI[e].splice(n,1)});const TI=t.createContext();function MI({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={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||hx(),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:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const OI={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},qI={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function PI(e,t="dimension"){const n="dimension"===t?OI:qI,[i]=Pp(n,e),[o]=zp(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function BI(e){return sa("MuiListSubheader",e)}aa("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const FI=Xs("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${va(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(ql((({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}}]})))),WI=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1,...c}=n,d={...n,color:o,component:r,disableGutters:s,disableSticky:a,inset:l},h=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e;return tn({root:["root","default"!==n&&`color${va(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]},BI,t)})(d);return(0,Js.jsx)(FI,{as:r,className:en(h.root,i),ref:t,ownerState:d,...c})}));WI&&(WI.muiSkipListHighlight=!0);const VI=WI;var zI=s(3657),HI=s.n(zI),jI=s(2339),UI=s.n(jI);const $I=Zl((0,Js.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),GI=Zl((0,Js.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function KI(e){return sa("MuiInput",e)}const YI={...xu,...aa("MuiInput",["root","underline","input"])},ZI=Xs(Fu,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(ql((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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:'"\\00a0"',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(Dc()).map((([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})))]}}))),XI=Xs(Wu,{name:"MuiInput",slot:"Input",overridesResolver:Bu})({}),QI=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:r,fullWidth:s=!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=tn({root:["root",!n&&"underline"],input:["input"]},KI,t);return{...t,...i}})(n),p={root:{ownerState:{disableUnderline:i}}},m=c??r?Qi(c??r,p):p,f=d.root??o.Root??ZI,b=d.input??o.Input??XI;return(0,Js.jsx)(Hu,{slots:{root:f,input:b},slotProps:m,fullWidth:s,inputComponent:a,multiline:l,ref:t,type:h,...u,classes:g})}));QI.muiName="Input";const JI=QI;function eN(e){return sa("MuiFilledInput",e)}const tN={...xu,...aa("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},nN=Xs(Fu,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(ql((({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)",r=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}},[`&.${tN.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${tN.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},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"},[`&.${tN.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tN.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tN.disabled}, .${tN.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${tN.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Dc()).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}}]}}))),iN=Xs(Wu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Bu})(ql((({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}}]})))),oN=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:r,fullWidth:s=!1,hiddenLabel:a,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:h={},type:u="text",...g}=n,p={...n,disableUnderline:i,fullWidth:s,inputComponent:l,multiline:c,type:u},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:r,hiddenLabel:s,multiline:a}=e,l=tn({root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd","small"===r&&`size${va(r)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},eN,t);return{...t,...l}})(n),f={root:{ownerState:p},input:{ownerState:p}},b=d??r?Qi(f,d??r):f,_=h.root??o.Root??nN,v=h.input??o.Input??iN;return(0,Js.jsx)(Hu,{slots:{root:_,input:v},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:t,type:u,...g,classes:m})}));oN.muiName="Input";const rN=oN;function sN(e){return sa("MuiFormLabel",e)}const aN=aa("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lN=Xs("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(ql((({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(Dc()).map((([t])=>({props:{color:t},style:{[`&.${aN.focused}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${aN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aN.error}`]:{color:(e.vars||e).palette.error.main}}}]})))),cN=Xs("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ql((({theme:e})=>({[`&.${aN.error}`]:{color:(e.vars||e).palette.error.main}})))),dN=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiFormLabel"}),{children:i,className:o,color:r,component:s="label",disabled:a,error:l,filled:c,focused:d,required:h,...u}=n,g=Au({props:n,muiFormControl:wu(),states:["color","required","focused","disabled","error","filled"]}),p={...n,color:g.color||"primary",component:s,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:r,filled:s,required:a}=e;return tn({root:["root",`color${va(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]},sN,t)})(p);return(0,Js.jsxs)(lN,{as:s,ownerState:p,className:en(m.root,o),ref:t,...u,children:[i,g.required&&(0,Js.jsxs)(cN,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})})),hN=dN;function uN(e){return sa("MuiInputLabel",e)}aa("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gN=Xs(hN,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aN.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]]}})(ql((({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)"}}]})))),pN=t.forwardRef((function(e,t){const n=na({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,margin:o,shrink:r,variant:s,className:a,...l}=n,c=wu();let d=r;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const h=Au({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:r,variant:s,required:a}=e,l=tn({root:["root",n&&"formControl",!r&&"animated",o&&"shrink",i&&"normal"!==i&&`size${va(i)}`,s],asterisk:[a&&"asterisk"]},uN,t);return{...t,...l}})(u);return(0,Js.jsx)(gN,{"data-shrink":d,ref:t,className:en(g.root,a),...l,ownerState:u,classes:g})})),mN=pN;function fN(e){return sa("MuiFormControl",e)}aa("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const bN=Xs("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${va(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%"}}]}),_N=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="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,_={...i,color:s,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f},v=(e=>{const{classes:t,margin:n,fullWidth:i}=e;return tn({root:["root","none"!==n&&`margin${va(n)}`,i&&"fullWidth"]},fN,t)})(_),[C,y]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{if(!VS(t,["Input","Select"]))return;const n=VS(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=>{VS(t,["Input","Select"])&&(Ou(t.props,!0)||Ou(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 E;t.useRef(!1);const L=t.useCallback((()=>{A(!0)}),[]),D=t.useCallback((()=>{A(!1)}),[]),I=t.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{x(!1)},onFocus:()=>{x(!0)},onEmpty:D,onFilled:L,registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,h,u,E,D,L,p,m,f]);return(0,Js.jsx)(yu.Provider,{value:I,children:(0,Js.jsx)(bN,{as:a,ownerState:_,className:en(v.root,r),ref:n,...b,children:o})})})),vN=_N;function CN(e){return sa("MuiFormHelperText",e)}const yN=aa("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var wN;const AN=Xs("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${va(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ql((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yN.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}}]})))),SN=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p",disabled:s,error:a,filled:l,focused:c,margin:d,required:h,variant:u,...g}=n,p=Au({props:n,muiFormControl:wu(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:r,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:r,filled:s,focused:a,required:l}=e;return tn({root:["root",o&&"disabled",r&&"error",i&&`size${va(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]},CN,t)})(m);return(0,Js.jsx)(AN,{as:r,className:en(f.root,o),ref:t,...g,ownerState:m,children:" "===i?wN||(wN=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):i})})),xN=SN;function kN(e){return sa("MuiNativeSelect",e)}const EN=aa("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),LN=Xs("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}}}]}))),DN=Xs(LN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${EN.multiple}`]:t.multiple}]}})({}),IN=Xs("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}}]}))),NN=Xs(IN,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${va(n.variant)}`],n.open&&t.iconOpen]}})({}),RN=t.forwardRef((function(e,n){const{className:i,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard",...c}=e,d={...e,disabled:o,variant:l,error:r},h=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e;return tn({select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${va(n)}`,r&&"iconOpen",i&&"disabled"]},kN,t)})(d);return(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)(DN,{ownerState:d,className:en(h.select,i),disabled:o,ref:a||n,...c}),e.multiple?null:(0,Js.jsx)(NN,{as:s,ownerState:d,className:h.icon})]})})),TN=RN;function MN(e){return sa("MuiSelect",e)}const ON=aa("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var qN;const PN=Xs(LN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ON.select}`]:t.select},{[`&.${ON.select}`]:t[n.variant]},{[`&.${ON.error}`]:t.error},{[`&.${ON.multiple}`]:t.multiple}]}})({[`&.${ON.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),BN=Xs(IN,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${va(n.variant)}`],n.open&&t.iconOpen]}})({}),FN=Xs("input",{shouldForwardProp:e=>Ys(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function WN(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function VN(e){return null==e||"string"==typeof e&&!e.trim()}const zN=t.forwardRef((function(e,n){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:u,error:g=!1,IconComponent:p,inputRef:m,labelId:f,MenuProps:b={},multiple:_,name:v,onBlur:C,onChange:y,onClose:w,onFocus:A,onOpen:S,open:x,readOnly:k,renderValue:E,required:L,SelectDisplayProps:D={},tabIndex:I,type:N,value:R,variant:T="standard",...M}=e,[O,q]=ff({controlled:R,default:d,name:"Select"}),[P,B]=ff({controlled:x,default:c,name:"Select"}),F=t.useRef(null),W=t.useRef(null),[V,z]=t.useState(null),{current:H}=t.useRef(null!=x),[j,U]=t.useState(),$=Nc(n,m),G=t.useCallback((e=>{W.current=e,e&&z(e)}),[]),K=V?.parentNode;t.useImperativeHandle($,(()=>({focus:()=>{W.current.focus()},node:F.current,value:O})),[O]),t.useEffect((()=>{c&&P&&V&&!H&&(U(s?null:K.clientWidth),W.current.focus())}),[V,s]),t.useEffect((()=>{r&&W.current.focus()}),[r]),t.useEffect((()=>{if(!f)return;const e=tu(W.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&W.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[f]);const Y=(e,t)=>{e?S&&S(t):w&&w(t),H||(U(s?null:K.clientWidth),B(e))},Z=t.Children.toArray(a),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(_){n=Array.isArray(O)?O.slice():[];const t=O.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),O!==n&&(q(n),y)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:v}}),y(o,e)}_||Y(!1,t)}},Q=null!==V&&P;let J,ee;delete M["aria-invalid"];const te=[];let ne=!1,ie=!1;(Ou({value:O})||u)&&(E?J=E(O):ne=!0);const oe=Z.map((e=>{if(!t.isValidElement(e))return null;let n;if(_){if(!Array.isArray(O))throw new Error(lo(2));n=O.some((t=>WN(t,e.props.value))),n&&ne&&te.push(e.props.children)}else n=WN(O,e.props.value),n&&ne&&(ee=e.props.children);return n&&(ie=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:X(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})}));ne&&(J=_?0===te.length?null:te.reduce(((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e)),[]):ee);let re,se=j;!s&&H&&V&&(se=K.clientWidth),re=void 0!==I?I:h?null:0;const ae=D.id||(v?`mui-component-select-${v}`:void 0),le={...e,variant:T,value:O,open:Q,error:g},ce=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e;return tn({select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${va(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]},MN,t)})(le),de={...b.PaperProps,...b.slotProps?.paper},he=Ta();return(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)(PN,{as:"div",ref:G,tabIndex:re,role:"combobox","aria-controls":Q?he:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[f,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":L?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:e=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Y(!0,e))},onMouseDown:h||k?null:e=>{0===e.button&&(e.preventDefault(),W.current.focus(),Y(!0,e))},onBlur:e=>{!Q&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:v}}),C(e))},onFocus:A,...D,ownerState:le,className:en(D.className,ce.select,l),id:ae,children:VN(J)?qN||(qN=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):J}),(0,Js.jsx)(FN,{"aria-invalid":g,value:Array.isArray(O)?O.join(","):O,name:v,ref:F,"aria-hidden":!0,onChange:e=>{const t=Z.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),y&&y(e,t))},tabIndex:-1,disabled:h,className:ce.nativeInput,autoFocus:r,required:L,...M,ownerState:le}),(0,Js.jsx)(BN,{as:p,className:ce.icon,ownerState:le}),(0,Js.jsx)(pI,{id:`menu-${v||""}`,anchorEl:K,open:Q,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":f,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:he,...b.MenuListProps},paper:{...de,style:{minWidth:se,...null!=de?de.style:null}}},children:oe})]})})),HN=zN,jN=Zl((0,Js.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),UN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zs(e)&&"variant"!==e,slot:"Root"},$N=Xs(JI,UN)(""),GN=Xs(Ku,UN)(""),KN=Xs(rN,UN)(""),YN=t.forwardRef((function(e,n){const i=na({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=jN,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:b=!1,native:_=!1,onClose:v,onOpen:C,open:y,renderValue:w,SelectDisplayProps:A,variant:S="outlined",...x}=i,k=_?TN:HN,E=Au({props:i,muiFormControl:wu(),states:["variant","error"]}),L=E.variant||S,D={...i,variant:L,classes:s},I=(e=>{const{classes:t}=e,n=tn({root:["root"]},MN,t);return{...t,...n}})(D),{root:N,...R}=I,T=u||{standard:(0,Js.jsx)($N,{ownerState:D}),outlined:(0,Js.jsx)(GN,{label:p,ownerState:D}),filled:(0,Js.jsx)(KN,{ownerState:D})}[L],M=Nc(n,Kp(T));return(0,Js.jsx)(t.Fragment,{children:t.cloneElement(T,{inputComponent:k,inputProps:{children:r,error:E.error,IconComponent:d,variant:L,type:void 0,multiple:b,..._?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:v,onOpen:C,open:y,renderValue:w,SelectDisplayProps:{id:h,...A}},...g,classes:g?Qi(R,g.classes):R,...u?u.props.inputProps:{}},...(b&&_||c)&&"outlined"===L?{notched:!0}:{},ref:M,className:en(T.props.className,a,I.root),...!u&&{variant:L},...x})})}));YN.muiName="Select";const ZN=YN;function XN(e){return sa("MuiTextField",e)}aa("MuiTextField",["root"]);const QN={standard:JI,filled:rN,outlined:Ku},JN=Xs(vN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eR=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,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:_,label:v,maxRows:C,minRows:y,multiline:w=!1,name:A,onBlur:S,onChange:x,onFocus:k,placeholder:E,required:L=!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:L,select:I,variant:q},F=(e=>{const{classes:t}=e;return tn({root:["root"]},XN,t)})(B),W=Ta(p),V=g&&W?`${W}-helper-text`:void 0,z=v&&W?`${W}-label`:void 0,H=QN[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=v),I&&(N&&N.native||(U.id=void 0),U["aria-describedby"]=void 0);const[G,K]=pc("root",{elementType:JN,shouldForwardComponentProp:!0,externalForwardedProps:{...j,...P},ownerState:B,className:en(F.root,s),ref:t,additionalProps:{disabled:c,error:d,fullWidth:u,required:L,color:a,variant:q}}),[Y,Z]=pc("input",{elementType:H,externalForwardedProps:j,additionalProps:U,ownerState:B}),[X,Q]=pc("inputLabel",{elementType:mN,externalForwardedProps:j,ownerState:B}),[J,ee]=pc("htmlInput",{elementType:"input",externalForwardedProps:j,ownerState:B}),[te,ne]=pc("formHelperText",{elementType:xN,externalForwardedProps:j,ownerState:B}),[ie,oe]=pc("select",{elementType:ZN,externalForwardedProps:j,ownerState:B}),re=(0,Js.jsx)(Y,{"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:u,multiline:w,name:A,rows:D,maxRows:C,minRows:y,type:M,value:O,id:W,inputRef:_,onBlur:S,onChange:x,onFocus:k,placeholder:E,inputProps:ee,slots:{input:R.htmlInput?J:void 0},...Z});return(0,Js.jsxs)(G,{...K,children:[null!=v&&""!==v&&(0,Js.jsx)(X,{htmlFor:W,id:z,...Q,children:v}),I?(0,Js.jsx)(ie,{"aria-describedby":V,id:W,labelId:z,value:O,input:re,...oe,children:r}):re,g&&(0,Js.jsx)(te,{id:V,...ne,children:g})]})})),tR=eR,nR="Search",iR={gridContainer:`${nR}-gridContainer`,gridItem:`${nR}-gridItem`},oR=Xs(Od)((({theme:e})=>({[`& .${iR.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${iR.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 sR({onChange:e=()=>{},onEnter:n=()=>{},onEscape:i=()=>{}}){const[o,r]=(0,t.useState)("");return t.createElement(oR,{className:iR.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},t.createElement(Od,{item:!0},t.createElement(HC,null)),t.createElement(Od,{className:iR.gridItem,item:!0,xs:!0},t.createElement(tR,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onFocus:rR,onKeyDown:e=>{switch(e.key){case"Enter":n(),r("");break;case"Escape":i()}}})))}function aR({field:e,onSelect:n,sub:i,parts:o}){return t.createElement(Ih,{onClick:()=>n(e.qName),"data-key":e.qName},t.createElement(Oh,null,o.map(((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&t.createElement($I,{fontSize:"small"}))}function lR({item:e,onSelect:n,parts:i}){return t.createElement(Ih,{onClick:()=>n(e.qInfo),"data-key":e.qInfo.qId},t.createElement(Oh,null,i.map(((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function cR({aggr:e,field:n,onSelect:i}){return t.createElement(Ih,{onClick:()=>i(e),"data-key":e},t.createElement(Oh,null,`${e}(${n})`))}function dR({app:e,onSelect:n,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=PI(e,o),a=(0,t.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?t.createElement(t.Fragment,null,t.createElement(VI,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=UI()(e.qData.title,r),o=HI()(e.qData.title,i);return r&&0===i.length?null:t.createElement(lR,{key:e.qInfo.qId,item:e,onSelect:n,parts:o})}))):null}function hR({alignTo:e,show:n,close:i,onSelected:o,type:r}){const s=(0,t.useContext)(TI),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(""),h=wa(),[u]=Pp({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=zp(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"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return t.createElement(Fm,{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}}},!a&&t.createElement(sR,{onChange:d}),a&&t.createElement(Sh,{dense:!0,component:"nav"},t.createElement(Ih,{onClick:()=>l(null)},t.createElement(_C,null,t.createElement(GI,null)),t.createElement(Oh,null,"Back")),t.createElement(Jv,null),t.createElement(VI,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>t.createElement(cR,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&t.createElement(Sh,{dense:!0,component:"nav",style:{background:h.palette.background.lightest}},t.createElement(dR,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),t.createElement(VI,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const n=UI()(e.qName,c),i=HI()(e.qName,n);return c&&0===n.length?null:t.createElement(aR,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const uR=({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 gR({items:e,type:n="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(null),h=(0,t.useContext)(TI),[u]=PI(h,n);return t.createElement("div",null,t.createElement(jd,{variant:"overline"},i),t.createElement(Sh,{dense:!0},e.map(((e,i)=>t.createElement(ZS,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i,secondaryAction:t.createElement(kd,{onClick:()=>{s(i)},size:"large"},t.createElement(vh,null))},t.createElement(Oh,null,t.createElement(uR,{field:e,libraryItems:u,type:n})))))),t.createElement(og,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&t.createElement(hR,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===n?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:n}))}function pR({setProperties:e,target:n,properties:i}){const[o,r]=(0,t.useState)([]),s=n.dimensions&&n.dimensions.max&&n.dimensions.max()>1?MI:Qx,a=n.propertyPath.match("/qHyperCube")?Xx:s,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 t.createElement("div",{style:{width:"100%"}},t.createElement(jd,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},n.propertyPath),t.createElement(gR,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),t.createElement(gR,{key:"measures",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"}))}function mR({setProperties:e,sn:n,properties:i}){if(!n)return null;const{targets:o}=n.qae.data;return o.length?t.createElement(Sh,null,o.map((n=>t.createElement(ZS,{key:n.propertyPath,divider:!0,disableGutters:!0},t.createElement(pR,{target:n,properties:i,setProperties:e}))))):t.createElement(jd,null,"No data targets found")}const fR=t.createContext({});function bR(e){return sa("MuiAccordion",e)}const _R=aa("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),vR=Xs(Dm,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_R.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(ql((({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"}},[`&.${_R.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${_R.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),ql((({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:{[`&.${_R.expanded}`]:{margin:"16px 0"}}}]})))),CR=Xs("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),yR=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:h=!1,slots:u={},slotProps:g={},TransitionComponent:p,TransitionProps:m,...f}=i,[b,_]=ff({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=t.useCallback((e=>{_(!b),d&&d(e,!b)}),[b,d,_]),[C,...y]=t.Children.toArray(o),w=t.useMemo((()=>({expanded:b,disabled:a,disableGutters:l,toggle:v})),[b,a,l,v]),A={...i,square:h,disabled:a,disableGutters:l,expanded:b},S=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e;return tn({root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],heading:["heading"],region:["region"]},bR,t)})(A),x={slots:{transition:p,...u},slotProps:{transition:m,...g}},[k,E]=pc("root",{elementType:vR,externalForwardedProps:{...x,...f},className:en(S.root,r),shouldForwardComponentProp:!0,ownerState:A,ref:n,additionalProps:{square:h}}),[L,D]=pc("heading",{elementType:CR,externalForwardedProps:x,className:S.heading,ownerState:A}),[I,N]=pc("transition",{elementType:ph,externalForwardedProps:x,ownerState:A});return(0,Js.jsxs)(k,{...E,children:[(0,Js.jsx)(L,{...D,children:(0,Js.jsx)(fR.Provider,{value:w,children:C})}),(0,Js.jsx)(I,{in:b,timeout:"auto",...N,children:(0,Js.jsx)("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:S.region,children:y})})]})})),wR=yR;function AR(e){return sa("MuiAccordionSummary",e)}const SR=aa("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),xR=Xs(dd,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(ql((({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),[`&.${SR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${SR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${SR.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${SR.expanded}`]:{minHeight:64}}}]}}))),kR=Xs("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(ql((({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}),[`&.${SR.expanded}`]:{margin:"20px 0"}}}]})))),ER=Xs("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(ql((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${SR.expanded}`]:{transform:"rotate(180deg)"}})))),LR=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l,slots:c,slotProps:d,...h}=i,{disabled:u=!1,disableGutters:g,expanded:p,toggle:m}=t.useContext(fR),f={...i,expanded:p,disabled:u,disableGutters:g},b=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e;return tn({root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},AR,t)})(f),_={slots:c,slotProps:d},[v,C]=pc("root",{ref:n,shouldForwardComponentProp:!0,className:en(b.root,r),elementType:xR,externalForwardedProps:{..._,...h},ownerState:f,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:u,"aria-expanded":p,focusVisibleClassName:en(b.focusVisible,a)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{m&&m(e),l&&l(e)})(t)}})}),[y,w]=pc("content",{className:b.content,elementType:kR,externalForwardedProps:_,ownerState:f}),[A,S]=pc("expandIconWrapper",{className:b.expandIconWrapper,elementType:ER,externalForwardedProps:_,ownerState:f});return(0,Js.jsxs)(v,{...C,children:[(0,Js.jsx)(y,{...w,children:o}),s&&(0,Js.jsx)(A,{...S,children:s})]})})),DR=LR;function IR(e){return sa("MuiAccordionDetails",e)}aa("MuiAccordionDetails",["root"]);const NR=Xs("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(ql((({theme:e})=>({padding:e.spacing(1,2,2)})))),RR=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiAccordionDetails"}),{className:i,...o}=n,r=n,s=(e=>{const{classes:t}=e;return tn({root:["root"]},IR,t)})(r);return(0,Js.jsx)(NR,{className:en(s.root,i),ref:t,ownerState:r,...o})})),TR=RR,MR=Zl((0,Js.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");let OR=null;const qR="AutoComponents",PR={summary:`${qR}-summary`,details:`${qR}-details`,root:`${qR}-root`},BR=Xs(Od)((({theme:e})=>({[`& .${PR.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${PR.details}`]:{padding:e.spacing(1)}}))),FR=Xs(wR)((({theme:e})=>({[`& .${PR.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),WR={boolean:function({property:e,value:n,target:i,changed:o}){return t.createElement(mf,{control:t.createElement(Rf,{checked:n,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(n);return t.createElement(tR,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:n,changed:i,app:o}){return t.createElement(FR,{square:!0,className:PR.root},t.createElement(DR,{expandIcon:t.createElement(MR,null),className:PR.summary},t.createElement(jd,null,e)),t.createElement(TR,{className:PR.details},HR(n,i,o)))},number:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(+n);return t.createElement(tR,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:n,target:i,changed:o}){const r=n.qStringExpression&&n.qStringExpression.qExpr?n.qStringExpression.qExpr:"",[s,a]=(0,t.useState)(r);return t.createElement(tR,{variant:"standard",InputProps:{startAdornment:t.createElement(zC,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==n&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:n,target:i,changed:o,app:r}){const[s,a]=(0,t.useState)(n.name),[l,c]=(0,t.useState)([]);return(0,t.useEffect)((()=>{!async function(){const e=await async function(e){return OR||(OR=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await OR.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?t.createElement("em",null,"No variables in app"):t.createElement(vN,{size:"small",fullWidth:!0},t.createElement(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:s,renderValue:e=>0===e.length?t.createElement("em",null,"Select a variable"):e},l.map((e=>t.createElement(mC,{key:e.value,value:e.value},e.label)))))}},VR=/^q[A-Z]/;let zR=!1;function HR(e,n,i,o){o&&o.PP_EXPRESSIONS&&(zR=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(VR.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":zR&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":zR&&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!!WR[n]&&{Component:WR[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return t.createElement(BR,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>t.createElement(Od,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},t.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:n})))))}function jR({viz:e,sn:n,isTemp:i,storage:o,flags:r}){const[s,a]=RI(e?.model),l=(0,t.useContext)(TI),[c,d]=(0,t.useState)(!1!==o.get("readFromCache")),h=(0,t.useCallback)((()=>{a(s)}),[e,n,s]);return n&&e&&s?t.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&t.createElement(t.Fragment,null,t.createElement(Od,{item:!0,container:!0,alignItems:"center"},t.createElement(mf,{control:t.createElement(Rf,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),t.createElement(Jv,null)),t.createElement(mR,{properties:s,setProperties:a,sn:n}),HR(s,h,l,r)):null}function UR(e){return sa("MuiDialog",e)}const $R=aa("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),GR=t.createContext({}),KR=Xs(um,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),YR=Xs(xm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ZR=Xs("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${va(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"}}}]}),XR=Xs(Dm,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${va(n.scroll)}`],t[`paperWidth${va(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ql((({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)`,[`&.${$R.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}`,[`&.${$R.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,[`&.${$R.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),QR=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiDialog"}),o=wa(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"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",onBackdropClick:b,onClick:_,onClose:v,open:C,PaperComponent:y=Dm,PaperProps:w={},scroll:A="paper",slots:S={},slotProps:x={},TransitionComponent:k=lm,transitionDuration:E=r,TransitionProps:L,...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:r}=e;return tn({root:["root"],container:["container",`scroll${va(n)}`],paper:["paper",`paperScroll${va(n)}`,`paperWidth${va(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]},UR,t)})(I),R=t.useRef(),T=Ta(a),M=t.useMemo((()=>({titleId:T})),[T]),O={slots:{transition:k,...S},slotProps:{transition:L,paper:w,backdrop:d,...x}},[q,P]=pc("root",{elementType:YR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:en(N.root,u),ref:n}),[B,F]=pc("backdrop",{elementType:KR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I}),[W,V]=pc("paper",{elementType:XR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:en(N.paper,w.className)}),[z,H]=pc("container",{elementType:ZR,externalForwardedProps:O,ownerState:I,className:en(N.container)}),[j,U]=pc("transition",{elementType:lm,externalForwardedProps:O,ownerState:I,additionalProps:{appear:!0,in:C,timeout:E,role:"presentation"}});return(0,Js.jsx)(q,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:E,as:c,...F}},disableEscapeKeyDown:g,onClose:v,open:C,onClick:e=>{_&&_(e),R.current&&(R.current=null,b&&b(e),v&&v(e,"backdropClick"))},...P,...D,children:(0,Js.jsx)(j,{...U,children:(0,Js.jsx)(z,{onMouseDown:e=>{R.current=e.target===e.currentTarget},...H,children:(0,Js.jsx)(W,{as:y,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":T,"aria-modal":l,...V,children:(0,Js.jsx)(GR.Provider,{value:M,children:h})})})})})})),JR=QR;function eT(e){return sa("MuiDialogTitle",e)}const tT=aa("MuiDialogTitle",["root"]),nT=Xs(jd,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),iT=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiDialogTitle"}),{className:o,id:r,...s}=i,a=i,l=(e=>{const{classes:t}=e;return tn({root:["root"]},eT,t)})(a),{titleId:c=r}=t.useContext(GR);return(0,Js.jsx)(nT,{component:"h2",className:en(l.root,o),ownerState:a,ref:n,variant:"h6",id:r??c,...s})})),oT=iT;function rT(e){return sa("MuiDialogContent",e)}aa("MuiDialogContent",["root","dividers"]);const sT=Xs("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ql((({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:{[`.${tT.root} + &`]:{paddingTop:0}}}]})))),aT=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...r}=n,s={...n,dividers:o},a=(e=>{const{classes:t,dividers:n}=e;return tn({root:["root",n&&"dividers"]},rT,t)})(s);return(0,Js.jsx)(sT,{className:en(a.root,i),ownerState:s,ref:t,...r})})),lT=aT;function cT(e){return sa("MuiDialogActions",e)}aa("MuiDialogActions",["root","spacing"]);const dT=Xs("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}}}]}),hT=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...r}=n,s={...n,disableSpacing:o},a=(e=>{const{classes:t,disableSpacing:n}=e;return tn({root:["root",!n&&"spacing"]},cT,t)})(s);return(0,Js.jsx)(dT,{className:en(a.root,i),ownerState:s,ref:t,...r})})),uT=hT;var gT=s(7713);function pT({model:e,show:n,close:i}){const[o,r]=(0,t.useState)(""),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)([]),[d,h,u]=jp(),g=wa(),p=(0,t.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,t.useEffect)((()=>{if(!n)return;const t=()=>{e&&n&&e.getProperties().then((e=>{n&&r(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 r=gT.editor.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:h.width,height:h.height});const s=r.onDidChangeModelDecorations((()=>{const e=gT.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[u,h,o]),t.createElement(JR,{disableEscapeKeyDown:!0,open:n,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},t.createElement(oT,null,"Modify object properties"),t.createElement(lT,{dividers:!0},t.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),t.createElement(uT,null,t.createElement(og,{variant:"contained",onClick:i},"Cancel"),t.createElement(og,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const mT=t.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),fT=t.createContext();function bT({id:e,onLoad:n}){const i=(0,t.useContext)(fT),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]),t.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const _T="Cell",vT={secondaryIcon:`${_T}-secondaryIcon`,drop:`${_T}-drop`},CT=Xs(Od)((({theme:e})=>({[`& .${vT.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${vT.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function yT({id:e,expandable:n,minHeight:i}){const o=(0,t.useContext)(TI),[r]=qp(),[s,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)(mT),b=f===e,_=(0,t.useRef)();(0,t.useEffect)((()=>{const t=o.getObject(e).then((t=>(a(t),r.set(`${e}`,t),t)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[v,C]=(0,t.useState)(!1),y=(0,t.useCallback)((()=>{C(!1)}),[]),w=(0,t.useCallback)(((e,t)=>{_.current={viz:e,el:t},h(e)}),[e]),A=(0,t.useCallback)(((e=!1)=>{if(_.current)if(e)c(!0),_.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),c(!1)}));else{const e=_.current.el.getBoundingClientRect();_.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)}`)}))}}),[s,u]),S=!b&&_.current&&g&&g===_.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=g===d;return t.createElement(CT,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},t.createElement(Od,{item:!0},t.createElement(GD,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},t.createElement(pT,{model:s,show:v,close:y}),t.createElement(kd,{title:"Modify object properties",className:vT.secondaryIcon,disabled:!s,onClick:()=>C(!0),size:"large"},_h({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"}}]})),t.createElement(kd,{title:"Open in single render view",className:vT.secondaryIcon,disabled:!s,href:s?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${s.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},_h({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"}}]})),t.createElement(kd,{title:"Take and render as snapshot",className:vT.secondaryIcon,disabled:!s,onClick:()=>A(),size:"large"},_h({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?t.createElement(Cd,{size:24}):t.createElement(kd,{title:"Export as image",className:vT.secondaryIcon,disabled:!s,onClick:()=>A(!0),size:"large"},_h({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"}}]})),t.createElement(Od,{item:!0,xs:!0}),n&&t.createElement(kd,{title:"Edit",className:vT.secondaryIcon,disabled:!d||x,onClick:()=>p(d),size:"large"},_h({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&&t.createElement(kd,{title:"Expand",disabled:!s||!d,className:vT.secondaryIcon,onClick:()=>{b?m(null):(m(e),p(d))},size:"large"},_h({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"}}]})))),t.createElement(Od,{item:!0,xs:!0,style:{...S},className:vT.drop},t.createElement(bT,{id:e,onLoad:w})))}function wT({info:e,storage:n,uid:i}){const o=(0,t.useContext)(fT),{activeViz:r,setActiveViz:s}=(0,t.useContext)(mT),[a]=RI(r?.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=>{s(e)})),()=>{t.then((e=>e.destroy()))}}),[i]),(0,t.useEffect)((()=>{a&&n.props(e.supernova.name,a)}),[a]),r&&r.id===i?t.createElement(Od,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},t.createElement(Od,{item:!0,xs:!0},t.createElement(yT,{id:i}))):null}function AT({types:e,cache:n}){const i=(0,t.useContext)(TI),[o]=Hp(i),[r,s]=(0,t.useState)(null),{expandedObject:a}=(0,t.useContext)(mT);if((0,t.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return t.createElement(Od,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>t.createElement(Od,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${n}`},t.createElement(yT,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):t.createElement(Od,{item:!0},t.createElement("div",null,t.createElement(jd,{display:"inline"},"Could not find any components with "),t.createElement(jd,{display:"inline"},t.createElement("code",null,`qType: "${e[0]}"`)),t.createElement(jd,{display:"inline"}," in the current app"))))}const ST=["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"],xT=["select","active","passive"];function kT(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function ET(){const e=(0,t.useRef)(),n=Y(),{info:i}=jt(),{waiting:o,app:r}=(({info:e})=>{const[n,i]=(0,t.useState)(null),[o,r]=(0,t.useState)(!0);(0,t.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await Ht({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/auth/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else{const e=await Pt(`https://${i.host}${i.prefix?`/${i.prefix}`:""}`);r=je().buildUrl({...i,urlParams:{"qlik-csrf-token":e}})}return(await Ve().create({schema:ze,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:n,setApp:i}})({info:i}),s=(0,t.useMemo)((()=>Kt(r)),[r]),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[g,p]=(0,t.useState)(s.get("themeName")),[m,f]=(0,t.useState)(s.get("language")||"en-US"),[b,_]=(0,t.useState)("light"),[v,C]=(0,t.useState)(xT),[y,w]=(0,t.useState)(!0===s.get("objectListMode")),A=(0,t.useRef)(null),[S,x]=(0,t.useState)(),[k,E]=t.useState(null),[L,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)((()=>Ll(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=()=>{II(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,NI[n]&&NI[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=>II(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=AD(r,{context:{theme:g,language:m,interactions:kT(v),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=>(_("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)}),[r,i,o,I]),(0,t.useLayoutEffect)((()=>{R&&(R.context({theme:g}),"light"!==g&&"dark"!==g||_(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=()=>{r&&r.destroySessionObject(e.current)};if(window.addEventListener("beforeunload",t),r){const e=Tp(r.id),t=Mp(r.id);q({modelStore:e,selectionStore:t,myKey:"this is the key here"})}return()=>{window.removeEventListener("beforeunload",t)}}),[r]),t.createElement(Dp.Provider,{value:O},t.createElement(TI.Provider,{value:r},t.createElement(Cl,{injectFirst:!0},t.createElement(cl,{theme:P},t.createElement(fT.Provider,{value:R},t.createElement(Od,{container:!0,wrap:"nowrap",direction:"column",style:{background:P.palette.background.darkest,height:"100%"},gap:0},t.createElement(Od,{item:!0},t.createElement(GD,{variant:"dense",style:{background:P.palette.background.paper,boxShadow:P.shadows[1]}},t.createElement(Od,{container:!0,gap:1},t.createElement(Od,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(Od,{item:!0},t.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},t.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),t.createElement(Od,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(kd,{title:"Home",onClick:()=>n("/"),size:"large"},t.createElement(FD,{style:{verticalAlign:"middle"}}))),t.createElement(Od,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(uu,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation"},t.createElement(bu,{label:t.createElement(jd,null,"Create"),value:0}),t.createElement(bu,{label:t.createElement(jd,null,"Edit"),value:1}))),t.createElement(Od,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(Od,{item:!0,gap:1},t.createElement(jd,null,"State:")),t.createElement(Od,{item:!0,gap:2},t.createElement(nI,{size:"small",value:v,onChange:(e,t)=>{C(t),R&&R.context({interactions:kT(t)})},color:"primary"},t.createElement(sI,{value:"select"},"Select"),t.createElement(sI,{value:"active"},"Active"),t.createElement(sI,{value:"passive"},"Passive"),t.createElement(sI,{value:"edit"},"Edit"))),t.createElement(Od,{item:!0},M.length?t.createElement(t.Fragment,null,t.createElement(kd,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},t.createElement(WD,{fontSize:"small"})),t.createElement(pI,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},M.map((e=>t.createElement(mC,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):t.createElement(kd,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?t.createElement(VD,{fontSize:"small"}):t.createElement(zD,{fontSize:"small"}))),t.createElement(Od,{item:!0},t.createElement(og,{startIcon:t.createElement(HD,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),t.createElement(pI,{anchorEl:L,open:!!L,keepMounted:!0,onClose:()=>D(null)},ST.map((e=>t.createElement(mC,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void(R&&R.context({language:t}));var t}},e))))))))),t.createElement(Od,{item:!0,style:{padding:P.spacing(1,1,0,1)}},t.createElement("div",{ref:A,style:{flex:"0 0 auto",boxShadow:P.shadows[1]}})),t.createElement(Od,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:P.spacing(0,1,1,1)}},t.createElement(mT.Provider,{value:B},h?t.createElement(Od,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},t.createElement(Od,{item:!0,xs:!0,zeroMinWidth:!0},y?t.createElement(AT,{cache:S,types:[i?.supernova.name]}):t.createElement(wT,{info:i,storage:s,uid:S})),a&&t.createElement(Od,{item:!0,style:{background:P.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:P.shadows[1],padding:0}},t.createElement(jR,{sn:h,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):t.createElement(Od,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},t.createElement(Od,{item:!0},t.createElement(Cd,null)))))))))))}const LT=()=>t.createElement(Dl,null,t.createElement(yc,{marginTop:5},t.createElement(jd,{variant:"h4",gutterBottom:!0},"Error!"),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"OAUTH REDIRECT LINK ERROR!"),t.createElement(jd,{variant:"body2",paragraph:!0},"We updated our route which was previously had the responsibility to handle the redirected link including the correct credentials to have"," ",t.createElement("code",null,t.createElement("b",null,"/auth/"))," ","part within it. This change is now impacting your redirect links if you already using your old client-id."),t.createElement(jd,{variant:"h6",gutterBottom:!0},"Here is what you need to do:"),t.createElement(jd,{variant:"body2",paragraph:!0},t.createElement("b",null,"1.")," Go to your tenant that you created your client id",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"2.")," Open Managment console",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"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)",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"4.")," Find your Client id and from ... menu, click on edit",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"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:',t.createElement("code",null,"http://localhost:8000/login/callback"),t.createElement("br",null),"now it will be like:",t.createElement("code",null,"http://localhost:8000/",t.createElement("b",null,"auth/"),"login/callback"),t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"6.")," Click on save and you are set!",t.createElement("br",null)))),DT=()=>t.createElement(Re,null,t.createElement(Qt,null,t.createElement(de,null,t.createElement(le,{element:t.createElement(kc,null)},t.createElement(le,{path:"/",element:t.createElement(pg,null)}),t.createElement(le,{path:"/app-list",element:t.createElement(mg,null)})),t.createElement(le,{path:"/dev",element:t.createElement(ET,null)}),t.createElement(le,{path:"/login/callback",element:t.createElement(LT,null)}))));i.createRoot(document.querySelector("#app")).render(t.createElement(DT,null))})()})();
|
|
102
|
+
`:null,fd=Xs("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${va(n.color)}`]]}})(ql((({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:pd||{animation:`${ud} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),bd=Xs("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_d=Xs("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${va(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ql((({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:md||{animation:`${gd} 1.4s ease-in-out infinite`}}]})))),vd=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate",...h}=n,u={...n,color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d},g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e;return tn({root:["root",n,`color${va(i)}`],svg:["svg"],circle:["circle",`circle${va(n)}`,o&&"circleDisableShrink"]},hd,t)})(u),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Js.jsx)(fd,{className:en(g.root,i),style:{width:s,height:s,...m,...a},ownerState:u,ref:t,role:"progressbar",...f,...h,children:(0,Js.jsx)(bd,{className:g.svg,ownerState:u,viewBox:"22 22 44 44",children:(0,Js.jsx)(_d,{className:g.circle,style:p,ownerState:u,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})})})),Cd=vd;function yd(e){return sa("MuiIconButton",e)}const wd=aa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ad=Xs(dd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${va(n.color)}`],n.edge&&t[`edge${va(n.edge)}`],t[`size${va(n.size)}`]]}})(ql((({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.action.active,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}}]}))),ql((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar((e.vars||e).palette[t].main,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)}}],[`&.${wd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${wd.loading}`]:{color:"transparent"}})))),Sd=Xs("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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"}}]}))),xd=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:r,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:c="medium",id:d,loading:h=null,loadingIndicator:u,...g}=n,p=Lc(d),m=u??(0,Js.jsx)(Cd,{"aria-labelledby":p,color:"inherit",size:16}),f={...n,edge:i,color:s,disabled:a,disableFocusRipple:l,loading:h,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:i,edge:o,size:r,loading:s}=e;return tn({root:["root",s&&"loading",n&&"disabled","default"!==i&&`color${va(i)}`,o&&`edge${va(o)}`,`size${va(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},yd,t)})(f);return(0,Js.jsxs)(Ad,{id:h?p:d,className:en(b.root,r),centerRipple:!0,focusRipple:!l,disabled:a||h,ref:t,...g,ownerState:f,children:["boolean"==typeof h&&(0,Js.jsx)("span",{className:b.loadingWrapper,style:{display:"contents"},children:(0,Js.jsx)(Sd,{className:b.loadingIndicator,ownerState:f,children:h&&m})}),o]})})),kd=xd,Ed=t.createContext();function Ld(e){return sa("MuiGrid",e)}const Dd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Id=aa("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Dd.map((e=>`grid-xs-${e}`)),...Dd.map((e=>`grid-sm-${e}`)),...Dd.map((e=>`grid-md-${e}`)),...Dd.map((e=>`grid-lg-${e}`)),...Dd.map((e=>`grid-xl-${e}`))]),Nd=Id;function Rd({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const i=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return i.slice(0,i.indexOf(n))}const Td=Xs("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:o,item:r,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:c}=n;let d=[];i&&(d=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&i.push(n[`spacing-${t}-${String(o)}`])})),i}(s,c,t));const h=[];return c.forEach((e=>{const i=n[e];i&&h.push(t[`grid-${e}-${String(i)}`])})),[t.root,i&&t.container,r&&t.item,l&&t.zeroMinWidth,...d,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==a&&t[`wrap-xs-${String(a)}`],...h]}})((({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},..."wrap"!==e.wrap&&{flexWrap:e.wrap}})),(function({theme:e,ownerState:t}){return ro({theme:e},ao({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return e.startsWith("column")&&(t[`& > .${Nd.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let o={};if(n&&0!==i){const t=ao({values:i,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Rd({breakpoints:e.breakpoints.values,values:t})),o=ro({theme:e},t,((t,i)=>{const o=e.spacing(t);return"0px"!==o?{marginTop:`calc(-1 * ${o})`,[`& > .${Nd.item}`]:{paddingTop:o}}:n?.includes(i)?{}:{marginTop:0,[`& > .${Nd.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let o={};if(n&&0!==i){const t=ao({values:i,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Rd({breakpoints:e.breakpoints.values,values:t})),o=ro({theme:e},t,((t,i)=>{const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${o})`,marginLeft:`calc(-1 * ${o})`,[`& > .${Nd.item}`]:{paddingLeft:o}}:n?.includes(i)?{}:{width:"100%",marginLeft:0,[`& > .${Nd.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((i,o)=>{let r={};if(t[o]&&(n=t[o]),!n)return i;if(!0===n)r={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=ao({values:t.columns,breakpoints:e.breakpoints.values}),a="object"==typeof s?s[o]:s;if(null==a)return i;const l=Math.round(n/a*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${n})`;c={flexBasis:e,maxWidth:e}}}r={flexBasis:l,flexGrow:0,maxWidth:l,...c}}return 0===e.breakpoints.values[o]?Object.assign(i,r):i[e.breakpoints.up(o)]=r,i}),{})})),Md=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiGrid"}),{breakpoints:o}=wa(),r=Il(i),{className:s,columns:a,columnSpacing:l,component:c="div",container:d=!1,direction:h="row",item:u=!1,rowSpacing:g,spacing:p=0,wrap:m="wrap",zeroMinWidth:f=!1,...b}=r,_=g||p,v=l||p,C=t.useContext(Ed),y=d?a||12:C,w={},A={...b};o.keys.forEach((e=>{null!=b[e]&&(w[e]=b[e],delete A[e])}));const S={...r,columns:y,container:d,direction:h,item:u,rowSpacing:_,columnSpacing:v,wrap:m,zeroMinWidth:f,spacing:p,...w,breakpoints:o.keys},x=(e=>{const{classes:t,container:n,direction:i,item:o,spacing:r,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const i=e[t];if(Number(i)>0){const e=`spacing-${t}-${String(i)}`;n.push(e)}})),n}(r,l));const d=[];return l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)})),tn({root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...c,"row"!==i&&`direction-xs-${String(i)}`,"wrap"!==s&&`wrap-xs-${String(s)}`,...d]},Ld,t)})(S);return(0,Js.jsx)(Ed.Provider,{value:y,children:(0,Js.jsx)(Td,{ownerState:S,className:en(x.root,s),as:c,ref:n,...A})})})),Od=Md,qd=function(e){return(0,Js.jsx)(za,{...e,defaultTheme:Gs,themeId:Ks})};function Pd(e){return sa("MuiTypography",e)}const Bd=aa("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},Wd=Il,Vd=Xs("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${va(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ql((({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(Dc()).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${va(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}}]})))),zd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hd=t.forwardRef((function(e,t){const{color:n,...i}=na({props:e,name:"MuiTypography"}),o=Wd({...i,...!Fd[n]&&{color:n}}),{align:r="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:u=zd,...g}=o,p={...o,align:r,color:n,className:s,component:a,gutterBottom:l,noWrap:c,paragraph:d,variant:h,variantMapping:u},m=a||(d?"p":u[h]||zd[h])||"span",f=(e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:r,classes:s}=e;return tn({root:["root",r,"inherit"!==e.align&&`align${va(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]},Pd,s)})(p);return(0,Js.jsx)(Vd,{as:m,ref:t,className:en(f.root,s),...g,ownerState:p,style:{..."inherit"!==r&&{"--Typography-textAlign":r},...g.style}})})),jd=Hd;function Ud(e){return sa("MuiLink",e)}const $d=aa("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Gd=({theme:e,ownerState:t})=>{const n=t.color,i=ho(e,`palette.${n}.main`,!1)||ho(e,`palette.${n}`,!1)||t.color,o=ho(e,`palette.${n}.mainChannel`)||ho(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ar(i,.4)},Kd={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Yd=Xs(jd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${va(n.underline)}`],"button"===n.component&&t.button]}})(ql((({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)"}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Ar(e.palette[t].main,.4)}}))),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ar(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Ar(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"},[`&.${$d.focusVisible}`]:{outline:"auto"}}}]})))),Zd=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiLink"}),o=wa(),{className:r,color:s="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:s,component:a,focusVisible:m,underline:h,variant:u},_=(e=>{const{classes:t,component:n,focusVisible:i,underline:o}=e;return tn({root:["root",`underline${va(o)}`,"button"===n&&"button",i&&"focusVisible"]},Ud,t)})(b);return(0,Js.jsx)(Yd,{color:s,className:en(_.root,r),classes:d,component:a,onBlur:e=>{Ic(e.target)||f(!1),l&&l(e)},onFocus:e=>{Ic(e.target)&&f(!0),c&&c(e)},ref:n,ownerState:b,variant:u,...p,sx:[...void 0===Kd[s]?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...p.style,..."always"===h&&"inherit"!==s&&!Kd[s]&&{"--Link-underlineColor":Gd({theme:o,ownerState:b})}}})})),Xd=Zd;var Qd=s(8485);var Jd="unmounted",eh="exited",th="entering",nh="entered",ih="exiting",oh=function(e){function n(t,n){var i;i=e.call(this,t,n)||this;var o,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(o=eh,i.appearStatus=th):o=nh:o=t.unmountOnExit||t.mountOnEnter?Jd:eh,i.state={status:o},i.nextCallback=null,i}Wc(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Jd?{status:eh}: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!==th&&n!==nh&&(t=th):n!==th&&n!==nh||(t=ih)}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===th){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Qd.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===eh&&this.setState({status:Jd})},i.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,o=this.props.nodeRef?[i]:[Qd.findDOMNode(this),i],r=o[0],s=o[1],a=this.getTimeouts(),l=i?a.appear:a.enter;e||n?(this.props.onEnter(r,s),this.safeSetState({status:th},(function(){t.props.onEntering(r,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:nh},(function(){t.props.onEntered(r,s)}))}))}))):this.safeSetState({status:nh},(function(){t.props.onEntered(r)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:Qd.findDOMNode(this);t?(this.props.onExit(i),this.safeSetState({status:ih},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:eh},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:eh},(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:Qd.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],r=o[0],s=o[1];this.props.addEndListener(r,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Jd)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,Pc(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Vc.Provider,{value:null},"function"==typeof i?i(e,o):t.cloneElement(t.Children.only(i),o))},n}(t.Component);function rh(){}oh.contextType=Vc,oh.propTypes={},oh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rh,onEntering:rh,onEntered:rh,onExit:rh,onExiting:rh,onExited:rh},oh.UNMOUNTED=Jd,oh.EXITED=eh,oh.ENTERING=th,oh.ENTERED=nh,oh.EXITING=ih;const sh=oh,ah=e=>e.scrollTop;function lh(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 ch(e){return sa("MuiCollapse",e)}aa("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const dh=Xs("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]}})(ql((({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"}}]})))),hh=Xs("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),uh=Xs("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),gh=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiCollapse"}),{addEndListener:o,children:r,className:s,collapsedSize:a="0px",component:l,easing:c,in:d,onEnter:h,onEntered:u,onEntering:g,onExit:p,onExited:m,onExiting:f,orientation:b="vertical",style:_,timeout:v=ks.standard,TransitionComponent:C=sh,...y}=i,w={...i,orientation:b,collapsedSize:a},A=(e=>{const{orientation:t,classes:n}=e;return tn({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},ch,n)})(w),S=wa(),x=Zc(),k=t.useRef(null),E=t.useRef(),L="number"==typeof a?`${a}px`:a,D="horizontal"===b,I=D?"width":"height",N=t.useRef(null),R=Nc(n,N),T=e=>t=>{if(e){const n=N.current;void 0===t?e(n):e(n,t)}},M=()=>k.current?k.current[D?"clientWidth":"clientHeight"]:0,O=T(((e,t)=>{k.current&&D&&(k.current.style.position="absolute"),e.style[I]=L,h&&h(e,t)})),q=T(((e,t)=>{const n=M();k.current&&D&&(k.current.style.position="");const{duration:i,easing:o}=lh({style:_,timeout:v,easing:c},{mode:"enter"});if("auto"===v){const t=S.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,E.current=t}else e.style.transitionDuration="string"==typeof i?i:`${i}ms`;e.style[I]=`${n}px`,e.style.transitionTimingFunction=o,g&&g(e,t)})),P=T(((e,t)=>{e.style[I]="auto",u&&u(e,t)})),B=T((e=>{e.style[I]=`${M()}px`,p&&p(e)})),F=T(m),W=T((e=>{const t=M(),{duration:n,easing:i}=lh({style:_,timeout:v,easing:c},{mode:"exit"});if("auto"===v){const n=S.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,E.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[I]=L,e.style.transitionTimingFunction=i,f&&f(e)}));return(0,Js.jsx)(C,{in:d,onEnter:O,onEntered:P,onEntering:q,onExit:B,onExited:F,onExiting:W,addEndListener:e=>{"auto"===v&&x.start(E.current||0,e),o&&o(N.current,e)},nodeRef:N,timeout:"auto"===v?null:v,...y,children:(e,{ownerState:t,...n})=>(0,Js.jsx)(dh,{as:l,className:en(A.root,s,{entered:A.entered,exited:!d&&"0px"===L&&A.hidden}[e]),style:{[D?"minWidth":"minHeight"]:L,..._},ref:R,ownerState:{...w,state:e},...n,children:(0,Js.jsx)(hh,{ownerState:{...w,state:e},className:A.wrapper,ref:k,children:(0,Js.jsx)(uh,{ownerState:{...w,state:e},className:A.wrapperInner,children:r})})})})}));gh&&(gh.muiSupportAuto=!0);const ph=gh,mh=({showGuid:e})=>t.createElement(ph,{in:e},t.createElement(jd,{variant:"h6",gutterBottom:!0,style:{marginTop:"1rem"}},"WebSocket URL"),t.createElement(jd,{variant:"body2",paragraph:!0},"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."),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"Qlik Cloud Services"),t.createElement(jd,{variant:"body2",paragraph:!0},t.createElement("b",null,"Web integration id format:"),"There are two ways in order to connect through WebSocket:",t.createElement("br",null),"1. ",t.createElement("code",null,"qlik-web-integration-id"),t.createElement("br",null),"2. ",t.createElement("code",null,"qlik-client-id"),t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"Web integration id:"),t.createElement("br",null),t.createElement("code",null,"wss://<tenant>.<region>.qlikcloud.com?qlik-web-integration-id=<web-integration-id>"),t.createElement("br",null),"Example: ",t.createElement("code",null,"wss://qlik.eu.qlikcloud.com?qlik-web-integration-id=xxx"),t.createElement("br",null),t.createElement("br",null),"For more info, visit"," ",t.createElement(Xd,{color:"secondary",underline:"always",href:"https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-adminster-web-integrations.htm"},"Managing web integrations"),"."),t.createElement(jd,{variant:"body2",paragraph:!0},t.createElement("b",null,"OAuth Client ID URL format:"),t.createElement("br",null),t.createElement("code",null,"wss://<tenant>.<region>.qlikcloud.com?qlik-client-id=<client-id>"),t.createElement("br",null),"Example: ",t.createElement("code",null,"wss://qlik.eu.qlikcloud.com?qlik-client-id=xxx"),t.createElement("br",null),"Redirect URL form: ",t.createElement("code",null,"http://localhost:8000/auth/login/callback"),t.createElement("br",null),"The ",t.createElement("code",null,"qlik-web-integration-id")," ",t.createElement("b",null,"OR")," ",t.createElement("code",null,"qlik-client-id")," must be present in order for QCS to confirm that the request originates from a whitelisted domain.",t.createElement("br",null),t.createElement("br",null)),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"Qlik Sense on Windows"),t.createElement(jd,{variant:"body2",paragraph:!0},"WebSocket URL format: ",t.createElement("code",null,"wss://<sense-host.com>/<virtual-proxy-prefix>"),t.createElement("br",null),"Example: ",t.createElement("code",null,"wss://mycompany.com/bi"),t.createElement("br",null),t.createElement("br",null),"Note that for the Qlik Sense Proxy to allow sessions from this webpage,",t.createElement("code",null,window.location.host)," needs to be whitelisted in QMC in your Qlik Sense on Windows deployment. In addition, you need to enable ",t.createElement("i",null,"Has secure attribute")," and set ",t.createElement("i",null,"SameSite attribute")," to ",t.createElement("i",null,"None"),".",t.createElement("br",null),'Also some "Additional reponse headers" needs to align with the whitelisted domain:',t.createElement("ul",null,t.createElement("li",null,"Access-Control-Allow-Origin: ",t.createElement("code",null,window.location.host)),t.createElement("li",null,"Access-Control-Allow-Credentials: true"),t.createElement("li",null,"Access-Control-Expose-Headers: qlik-csrf-token")),"Make sure you are logged in to Qlik Sense in another browser tab."),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"Qlik Sense Desktop"),t.createElement(jd,{variant:"body2",paragraph:!0},"WebSocket URL format: ",t.createElement("code",null,"ws://localhost:4848")));function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fh.apply(null,arguments)}function bh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function _h({size:e,style:n={},viewBox:i="0 0 16 16",shapes:o=[]}){const r={fontSize:bh(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return t.createElement("i",{style:r},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:i,fill:"currentColor"},o.map((({type:e,attrs:n},i)=>t.createElement(e,fh({key:i},n))))))}const vh=e=>_h((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)),Ch=t.createContext({});function yh(e){return sa("MuiList",e)}aa("MuiList",["root","padding","dense","subheader"]);const wh=Xs("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}}]}),Ah=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiList"}),{children:o,className:r,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...d}=i,h=t.useMemo((()=>({dense:a})),[a]),u={...i,component:s,dense:a,disablePadding:l},g=(e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return tn({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},yh,t)})(u);return(0,Js.jsx)(Ch.Provider,{value:h,children:(0,Js.jsxs)(wh,{as:s,className:en(g.root,r),ref:n,ownerState:u,...d,children:[c,o]})})})),Sh=Ah,xh=Ia;function kh(e){return sa("MuiListItemButton",e)}const Eh=aa("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Lh=Xs(dd,{shouldForwardProp:e=>Zs(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]}})(ql((({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"}},[`&.${Eh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Eh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Eh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eh.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}}]})))),Dh=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:d=!1,focusVisibleClassName:h,selected:u=!1,className:g,...p}=i,m=t.useContext(Ch),f=t.useMemo((()=>({dense:l||m.dense||!1,alignItems:o,disableGutters:c})),[o,m.dense,l,c]),b=t.useRef(null);xh((()=>{r&&b.current&&b.current.focus()}),[r]);const _={...i,alignItems:o,dense:f.dense,disableGutters:c,divider:d,selected:u},v=(e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:r,divider:s,selected:a}=e,l=tn({root:["root",i&&"dense",!r&&"gutters",s&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",a&&"selected"]},kh,n);return{...n,...l}})(_),C=Nc(b,n);return(0,Js.jsx)(Ch.Provider,{value:f,children:(0,Js.jsx)(Lh,{ref:C,href:p.href||p.to,component:(p.href||p.to)&&"div"===s?"button":s,focusVisibleClassName:en(v.focusVisible,h),ownerState:_,className:en(v.root,g),...p,classes:v,children:a})})})),Ih=Dh;function Nh(e){return sa("MuiListItemText",e)}const Rh=aa("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Th=Xs("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rh.primary}`]:t.primary},{[`& .${Rh.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,[`.${Bd.root}:where(& .${Rh.primary})`]:{display:"block"},[`.${Bd.root}:where(& .${Rh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Mh=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemText"}),{children:o,className:r,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h,slots:u={},slotProps:g={},...p}=i,{dense:m}=t.useContext(Ch);let f=null!=l?l:o,b=d;const _={...i,disableTypography:s,inset:a,primary:!!f,secondary:!!b,dense:m},v=(e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:r}=e;return tn({root:["root",n&&"inset",r&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Nh,t)})(_),C={slots:u,slotProps:{primary:c,secondary:h,...g}},[y,w]=pc("root",{className:en(v.root,r),elementType:Th,externalForwardedProps:{...C,...p},ownerState:_,ref:n}),[A,S]=pc("primary",{className:v.primary,elementType:jd,externalForwardedProps:C,ownerState:_}),[x,k]=pc("secondary",{className:v.secondary,elementType:jd,externalForwardedProps:C,ownerState:_});return null==f||f.type===jd||s||(f=(0,Js.jsx)(A,{variant:m?"body2":"body1",component:S?.variant?void 0:"span",...S,children:f})),null==b||b.type===jd||s||(b=(0,Js.jsx)(x,{variant:"body2",color:"textSecondary",...k,children:b})),(0,Js.jsxs)(y,{...w,children:[f,b]})})),Oh=Mh,qh=({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"))),Ph=()=>{const e=Y(),{info:n,setError:i,cachedConnectionsData:o}=Xt();return o.cachedConnections.length?t.createElement(Tl,{mb:2},t.createElement(jd,{variant:"h6"},"Previous connections"),t.createElement(Sh,null,o.cachedConnections.map((r=>t.createElement(Ih,{key:r,component:"a",onClick:()=>(t=>{i(),e(`/app-list?engine_url=${t.replace("?","&")}`)})(r),disabled:qh({item:r,info:n})},t.createElement(Oh,{primary:r}),t.createElement(kd,{onClick:()=>o.removeCachedConnection(r),"data-testid":"close-btn",size:"large",edge:"end"},t.createElement(vh,null))))))):null},Bh=function(e){const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...r}=e,s=o?{}:dc(n,i),{props:a,internalRef:l}=gc({...r,externalSlotProps:s}),c=lc(l,s?.ref,e.additionalProps?.ref);return cc(t,{...a,ref:c},i)};function Fh(e,t=166){let n;function i(...i){clearTimeout(n),n=setTimeout((()=>{e.apply(this,i)}),t)}return i.clear=()=>{clearTimeout(n)},i}const Wh=Fh;function Vh(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function zh(e){return e&&e.ownerDocument||document}function Hh(e){return zh(e).defaultView||window}const jh=Hh,Uh={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},$h=Zl((0,Js.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Gh=Zl((0,Js.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Kh(e){return sa("MuiTabScrollButton",e)}const Yh=aa("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Zh=Xs(dd,{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,[`&.${Yh.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Xh=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:r={},direction:s,orientation:a,disabled:l,...c}=n,d=La(),h={isRtl:d,...n},u=(e=>{const{classes:t,orientation:n,disabled:i}=e;return tn({root:["root",n,i&&"disabled"]},Kh,t)})(h),g=o.StartScrollButtonIcon??$h,p=o.EndScrollButtonIcon??Gh,m=Bh({elementType:g,externalSlotProps:r.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),f=Bh({elementType:p,externalSlotProps:r.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,Js.jsx)(Zh,{component:"div",className:en(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"===s?(0,Js.jsx)(g,{...m}):(0,Js.jsx)(p,{...f})})})),Qh=Xh;function Jh(e){return sa("MuiTabs",e)}const eu=aa("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),tu=zh,nu=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iu=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ou=(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)}},ru=Xs("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eu.scrollButtons}`]:t.scrollButtons},{[`& .${eu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(ql((({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:{[`& .${eu.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),su=Xs("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"}}]}),au=Xs("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"}}]}),lu=Xs("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(ql((({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}}]})))),cu=Xs((function(e){const{onChange:n,...i}=e,o=t.useRef(),r=t.useRef(null),s=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return xh((()=>{const e=Wh((()=>{const e=o.current;s(),e!==o.current&&n(o.current)})),t=jh(r.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[n]),t.useEffect((()=>{s(),n(o.current)}),[n]),(0,Js.jsx)("div",{style:Uh,...i,ref:r})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),du={},hu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiTabs"}),o=wa(),r=La(),{"aria-label":s,"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:_="auto",selectionFollowsFocus:v,slots:C={},slotProps:y={},TabIndicatorProps:w={},TabScrollButtonProps:A={},textColor:S="primary",value:x,variant:k="standard",visibleScrollbar:E=!1,...L}=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:_,textColor:S,variant:k,visibleScrollbar:E,fixed:!D,hideScrollbar:D&&!E,scrollableX:D&&!I,scrollableY:D&&I,centered:c&&!D,scrollButtonsHideMobile:!g},P=(e=>{const{vertical:t,fixed:n,hideScrollbar:i,scrollableX:o,scrollableY:r,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return tn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",i&&"hideScrollbar",o&&"scrollableX",r&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Jh,l)})(q),B=Bh({elementType:C.StartScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:q}),F=Bh({elementType:C.EndScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:q}),[W,V]=t.useState(!1),[z,H]=t.useState(du),[j,U]=t.useState(!1),[$,G]=t.useState(!1),[K,Y]=t.useState(!1),[Z,X]=t.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,J=t.useRef(null),ee=t.useRef(null),te={slots:C,slotProps:{indicator:w,scrollButton: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[Q.get(x)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ie=Tc((()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,i=0;I?(n="top",t&&e&&(i=t.top-e.top+e.scrollTop)):(n=r?"right":"left",t&&e&&(i=(r?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:i,[O]:t?t[O]:0};if("number"!=typeof z[n]||"number"!=typeof z[O])H(o);else{const e=Math.abs(z[n]-o[n]),t=Math.abs(z[O]-o[O]);(e>=1||t>=1)&&H(o)}})),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,i={},o=()=>{}){const{ease:r=Vh,duration:s=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)/s);t[e]=r(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},re=e=>{let t=J.current[N];t+=I?e:e*(r?-1:1),oe(t)},se=()=>{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=()=>{re(-1*se())},le=()=>{re(se())},[ce,{onChange:de,...he}]=pc("scrollbar",{className:en(P.scrollableX,P.hideScrollbar),elementType:cu,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:q}),ue=t.useCallback((e=>{de?.(e),X({overflow:null,scrollbarWidth:e})}),[de]),[ge,pe]=pc("scrollButtons",{className:en(P.scrollButtons,A.className),elementType:Qh,externalForwardedProps:te,ownerState:q,additionalProps:{orientation:f,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:B,endScrollButtonIcon:F}}}),me=Tc((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=Tc((()=>{D&&!1!==_&&Y(!K)}));t.useEffect((()=>{const e=Wh((()=>{J.current&&ie()}));let t;const n=jh(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!==_){const n=e[0],i=e[t-1],o={root:J.current,threshold:.99},r=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),o);r.observe(n);const s=new IntersectionObserver((e=>{G(!e[0].isIntersecting)}),o);return s.observe(i),()=>{r.disconnect(),s.disconnect()}}}),[D,_,K,d?.length]),t.useEffect((()=>{V(!0)}),[]),t.useEffect((()=>{ie()})),t.useEffect((()=>{me(du!==z)}),[me,z]),t.useImperativeHandle(l,(()=>({updateIndicator:ie,updateScrollButtons:fe})),[ie,fe]);const[be,_e]=pc("indicator",{className:en(P.indicator,w.className),elementType:lu,externalForwardedProps:te,ownerState:q,additionalProps:{style:z}}),ve=(0,Js.jsx)(be,{..._e});let Ce=0;const ye=t.Children.map(d,(e=>{if(!t.isValidElement(e))return null;const n=void 0===e.props.value?Ce:e.props.value;Q.set(n,Ce);const i=n===x;return Ce+=1,t.cloneElement(e,{fullWidth:"fullWidth"===k,indicator:i&&!W&&ve,selected:i,selectionFollowsFocus:v,onChange:m,textColor:S,value:n,...1!==Ce||!1!==x||e.props.tabIndex?{}:{tabIndex:0}})})),we=(()=>{const e={};e.scrollbarSizeListener=D?(0,Js.jsx)(ce,{...he,onChange:ue}):null;const t=D&&("auto"===_&&(j||$)||!0===_);return e.scrollButtonStart=t?(0,Js.jsx)(ge,{direction:r?"right":"left",onClick:ae,disabled:!j,...pe}):null,e.scrollButtonEnd=t?(0,Js.jsx)(ge,{direction:r?"left":"right",onClick:le,disabled:!$,...pe}):null,e})(),[Ae,Se]=pc("root",{ref:n,className:en(P.root,h),elementType:ru,externalForwardedProps:{...te,...L,component:u},ownerState:q}),[xe,ke]=pc("scroller",{ref:J,className:P.scroller,elementType:su,externalForwardedProps:te,ownerState:q,additionalProps:{style:{overflow:Z.overflow,[I?"margin"+(r?"Left":"Right"):"marginBottom"]:E?void 0:-Z.scrollbarWidth}}}),[Ee,Le]=pc("list",{ref:ee,className:en(P.list,P.flexContainer),elementType:au,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=tu(t).activeElement;if("tab"!==n.getAttribute("role"))return;let i="horizontal"===f?"ArrowLeft":"ArrowUp",o="horizontal"===f?"ArrowRight":"ArrowDown";switch("horizontal"===f&&r&&(i="ArrowRight",o="ArrowLeft"),e.key){case i:e.preventDefault(),ou(t,n,iu);break;case o:e.preventDefault(),ou(t,n,nu);break;case"Home":e.preventDefault(),ou(t,null,nu);break;case"End":e.preventDefault(),ou(t,null,iu)}})(t),e.onKeyDown?.(t)}})});return(0,Js.jsxs)(Ae,{...Se,children:[we.scrollButtonStart,we.scrollbarSizeListener,(0,Js.jsxs)(xe,{...ke,children:[(0,Js.jsx)(Ee,{"aria-label":s,"aria-labelledby":a,"aria-orientation":"vertical"===f?"vertical":null,role:"tablist",...Le,children:ye}),W&&ve]}),we.scrollButtonEnd]})})),uu=hu;function gu(e){return sa("MuiTab",e)}const pu=aa("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),mu=Xs(dd,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${va(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${pu.iconWrapper}`]:t.iconWrapper},{[`& .${pu.icon}`]:t.icon}]}})(ql((({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:{[`& > .${pu.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${pu.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${pu.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${pu.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${pu.selected}`]:{opacity:1},[`&.${pu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pu.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pu.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)}}]})))),fu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiTab"}),{className:o,disabled:r=!1,disableFocusRipple:s=!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:_,wrapped:v=!1,...C}=i,y={...i,disabled:r,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:c,label:!!h,fullWidth:a,textColor:b,wrapped:v},w=(e=>{const{classes:t,textColor:n,fullWidth:i,wrapped:o,icon:r,label:s,selected:a,disabled:l}=e;return tn({root:["root",r&&s&&"labelIcon",`textColor${va(n)}`,i&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},gu,t)})(y),A=l&&h&&t.isValidElement(l)?t.cloneElement(l,{className:en(w.icon,l.props.className)}):l;return(0,Js.jsxs)(mu,{focusRipple:!s,className:en(w.root,o),ref:n,role:"tab","aria-selected":m,disabled:r,onClick:e=>{!m&&u&&u(e,_),g&&g(e)},onFocus:e=>{f&&!m&&u&&u(e,_),p&&p(e)},ownerState:y,tabIndex:m?0:-1,...C,children:["top"===c||"start"===c?(0,Js.jsxs)(t.Fragment,{children:[A,h]}):(0,Js.jsxs)(t.Fragment,{children:[h,A]}),d]})})),bu=fu;var _u;const vu=Xs("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Zs})({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%"}),Cu=Xs("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Zs})(ql((({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})}}]})))),yu=t.createContext(void 0);function wu(){return t.useContext(yu)}function Au({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 Su(e){return sa("MuiInputBase",e)}const xu=aa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function ku(e){return sa("MuiOutlinedInput",e)}const Eu={...xu,...aa("MuiOutlinedInput",["root","notchedOutline","input"])};function Lu(e){return parseInt(e,10)||0}const Du={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Iu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Nu=t.forwardRef((function(e,n){const{onChange:i,maxRows:o,minRows:r=1,style:s,value:a,...l}=e,{current:c}=t.useRef(null!=a),d=t.useRef(null),h=lc(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=Hh(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 s=i.boxSizing,a=Lu(i.paddingBottom)+Lu(i.paddingTop),l=Lu(i.borderBottomWidth)+Lu(i.borderTopWidth),c=n.scrollHeight;n.value="x";const h=n.scrollHeight;let u=c;return r&&(u=Math.max(Number(r)*h,u)),o&&(u=Math.min(Number(o)*h,u)),u=Math.max(u,h),{outerHeightStyle:u+("border-box"===s?a+l:0),overflowing:Math.abs(u-c)<=1}}),[o,r,e.placeholder]),m=Rc((()=>{const e=d.current,t=p();if(!e||!t||Iu(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||Iu(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 Ia((()=>{const e=Fh(f),t=d?.current;if(!t)return;const n=Hh(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]),Ia((()=>{f()})),(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)("textarea",{value:a,onChange:e=>{c||f(),i&&i(e)},ref:h,rows:r,style:s,...l}),(0,Js.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...Du,...s,paddingTop:0,paddingBottom:0}})]})})),Ru=Nu,Tu=function(e){return"string"==typeof e};function Mu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ou(e,t=!1){return e&&(Mu(e.value)&&""!==e.value||t&&Mu(e.defaultValue)&&""!==e.defaultValue)}var qu;const Pu=(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${va(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Bu=(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]},Fu=Xs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pu})(ql((({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",[`&.${xu.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%"}}]})))),Wu=Xs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Bu})(ql((({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] + .${xu.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},[`&.${xu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{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"}}]}}))),Vu=function(e){return function(t){return(0,Js.jsx)(qd,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),zu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:r,autoFocus:s,className:a,color:l,components:c={},componentsProps:d={},defaultValue:h,disabled:u,disableInjectingGlobalStyles:g,endAdornment:p,error:m,fullWidth:f=!1,id:b,inputComponent:_="input",inputProps:v={},inputRef:C,margin:y,maxRows:w,minRows:A,multiline:S=!1,name:x,onBlur:k,onChange:E,onClick:L,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:V,...z}=i,H=null!=v.value?v.value:V,{current:j}=t.useRef(null!=H),U=t.useRef(),$=t.useCallback((e=>{}),[]),G=Nc(U,C,v.ref,$),[K,Y]=t.useState(!1),Z=wu(),X=Au({props:i,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});X.focused=Z?Z.focused:K,t.useEffect((()=>{!Z&&u&&K&&(Y(!1),k&&k())}),[Z,u,K,k]);const Q=Z&&Z.onFilled,J=Z&&Z.onEmpty,ee=t.useCallback((e=>{Ou(e)?Q&&Q():J&&J()}),[Q,J]);xh((()=>{j&&ee({value:H})}),[H,ee,j]),t.useEffect((()=>{ee(U.current)}),[]);let te=_,ne=v;S&&"input"===te&&(ne=O?{type:void 0,minRows:O,maxRows:O,...ne}:{type:void 0,maxRows:w,minRows:A,...ne},te=Ru),t.useEffect((()=>{Z&&Z.setAdornedStart(Boolean(F))}),[Z,F]);const ie={...i,color:X.color||"primary",disabled:X.disabled,endAdornment:p,error:X.error,focused:X.focused,formControl:Z,fullWidth:f,hiddenLabel:X.hiddenLabel,multiline:S,size:X.size,startAdornment:F,type:W},oe=(e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:r,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:h,size:u,startAdornment:g,type:p}=e;return tn({root:["root",`color${va(n)}`,i&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",u&&"medium"!==u&&`size${va(u)}`,d&&"multiline",g&&"adornedStart",r&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",i&&"disabled","search"===p&&"inputTypeSearch",d&&"inputMultiline","small"===u&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]},Su,t)})(ie),re=B.root||c.Root||Fu,se=P.root||d.root||{},ae=B.input||c.Input||Wu;return ne={...ne,...P.input??d.input},(0,Js.jsxs)(t.Fragment,{children:[!g&&"function"==typeof Vu&&(qu||(qu=(0,Js.jsx)(Vu,{}))),(0,Js.jsxs)(re,{...se,ref:n,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),L&&L(e)},...z,...!Tu(re)&&{ownerState:{...ie,...se.ownerState}},className:en(oe.root,se.className,a,T&&"MuiInputBase-readOnly"),children:[F,(0,Js.jsx)(yu.Provider,{value:null,children:(0,Js.jsx)(ae,{"aria-invalid":X.error,"aria-describedby":o,autoComplete:r,autoFocus:s,defaultValue:h,disabled:X.disabled,id:b,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:x,placeholder:R,readOnly:T,required:X.required,rows:O,value:H,onKeyDown:I,onKeyUp:N,type:W,...ne,...!Tu(ae)&&{as:te,ownerState:{...ie,...ne.ownerState}},ref:G,className:en(oe.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),Z&&Z.onBlur?Z.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||U.current;if(null==t)throw new Error(lo(1));ee({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{D&&D(e),v.onFocus&&v.onFocus(e),Z&&Z.onFocus?Z.onFocus(e):Y(!0)}})}),p,M?M({...X,startAdornment:F}):null]})]})})),Hu=zu,ju=Xs(Fu,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pu})(ql((({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 .${Eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Eu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Eu.focused} .${Eu.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{[`&.${Eu.focused} .${Eu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${Eu.error} .${Eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Eu.disabled} .${Eu.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"}}]}}))),Uu=Xs((function(e){const{children:t,classes:n,className:i,label:o,notched:r,...s}=e,a=null!=o&&""!==o,l={...e,notched:r,withLabel:a};return(0,Js.jsx)(vu,{"aria-hidden":!0,className:i,ownerState:l,...s,children:(0,Js.jsx)(Cu,{ownerState:l,children:a?(0,Js.jsx)("span",{children:o}):_u||(_u=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ql((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),$u=Xs(Wu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Bu})(ql((({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}}]})))),Gu=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:r=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:h={},type:u="text",...g}=i,p=(e=>{const{classes:t}=e,n=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ku,t);return{...t,...n}})(i),m=wu(),f=Au({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:r,hiddenLabel:f.hiddenLabel,multiline:l,size:f.size,type:u},_=d.root??o.Root??ju,v=d.input??o.Input??$u,[C,y]=pc("notchedOutline",{elementType:Uu,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:d,slotProps:h},additionalProps:{label:null!=a&&""!==a&&f.required?(0,Js.jsxs)(t.Fragment,{children:[a," ","*"]}):a}});return(0,Js.jsx)(Hu,{slots:{root:_,input:v},slotProps:h,renderSuffix:e=>(0,Js.jsx)(C,{...y,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:r,inputComponent:s,multiline:l,ref:n,type:u,...g,classes:{...p,notchedOutline:null}})}));Gu.muiName="Input";const Ku=Gu,Yu=t.createContext({}),Zu=t.createContext(void 0),Xu=[{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}}}],Qu=Xs(dd,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${va(n.color)}`],t[`size${va(n.size)}`],t[`${n.variant}Size${va(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ql((({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"},[`&.${wl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{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]},[`&.${wl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wl.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)",[`&.${wl.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(Dc()).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.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Ar(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.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.text.primary,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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.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}),[`&.${wl.loading}`]:{color:"transparent"}}}]}}))),Ju=Xs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${va(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}},...Xu]}))),eg=Xs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${va(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}},...Xu]}))),tg=Xs("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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}}]}))),ng=Xs("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ig=t.forwardRef((function(e,n){const i=t.useContext(Yu),o=t.useContext(Zu),r=na({props:Qs(i,e),name:"MuiButton"}),{children:s,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:_,loadingPosition:v="center",size:C="medium",startIcon:y,type:w,variant:A="text",...S}=r,x=Lc(f),k=_??(0,Js.jsx)(Cd,{"aria-labelledby":x,color:"inherit",size:16}),E={...r,color:a,component:l,disabled:d,disableElevation:h,disableFocusRipple:u,fullWidth:m,loading:b,loadingIndicator:k,loadingPosition:v,size:C,type:w,variant:A},L=(e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:r,loading:s,loadingPosition:a,classes:l}=e,c=tn({root:["root",s&&"loading",r,`${r}${va(t)}`,`size${va(o)}`,`${r}Size${va(o)}`,`color${va(t)}`,n&&"disableElevation",i&&"fullWidth",s&&`loadingPosition${va(a)}`],startIcon:["icon","startIcon",`iconSize${va(o)}`],endIcon:["icon","endIcon",`iconSize${va(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},yl,l);return{...l,...c}})(E),D=(y||b&&"start"===v)&&(0,Js.jsx)(Ju,{className:L.startIcon,ownerState:E,children:y||(0,Js.jsx)(ng,{className:L.loadingIconPlaceholder,ownerState:E})}),I=(g||b&&"end"===v)&&(0,Js.jsx)(eg,{className:L.endIcon,ownerState:E,children:g||(0,Js.jsx)(ng,{className:L.loadingIconPlaceholder,ownerState:E})}),N=o||"",R="boolean"==typeof b?(0,Js.jsx)("span",{className:L.loadingWrapper,style:{display:"contents"},children:b&&(0,Js.jsx)(tg,{className:L.loadingIndicator,ownerState:E,children:k})}):null;return(0,Js.jsxs)(Qu,{ownerState:E,className:en(i.className,L.root,c,N),component:l,disabled:d||b,focusRipple:!u,focusVisibleClassName:en(L.focusVisible,p),ref:n,type:w,id:b?x:f,...S,classes:L,children:[D,"end"!==v&&R,s,"end"===v&&R,I]})})),og=ig,rg=({isCredentialProvided:e,inputs:t,fields:n})=>e?!t["engine-websocket-url"]:Object.entries(t).length!==n.length||Object.values(t).some((e=>!e)),sg=({isCredentialProvided:e,field:t})=>e?`You have provided "${t}" through cli or nebula.config.js file already!`:t;function ag({error:{message:e,hints:n}}){return t.createElement(t.Fragment,null,t.createElement(jd,{variant:"subtitle1",color:"error",gutterBottom:!0,style:{marginBottom:0}},e),n.map((e=>t.createElement(jd,{key:e,variant:"body2"},e))))}function lg({info:e,fields:n,error:i,isCredentialProvided:o}){const r=Y(),{setError:s}=Xt(),[a,l]=(0,t.useState)({});return t.createElement("form",{onSubmit:e=>{e.preventDefault(),s();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"]),r(`/app-list?engine_url=${t.toString().replace("?","&")}`)}},t.createElement(Od,{container:!0,spacing:2,direction:"column",justifyContent:"center"},n.map(((n,i)=>t.createElement(Od,{item:!0,xs:12,key:n},t.createElement(Ku,{fullWidth:!0,autoFocus:0===i,disabled:o&&1===i,name:n.split(" ").map((e=>e.toLowerCase())).join("-"),error:e?.invalid,placeholder:0===i?n:sg({field:n,isCredentialProvided:o}),onChange:e=>(e=>{l({...a,[e.target.name]:e.target.value})})(e)})))),t.createElement(Od,{container:!0,item:!0,xs:12,alignItems:"center"},t.createElement(Od,{item:!0,xs:10},i&&t.createElement(ag,{error:i})),t.createElement(Od,{container:!0,item:!0,xs:2,direction:"row",alignItems:"center",justifyContent:"flex-end"},t.createElement(og,{type:"submit",variant:"contained",size:"large",disabled:rg({isCredentialProvided:o,inputs:a,fields:n})},"Connect")))))}const cg=[{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"]}],dg=({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 hg(){const{info:e,error:n}=Xt(),[i,o]=(0,t.useState)(0);return(0,t.useEffect)((()=>{const t=(e=>e?e.isWebIntegrationIdProvided?cg.findIndex((e=>"Web Integration Id"===e.label)):e.isClientIdProvided?cg.findIndex((e=>"Client Id"===e.label)):0:0)(e);t&&o(t)}),[e]),t.createElement(Tl,null,t.createElement(jd,{variant:"h6",gutterBottom:!0},"New connection with:"),t.createElement(Tl,{sx:{width:"100%"}},t.createElement(Tl,{sx:{borderBottom:1,borderColor:"divider"}},t.createElement(uu,{value:i,onChange:(e,t)=>o(t),"aria-label":"basic tabs example"},cg.map((({id:n,label:i})=>t.createElement(bu,{key:n,label:i,disabled:dg({info:e,label:i})}))))),cg.map((({id:o,formFields:r})=>t.createElement(ug,{tabIdx:i,idx:o,key:o},t.createElement(lg,{info:e,error:n,fields:r,isCredentialProvided:e?.isWebIntegrationIdProvided||e?.isClientIdProvided}))))))}function ug({children:e,tabIdx:n,idx:i}){return n===i?t.createElement(Tl,{sx:{p:3,pb:1}},e):null}const{useEffect:gg}=s(7552),pg=()=>{const{cachedConnectionsData:e}=Xt(),[n,i]=(0,t.useState)(!1);return(()=>{const{cachedConnectionsData:e}=Xt();gg((()=>{(async()=>{try{await(await fetch("/auth/deauthorize")).json()}catch(e){console.error("deauthorization failed: ",e)}})()}),[e.cachedConnections.length])})(),(0,t.useEffect)((()=>{i(!e.cachedConnections.length)}),[e.cachedConnections.length]),t.createElement(yc,null,t.createElement(Od,{container:!0},t.createElement(Od,{item:!0,xs:!0},t.createElement(jd,{variant:"h5",gutterBottom:!0},"Connect to an engine")),t.createElement(Od,{item:!0},t.createElement(kd,{onClick:()=>i(!n),size:"small"},t.createElement(Ec,null)))),t.createElement(Ph,null),t.createElement(hg,null),t.createElement(mh,{showGuid:n}))},mg=()=>{const e=Y(),n=$(),{info:i,glob:o,treatAsDesktop:r}=Xt(),{loading:s,appList:a}=(({glob:e,info:n})=>{const i=Y(),{setInfo:o,setActiveStep:r}=Xt(),[s,a]=(0,t.useState)(),[l,c]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{r(1),zt().then((e=>{o(e)}))}),[]),(0,t.useEffect)((()=>{if(s?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/auth/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,n,e]),{appList:s,loading:l}})({glob:o,info:i});return t.createElement(yc,null,t.createElement(jd,{variant:"h5",gutterBottom:!0},"Select an app"),s&&t.createElement(Cd,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&t.createElement(jd,{component:"span"},"No apps found!"),a&&a.length>0&&t.createElement(Sh,null,a.map((o=>t.createElement(Ih,{button:!0,component:"a",key:o.qDocId,onClick:()=>(async({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=i.enigma.secure?"wss":"ws",s=i.enigma.port?`:${i.enigma.port}`:"",a=i.enigma.prefix?`/${i.enigma.prefix}`:"",l=("localhost"===i.enigma.host?`${i.enigma.host}${s}`:i.enigma.host)+a,c=await Pt(`https://${i.enigma.host}${a}`),d=c?`&qlik-csrf-token=${c}`:"",h=`${r}://${l}/app/${encodeURIComponent(n)}${d}`;e(`/dev/${o.replace(i.engineUrl,h)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:n,targetApp:r?o.qDocName:o.qDocId})},t.createElement(Oh,{primary:o.qTitle,secondary:o.qDocId}))))))};function fg(e){return globalThis.process?.argv?Promise.all([s.e(714),s.e(554)]).then(s.bind(s,3554)):s.e(316).then(s.bind(s,2316)).then((t=>t.importRuntimeModule("auth@v1",e)))}s(4152);var bg={registerAuthModule:function(e,t){fg().then((n=>n.registerAuthModule(e,t)))},setDefaultHostConfig:function(e){fg(e).then((t=>t.setDefaultHostConfig(e)))},registerHostConfig:function(e,t){fg(t).then((n=>n.registerHostConfig(e,t)))},unregisterHostConfig:function(e){fg().then((t=>t.unregisterHostConfig(e)))},getAccessToken:async function({hostConfig:e}){return fg(e).then((t=>t.getAccessToken({hostConfig:e})))},getWebResourceAuthParams:async function({hostConfig:e}){return fg(e).then((t=>t.getWebResourceAuthParams({hostConfig:e})))}};const _g=({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 r;return r=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))})(r,o):r}};return o}({initial:e,fallback:t});return{translator:n}},vg=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 Cg=s(6775),yg=s.n(Cg);function wg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ag(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Sg(){}var xg=.7,kg=1/xg,Eg="\\s*([+-]?\\d+)\\s*",Lg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ig=/^#([0-9a-f]{3,8})$/,Ng=new RegExp(`^rgb\\(${Eg},${Eg},${Eg}\\)$`),Rg=new RegExp(`^rgb\\(${Dg},${Dg},${Dg}\\)$`),Tg=new RegExp(`^rgba\\(${Eg},${Eg},${Eg},${Lg}\\)$`),Mg=new RegExp(`^rgba\\(${Dg},${Dg},${Dg},${Lg}\\)$`),Og=new RegExp(`^hsl\\(${Lg},${Dg},${Dg}\\)$`),qg=new RegExp(`^hsla\\(${Lg},${Dg},${Dg},${Lg}\\)$`),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 Bg(){return this.rgb().formatHex()}function Fg(){return this.rgb().formatRgb()}function Wg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ig.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vg(t):3===n?new jg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zg(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=Ng.exec(e))?new jg(t[1],t[2],t[3],1):(t=Rg.exec(e))?new jg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Tg.exec(e))?zg(t[1],t[2],t[3],t[4]):(t=Mg.exec(e))?zg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Og.exec(e))?Zg(t[1],t[2]/100,t[3]/100,1):(t=qg.exec(e))?Zg(t[1],t[2]/100,t[3]/100,t[4]):Pg.hasOwnProperty(e)?Vg(Pg[e]):"transparent"===e?new jg(NaN,NaN,NaN,0):null}function Vg(e){return new jg(e>>16&255,e>>8&255,255&e,1)}function zg(e,t,n,i){return i<=0&&(e=t=n=NaN),new jg(e,t,n,i)}function Hg(e,t,n,i){return 1===arguments.length?((o=e)instanceof Sg||(o=Wg(o)),o?new jg((o=o.rgb()).r,o.g,o.b,o.opacity):new jg):new jg(e,t,n,null==i?1:i);var o}function jg(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Ug(){return`#${Yg(this.r)}${Yg(this.g)}${Yg(this.b)}`}function $g(){const e=Gg(this.opacity);return`${1===e?"rgb(":"rgba("}${Kg(this.r)}, ${Kg(this.g)}, ${Kg(this.b)}${1===e?")":`, ${e})`}`}function Gg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yg(e){return((e=Kg(e))<16?"0":"")+e.toString(16)}function Zg(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qg(e,t,n,i)}function Xg(e){if(e instanceof Qg)return new Qg(e.h,e.s,e.l,e.opacity);if(e instanceof Sg||(e=Wg(e)),!e)return new Qg;if(e instanceof Qg)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Qg(s,a,l,e.opacity)}function Qg(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Jg(e){return(e=(e||0)%360)<0?e+360:e}function ep(e){return Math.max(0,Math.min(1,e||0))}function tp(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}wg(Sg,Wg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bg,formatHex:Bg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xg(this).formatHsl()},formatRgb:Fg,toString:Fg}),wg(jg,Hg,Ag(Sg,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new jg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xg:Math.pow(xg,e),new jg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jg(Kg(this.r),Kg(this.g),Kg(this.b),Gg(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:Ug,formatHex:Ug,formatHex8:function(){return`#${Yg(this.r)}${Yg(this.g)}${Yg(this.b)}${Yg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$g,toString:$g})),wg(Qg,(function(e,t,n,i){return 1===arguments.length?Xg(e):new Qg(e,t,n,null==i?1:i)}),Ag(Sg,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new Qg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xg:Math.pow(xg,e),new Qg(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 jg(tp(e>=240?e-240:e+120,o,i),tp(e,o,i),tp(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Qg(Jg(this.h),ep(this.s),ep(this.l),Gg(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=Gg(this.opacity);return`${1===e?"hsl(":"hsla("}${Jg(this.h)}, ${100*ep(this.s)}%, ${100*ep(this.l)}%${1===e?")":`, ${e})`}`}}));var np=s(5205),ip=s.n(np);const op=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"]}]}}'),rp=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"}'),sp=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"}}}}'),ap=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),lp={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}},cp=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,dp=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,hp=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,up=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,gp=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,pp=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:mp}=Math,{round:fp}=Math;class bp{constructor(...e){let t,n,i,o,r,s,a,l,c,d,h,u,g=0,p=0,m=0,f=1;if(this._invalid=!1,e[0]instanceof bp)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,s=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=fp(255*g),p=fp(255*p),m=fp(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,s=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=o-.5*s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=fp(255*g),p=fp(255*p),m=fp(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]),r=parseFloat(h[5]),t%=360,n/=100,r/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,r=r<0?0:r>1?1:r,s=r*n,a=t/60,l=s*(1-Math.abs(a%2-1)),c=[],a=Math.floor(a),a){case 0:c=[s,l,0];break;case 1:c=[l,s,0];break;case 2:c=[0,s,l];break;case 3:c=[0,l,s];break;case 4:c=[l,0,s];break;case 5:c=[s,0,l];break;default:c=[0,0,0]}d=r-s,g=c[0]+d,p=c[1]+d,m=c[2]+d,g=fp(255*g),p=fp(255*p),m=fp(255*m),f=1}else lp[u.toLowerCase()]?(i=u.toLowerCase(),g=lp[i].r,p=lp[i].g,m=lp[i].b,f="number"==typeof lp[i].a?lp[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=mp(g),this._g=mp(p),this._b=mp(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=bp.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=bp.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=bp.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=bp.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=bp.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=bp.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=bp.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=bp.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 r=parseFloat(n[5]);const s=parseFloat(n[7]);return r+=e,r=Math.max(0,Math.min(r,100)),`hsla(${i},${o},${r},${s})`}isEqual(e){return e instanceof bp||(e=new bp(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[mp(this._r+(e._r-this._r)*t),mp(this._g+(e._g-this._g)*t),mp(this._b+(e._b-this._b)*t),mp(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 bp(i)}static toRGB(e){return e instanceof bp?`rgb(${[e._r,e._g,e._b].join(",")})`:("string"==typeof e&&(e=bp.toNumber(e)),`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`)}static toRGBA(e,t){return e instanceof bp?`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`:("string"==typeof e&&(e=bp.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 bp?(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=bp.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,r=0;"string"==typeof e&&(e=new bp(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=Math.max(s,a,l),d=Math.min(s,a,l);if(i=t?.21*s+.72*a+.07*l:(c+d)/2,c===d)n=0,r=0;else{switch(o=c-d,n=i>.5?o/(2-c-d):o/(c+d),c){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsl(${360*r},${100*n},${100*i})`}static toHSLA(e,t){let n,i,o,r=0;"string"==typeof e&&(e=new bp(e));const s=e._r/255,a=e._g/255,l=e._b/255,c=e._a,d=Math.max(s,a,l),h=Math.min(s,a,l);if(i=t?.21*s+.72*a+.07*l:(d+h)/2,d===h)n=0,r=0;else{switch(o=d-h,n=i>.5?o/(2-d-h):o/(d+h),d){case s:r=(a-l)/o+(a<l?6:0);break;case a:r=(l-s)/o+2;break;case l:r=(s-a)/o+4}r/=6}return`hsla(${360*r},${100*n},${100*i},${c})`}static toHSVComponents(e){let t,n,i=0;"string"==typeof e&&(e=new bp(e));const o=e._r/255,r=e._g/255,s=e._b/255,a=Math.max(o,r,s),l=Math.min(o,r,s),c=a;if(a===l)t=0,i=0;else{switch(n=a-l,t=0===n?0:n/c,a){case o:i=(r-s)/n+(r<s?6:0);break;case r:i=(s-o)/n+2;break;case s:i=(o-r)/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 bp)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,i=0,o=0,r=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),r=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),r=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),r=parseInt(t[3]+t[3],16))),(i<<16)+(o<<8)+r}static blend(e,t,n){const i=(16711680&(e=bp.toNumber(e)))>>16,o=(65280&e)>>8,r=255&e;return(i+(((16711680&(t=bp.toNumber(t)))>>16)-i)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(r+((255&t)-r)*n)}static getBlend(e,t,n){const i=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,r=e._b+(t._b-e._b)*n,s=e._a+(t._a-e._a)*n;return new bp(i,o,r,s)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(cp.test(e)||dp.test(e)||hp.test(e)||up.test(e)||gp.test(e)||pp.test(e)||lp[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 bp(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const _p=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Wg(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([Wg(e),Wg(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 r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return Hg(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))}(s,a,i-o);return l}};function vp(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function Cp(e,t,n){const i=[],o=new _p(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function yp(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=vp(1/t*o,t,n);r=e.getColor(i);break}}i.push(Wg(r).formatHex())}return i}function wp(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function Ap(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 Sp(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=wp(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=Ap(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function xp(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?xp(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function kp(e){const t=Wg(e);if(!t)return 0;const{r:n,g:i,b:o}=t.rgb(),[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}function Ep(){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]=Sp(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=Wg(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?sp:rp;let i=ap;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=ip()(!0,{},op,i,n),r=ip()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return r.palettes.data&&r.palettes.data.length||(r.palettes.data=o.palettes.data),r.palettes.ui&&r.palettes.ui.length||(r.palettes.ui=o.palettes.ui),r.scales&&r.scales.length||(r.scales=o.scales),t(r)}(r,Sp.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 bp(n);return i.setAlpha(e.alpha),i.isInvalid()?n:i.toRGBA()}}}(e);const a=o.getStyle("","","color"),l=kp(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(kp);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const r=kp(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(yg().prototype).forEach((e=>{o[e]=yg().prototype[e]})),yg().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}Sp.resolveRawTheme=e=>{const t=ip()(!0,{},e);return xp(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=Cp(e,n,!0),o=Cp(yp(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(yp(o,e,t));return r}(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 Lp=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));const Dp=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null}),Ip={active:!0,select:!0,passive:!0,edit:!1};function Np(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(Ip).forEach((e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=Ip[e],n[e]=!Ip[e])})),e.constraints=n,e.interactions=t}const Rp=(e={},n=()=>{})=>{const i=e,o=[],r={},s={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,r[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(r).forEach((e=>{r[e]&&r[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]),[s]},s]};function Tp(e){const[t,n]=Rp({}),[i,o]=Rp({}),[r,s]=Rp({}),[a,l]=Rp({}),[c,d]=Rp({}),[,h]=Rp({}),u=({type:e,value:t})=>{const i=h.get(t.id);h.set(t.id,{});const r=()=>{o.clear(t.id),d.set(t.id,{}),d.dispatch(!0)},a=()=>{t.removeListener("closed",a),t.removeListener("changed",r),n.clear(t.id),o.clear(t.id),s.clear(t.id),l.clear(t.id),d.clear(t.id),h.clear(t.id)};return"SET"===e&&(i||(t.on("changed",r),t.once("closed",a))),a},[g,p]=Rp({},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:r,rpcRequestSessionModelStore:s,modelChangedStore:d,appId:e}}function Mp(e){const[t,n]=Rp({}),[i,o]=Rp({}),[r,s]=Rp({});return{useAppSelectionsStore:t,useAppModalStore:i,appSelectionsStore:n,appModalStore:o,useModalObjectStore:r,modalObjectStore:s,appId:e}}const Op=(0,t.forwardRef)((({initialContext:e,renderCallback:n,modelStore:i,selectionStore:o},r)=>{const[s,a]=(0,t.useState)(e),[l,c]=(0,t.useState)(),{theme:d}=(0,t.useMemo)((()=>({theme:Ll(l)})),[l]),[h,u]=(0,t.useState)([]);return(0,t.useEffect)((()=>{n&&n()}),[]),(0,t.useImperativeHandle)(r,(()=>({setComps(e){u([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),s&&(s.modelStore=i,s.selectionStore=o),t.createElement(Cl,{injectFirst:!0},t.createElement(cl,{theme:d},t.createElement(Dp.Provider,{value:s},h)))}));function qp(){const{useModelStore:e}=(0,t.useContext)(Dp).modelStore;return e()}function Pp(e,n,...i){const o=n?`${n.id}/${JSON.stringify(e)}`:null,[r]=qp(),[s]=function(){const{useRpcRequestSessionModelStore:e}=(0,t.useContext)(Dp).modelStore;return e()}(),[a,l]=(0,t.useState)();return(0,t.useEffect)((()=>{n&&(async()=>{let t=s.get(o);t||(t=n.createSessionObject(e),s.set(o,t));const i=await t;r.set(o,i),l(i)})()}),[n,...i]),[a]}const Bp={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Fp(e){return Pp(Bp,e)}const Wp=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function Vp(e,n){const i=e?`${e.id}`:null,[o]=function(){const{useRpcResultStore:e}=(0,t.useContext)(Dp).modelStore;return e()}(),[r,s]=(0,t.useReducer)(Wp,i?o.get(i):null),[a]=function(){const{useModelChangedStore:e}=(0,t.useContext)(Dp).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=(0,t.useContext)(Dp).modelStore;return e()}();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async t=>{let r=c[n];(!r||r&&r.rpcRetry)&&(r={rpc:e[n](),rpcRetry:!1},c[n]=r,s({type:"INVALID",method:n,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{await new Promise((e=>{setTimeout(e,0)}));const t=await r.rpc;s({type:"VALID",result:t,key:i,method:n,model:e,rpcResultStore:o})}catch(e){15!==e.code||t||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},h={cancel:async()=>{const t=e.session.getObjectApi({handle:-1});await t.cancelRequest(c[n].rpc.requestId),s({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]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},h]}function zp(e){const[t,{validating:n,canCancel:i,canRetry:o},r]=Vp(e,"getLayout");return e?.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:i,canRetry:o},r]:[t,{validating:n,canCancel:i,canRetry:o},r]}function Hp(e){return Vp(e,"getAppLayout")}function jp(){const[e,n]=(0,t.useState)(),[i,o]=(0,t.useState)(),r=(0,t.useCallback)((e=>{e&&n(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,t.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Up=e=>_h((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)),$p=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"}}]}),Gp=e=>_h($p(e));function Kp(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Yp(e){return`scale(${e}, ${e**2})`}const Zp={entering:{opacity:1,transform:Yp(1)},entered:{opacity:1,transform:"none"}},Xp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qp=t.forwardRef((function(e,n){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:h,onExited:u,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=sh,...b}=e,_=Zc(),v=t.useRef(),C=wa(),y=t.useRef(null),w=Nc(y,Kp(r),n),A=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},S=A(d),x=A(((e,t)=>{ah(e);const{duration:n,delay:i,easing:o}=lh({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),v.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Xp?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=A(c),E=A(g),L=A((e=>{const{duration:t,delay:n,easing:i}=lh({style:p,timeout:m,easing:s},{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:Xp?o:.666*o,delay:Xp?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Yp(.75),h&&h(e)})),D=A(u);return(0,Js.jsx)(f,{appear:o,in:a,nodeRef:y,onEnter:x,onEntered:k,onEntering:S,onExit:L,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&_.start(v.current||0,e),i&&i(y.current,e)},timeout:"auto"===m?null:m,...b,children:(e,{ownerState:n,...i})=>t.cloneElement(r,{style:{opacity:0,transform:Yp(.75),visibility:"exited"!==e||a?void 0:"hidden",...Zp[e],...p,...r.props.style},ref:w,...i})})}));Qp&&(Qp.muiSupportAuto=!0);const Jp=Qp,em=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tm(e){const t=[],n=[];return Array.from(e.querySelectorAll(em)).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 nm(){return!0}const im=function(e){const{children:n,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=tm,isEnabled:a=nm,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=lc(Kp(n),m),b=t.useRef(null);t.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),t.useEffect((()=>{if(!l||!m.current)return;const e=zh(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(u.current&&u.current.focus&&(c.current=!0,u.current.focus()),u.current=null)}}),[l]),t.useEffect((()=>{if(!l||!m.current)return;const e=zh(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,h.current&&h.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==h.current)return;if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==h.current||(n=s(m.current)),n.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=n[0],i=n[n.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===u.current&&(u.current=e.relatedTarget),p.current=!0};return(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)("div",{tabIndex:l?0:-1,onFocus:_,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,Js.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:h,"data-testid":"sentinelEnd"})]})};function om(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const rm=t.forwardRef((function(e,n){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=t.useState(null),l=lc(t.isValidElement(i)?Kp(i):null,n);if(Ia((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),Ia((()=>{if(s&&!r)return om(n,s),()=>{om(n,null)}}),[n,s,r]),r){if(t.isValidElement(i)){const e={ref:l};return t.cloneElement(i,e)}return i}return s?Qd.createPortal(i,s):s})),sm={entering:{opacity:1},entered:{opacity:1}},am=t.forwardRef((function(e,n){const i=wa(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:h,onEntering:u,onExit:g,onExited:p,onExiting:m,style:f,timeout:b=o,TransitionComponent:_=sh,...v}=e,C=t.useRef(null),y=Nc(C,Kp(a),n),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},A=w(u),S=w(((e,t)=>{ah(e);const n=lh({style:f,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),x=w(h),k=w(m),E=w((e=>{const t=lh({style:f,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),L=w(p);return(0,Js.jsx)(_,{appear:s,in:c,nodeRef:C,onEnter:S,onEntered:x,onEntering:A,onExit:E,onExited:L,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:b,...v,children:(e,{ownerState:n,...i})=>t.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...sm[e],...f,...a.props.style},ref:y,...i})})})),lm=am;function cm(e){return sa("MuiBackdrop",e)}aa("MuiBackdrop",["root","invisible"]);const dm=Xs("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"}}]}),hm=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiBackdrop"}),{children:i,className:o,component:r="div",invisible:s=!1,open:a,components:l={},componentsProps:c={},slotProps:d={},slots:h={},TransitionComponent:u,transitionDuration:g,...p}=n,m={...n,component:r,invisible:s},f=(e=>{const{classes:t,invisible:n}=e;return tn({root:["root",n&&"invisible"]},cm,t)})(m),b={slots:{transition:u,root:l.Root,...h},slotProps:{...c,...d}},[_,v]=pc("root",{elementType:dm,externalForwardedProps:b,className:en(f.root,o),ownerState:m}),[C,y]=pc("transition",{elementType:lm,externalForwardedProps:b,ownerState:m});return(0,Js.jsx)(C,{in:a,timeout:g,...p,...y,children:(0,Js.jsx)(_,{"aria-hidden":!0,...v,classes:f,ref:t,children:i})})})),um=hm;function gm(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function pm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function mm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fm(e){return parseInt(Hh(e).getComputedStyle(e).paddingRight,10)||0}function bm(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=!r.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&&mm(e,o)}))}function _m(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const vm=()=>{},Cm=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&&mm(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);bm(t,e.mount,e.modalRef,i,!0);const o=_m(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=_m(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=zh(e);return t.body===e?Hh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=pm(Hh(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${fm(i)+e}px`;const t=zh(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${fm(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=zh(i).body;else{const t=i.parentElement,n=Hh(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=_m(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&&mm(e.modalRef,t),bm(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&&mm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ym(e){return sa("MuiModal",e)}aa("MuiModal",["root","hidden","backdrop"]);const wm=Xs("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ql((({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"}}]})))),Am=Xs(um,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Sm=t.forwardRef((function(e,n){const i=na({name:"MuiModal",props:e}),{BackdropComponent:o=Am,BackdropProps:r,classes:s,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:_=!1,disableScrollLock:v=!1,hideBackdrop:C=!1,keepMounted:y=!1,onBackdropClick:w,onClose:A,onTransitionEnter:S,onTransitionExited:x,open:k,slotProps:E={},slots:L={},theme:D,...I}=i,N={...i,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:f,disablePortal:b,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:C,keepMounted:y},{getRootProps:R,getBackdropProps:T,getTransitionProps:M,portalRef:O,isTopModal:q,exited:P,hasTransition:B}=function(e){const{container:n,disableEscapeKeyDown:i=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:h}=e,u=t.useRef({}),g=t.useRef(null),p=t.useRef(null),m=lc(p,h),[f,b]=t.useState(!d),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const C=()=>(u.current.modalRef=p.current,u.current.mount=g.current,u.current),y=()=>{Cm.mount(C(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},w=Rc((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||zh(g.current).body;Cm.add(C(),e),p.current&&y()})),A=()=>Cm.isTopModal(C()),S=Rc((e=>{g.current=e,e&&(d&&A()?y():p.current&&mm(p.current,v))})),x=t.useCallback((()=>{Cm.remove(C(),v)}),[v]);t.useEffect((()=>()=>{x()}),[x]),t.useEffect((()=>{d?w():_&&r||x()}),[d,x,_,r,w]);const k=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&A()&&(i||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hc(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:E(t),open:d}},getTransitionProps:()=>({onEnter:gm((()=>{b(!1),s&&s()}),l?.props.onEnter??vm),onExited:gm((()=>{b(!0),a&&a(),r&&x()}),l?.props.onExited??vm)}),rootRef:m,portalRef:S,isTopModal:A,exited:f,hasTransition:_}}({...N,rootRef:n}),F={...N,exited:P},W=(e=>{const{open:t,exited:n,classes:i}=e;return tn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ym,i)})(F),V={};if(void 0===c.props.tabIndex&&(V.tabIndex="-1"),B){const{onEnter:e,onExited:t}=M();V.onEnter=e,V.onExited=t}const z={slots:{root:u.Root,backdrop:u.Backdrop,...L},slotProps:{...g,...E}},[H,j]=pc("root",{ref:n,elementType:wm,externalForwardedProps:{...z,...I,component:h},getSlotProps:R,ownerState:F,className:en(a,W?.root,!F.open&&F.exited&&W?.hidden)}),[U,$]=pc("backdrop",{ref:r?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:e=>T({...e,onClick:t=>{w&&w(t),e?.onClick&&e.onClick(t)}}),className:en(r?.className,W?.backdrop),ownerState:F});return y||k||B&&!P?(0,Js.jsx)(rm,{ref:O,container:d,disablePortal:b,children:(0,Js.jsxs)(H,{...j,children:[!C&&o?(0,Js.jsx)(U,{...$}):null,(0,Js.jsx)(im,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:q,open:k,children:t.cloneElement(c,V)})]})}):null})),xm=Sm;function km(e){return sa("MuiPaper",e)}aa("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 Em=Xs("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}`]]}})(ql((({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)"}}]})))),Lm=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiPaper"}),i=wa(),{className:o,component:r="div",elevation:s=1,square:a=!1,variant:l="elevation",...c}=n,d={...n,component:r,elevation:s,square:a,variant:l},h=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e;return tn({root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]},km,o)})(d);return(0,Js.jsx)(Em,{as:r,ownerState:d,className:en(h.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[s]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":`linear-gradient(${Ar("#fff",Ts(s))}, ${Ar("#fff",Ts(s))})`}},...c.style}})})),Dm=Lm;function Im(e){return sa("MuiPopover",e)}function Nm(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return n=>{const i="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...i}):e,r=en(n?.className,i?.className,o?.className);return{...i,...o,...!!r&&{className:r},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const n=t,i=en(n?.className,e?.className);return{...t,...e,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Rm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Tm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Mm(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Om(e){return"function"==typeof e?e():e}aa("MuiPopover",["root","paper"]);const qm=Xs(xm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Pm=Xs(Dm,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Bm=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={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:_={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:C="auto",TransitionProps:y={},disableScrollLock:w=!1,...A}=i,S=t.useRef(),x={...i,anchorOrigin:s,anchorReference:l,elevation:u,marginThreshold:g,transformOrigin:_,TransitionComponent:v,transitionDuration:C,TransitionProps:y},k=(e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},Im,t)})(x),E=t.useCallback((()=>{if("anchorPosition"===l)return a;const e=Om(r),t=(e&&1===e.nodeType?e:tu(S.current).body).getBoundingClientRect();return{top:t.top+Rm(t,s.vertical),left:t.left+Tm(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),L=t.useCallback((e=>({vertical:Rm(e,_.vertical),horizontal:Tm(e,_.horizontal)})),[_.horizontal,_.vertical]),D=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===l)return{top:null,left:null,transformOrigin:Mm(n)};const i=E();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=jh(Om(r)),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&&s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>u){const e=c-u;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Mm(n)}}),[r,l,E,L,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))),[r,w,R]),t.useEffect((()=>{p&&R()})),t.useImperativeHandle(o,(()=>p?{updatePosition:()=>{R()}}:null),[p,R]),t.useEffect((()=>{if(!p)return;const e=Wh((()=>{R()})),t=jh(Om(r));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,R]);let T=C;const M={slots:{transition:v,...f},slotProps:{transition:y,paper:m,...b}},[O,q]=pc("transition",{elementType:Jp,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"!==C||O.muiSupportAuto||(T=void 0);const P=h||(r?tu(Om(r)).body:void 0),[B,{slots:F,slotProps:W,...V}]=pc("root",{ref:n,elementType:qm,externalForwardedProps:{...M,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:f.backdrop},slotProps:{backdrop:Nm("function"==typeof b.backdrop?b.backdrop(x):b.backdrop,{invisible:!0})},container:P,open:p},ownerState:x,className:en(k.root,d)}),[z,H]=pc("paper",{ref:S,className:k.paper,elementType:Pm,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:u,style:I?void 0:{opacity:0}},ownerState:x});return(0,Js.jsx)(B,{...V,...!Tu(B)&&{slots:F,slotProps:W,disableScrollLock:w},children:(0,Js.jsx)(O,{...q,timeout:T,children:(0,Js.jsx)(z,{...H,children:c})})})})),Fm=Bm;var Wm=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}}(),Vm=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},zm=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,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=Vm(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),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},Vm(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),Wm(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,r=n.minimumBatchSize,s=void 0===r?10:r,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,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var h=r[0]-1;if(t(h))break;r[0]=h}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,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],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).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 Hm=zm,jm=["S","XS"],Um=e=>e.reduce(((e,t)=>e.concat(t)));async function $m({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 r=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",r,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const Gm="RowColumn",Km={row:`${Gm}-row`,rowBorderBottom:`${Gm}-rowBorderBottom`,column:`${Gm}-column`,fieldRoot:`${Gm}-fieldRoot`,cell:`${Gm}-cell`,labelText:`${Gm}-labelText`,labelDense:`${Gm}-labelDense`,highlighted:`${Gm}-highlighted`,checkboxLabel:`${Gm}-checkboxLabel`,icon:`${Gm}-icon`,S:`${Gm}-S`,XS:`${Gm}-XS`,A:`${Gm}-A`,X:`${Gm}-X`,frequencyCount:`${Gm}-frequencyCount`,barContainer:`${Gm}-barContainer`,bar:`${Gm}-bar`,barSelected:`${Gm}-barSelected`,barWithCheckbox:`${Gm}-barWithCheckbox`,barSelectedWithCheckbox:`${Gm}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Gm}-excludedTextWithCheckbox`},Ym=`.${Km.fieldRoot}`,Zm=e=>!(e?.metaKey||e?.ctrlKey);const Xm=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),Qm=e=>_h(Xm(e)),Jm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ef=({cell:e,checkboxes:t})=>{return(((n=e)?"A"===n.qState:null)||Jm(e))&&t;var n},tf=e=>e.filter((e=>!!e)).join(" ").trim(),nf=e=>e||"-",of=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:i})=>"P"===t?`${e.freqMinWidth}px`:n&&!i?"max-content":"25%",rf=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,sf=({theme:e,checkboxes:t,styles:n,selectionState:i})=>{if(t)return"selected"===i?{[`& .${Km.labelText}`]:{color:n.selections.selected}}:{};const o=n.selections,r=o[i],s=o[`${i}Contrast`];return{background:r,color:s,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0},[`& .${Km.labelText}`]:{color:s},[`& .${Km.icon}`]:{color:s}}},af={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},lf=Xs("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:r,sizes:s,frequencyMode:a,freqHitsValue:l,styles:c})=>{const{backgroundColor:d,...h}=c.content,u=sf({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),g=sf({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{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${Km.row}`]:{flexWrap:"nowrap",...c.content},[`& .${Km.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${Km.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${Km.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Km.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...af,...h},[`& .${Km.labelDense}`]:{lineHeight:"18px"},[`& .${Km.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Km.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...af,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${Km.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${Km.S}`]:{...u,border:n?"none":void 0},[`& .${Km.XS}`]:{...sf({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${Km.A}`]:{...sf({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${Km.X}`]:{...g,border:n?"none":void 0},[`& .${Km.X}, & .${Km.XS}`]:{border:n?"none":void 0,[`& .${Km.barSelected} .bar-filled`]:{...p}},[`& .${Km.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...af,flex:`0 0 ${of({sizes:s,frequencyMode:a,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==a&&l?s.freqMinWidth:"max-content",maxWidth:rf({sizes:s,frequencyMode:a,isGridMode:n}),textAlign:"rtl"===r?"left":"right",paddingLeft:"rtl"!==r?"8px":0},[`&.${Km.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Km.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...p}},[`& .${Km.barSelected}`]:{"& .bar-filled":{...m}},[`& .${Km.barWithCheckbox}`]:{left:"rtl"===r?4:29,width:"calc(100% - 33px)"},[`& .${Km.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${Km.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}})),cf=t.memo(lf);function df(e){return sa("MuiFormControlLabel",e)}const hf=aa("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uf=Xs("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hf.label}`]:t.label},t.root,t[`labelPlacement${va(n.labelPlacement)}`]]}})(ql((({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${hf.disabled}`]:{cursor:"default"},[`& .${hf.label}`]:{[`&.${hf.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}}]})))),gf=Xs("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ql((({theme:e})=>({[`&.${hf.error}`]:{color:(e.vars||e).palette.error.main}})))),pf=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiFormControlLabel"}),{checked:o,className:r,componentsProps:s={},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}=i,C=wu(),y=l??a.props.disabled??C?.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=Au({props:i,muiFormControl:C,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:r}=e;return tn({root:["root",n&&"disabled",`labelPlacement${va(i)}`,o&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},df,t)})(x),E={slots:f,slotProps:{...s,...b}},[L,D]=pc("typography",{elementType:jd,externalForwardedProps:E,ownerState:x});let I=h;return null==I||I.type===jd||c||(I=(0,Js.jsx)(L,{component:"span",...D,className:en(k.label,D?.className),children:I})),(0,Js.jsxs)(uf,{className:en(k.root,r),ownerState:x,ref:n,...v,children:[t.cloneElement(a,A),w?(0,Js.jsxs)("div",{children:[I,(0,Js.jsxs)(gf,{ownerState:x,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):I]})})),mf=pf,ff=function({controlled:e,default:n,name:i,state:o="value"}){const{current:r}=t.useRef(void 0!==e),[s,a]=t.useState(n);return[r?e:s,t.useCallback((e=>{r||a(e)}),[])]};function bf(e){return sa("PrivateSwitchBase",e)}aa("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _f=Xs(dd,{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}}]}),vf=Xs("input",{name:"MuiSwitchBase",shouldForwardProp:Zs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Cf=t.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:r,disabled:s,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:_=!1,tabIndex:v,type:C,value:y,slots:w={},slotProps:A={},...S}=e,[x,k]=ff({controlled:i,default:Boolean(r),name:"SwitchBase",state:"checked"}),E=wu();let L=s;E&&void 0===L&&(L=E.disabled);const D="checkbox"===C||"radio"===C,I={...e,checked:x,disabled:L,disableFocusRipple:a,edge:l},N=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e;return tn({root:["root",n&&"checked",i&&"disabled",o&&`edge${va(o)}`],input:["input"]},bf,t)})(I),R={slots:w,slotProps:{input:h,...A}},[T,M]=pc("root",{ref:t,elementType:_f,className:N.root,shouldForwardComponentProp:!0,externalForwardedProps:{...R,component:"span",...S},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{f&&f(e),E&&E.onFocus&&E.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{p&&p(e),E&&E.onBlur&&E.onBlur(e)})(t)}}),ownerState:I,additionalProps:{centerRipple:!0,focusRipple:!a,disabled:L,role:void 0,tabIndex:null}}),[O,q]=pc("input",{ref:u,elementType:vf,className:N.input,externalForwardedProps:R,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),m&&m(e,t)})(t)}}),ownerState:I,additionalProps:{autoFocus:n,checked:i,defaultChecked:r,disabled:L,id:D?d:void 0,name:g,readOnly:b,required:_,tabIndex:v,type:C,..."checkbox"===C&&void 0===y?{}:{value:y}}});return(0,Js.jsxs)(T,{...M,children:[(0,Js.jsx)(O,{...q}),x?o:c]})})),yf=Cf,wf=Zl((0,Js.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Af=Zl((0,Js.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Sf=Zl((0,Js.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function xf(e){return sa("MuiCheckbox",e)}const kf=aa("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ef=Xs(yf,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${va(n.size)}`],"default"!==n.color&&t[`color${va(n.color)}`]]}})(ql((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{[`&.${kf.checked}, &.${kf.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${kf.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),Lf=(0,Js.jsx)(Af,{}),Df=(0,Js.jsx)(wf,{}),If=(0,Js.jsx)(Sf,{}),Nf=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiCheckbox"}),{checkedIcon:o=Lf,color:r="primary",icon:s=Df,indeterminate:a=!1,indeterminateIcon:l=If,inputProps:c,size:d="medium",disableRipple:h=!1,className:u,slots:g={},slotProps:p={},...m}=i,f=a?l:s,b=a?l:o,_={...i,disableRipple:h,color:r,indeterminate:a,size:d},v=(e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,r=tn({root:["root",n&&"indeterminate",`color${va(i)}`,`size${va(o)}`]},xf,t);return{...t,...r}})(_),C=p.input??c,[y,w]=pc("root",{ref:n,elementType:Ef,className:en(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:p,...m},ownerState:_,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:Nm("function"==typeof C?C(_):C,{"data-indeterminate":a})}}});return(0,Js.jsx)(y,{...w,classes:v})})),Rf=Nf,Tf="ListBoxCheckbox",Mf={cbIcon:`${Tf}-cbIcon`,cbIconChecked:`${Tf}-cbIconChecked`,cbIconExcluded:`${Tf}-cbIconExcluded`,cbIconAlternative:`${Tf}-cbIconAlternative`,checkbox:`${Tf}-checkbox`,dense:`${Tf}-dense`},Of=Xs(Rf,{shouldForwardProp:e=>"styles"!==e})((({styles:e})=>({[`& .${Mf.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"},[`& .${Mf.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:'""'}},[`& .${Mf.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${Mf.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${Mf.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${Mf.dense}`]:{padding:"4px 8px"}}))),qf=(e,n=!0,i=!1)=>t.createElement("span",{className:e.cbIcon},i&&t.createElement("span",{className:n&&i?e.cbIconExcluded:""}));function Pf({onChange:e,checked:n,label:i,dense:o,excluded:r,styles:s,showGray:a=!0,dataN:l}){return t.createElement(Of,{edge:"start",onChange:e,checked:n,disableRipple:!0,className:[Mf.checkbox,o&&Mf.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":i,"data-n":l},name:i,icon:qf(Mf,a,r),checkedIcon:t.createElement("span",{className:Mf.cbIconChecked}),styles:s})}const Bf=Zl((0,Js.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Ff=Zl((0,Js.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Wf=Xs("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Zs})({position:"relative",display:"flex"}),Vf=Xs(Bf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),zf=Xs(Ff,{name:"MuiRadioButtonIcon"})(ql((({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})}}]})))),Hf=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return(0,Js.jsxs)(Wf,{className:n.root,ownerState:o,children:[(0,Js.jsx)(Vf,{fontSize:i,className:n.background,ownerState:o}),(0,Js.jsx)(zf,{fontSize:i,className:n.dot,ownerState:o})]})},jf=gm,Uf=t.createContext(void 0);function $f(e){return sa("MuiRadio",e)}const Gf=aa("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Kf=Xs(yf,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${va(n.size)}`],t[`color${va(n.color)}`]]}})(ql((({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Gf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t,disabled:!1},style:{[`&.${Gf.checked}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),Yf=(0,Js.jsx)(Hf,{checked:!0}),Zf=(0,Js.jsx)(Hf,{}),Xf=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiRadio"}),{checked:o,checkedIcon:r=Yf,color:s="primary",icon:a=Zf,name:l,onChange:c,size:d="medium",className:h,disabled:u,disableRipple:g=!1,slots:p={},slotProps:m={},inputProps:f,...b}=i,_=wu();let v=u;_&&void 0===v&&(v=_.disabled),v??=!1;const C={...i,disabled:v,disableRipple:g,color:s,size:d},y=(e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${va(n)}`,"medium"!==i&&`size${va(i)}`]};return{...t,...tn(o,$f,t)}})(C),w=t.useContext(Uf);let A=o;const S=jf(c,w&&w.onChange);let x=l;w&&(void 0===A&&(A=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(w.value,i.value)),void 0===x&&(x=w.name));const k=m.input??f,[E,L]=pc("root",{ref:n,elementType:Kf,className:en(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:C,additionalProps:{type:"radio",icon:t.cloneElement(a,{fontSize:a.props.fontSize??d}),checkedIcon:t.cloneElement(r,{fontSize:r.props.fontSize??d}),disabled:v,name:x,checked:A,slots:p,slotProps:{input:"function"==typeof k?k(C):k}}});return(0,Js.jsx)(E,{...L,classes:y})})),Qf="ListBoxRadioButton-radioButton",Jf=Xs(Xf,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((({checked:e,styles:t,dense:n})=>({[`&.${Qf}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}})));function eb({onChange:e,checked:n,label:i,dense:o,dataN:r,styles:s}){return t.createElement(Jf,{checked:n,onChange:e,value:i,name:i,className:Qf,inputProps:{"data-n":r},disableRipple:!0,size:o?"small":"medium",dense:o,styles:s})}const tb=function({label:e,dense:n,showGray:i=!0,checkboxes:o,cell:r,valueTextAlign:s}){return t.createElement(jd,{component:"span",variant:"body2",className:tf([Km.labelText,n&&Km.labelDense,i&&ef({cell:r,checkboxes:o})&&Km.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,e))},nb=function({label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?t.createElement(tb,{label:e,color:n,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},ib=function({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){const g=t.createElement(Pf,{onChange:e,label:n,checked:o,dense:r,excluded:Jm(s),isGridCol:a,showGray:l,dataN:i,styles:u}),p=t.createElement(eb,{onChange:e,label:n,checked:o,dense:r,dataN:i,styles:u});return t.createElement(mf,{control:c?p:g,className:Km.checkboxLabel,label:t.createElement(nb,{label:n,dense:r,showGray:l,checkboxes:d,cell:s,valueTextAlign:h}),key:i})};function ob({labels:e,dense:n,showGray:i,checkboxes:o}){const r=e.map((([e,n],i)=>t.createElement("span",{id:i,className:n?Km.highlighted:""},e)));return t.createElement(tb,{label:r,dense:n,showGray:i,checkboxes:o})}const rb=function({onChange:e,labels:n,checkboxes:i,dense:o,showGray:r,qElemNumber:s,isSelected:a,cell:l,isGridCol:c,isSingleSelect:d,valueTextAlign:h,styles:u}){const g=t.createElement(ob,{labels:n,dense:o,showGray:r,checkboxes:i});return i?t.createElement(ib,{onChange:e,label:g,qElemNumber:s,isSelected:a,dense:o,cell:l,isGridCol:c,showGray:r,isSingleSelect:d,checkboxes:i,valueTextAlign:h,styles:u}):g};function sb({onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}){return d?t.createElement(ib,{onChange:e,label:n,qElemNumber:i,isSelected:o,dense:r,cell:s,isGridCol:a,showGray:l,isSingleSelect:c,checkboxes:d,valueTextAlign:h,styles:u}):t.createElement(tb,{label:n,dense:r,showGray:!0,checkboxes:d,cell:s,valueTextAlign:h})}const ab=t.memo(sb),lb=function({qFrequency:e,histogram:n,checkboxes:i,isSelected:o,frequencyMax:r}){if(!e||!n||"-"===nf(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:i,frequencyMax:r});return t.createElement(Tl,{className:tf([Km.bar,i&&Km.barWithCheckbox,o&&(i?Km.barSelectedWithCheckbox:Km.barSelected)])},t.createElement(Tl,{className:"bar-filled",width:s}))},cb=function({cell:e,checkboxes:n,dense:i,showGray:o}){const r=nf(e?.qFrequency);return t.createElement(Od,{item:!0,style:{display:"flex",alignItems:"center"},className:Km.frequencyCount,"aria-label":r,title:r},t.createElement(jd,{noWrap:!0,color:"inherit",variant:"body2",className:tf([i&&Km.labelDense,Km.labelText,o&&ef({cell:e,checkboxes:n})&&Km.excludedTextWithCheckbox])},r))};function db({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 hb=Xs(Od,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o,fillHeight:r})=>{const s="padding"+("rtl"===o?"Left":"Right");return{[`&.${Km.fieldRoot}`]:{...db({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}),[s]:i?"8px":void 0}}})),ub=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===ub.ARROW_UP||e===ub.ARROW_DOWN||e===ub.ARROW_LEFT||e===ub.ARROW_RIGHT}),gb=ub;function pb(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function mb(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function fb({containerRef:e,enabled:n}){const[i,o]=(0,t.useState)(!1);return{enabled:n,active:i,innerTabStops:!n||i,blur(t){if(!n)return;o(!1);const i=mb(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),pb(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"),r=t?.querySelector(".value.last-focused"),s=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||r||s||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}}}const bb=e=>+e.getAttribute("data-n"),_b=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},vb=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(),pb(e),o},Cb=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},yb=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:i}=e,o=i.classList.contains("listbox-container"),r=n.closest(".listbox-container"),s=mb(r),a=1===s?.querySelectorAll(".listbox-container").length;if(o||a)t.blur(!0);else{pb(r),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},wb={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"},Ab=function({index:e,rowIndex:n,columnIndex:i,style:o,data:r}){const{onChange:s,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:_,layoutOptions:v={},freqIsAllowed:C,isSingleSelect:y,actions:w,frequencyMax:A="",histogram:S=!1,keyboard:x,showGray:k=!0,showTick:E=!0,columnCount:L=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}=r,{dense:V=!1,dataLayout:z="singleColumn",layoutOrder:H}=v,{itemPadding:j}=M;let U,$;const G={max:null,currentIndex:null};if("number"==typeof n&&"number"==typeof i){"row"===H?(U=n*L+i,G.max=D,G.currentIndex=n):(U=i*D+n,G.max=L,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,Y]=(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 Z=(0,t.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:h,columnIndex:u,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===gb.ARROW_LEFT||e===gb.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:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%i,e<t?n:n-1):(t=s%n,e<i-1?n:t)};let l=e,c=t;if(r===gb.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=s%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:_=!1,metaKey:v=!1}=u;switch(g){case gb.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){_b(e)||Cb(e)||(t?a.focusSelection():yb(c,a));break}a.focusSelection()||Cb(e)||_b(e)||(h.blur(),yb(c,a));break}case gb.SHIFT:f(!0);break;case gb.SPACE:e([bb(h)],!1,c);break;case gb.ARROW_DOWN:case gb.ARROW_RIGHT:d=p(g,h,!0),b&&d&&(m&&(e([bb(h)],!0),f(!1)),e([bb(d)],!0));break;case gb.ARROW_UP:case gb.ARROW_LEFT:d=p(g,h,!1),b&&d&&(m&&(e([bb(h)],!0),f(!1)),e([bb(d)],!0));break;case gb.ENTER:if(i(),void 0===l)return;break;case gb.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case gb.HOME:if(s.setFirst(!0),_){r?.("overflowStart");break}r?.("start");break;case gb.END:if(s.setLast(!0),_){r?.("overflowEnd");break}r?.("end");break;case gb.A:if(_||v){t();break}return;case gb.F:if(_||v){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:x,isModal:P,rowCount:D,columnCount:L,rowIndex:n,columnIndex:i,layoutOrder:H}),[w,x?.innerTabStops,D,L,n,i,H]),X=(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]),Q="S"===X?.qState||"XS"===X?.qState||"L"===X?.qState||"XL"===X?.qState,J=(0,t.useMemo)((()=>(({column:e,histogram:t,cell:n,showGray:i})=>{if(!n)return[];const o=[e?Km.column:Km.row];t||o.push(Km.rowBorderBottom);const r=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?Km.XS:Km.S;break;case"S":case"L":n=Km.S;break;case"A":n=!!t&&Km.A;break;case"X":case"XL":n=!!t&&Km.X;break;default:n=!1}return n}({cell:n,showGray:i});return r&&o.push(r),o})({column:m,histogram:S,cell:X,showGray:k})),[X?.qState,S,V]),ee=(0,t.useCallback)((e=>{e.preventDefault()}),[f]),te=(0,t.useMemo)((()=>X&&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:_,cell:X,textAlign:b})),[_,X,b]);if(!X)return null;const ne="grid"===z&&"column"===H,ie=X?.qText??"";let oe;if(X.qHighlightRanges?.qRanges?.length){const e=X.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];oe=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(ie,e)}const re={alignItems:"center",display:"flex",fontSize:"8px"},se="rtl"===_,ae={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:se?8:f?0:void 0,paddingRight:f?0:se?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Q&&p,de=!f&&Q&&!p,he=!f&&E,ue=f||!E,ge=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:r,showSearch:s}){const a=wb[n],l=e.get(a),c=[];if(i){const t=s?"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,r+1]);return c.unshift(d,h),c.join(". ").trim()}({translator:O,label:ie,qState:X.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:q}),pe=!se&&"right"===te||se&&"left"===te;return t.createElement(cf,{className:Km.barContainer,checkboxes:f,style:$,styles:F,isGridCol:ne,isGridMode:"grid"===z,dense:V,direction:_,sizes:M,frequencyMode:N,freqHitsValue:pe,contentFontStyle:B,"data-testid":"listbox.item"},t.createElement(hb,{role:"row","aria-label":ge,"aria-selected":Q,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:Y,container:!0,dataLayout:z,cellPaddingRight:ue,layoutOrder:H,itemPadding:j,gap:0,className:tf(["value",...J]),classes:{root:Km.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:Z,onTouchStart:h,onTouchEnd:u,onContextMenu:ee,tabIndex:le&&x.innerTabStops?0:-1,"data-n":X?.qElemNumber,direction:_,fillHeight:W},X?.qFrequency&&t.createElement(lb,{qFrequency:X?.qFrequency,histogram:S,checkboxes:f,isSelected:Q,frequencyMax:A}),t.createElement(Od,{item:!0,style:ae,className:tf([Km.cell,Km.selectedCell]),title:`${ie}`},oe?t.createElement(rb,{onChange:s,labels:oe,checkboxes:f,dense:V,showGray:k,qElemNumber:X.qElemNumber,isSelected:Q,cell:X,isGridCol:ne,isSingleSelect:y,valueTextAlign:te,styles:F}):t.createElement(ab,{onChange:s,label:ie,qElemNumber:X.qElemNumber,isSelected:Q,dense:V,cell:X,isGridCol:ne,showGray:k,isSingleSelect:y,checkboxes:f,valueTextAlign:te,styles:F})),C&&t.createElement(cb,{cell:X,checkboxes:f,dense:V,showGray:k}),he&&t.createElement(Od,{item:!0,className:Km.icon},ce&&t.createElement(Up,{style:re,size:"small"}),de&&t.createElement(Qm,{style:re,size:"small"}))))};var Sb=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xb(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||Sb(i)&&Sb(o)))return!1;var i,o;return!0}const kb=function(e,t){var n;void 0===t&&(t=xb);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Eb="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Lb(e){cancelAnimationFrame(e.id)}function Db(e,t){var n=Eb(),i={id:requestAnimationFrame((function o(){Eb()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var Ib=-1;function Nb(e){if(void 0===e&&(e=!1),-1===Ib||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Ib=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ib}var Rb=null;function Tb(e){if(void 0===e&&(e=!1),null===Rb||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?Rb="positive-descending":(t.scrollLeft=1,Rb=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Rb}return Rb}var Mb=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ob(e){var n,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=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,Bc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Bc(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=kb((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=kb((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.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:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=kb((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(Tb()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"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&&Lb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Db(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Wc(n,e),n.getDerivedStateFromProps=function(e,t){return qb(e,t),b(e),null};var _=n.prototype;return _.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)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,h=r.height,u=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,b=Nb();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,u-1)));var _=a(this.props,this._instanceProps),v=l(this.props,this._instanceProps)>g?b:0,C=_>h?b:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,v):f})},_.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()},_.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(Tb()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lb(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,n=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,h=e.innerTagName,u=e.itemData,g=e.itemKey,p=void 0===g?Mb:g,m=e.outerElementType,f=e.outerTagName,b=e.rowCount,_=e.style,v=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),A=w[0],S=w[1],x=this._getVerticalRangeToRender(),k=x[0],E=x[1],L=[];if(o>0&&b)for(var D=k;D<=E;D++)for(var I=A;I<=S;I++)L.push((0,t.createElement)(n,{columnIndex:I,data:u,isScrolling:v?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:rn({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,t.createElement)(d||h||"div",{children:L,ref:c,style:{height:N,pointerEvents:y?"none":void 0,width:R}}))},_._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 r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),h=d[0],u=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,h,u,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,b=m.scrollLeft,_=m.scrollTop,v=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(b,_,f,C,v)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,h=l.scrollLeft,u=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,h,this._instanceProps),p=r(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]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)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(r-1,u+f)),h,u]},n}(t.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var qb=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Pb=function(e,t){return e};function Bb(e){var n,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=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,Bc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Bc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=kb((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=kb((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,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var h=i(n.props,e,n._instanceProps),u=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,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=kb((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(Tb()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<s?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,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&&Lb(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Db(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Wc(n,e),n.getDerivedStateFromProps=function(e,t){return Fb(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,r=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?Nb():0:l.scrollHeight>l.clientHeight?Nb():0}this.scrollTo(s(this.props,e,t,r,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 r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Tb()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Lb(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,n=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,h=e.itemData,u=e.itemKey,g=void 0===u?Pb:u,p=e.layout,m=e.outerElementType,f=e.outerTagName,b=e.style,_=e.useIsScrolling,v=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,A=this._getRangeToRender(),S=A[0],x=A[1],k=[];if(d>0)for(var E=S;E<=x;E++)k.push((0,t.createElement)(n,{data:h,key:g(E,h),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var L=o(this.props,this._instanceProps);return(0,t.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:rn({position:"relative",height:s,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},b)},(0,t.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":L,pointerEvents:C?"none":void 0,width:y?L:"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 r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},u._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),h=o&&"backward"!==r?1:Math.max(1,n),u=o&&"forward"!==r?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 Fb=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Wb=Ob({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,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),h=Math.max(0,t*a-l+r+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,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),h=Math.max(0,t*s-a+r+s);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,r=e.width,s=t*i,a=Math.ceil((r+n-s)/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,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Vb=Bb({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,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,h=e.width,u="horizontal"===s||"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+r);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,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,h=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+h-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const zb="#BBB",Hb="#f1f1f1",jb="ListBox-styledScrollbars";function Ub({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,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)(s,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||r.state.show;r.set(p)}function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$b.apply(null,arguments)}const{StyledFixedSizeList:Gb,StyledFixedSizeGrid:Kb}=function(){const e=e=>({scrollbarColor:`${zb} ${Hb}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Hb},"&::-webkit-scrollbar-thumb":{backgroundColor:zb,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Ui(Vb,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${jb}`]:e(t)}))),StyledFixedSizeGrid:Ui(Wb,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${jb}`]:e(t)})))}}(),Yb=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 Zb(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Xb({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[Qb,Jb]=Rp({});function e_(e){const t=`${e.id}`,[n]=Qb();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function t_(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n_(e){return e instanceof t_(e).Element||e instanceof Element}function i_(e){return e instanceof t_(e).HTMLElement||e instanceof HTMLElement}function o_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t_(e).ShadowRoot||e instanceof ShadowRoot)}var r_=Math.max,s_=Math.min,a_=Math.round;function l_(){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 c_(){return!/^((?!chrome|android).)*safari/i.test(l_())}function d_(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&i_(e)&&(o=e.offsetWidth>0&&a_(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&a_(i.height)/e.offsetHeight||1);var s=(n_(e)?t_(e):window).visualViewport,a=!c_()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,h=i.height/r;return{width:d,height:h,top:c,right:l+d,bottom:c+h,left:l,x:l,y:c}}function h_(e){var t=t_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function u_(e){return e?(e.nodeName||"").toLowerCase():null}function g_(e){return((n_(e)?e.ownerDocument:e.document)||window.document).documentElement}function p_(e){return d_(g_(e)).left+h_(e).scrollLeft}function m_(e){return t_(e).getComputedStyle(e)}function f_(e){var t=m_(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function b_(e,t,n){void 0===n&&(n=!1);var i=i_(t),o=i_(t)&&function(e){var t=e.getBoundingClientRect(),n=a_(t.width)/e.offsetWidth||1,i=a_(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),r=g_(t),s=d_(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==u_(t)||f_(r))&&(a=function(e){return e!==t_(e)&&i_(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:h_(e);var t}(t)),i_(t)?((l=d_(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=p_(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function __(e){var t=d_(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 v_(e){return"html"===u_(e)?e:e.assignedSlot||e.parentNode||(o_(e)?e.host:null)||g_(e)}function C_(e){return["html","body","#document"].indexOf(u_(e))>=0?e.ownerDocument.body:i_(e)&&f_(e)?e:C_(v_(e))}function y_(e,t){var n;void 0===t&&(t=[]);var i=C_(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=t_(i),s=o?[r].concat(r.visualViewport||[],f_(i)?i:[]):i,a=t.concat(s);return o?a:a.concat(y_(v_(s)))}function w_(e){return["table","td","th"].indexOf(u_(e))>=0}function A_(e){return i_(e)&&"fixed"!==m_(e).position?e.offsetParent:null}function S_(e){for(var t=t_(e),n=A_(e);n&&w_(n)&&"static"===m_(n).position;)n=A_(n);return n&&("html"===u_(n)||"body"===u_(n)&&"static"===m_(n).position)?t:n||function(e){var t=/firefox/i.test(l_());if(/Trident/i.test(l_())&&i_(e)&&"fixed"===m_(e).position)return null;var n=v_(e);for(o_(n)&&(n=n.host);i_(n)&&["html","body"].indexOf(u_(n))<0;){var i=m_(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 x_="top",k_="bottom",E_="right",L_="left",D_="auto",I_=[x_,k_,E_,L_],N_="start",R_="end",T_="viewport",M_="popper",O_=I_.reduce((function(e,t){return e.concat([t+"-"+N_,t+"-"+R_])}),[]),q_=[].concat(I_,[D_]).reduce((function(e,t){return e.concat([t,t+"-"+N_,t+"-"+R_])}),[]),P_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B_(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 F_(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var W_={placement:"bottom",modifiers:[],strategy:"absolute"};function V_(){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 z_(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?W_:o;return function(e,t,n){void 0===n&&(n=r);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},W_,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},r,o.options,a),o.scrollParents={reference:n_(e)?y_(e):e.contextElement?y_(e.contextElement):[],popper:y_(t)};var d,h,u=function(e){var t=B_(e);return P_.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,r=e.effect;if("function"==typeof r){var a=r({state:o,name:t,instance:l,options:i});s.push(a||function(){})}})),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(V_(t,n)){o.rects={reference:b_(t,S_(n),"fixed"===o.options.strategy),popper:__(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 r=o.orderedModifiers[i],s=r.fn,c=r.options,d=void 0===c?{}:c,h=r.name;"function"==typeof s&&(o=s({state:o,options:d,name:h,instance:l})||o)}else o.reset=!1,i=-1}}},update:F_((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),a=!0}};if(!V_(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var H_={passive:!0};function j_(e){return e.split("-")[0]}function U_(e){return e.split("-")[1]}function $_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G_(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?j_(o):null,s=o?U_(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case x_:t={x:a,y:n.y-i.height};break;case k_:t={x:a,y:n.y+n.height};break;case E_:t={x:n.x+n.width,y:l};break;case L_:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?$_(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case N_:t[c]=t[c]-(n[d]/2-i[d]/2);break;case R_:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var K_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y_(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=s.x,g=void 0===u?0:u,p=s.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=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),v=L_,C=x_,y=window;if(c){var w=S_(n),A="clientHeight",S="clientWidth";w===t_(n)&&"static"!==m_(w=g_(n)).position&&"absolute"===a&&(A="scrollHeight",S="scrollWidth"),(o===x_||(o===L_||o===E_)&&r===R_)&&(C=k_,m-=(h&&w===y&&y.visualViewport?y.visualViewport.height:w[A])-i.height,m*=l?1:-1),o!==L_&&(o!==x_&&o!==k_||r!==R_)||(v=E_,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&&K_),E=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:a_(n*o)/o||0,y:a_(i*o)/o||0}}({x:g,y:m},t_(n)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((x={})[C]=_?"0":"",x[v]=b?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[C]=_?m+"px":"",t[v]=b?g+"px":"",t.transform="",t))}var Z_={left:"right",right:"left",bottom:"top",top:"bottom"};function X_(e){return e.replace(/left|right|bottom|top/g,(function(e){return Z_[e]}))}var Q_={start:"end",end:"start"};function J_(e){return e.replace(/start|end/g,(function(e){return Q_[e]}))}function ev(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o_(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nv(e,t,n){return t===T_?tv(function(e,t){var n=t_(e),i=g_(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=c_();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+p_(e),y:l}}(e,n)):n_(t)?function(e,t){var n=d_(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):tv(function(e){var t,n=g_(e),i=h_(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=r_(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=r_(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+p_(e),l=-i.scrollTop;return"rtl"===m_(o||n).direction&&(a+=r_(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(g_(e)))}function iv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ov(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function rv(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?T_:c,h=n.elementContext,u=void 0===h?M_:h,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,b=iv("number"!=typeof f?f:ov(f,I_)),_=u===M_?"reference":M_,v=e.rects.popper,C=e.elements[p?_:u],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=y_(v_(e)),n=["absolute","fixed"].indexOf(m_(e).position)>=0&&i_(e)?S_(e):e;return n_(n)?t.filter((function(e){return n_(e)&&ev(e,n)&&"body"!==u_(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(t,n){var o=nv(e,n,i);return t.top=r_(o.top,t.top),t.right=s_(o.right,t.right),t.bottom=s_(o.bottom,t.bottom),t.left=r_(o.left,t.left),t}),nv(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(n_(C)?C:C.contextElement||g_(e.elements.popper),l,d,s),w=d_(e.elements.reference),A=G_({reference:w,element:v,strategy:"absolute",placement:o}),S=tv(Object.assign({},v,A)),x=u===M_?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},E=e.modifiersData.offset;if(u===M_&&E){var L=E[o];Object.keys(k).forEach((function(e){var t=[E_,k_].indexOf(e)>=0?1:-1,n=[x_,k_].indexOf(e)>=0?"y":"x";k[e]+=L[n]*t}))}return k}const sv={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,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,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=j_(f),_=l||(b!==f&&p?function(e){if(j_(e)===D_)return[];var t=X_(e);return[J_(e),t,J_(t)]}(f):[X_(f)]),v=[f].concat(_).reduce((function(e,n){return e.concat(j_(n)===D_?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q_:l,d=U_(i),h=d?a?O_:O_.filter((function(e){return U_(e)===d})):I_,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]=rv(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[j_(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)}),[]),C=t.rects.reference,y=t.rects.popper,w=new Map,A=!0,S=v[0],x=0;x<v.length;x++){var k=v[x],E=j_(k),L=U_(k)===N_,D=[x_,k_].indexOf(E)>=0,I=D?"width":"height",N=rv(t,{placement:k,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),R=D?L?E_:L_:L?k_:x_;C[I]>y[I]&&(R=X_(R));var T=X_(R),M=[];if(r&&M.push(N[E]<=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=v.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 av(e,t,n){return r_(e,s_(t,n))}const lv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,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=rv(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),b=j_(t.placement),_=U_(t.placement),v=!_,C=$_(b),y="x"===C?"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),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(r){var D,I="y"===C?x_:L_,N="y"===C?k_:E_,R="y"===C?"height":"width",T=w[C],M=T+f[I],O=T-f[N],q=g?-S[R]/2:0,P=_===N_?A[R]:S[R],B=_===N_?-S[R]:-A[R],F=t.elements.arrow,W=g&&F?__(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[I],H=V[N],j=av(0,A[R],W[R]),U=v?A[R]/2-q-j-z-k.mainAxis:P-j-z-k.mainAxis,$=v?-A[R]/2+q+j+H+k.mainAxis:B+j+H+k.mainAxis,G=t.elements.arrow&&S_(t.elements.arrow),K=G?"y"===C?G.clientTop||0:G.clientLeft||0:0,Y=null!=(D=null==E?void 0:E[C])?D:0,Z=T+$-Y,X=av(g?s_(M,T+U-Y-K):M,T,g?r_(O,Z):O);w[C]=X,L[C]=X-T}if(a){var Q,J="x"===C?x_:L_,ee="x"===C?k_:E_,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[x_,L_].indexOf(b),se=null!=(Q=null==E?void 0:E[y])?Q:0,ae=re?ie:te-A[ne]-S[ne]-se+k.altAxis,le=re?te+A[ne]+S[ne]-se-k.altAxis:oe,ce=g&&re?function(e,t,n){var i=av(e,t,n);return i>n?n:i}(ae,te,le):av(g?ae:ie,te,g?le:oe);w[y]=ce,L[y]=ce-te}t.modifiersData[i]=L}},requiresIfExists:["offset"]},cv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=j_(n.placement),l=$_(a),c=[L_,E_].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return iv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ov(e,I_))}(o.padding,n),h=__(r),u="y"===l?x_:L_,g="y"===l?k_:E_,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=S_(r),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,v=d[u],C=b-h[c]-d[g],y=b/2-h[c]/2+_,w=av(v,y,C),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)))&&ev(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dv(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 hv(e){return[x_,E_,k_,L_].some((function(t){return e[t]>=0}))}var uv=z_({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,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=t_(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,H_)})),a&&l.addEventListener("resize",n.update,H_),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H_)})),a&&l.removeEventListener("resize",n.update,H_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G_({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,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:j_(t.placement),variation:U_(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,Y_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y_(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];i_(o)&&u_(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]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i_(i)&&u_(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=q_.reduce((function(e,n){return e[n]=function(e,t,n){var i=j_(e),o=[L_,x_].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[L_,E_].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e}),{}),a=s[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]=s}},sv,lv,cv,{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,r=t.modifiersData.preventOverflow,s=rv(t,{elementContext:"reference"}),a=rv(t,{altBoundary:!0}),l=dv(s,i),c=dv(a,o,r),d=hv(l),h=hv(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 gv(e){return sa("MuiPopper",e)}function pv(e){return"function"==typeof e?e():e}aa("MuiPopper",["root"]);const mv={},fv=t.forwardRef((function(e,n){const{anchorEl:i,children:o,direction:r,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:h,slotProps:u={},slots:g={},TransitionProps:p,ownerState:m,...f}=e,b=t.useRef(null),_=lc(b,n),v=t.useRef(null),C=lc(v,h),y=t.useRef(C);Ia((()=>{y.current=C}),[C]),t.useImperativeHandle(h,(()=>v.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,r),[A,S]=t.useState(w),[x,k]=t.useState(pv(i));t.useEffect((()=>{v.current&&v.current.forceUpdate()})),t.useEffect((()=>{i&&k(pv(i))}),[i]),Ia((()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{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=uv(x,b.current,{placement:w,...d,modifiers:e});return y.current(t),()=>{t.destroy(),y.current(null)}}),[x,s,a,l,d,w]);const E={placement:A};null!==p&&(E.TransitionProps=p);const L=(e=>{const{classes:t}=e;return tn({root:["root"]},gv,t)})(e),D=g.root??"div",I=Bh({elementType:D,externalSlotProps:u.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:L.root});return(0,Js.jsx)(D,{...I,children:"function"==typeof o?o(E):o})})),bv=Xs(t.forwardRef((function(e,n){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:u=mv,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:b={},..._}=e,[v,C]=t.useState(!0);if(!l&&!d&&(!m||v))return null;let y;if(r)y=r;else if(i){const e=pv(i);y=e&&void 0!==e.nodeType?zh(e).body:zh(null).body}const w=d||!l||m&&!v?void 0:"none",A=m?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,Js.jsx)(rm,{disablePortal:a,container:y,children:(0,Js.jsx)(fv,{anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!v:d,placement:h,popperOptions:u,popperRef:g,slotProps:f,slots:b,..._,style:{position:"fixed",top:0,left:0,display:w,...p},TransitionProps:A,children:o})})})),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_v=t.forwardRef((function(e,t){const n=La(),i=na({props:e,name:"MuiPopper"}),{anchorEl:o,component:r,components:s,componentsProps:a,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,slots:b,slotProps:_,...v}=i,C=b?.root??s?.Root,y={anchorEl:o,container:l,disablePortal:c,keepMounted:d,modifiers:h,open:u,placement:g,popperOptions:p,popperRef:m,transition:f,...v};return(0,Js.jsx)(bv,{as:r,direction:n?"rtl":"ltr",slots:{root:C},slotProps:_??a,...y,ref:t})}));function vv(e){return sa("MuiTooltip",e)}const Cv=aa("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),yv=Xs(_v,{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]}})(ql((({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"] .${Cv.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cv.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cv.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Cv.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Cv.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Cv.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Cv.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Cv.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),wv=Xs("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${va(n.placement.split("-")[0])}`]]}})(ql((({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ar(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,[`.${Cv.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Cv.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Cv.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:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Cv.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Cv.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Cv.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Cv.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t}))),Av=Xs("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(ql((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ar(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let Sv=!1;const xv=new Yc;let kv={x:0,y:0};function Ev(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const Lv=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:r,classes:s,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:_,leaveDelay:v=0,leaveTouchDelay:C=1500,onClose:y,onOpen:w,open:A,placement:S="bottom",PopperComponent:x,PopperProps:k={},slotProps:E={},slots:L={},title:D,TransitionComponent:I,TransitionProps:N,...R}=i,T=t.isValidElement(r)?r:(0,Js.jsx)("span",{children:r}),M=wa(),O=La(),[q,P]=t.useState(),[B,F]=t.useState(null),W=t.useRef(!1),V=u||b,z=Zc(),H=Zc(),j=Zc(),U=Zc(),[$,G]=ff({controlled:A,default:!1,name:"Tooltip",state:"open"});let K=$;const Y=Lc(_),Z=t.useRef(),X=Tc((()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),U.clear()}));t.useEffect((()=>X),[X]);const Q=e=>{xv.clear(),Sv=!0,G(!0),w&&!K&&w(e)},J=Tc((e=>{xv.start(800+v,(()=>{Sv=!1})),G(!1),y&&K&&y(e),z.start(M.transitions.duration.shortest,(()=>{W.current=!1}))})),ee=e=>{W.current&&"touchstart"!==e.type||(q&&q.removeAttribute("title"),H.clear(),j.clear(),p||Sv&&m?H.start(Sv?m:p,(()=>{Q(e)})):Q(e))},te=e=>{H.clear(),j.start(v,(()=>{J(e)}))},[,ne]=t.useState(!1),ie=e=>{Ic(e.target)||(ne(!1),te(e))},oe=e=>{q||P(e.currentTarget),Ic(e.target)&&(ne(!0),ee(e))},re=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 se=Nc(Kp(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?Y:null):(le["aria-label"]=ce?D:null,le["aria-labelledby"]=K&&!ce?Y:null);const de={...le,...R,...T.props,className:en(R.className,T.props.className),onTouchStart:re,ref:se,...b?{onMouseMove:e=>{const t=T.props;t.onMouseMove&&t.onMouseMove(e),kv={x:e.clientX,y:e.clientY},ae.current&&ae.current.update()}}:{}},he={};g||(de.onTouchStart=e=>{re(e),j.clear(),z.clear(),X(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(f,(()=>{document.body.style.WebkitUserSelect=Z.current,ee(e)}))},de.onTouchEnd=e=>{T.props.onTouchEnd&&T.props.onTouchEnd(e),X(),j.start(C,(()=>{J(e)}))}),h||(de.onMouseOver=Ev(ee,de.onMouseOver),de.onMouseLeave=Ev(te,de.onMouseLeave),V||(he.onMouseOver=ee,he.onMouseLeave=te)),d||(de.onFocus=Ev(oe,de.onFocus),de.onBlur=Ev(ie,de.onBlur),V||(he.onFocus=oe,he.onBlur=ie));const ue={...i,isRtl:O,arrow:o,disableInteractive:V,placement:S,PopperComponentProp:x,touch:W.current},ge="function"==typeof E.popper?E.popper(ue):E.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:r}=e;return tn({popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${va(r.split("-")[0])}`],arrow:["arrow"]},vv,t)})(ue),fe="function"==typeof E.transition?E.transition(ue):E.transition,be={slots:{popper:a.Popper,transition:a.Transition??I,tooltip:a.Tooltip,arrow:a.Arrow,...L},slotProps:{arrow:E.arrow??l.arrow,popper:{...k,...ge??l.popper},tooltip:E.tooltip??l.tooltip,transition:{...N,...fe??l.transition}}},[_e,ve]=pc("popper",{elementType:yv,externalForwardedProps:be,ownerState:ue,className:en(me.popper,k?.className)}),[Ce,ye]=pc("transition",{elementType:Jp,externalForwardedProps:be,ownerState:ue}),[we,Ae]=pc("tooltip",{elementType:wv,className:me.tooltip,externalForwardedProps:be,ownerState:ue}),[Se,xe]=pc("arrow",{elementType:Av,className:me.arrow,externalForwardedProps:be,ownerState:ue,ref:F});return(0,Js.jsxs)(t.Fragment,{children:[t.cloneElement(T,de),(0,Js.jsx)(_e,{as:x??_v,placement:S,anchorEl:b?{getBoundingClientRect:()=>({top:kv.y,left:kv.x,right:kv.x,bottom:kv.y,width:0,height:0})}:q,popperRef:ae,open:!!q&&K,id:Y,transition:!0,...he,...ve,popperOptions:pe,children:({TransitionProps:e})=>(0,Js.jsx)(Ce,{timeout:M.transitions.duration.shorter,...e,...ye,children:(0,Js.jsxs)(we,{...Ae,children:[D,o?(0,Js.jsx)(Se,{...xe}):null]})})})]})})),Dv=Lv,Iv=Xs(jd,{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 Nv({width:e,text:n,dense:i,tooltip:o}){const{translator:r}=(0,t.useContext)(Dp);return t.createElement(Dv,{title:o?r.get(n):""},t.createElement(Iv,{width:e,dense:i,component:"div",variant:"body1",py:"12px"},r.get(n)))}const Rv=Zl((0,Js.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Tv=Xs(Dm)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),Mv=Xs("div")((()=>({paddingLeft:"6px",flexGrow:1}))),Ov=Xs("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),qv=Xs(Rv)((()=>({fontSize:"14px"})));function Pv({text:e,dismiss:n,dense:i,parentWidth:o=0}){const r="function"==typeof n,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return t.createElement(Tv,{left:a,style:{maxWidth:s}},t.createElement(Mv,null,t.createElement(Nv,{text:e,dense:i,width:l,tooltip:c})),t.createElement(Ov,{dense:i},r&&t.createElement(kd,{"aria-label":"close",onClick:()=>n()},t.createElement(qv,null))))}function Bv({itemWidth:e,layout:t,frequencyMode:n}){const i=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["N",void 0].includes(n);return!(!i||!r&&!o)}const Fv=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Wv=e=>{const t=Fv(e);return`Max(AGGR(Count(${t}), ${t}))`},Vv=Xs("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function zv({model:e,app:n,constraints:i,layout:o,selections:r,selectionState:s,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:_,keyScroll:v={state:{},reset:()=>{}},currentScrollIndex:C={set:()=>{}},renderedCallback:y,onCtrlF:w,showSearch:A,isModal:S,styles:x}){const{translator:k}=(0,t.useContext)(Dp),[E,L]=(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,r]=(0,t.useState)(),[s,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=Wv(i);return(await t.evaluateEx(o)).qNumber})(n,e);r(t),a(!1)})()}),[i&&n]),{frequencyMax:i?o:n?.frequencyMax,awaitingFrequencyMax:s}})(n,o),{isLoadingData:P,...B}=function({local:e,loaderRef:n,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,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],r=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=s?s(n):n;e.current.validPages=!0,a.current.pages=i,h(i),c(!1),t()}));o&&o(r)}),g?r: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}=e_(e),V=(0,t.useCallback)(B.loadMoreItems,[o]),[z,H]=(0,t.useState)({show:!1,dismissed:!1}),[j,U]=(0,t.useState)([]);B?.pages&&s.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:Y}=function({selectionState:e,selections:n,checkboxes:i=!1,doc:o=document,loaderRef:r}){const s=(0,t.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,t.useEffect)((()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=r.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)}}),[r.current?._listRef?._outerRef]);const a=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),$m({selections:n,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.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 Um(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}=s.current;if(n===t)return;const i=l(s.current.startElemNumber,t);e.updateItems(i,!0,s.current.elemNumbers)},d=(0,t.useCallback)((t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&Zm(t.nativeEvent);s.current.elemNumbers=[n],s.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),s.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&&Zm(t);s.current.isRange=!1,s.current.startElemNumber=n,s.current.elemNumbers=[n],s.current.toggle=i,s.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(s.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&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,t.useCallback)((e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())}),[]),p=(0,t.useCallback)((t=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,e.isSelected(s.current.startElemNumber)||(e.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)}),[]),m=(0,t.useCallback)((t=>{if(s.current.active||s.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(Ym)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(Ym)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(s.current.active=!0,l(n,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[n,i])}),[]),f=(0,t.useCallback)((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,c(t),s.current.touchElemNumbers=[],s.current.active=!1,s.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 r=!e.isSingleSelect&&Zm(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(t,i,s),e.setSelectableValuesUpdating(),$m({selections:n,elemNumbers:i?s:t,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:I,doc:document,loaderRef:R}),{layoutOptions:Z={}}=o||{};let X=!0;Z.dataLayout&&(X="singleColumn"===Z.dataLayout||"row"===Z?.layoutOrder);const Q="grid"===Z?.dataLayout,J=e=>{const t={...X?{rowIndex:e}:{columnIndex:e}},n=Q?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"===v.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&v.reset());T.current.dataOffset=0,J(0)}};u&&u.call(null,ee),(0,t.useEffect)((()=>{_&&!E&&R.current&&(R.current._listRef.scrollToItem(_.initScrollPos),L(!0))}),[R.current]),(0,t.useEffect)((()=>{ee()}),[o,T.current.dataOffset]);let te=100;const ne="grid"!==Z.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:Z,model:e});let re=Bv({itemWidth:d,layout:o,frequencyMode:h});const se=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:r,checkboxes:s,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=Yb({text:Zb(e),font:f}),_=Yb({text:Zb(5),font:f}),v=Yb({text:Zb(8),font:f}),C=r?_:0,y=s?20:0;let w=56+C+y;!s&&w>=80&&(w+=20);let A,S,x,k,E=b+18+C+y;!s&&E>=80&&(E+=20),E=Math.min(150,Math.max(E,w));const L=Xb({isGridMode:"grid"===g,dense:u}),D=n??8*L;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 r=e?.maxColumns||3,s=n-10;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,i))));a=!1!==e?.auto?l:Math.min(t,r,l),a=Math.max(a,1);const c=s/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:h,listCount:i,containerWidth:e,columnAutoWidth:E,itemMinWidth:w}))):(A={overflowY:"hidden"},({rowCount:k,columnWidth:x,columnCount:S}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){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,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:L,listCount:i,listHeight:D,columnAutoWidth:E,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:L,listHeight:D,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(i,R),maxCount:{row:I,column:N},itemPadding:4,textWidth:b,freqMinWidth:_,freqMaxWidth:v}}({layout:o,width:d,height:c,listCount:oe,count:ie,freqIsAllowed:re,checkboxes:I,styles:x});ae.columnWidth&&(re=Bv({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)(Dp),r=[];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]);r.push(t)}const s=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});r.push(s);const a=r.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 r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:X,sizes:ae,layout:o,offset:T.current.dataOffset});T.current.dataOffset=n,i&&s.triggerStateChanged(),J(t)};(0,t.useEffect)((()=>{const e=v.state;e.up?J(C.state.start-e.up):e.down?J(C.state.stop+e.down):e.scrollPosition&&he(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&v.reset()}),[v.state.up,v.state.down,v.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:n,checkboxes:i,local:o,isVertical:r,pages:s,selectionState:a,interactionEvents:l,deducedFrequencyMode:c,histogram:d,isSingleSelect:h,select:u,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:b,showGray:_,scrollState:v,direction:C,sizes:y,listCount:w,overflowDisclaimer:A,setScrollPosition:S,focusListItems:x,setCurrentScrollIndex:k,constraints:E,frequencyMax:L,freqIsAllowed:D,translator:I,showSearch:N,isModal:R,styles:T}){const{layoutOptions:M={}}=e||{},{columnWidth:O,listHeight:q,itemHeight:P,rowCount:B,columnCount:F}=y||{},W=("grid"===M.dataLayout?O:n)>80,V={direction:"rtl"===C?"rtl":"ltr",useIsScrolling:!0,className:jb},z=e?.qListObject.qDimensionInfo.qLocked,H=q<=P,j={isLocked:z,column:!r,pages:s,...z||a.selectDisabled()?{}:l,checkboxes:i,layoutOptions:M,deducedFrequencyMode:c,freqIsAllowed:D,isSingleSelect:h,textAlign:m,sizes:y,actions:{select:u,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:S,selectAll:g,onCtrlF:p},frequencyMax:L,histogram:d,keyboard:b,showGray:_,showTick:W,dataOffset:o.current.dataOffset,focusListItems:x,direction:C,translator:I,showSearch:N,isModal:R,styles:T,fillHeight:H};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,t.createElement(Gb,$b({},V,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:q,width:n,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),Ub({renderProps:t,layoutOptions:M,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:A,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),Ab)),Grid:({onItemsRendered:i,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=y,{layoutOrder:l}=M||{},c=Math.min(q,B*P+a);return o.current.listRef=r,t.createElement(Kb,$b({},V,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:n,columnCount:F,columnWidth:O,rowCount:B,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:F,rowCount:B},onItemsRendered:t=>{const n="row"===l;k({start:n?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:n?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,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=s,g=c*o,p=a):(h=l,u=s*r,g=c,p=a*r),{visibleStartIndex:h+u,visibleStopIndex:g+p}}({renderProps:t,scrollState:v,layoutOrder:l,rowCount:B,columnCount:F});Ub({renderProps:t,layoutOptions:M,maxCount:y.maxCount,columnCount:F,rowCount:B,overflowDisclaimer:A,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(r)},ref:r}),Ab)}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,deducedFrequencyMode:se,histogram:N,keyboard:f,showGray:b,interactionEvents:K,select:Y,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:ue,isVertical:ne,pages:j,selectionState:s,isSingleSelect:D,selections:r,scrollState:_,local:T,sizes:ae,listCount:le,overflowDisclaimer:{state:z,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:C.set,constraints:i,frequencyMax:O,freqIsAllowed:re,translator:k,showSearch:A,isModal:S,styles:x}),{columnWidth:be,listHeight:_e,itemHeight:ve}=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:_e,itemHeight:ve})),t.createElement(Vv,null,t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},de),!le&&$>0&&t.createElement(Nv,{width:d,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Hm,{isItemLoaded:G,itemCount:le||1,loadMoreItems:V.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:R,role:"grid"},ne?me:fe),z.show&&!z.dismissed&&t.createElement(Pv,{text:"Listbox.ItemsOverflow",dismiss:()=>H((e=>({...e,dismissed:!0}))),parentWidth:R?.current?._listRef?.props?.width,dense:Z?.dense}))}const Hv=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"}}]}),jv=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"}}]}),Uv=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"}}]}),$v=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"}}]}),Gv=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1,selections:r})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const s="/qListObjectDef",a=()=>{r.isActive()||r.begin(s)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:Hv,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAll(s)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:Uv,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectPossible(s)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:jv,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectAlternative(s)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:$v,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{a(),i.clearItemStates(!1),t.selectListObjectExcluded(s)}}].filter(Boolean)};function Kv(e){return sa("MuiDivider",e)}const Yv=aa("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zv=Xs("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]}})(ql((({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.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ar(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%"}}}]})))),Xv=Xs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(ql((({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)`}}]})))),Qv=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,orientation:s="horizontal",component:a=(o||"vertical"===s?"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:s,role:d,textAlign:h,variant:u},m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e;return tn({root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},Kv,i)})(p);return(0,Js.jsx)(Zv,{as:a,className:en(m.root,r),role:d,ref:t,ownerState:p,"aria-orientation":"separator"!==d||"hr"===a&&"vertical"!==s?void 0:s,...g,children:o?(0,Js.jsx)(Xv,{className:m.wrapper,ownerState:p,children:o}):null})}));Qv&&(Qv.muiSkipListHighlight=!0);const Jv=Qv,eC=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 tC(e){const t=wa(),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}}const nC={className:"njs-cell-action"},iC=t.forwardRef((({ariaExpanded:e=!1,item:n,addAnchor:i=!1},o)=>{const r=wa(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=tC(n);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),h=n.keyboardAction||n.action,u=h?e=>["Enter"].includes(e.key)&&h():null,g=h?e=>[" ","Spacebar"].includes(e.key)&&h():null,p=`actions-toolbar-${n.key}`;return t.createElement(kd,{ref:i?null:o,title:n.label,onClick:n.action,onKeyDown:u,onKeyUp:g,disabled:a,style:l,className:[nC.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":n.label,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&_h(n.getSvgIconShape()),i&&t.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),oC=iC,rC=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"}}]}),sC=e=>_h(rC(e)),aC=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"}}]}),lC=e=>_h(aC(e));function cC(e){return sa("MuiListItemIcon",e)}const dC=aa("MuiListItemIcon",["root","alignItemsFlexStart"]);function hC(e){return sa("MuiMenuItem",e)}const uC=aa("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gC=Xs(dd,{shouldForwardProp:e=>Zs(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]}})(ql((({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"}},[`&.${uC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yv.inset}`]:{marginLeft:52},[`& .${Rh.root}`]:{marginTop:0,marginBottom:0},[`& .${Rh.inset}`]:{paddingLeft:36},[`& .${dC.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,[`& .${dC.root} svg`]:{fontSize:"1.25rem"}}}]})))),pC=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:u,...g}=i,p=t.useContext(Ch),m=t.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=t.useRef(null);xh((()=>{o&&f.current&&f.current.focus()}),[o]);const b={...i,dense:m.dense,divider:a,disableGutters:l},_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a=tn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},hC,s);return{...s,...a}})(i),v=Nc(f,n);let C;return i.disabled||(C=void 0!==h?h:-1),(0,Js.jsx)(Ch.Provider,{value:m,children:(0,Js.jsx)(gC,{ref:v,role:d,tabIndex:C,component:r,focusVisibleClassName:en(_.focusVisible,c),className:en(_.root,u),...g,ownerState:b,classes:_})})})),mC=pC,fC=Xs("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(ql((({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]})))),bC=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemIcon"}),{className:o,...r}=i,s=t.useContext(Ch),a={...i,alignItems:s.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return tn({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cC,n)})(a);return(0,Js.jsx)(fC,{className:en(l.root,o),ownerState:a,ref:n,...r})})),_C=bC,vC=pm;function CC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function yC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function wC(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 AC(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&wC(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const SC=t.forwardRef((function(e,n){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,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});xh((()=>{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=`${vC(jh(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=Nc(g,n);let f=-1;t.Children.forEach(s,((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>=s.length&&(f=-1))):f===n&&(f+=1,f>=s.length&&(f=-1))}));const b=t.Children.map(s,((e,n)=>{if(n===f){const n={};return r&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),t.cloneElement(e,n)}return e}));return(0,Js.jsx)(Sh,{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=tu(t).activeElement;if("ArrowDown"===n)e.preventDefault(),AC(t,i,c,l,CC);else if("ArrowUp"===n)e.preventDefault(),AC(t,i,c,l,yC);else if("Home"===n)e.preventDefault(),AC(t,null,c,l,CC);else if("End"===n)e.preventDefault(),AC(t,null,c,l,yC);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&wC(i,o);o.previousKeyMatched&&(a||AC(t,i,!1,l,CC,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1,...u,children:b})})),xC=SC;function kC(){return kC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kC.apply(null,arguments)}const EC="More-icon",LC=Xs(Fm)((({theme:e})=>({pointerEvents:"none",[`& .${EC} *`]:{color:e.palette.text.primary}})));function DC({item:e,autoFocus:n,onActionClick:i=()=>{}}){const{hidden:o,disabled:r,hasSvgIconShape:s}=tC(e);return o?null:t.createElement(mC,{autoFocus:n,title:e.label,onClick:()=>{e.action(),i()},disabled:r,tabindex:"0"},s&&t.createElement(_C,{className:EC},_h(e.getSvgIconShape())),t.createElement(jd,{noWrap:!0},e.label))}const IC=t.forwardRef((({actions:e=[],show:n=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=()=>{},disablePortal:a=!0},l)=>{const c=e.length>0,d=e.findIndex((e=>!e.disabled));return c&&t.createElement(LC,kC({},o,{onClose:s,ref:l,open:n,anchorEl:i.current,getContentAnchorEl:a?null:void 0,container:a?i.current:void 0,disablePortal:a,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(xC,{id:"moreMenuList"},e.map(((e,n)=>t.createElement(DC,{key:n,item:e,autoFocus:n===d,onActionClick:s})))))}));const NC="ActionsToolbar",RC={item:`${NC}-item`,itemSpacing:`${NC}-itemSpacing`},TC=Xs(Fm)((({theme:e})=>({[`& .${RC.itemSpacing}`]:{padding:e.spacing(0,.25)}}))),MC=t.forwardRef((({className:e,ariaExpanded:n=!1,actions:i=[],addAnchor:o=!1,isRtl:r=!1},s)=>i.length>0?t.createElement(Od,{item:!0,container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e},i.map(((e,i)=>t.createElement(Od,{item:!0,key:e.key,className:`${RC.itemSpacing} ${RC.item}`},t.createElement(oC,{ariaExpanded:n,key:e.key,item:e,ref:0===i?s:null,addAnchor:o}))))):null)),OC={pointerEvents:"none"},qC=function({show:e=!0,actions:n=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:r,more:s={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:r=()=>{}}){const{translator:s}=(0,t.useContext)(Dp);return[{key:"clear",type:"icon-button",label:s.get("Selection.Clear"),enabled:()=>e.canClear(n),action:()=>e.clear(),getSvgIconShape:aC},{key:"cancel",type:"icon-button",label:s.get("Selection.Cancel"),enabled:()=>e.canCancel(n),action:()=>{o(),e.cancel()},keyboardAction:()=>{r(),o(),e.cancel()},getSvgIconShape:rC},{key:"confirm",type:"icon-button",label:s.get("Selection.Confirm"),enabled:()=>e.canConfirm(n),action:()=>{i(),e.confirm()},keyboardAction:()=>{r(),i(),e.confirm()},getSvgIconShape:Xm}]}({...o,layout:u}),{translator:p,keyboardNavigation:m}=(0,t.useContext)(Dp),[f,b]=(0,t.useState)(!1),_={vertical:12,horizontal:d?0:(a.anchorEl?.clientWidth??0)-7},v={vertical:"bottom",horizontal:d?-7:"right"},C=(0,t.useRef)(),y=(0,t.useRef)(),w=wa(),A=(0,t.useMemo)((()=>({margin:w.spacing(.5,0)}))),S=e=>{const t=C.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 r=>{const{target:s,nativeEvent:a}=r,{keyCode:l}=a;switch(l){case gb.ARROW_LEFT:case gb.ARROW_DOWN:case gb.ARROW_RIGHT:case gb.ARROW_UP:if(s.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)})(s);let t=[gb.ARROW_LEFT,gb.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)}r.stopPropagation(),r.preventDefault();break;case gb.SPACE:r.preventDefault();break;case gb.TAB:e&&t?.refocusContent&&(r.shiftKey&&n(!1)===r.target||!r.shiftKey&&n(!0)===r.target)&&(r.preventDefault(),r.stopPropagation(),t.refocusContent());break;case gb.ESCAPE:i&&(i.onCancel(),i.api.cancel(),r.preventDefault(),r.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=s.enabled,E=s.actions;const L=s.alignTo||y,D=n.filter((e=>!e.hidden));if(D.length>i){const e=D.splice(-(D.length-i)-1);k=!0,E=[...e,...s.actions]}if(!o.show&&0===D.length&&!k)return null;const I={key:"more",label:p.get("Menu.More"),getSvgIconShape:eC,hidden:!1,active:f,enabled:()=>k,action:()=>b(!f)},N=D.length>0,R=E.length>0,T=N&&o.show||R&&o.show,M=t.createElement(Od,{ref:C,onKeyDown:x,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:d?"row-reverse":"row"}},r?.length&&t.createElement(MC,{className:"actions-toolbar-extra-actions",actions:r,isRtl:d}),N&&t.createElement(MC,{actions:D}),R&&t.createElement(MC,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:f,actions:[I],addAnchor:!0}),T&&t.createElement(Od,{item:!0,className:RC.itemSpacing,style:A},t.createElement(Jv,{orientation:"vertical"})),o.show&&t.createElement(MC,{className:"actions-toolbar-default-actions",actions:g,isRtl:d}),f&&t.createElement(IC,{show:f,actions:E,alignTo:L,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{b(!1)},disablePortal:s.disablePortal}));return a.show?t.createElement(TC,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:_,transformOrigin:v,hideBackdrop:!0,style:OC,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)}}}},M):e&&M};function PC(e){return sa("MuiInputAdornment",e)}const BC=aa("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var FC;const WC=Xs("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${va(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(ql((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${BC.positionStart}&:not(.${BC.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),VC=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d,...h}=i,u=wu()||{};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:r,variant:s}=e;return tn({root:["root",n&&"disablePointerEvents",o&&`position${va(o)}`,s,i&&"hiddenLabel",r&&`size${va(r)}`]},PC,t)})(p);return(0,Js.jsx)(yu.Provider,{value:null,children:(0,Js.jsx)(WC,{as:s,ownerState:p,className:en(m.root,r),ref:n,...h,children:"string"!=typeof o||l?(0,Js.jsxs)(t.Fragment,{children:["start"===c?FC||(FC=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]}):(0,Js.jsx)(jd,{color:"textSecondary",children:o})})})})),zC=VC,HC=e=>_h((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)),jC="/qListObjectDef",UC=e=>e?.substring(0,64e3),$C=Xs(Ku,{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}})),GC=Xs(kd)((()=>({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 KC({popoverOpen:e,selections:n,selectionState:i,model:o,keyboard:r,dense:s=!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)(Dp),[b,_]=(0,t.useState)(""),[v,C]=(0,t.useState)(!1),y=(0,t.useRef)(),w=(0,t.useRef)(),A=f.get("Listbox.Clear.Search"),{getStoreValue:S,setStoreValue:x}=e_(o),k="rtl"===u,E=async()=>{try{await o.abortListObjectSearch(jC)}finally{_("")}};(0,t.useEffect)((()=>a?()=>E():()=>{}),[a]),(0,t.useEffect)((()=>(n.on("deactivated",E),()=>{n.removeListener&&n.removeListener("deactivated",E)})),[]),(0,t.useEffect)((()=>{if(v&&y.current){const e=b.length-1;y.current.setSelectionRange(e,e),C(!1)}}),[v,y.current]),(0,t.useEffect)((()=>{x("inputText",b)}),[b]);const L=()=>{y.current?.focus()},D=()=>{E(),L()};return(0,t.useImperativeHandle)(m,(()=>({focus(){L()}}))),a&&!1!==h?t.createElement($C,{styles:p,dense:s,isRtl:k,startAdornment:t.createElement(zC,{position:"start",sx:{marginLeft:s?"8px":"9px"}},t.createElement(HC,{size:s?"small":"normal"})),endAdornment:t.createElement(zC,{position:"end",sx:{marginLeft:0}},""!==b&&t.createElement(GC,{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?L():vb(t);break;default:return}e.preventDefault(),e.stopPropagation()}},t.createElement(sC,{size:s?"small":"normal"}))),className:"search",inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:b,onFocus:()=>{d&&(_("**"),C(!0)),c&&!i.selectDisabled()&&!n.isModal()&&n.begin("/qListObjectDef")},onChange:async e=>{const t=UC(e.target.value);return _(t),t.length?o.searchListObjectFor(jC,t):E()},onKeyDown:async t=>{const{currentTarget:s}=t,a=s.closest(".listbox-container");switch(t.key){case"Enter":(async()=>{let e;const t=UC(b),r=await o.searchListObjectFor(jC,t);i.selectDisabled()||r&&t.length&&S("listCount")>0&&(e=o.acceptListObjectSearch(jC,!0),n.selectionsMade=!0,i.clearItemStates(!1),_(""))})();break;case"Escape":if(vb(a),n.cancel(),e)return;break;case"Tab":t.shiftKey?Cb(a)||r.focusSelection():w.current?w.current.focus():vb(a);break;case"f":case"F":if(!t.ctrlKey&&!t.metaKey)return;g&&(g(),vb(a));break;default:return}t.preventDefault(),t.stopPropagation()},autoFocus:l,inputProps:{tabIndex:r.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}const YC=(0,t.forwardRef)(KC);function ZC(e){if(!e.session)return[];const{selectionStore:n}=(0,t.useContext)(Dp),[i]=n.useAppSelectionsStore(),o=e?e.id:null;let r=i.get(o);return(0,t.useEffect)((()=>{e&&!r&&(r=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:i,appModalStore:o}=t,r=async(e=!0)=>{const{model:t,objectSelections:o}=i.get(n)||{};t&&(await t.endSelections(e),i.clear(n),o.emit("deactivated"))},s={begin:async({model:t,paths:o,accept:s=!0,objectSelections:a})=>{if(a===i.get(n)?.objectSelections)return;r(s),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(s),c(!0))}};await c()},end:r};o.set(n,s);const a={model:e,isInModal:()=>!!i.get(n),isModal:e=>e?i.get(n)?.objectSelections===e:!!i.get(n),forward:()=>s.end().then((()=>e.forward())),back:()=>s.end().then((()=>e.back())),clear:()=>s.end().then((()=>e.clearAll())),clearField:(t,n="$")=>s.end().then((()=>e.getField(t,n).then((e=>e.clear()))))};return a}({app:e,selectionStore:n}),i.set(o,r),i.dispatch(!0))}),[e]),[r]}function XC(e){return Object.keys(yg().prototype).forEach((t=>{e[t]=yg().prototype[t]})),yg().init(e),e}const QC=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={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:s}))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!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 r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(s),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:s}),noModal:(e=!1)=>t.end(e)};return XC(s),s};function JC(e,n,i,o){const r=Array.isArray(i)?i:[i],[s]=ZC(e),[a]=zp(n),{appModalStore:l}=(0,t.useContext)(Dp).selectionStore,c=l.get(e.id),[d,h]=(0,t.useState)();return(0,t.useEffect)((()=>{s&&n&&!d&&h(QC({appSelections:s,appModal:c,model:n}))}),[s,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:r,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 ey(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:r}){this.setPages=e;const s=this.lastRowCount===r.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===r.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&a||(this.lastRowCount=r.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=r.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,!!jm.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Um(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=i,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=r?.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 ty=(e,t,n=void 0)=>e?.[t]??n;function ny(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return ty(t,"qSelected",0)+ty(t,"qSelectedExcluded",0)+ty(t,"qLocked",0)+ty(t,"qLockedExcluded",0)>0}function iy(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 oy(e){if("object"==typeof e&&iy(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 ry={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}};function sy(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,i=0,o=0,r=1;if(null!==(s=e[0])&&"object"==typeof s&&"type"in s&&"qcm-color"===s.type)({r:n,g:i,b:o,a:r}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(iy(e[0]))({r:n,g:i,b:o}=e[0]),"a"in e[0]&&({a:r}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const s=e[0];let a;if(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))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(s))n=parseInt(a[1],10),i=parseInt(a[2],10),o=parseInt(a[3],10),r=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(s))r=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(s))n=parseInt(a[1],16),i=parseInt(a[2],16),o=parseInt(a[3],16),r=1;else if(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))n=parseInt(a[1]+a[1],16),i=parseInt(a[2]+a[2],16),o=parseInt(a[3]+a[3],16),r=1;else if(a=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*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=s-.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),r=1}else if(a=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);r=parseFloat(a[7]),e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s<=.5?2*s*t:(2-2*s)*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=s-.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(s)){let e=parseFloat(a[1]),t=parseFloat(a[3]),s=parseFloat(a[5]);e%=360,t/=100,s/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,s=s<0?0:s>1?1:s;const l=s*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=s-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),r=1}else{const e=s.toLowerCase();if(function(e){return e in ry}(e)){const t=ry[e];({r:n,g:i,b:o}=t),r="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(r=(4278190080&e[0])>>>24,r/=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],r=4===e.length?e[3]:1):t.invalid=!0;var s;return Number.isNaN(+n+i+o+r)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(i),t.b=Math.floor(o),t.a=r,t}function ay(e){let t,n,i;if(iy(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?oy(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 ly(e){let t,n,i=0;const o="string"==typeof e?sy(e):e,r=o.r/255,s=o.g/255,a=o.b/255,{a:l}=o,c=Math.max(r,s,a),d=Math.min(r,s,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 r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i,s:100*t,l:100*h,a:l}}function cy(e){let t,n,i=0;const o="string"==typeof e?sy(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,a),d=l;if(l===c)t=0,i=0;else{switch(n=l-c,t=0===n?0:n/d,l){case r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/n+4}i/=6}return{h:360*i%360,s:100*t,v:100*d}}function dy(e){if(iy(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?oy(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function hy(e,t){return iy(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:hy(sy(e),t)}function uy(e){return iy(e)?1===e.a?dy(e):hy(e):uy(sy(e))}const gy=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function py(e){return.2126*gy(e.r)+.7152*gy(e.g)+.0722*gy(e.b)}function my(...e){const t=sy(...e);return t.invalid||py(t)<.4}function fy(...e){const t=sy(...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=ly(n)),n.spaces.hslaObject),o=e=>{const t=i(),{h:n,s:o,l:r,a:s}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(r+e,100))}, ${s})`};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=sy(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:()=>my(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=dy(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=hy(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=uy(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=ay(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,i=0;const o="string"==typeof e?sy(e):e,r=o.r/255,s=o.g/255,a=o.b/255,l=Math.max(r,s,a),c=Math.min(r,s,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 r:i=(s-a)/n+(s<a?6:0);break;case s:i=(a-r)/n+2;break;case a:i=(r-s)/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}=ly(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}=cy(e);return`hsv(${t}, ${n}, ${i})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=cy(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)=>fy(o(18*e)),getDarkenedColor:(e=1)=>fy(o(18*-e))}}function by(e,t){if(!e||!t)return;const n=py(e),i=py(t);return n>i?(n+.05)/(i+.05):(i+.05)/(n+.05)}function _y(e,t){const n=fy("#FFFFFF"),i=fy(e),o=fy(t);if(i.isInvalid()||o.isInvalid()||i.getAlpha()<1||o.getAlpha()<1)return t;const r=by(n,i),s=by(o,i),a=r>s||r>4.5;return!a&&s>3?o.getHex():a?"#FFFFFF":"#000000"}function vy(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 Cy,yy,wy,Ay="top",Sy="top-right",xy="right",ky="bottom-right",Ey="bottom",Ly="bottom-left",Dy="left",Iy="top-left";vy(vy(vy(vy(vy(vy(vy(vy(vy(vy(Cy={},"equal-equal",[Ay,Ey]),"equal-higher",[Ey,ky]),"equal-lower",[Ay,Sy]),"equal-void",[Ay,Ey]),"higher-equal",[Dy,Ly,Ay,Sy]),"higher-higher-acute",[Ey,Ly,Dy,Sy]),"higher-higher-obtuse",[Ey,Ay]),"higher-lower-negative",[Ay,Sy,xy]),"higher-lower-positive",[Ey,Ly,Dy]),"higher-void",[Ay]),vy(vy(vy(vy(vy(vy(vy(vy(vy(vy(Cy,"lower-equal",[Ay]),"lower-higher-negative",[Ay,Iy]),"lower-higher-positive",[ky]),"lower-lower-acute",[Ay,Iy,Dy,Sy,xy]),"lower-lower-obtuse",[Ay,Ey]),"lower-void",[Ay]),"void-equal",[Ay]),"void-higher",[Ay,Ey]),"void-lower",[Ay,Ey,Dy]),"void-void",[Ay]),vy(Cy,"unclassified",[Ay,Ey,xy,Dy,Sy,ky,Ly,Iy]);var Ny=function(){if(wy)return yy;wy=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)},r=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,o=e.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!r)return!1;for(i in n);return void 0===i||e.call(n,i)},s=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 yy=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&&(r(l)||(c=o(l)))?(c?(c=!1,d=i&&o(i)?i:[]):d=i&&r(i)?i:{},s(h,{name:n,newValue:e(p,d,l)})):void 0!==l&&s(h,{name:n,newValue:l}));return h},yy}();function Ry(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ty(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function My(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ny);var Oy=1/.7,qy="\\s*([+-]?\\d+)\\s*",Py="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",By="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fy=/^#([0-9a-f]{3,8})$/,Wy=new RegExp(`^rgb\\(${qy},${qy},${qy}\\)$`),Vy=new RegExp(`^rgb\\(${By},${By},${By}\\)$`),zy=new RegExp(`^rgba\\(${qy},${qy},${qy},${Py}\\)$`),Hy=new RegExp(`^rgba\\(${By},${By},${By},${Py}\\)$`),jy=new RegExp(`^hsl\\(${Py},${By},${By}\\)$`),Uy=new RegExp(`^hsla\\(${Py},${By},${By},${Py}\\)$`),$y={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 Gy(){return this.rgb().formatHex()}function Ky(){return this.rgb().formatRgb()}function Yy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Fy.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zy(t):3===n?new ew(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Xy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Xy(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=Wy.exec(e))?new ew(t[1],t[2],t[3],1):(t=Vy.exec(e))?new ew(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zy.exec(e))?Xy(t[1],t[2],t[3],t[4]):(t=Hy.exec(e))?Xy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jy.exec(e))?sw(t[1],t[2]/100,t[3]/100,1):(t=Uy.exec(e))?sw(t[1],t[2]/100,t[3]/100,t[4]):$y.hasOwnProperty(e)?Zy($y[e]):"transparent"===e?new ew(NaN,NaN,NaN,0):null}function Zy(e){return new ew(e>>16&255,e>>8&255,255&e,1)}function Xy(e,t,n,i){return i<=0&&(e=t=n=NaN),new ew(e,t,n,i)}function Qy(e){return e instanceof My||(e=Yy(e)),e?new ew((e=e.rgb()).r,e.g,e.b,e.opacity):new ew}function Jy(e,t,n,i){return 1===arguments.length?Qy(e):new ew(e,t,n,null==i?1:i)}function ew(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function tw(){return`#${rw(this.r)}${rw(this.g)}${rw(this.b)}`}function nw(){const e=iw(this.opacity);return`${1===e?"rgb(":"rgba("}${ow(this.r)}, ${ow(this.g)}, ${ow(this.b)}${1===e?")":`, ${e})`}`}function iw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ow(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rw(e){return((e=ow(e))<16?"0":"")+e.toString(16)}function sw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lw(e,t,n,i)}function aw(e){if(e instanceof lw)return new lw(e.h,e.s,e.l,e.opacity);if(e instanceof My||(e=Yy(e)),!e)return new lw;if(e instanceof lw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new lw(s,a,l,e.opacity)}function lw(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function cw(e){return(e=(e||0)%360)<0?e+360:e}function dw(e){return Math.max(0,Math.min(1,e||0))}function hw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ry(My,Yy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gy,formatHex:Gy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return aw(this).formatHsl()},formatRgb:Ky,toString:Ky}),Ry(ew,Jy,Ty(My,{brighter(e){return e=null==e?Oy:Math.pow(Oy,e),new ew(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ew(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ew(ow(this.r),ow(this.g),ow(this.b),iw(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:tw,formatHex:tw,formatHex8:function(){return`#${rw(this.r)}${rw(this.g)}${rw(this.b)}${rw(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nw,toString:nw})),Ry(lw,(function(e,t,n,i){return 1===arguments.length?aw(e):new lw(e,t,n,null==i?1:i)}),Ty(My,{brighter(e){return e=null==e?Oy:Math.pow(Oy,e),new lw(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new lw(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 ew(hw(e>=240?e-240:e+120,o,i),hw(e,o,i),hw(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new lw(cw(this.h),dw(this.s),dw(this.l),iw(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=iw(this.opacity);return`${1===e?"hsl(":"hsla("}${cw(this.h)}, ${100*dw(this.s)}%, ${100*dw(this.l)}%${1===e?")":`, ${e})`}`}}));const uw=Math.PI/180,gw=180/Math.PI,pw=4/29,mw=6/29,fw=3*mw*mw;function bw(e){if(e instanceof _w)return new _w(e.l,e.a,e.b,e.opacity);if(e instanceof Aw)return Sw(e);e instanceof ew||(e=Qy(e));var t,n,i=ww(e.r),o=ww(e.g),r=ww(e.b),s=vw((.2225045*i+.7168786*o+.0606169*r)/1);return i===o&&o===r?t=n=s:(t=vw((.4360747*i+.3850649*o+.1430804*r)/.96422),n=vw((.0139322*i+.0971045*o+.7141733*r)/.82521)),new _w(116*s-16,500*(t-s),200*(s-n),e.opacity)}function _w(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function vw(e){return e>.008856451679035631?Math.pow(e,1/3):e/fw+pw}function Cw(e){return e>mw?e*e*e:fw*(e-pw)}function yw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ww(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Aw(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Sw(e){if(isNaN(e.h))return new _w(e.l,0,0,e.opacity);var t=e.h*uw;return new _w(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ry(_w,(function(e,t,n,i){return 1===arguments.length?bw(e):new _w(e,t,n,null==i?1:i)}),Ty(My,{brighter(e){return new _w(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _w(this.l-18*(null==e?1:e),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 ew(yw(3.1338561*(t=.96422*Cw(t))-1.6168667*(e=1*Cw(e))-.4906146*(n=.82521*Cw(n))),yw(-.9787684*t+1.9161415*e+.033454*n),yw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ry(Aw,(function(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Aw)return new Aw(e.h,e.c,e.l,e.opacity);if(e instanceof _w||(e=bw(e)),0===e.a&&0===e.b)return new Aw(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*gw;return new Aw(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Aw(e,t,n,null==i?1:i)}),Ty(My,{brighter(e){return new Aw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Aw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sw(this).rgb()}}));var xw=e=>()=>e;function kw(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):xw(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?kw: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):xw(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=Jy(e)).r,(t=Jy(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=kw(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);var Ew="center",Lw="bottom";function Dw(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 Iw(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 Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iw(Object(n),!0).forEach((function(t){Dw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}[{key:"NoDataExist",alignment:Ew,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:Ew,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:Ew,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:Ew},{key:"DataRangeIncludingZero",alignment:Lw},{key:"LimitedData",alignment:Lw},{key:"NegativeOrZeroValues",alignment:Lw}].reduce((function(e,t){return e[t.key]=t,e}),{});var Rw=Object.prototype.hasOwnProperty,Tw=Object.prototype.toString,Mw=Object.defineProperty,Ow=Object.getOwnPropertyDescriptor,qw=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Tw.call(e)},Pw=function(e){if(!e||"[object Object]"!==Tw.call(e))return!1;var t,n=Rw.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&Rw.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||Rw.call(e,t)},Bw=function(e,t){Mw&&"__proto__"===t.name?Mw(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Fw=function(e,t){if("__proto__"===t){if(!Rw.call(e,t))return;if(Ow)return Ow(e,t).value}return e[t]},Ww=function e(){var t,n,i,o,r,s,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=Fw(a,n),a!==(o=Fw(t,n))&&(d&&o&&(Pw(o)||(r=qw(o)))?(r?(r=!1,s=i&&qw(i)?i:[]):s=i&&Pw(i)?i:{},Bw(a,{name:n,newValue:e(d,s,o)})):void 0!==o&&Bw(a,{name:n,newValue:o}));return a};function Vw(e,t,n,i){if(!e)return-1;const o=n.cache,r=e.origin?e.origin():null;r&&(e=r);let s=o.fields.indexOf(e),a=-1,l=-1;if(-1===s)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){s=t;break}if(Array.isArray(i)&&i.some(((e,t)=>e!==t))){const e=i.indexOf(s);-1!==e&&(s=e)}return s-=t.qArea.qLeft,s<0||s>=t.qArea.qWidth?-1:l>=0?e=>e[s].qAttrDims.qValues[l]:a>=0?e=>e[s].qAttrExps.qValues[a]:e=>e[s]}function zw(e,t,n){let{key:i}=n;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 Hw(e){let{cache:t,f:n,mainCell:i,p:o,prop:r,page:s,rowIdx:a,row:l,sourceKey:c,target:d,targetProp:h,columnOrder:u}=e,g=i;if(o.field&&o.field!==n){const e=Vw(o.field,s,{cache:t},u);if(-1===e)return;g=Ww({qRow:a},e(l))}d[h]=zw(o,g,{key:c})}function jw(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const s=t.raw(),a=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:c,main:d}=i.normalizeConfig(o[e],t),h=Object.keys(c),u=!!o[e].trackBy,g=typeof o[e].trackBy,p={},m=[],f=[];for(let t=0;t<s.qDataPages.length;t++){const r=Vw(l,s.qDataPages[t],{cache:n},s.qColumnOrder);if(-1!==r)for(let b=0;b<s.qDataPages[t].qMatrix.length;b++){const _=s.qDataPages[t].qArea.qTop+b,v=Ww({qRow:_},r(s.qDataPages[t].qMatrix[b])),C=zw(d,v,{key:a});if(!d.filter||d.filter(v)){for(let e=0;e<h.length;e++){const i=c[h[e]];let o=i.fields||[i];i.fields&&(C[h[e]]=[]);for(let r=0;r<o.length;r++)Hw({cache:n,f:l,mainCell:v,p:o[r],prop:h[e],props:c,page:s.qDataPages[t],rowIdx:_,row:s.qDataPages[t].qMatrix[b],sourceKey:a,target:i.fields?C[h[e]]:C,targetProp:i.fields?r:h[e],columnOrder:s.qColumnOrder});if(i.fields){const t=C[h[e]].map((e=>e.value)),n=C[h[e]].map((e=>e.label));C[h[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(C[h[e]].value)}}}u&&i.track({cfg:o[e],itemData:v,obj:C,target:m,tracker:p,trackType:g}),f.push(C)}}}const b=u?i.collect(m,{main:d,propsArr:h,props:c}):f;r=[...r,...b]}return r}function Uw(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 $w(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kw)):void 0===t&&(t=Gw);for(var n,i,o,r,s,a=new Xw(e),l=[a];n=l.pop();)if((o=t(n.data))&&(s=(o=Array.from(o)).length))for(n.children=o,r=s-1;r>=0;--r)l.push(i=o[r]=new Xw(o[r])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(Zw)}function Gw(e){return e.children}function Kw(e){return Array.isArray(e)?e[1]:null}function Yw(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Zw(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xw(e){this.data=e,this.depth=this.height=0,this.parent=null}function Qw(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}Xw.prototype=$w.prototype={constructor:Xw,count:function(){return this.eachAfter(Uw)},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,r=this,s=[r],a=[],l=-1;r=s.pop();)if(a.push(r),n=r.children)for(i=0,o=n.length;i<o;++i)s.push(n[i]);for(;r=a.pop();)e.call(t,r,++l,this);return this},eachBefore:function(e,t){for(var n,i,o=this,r=[o],s=-1;o=r.pop();)if(e.call(t,o,++s,this),n=o.children)for(i=n.length-1;i>=0;--i)r.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 $w(this).eachBefore(Yw)},[Symbol.iterator]:function*(){var e,t,n,i,o=this,r=[o];do{for(e=r.reverse(),r=[];o=e.pop();)if(yield o,t=o.children)for(n=0,i=t.length;n<i;++n)r.push(t[n])}while(r.length)}};var Jw={depth:-1},eA={},tA={};function nA(e){return e.id}function iA(e){return e.parentId}function oA(e){let t=e.length;if(t<2)return"";for(;--t>1&&!rA(e,t););return e.slice(0,t)}function rA(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function sA(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=sA(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]=sA(i,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function aA(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,...aA(e[o].children,t-1,n)]);return i}function lA(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=>aA(e.children,i-1,n)}return!1}const cA=/^qDimensionInfo(?:\/(\d+))?/,dA=/^\/?qMeasureInfo\/(\d+)/,hA=/\/qAttrExprInfo\/(\d+)/,uA=/\/qAttrDimInfo\/(\d+)/;function gA(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function pA(e,t){let{cube:n}=t;if(!e)return-1;let i=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,r=-1,s=-1,a=-1,l=-1,c=-1,d=-1,h=i;const u=n.qEffectiveInterColumnSortOrder,g=gA(n);return cA.test(h)&&(o=!0,r=+cA.exec(h)[1],h=i.replace(cA,"")),dA.test(h)&&("K"===n.qMode?c=+dA.exec(h)[1]:u&&-1!==u.indexOf(-1)?(c=+dA.exec(h)[1],d=0):d=+dA.exec(h)[1],h=h.replace(dA,"")),h&&(uA.exec(h)?a=+uA.exec(h)[1]:hA.exec(h)&&(s=+hA.exec(h)[1])),l=o?"S"===n.qMode?g[r]:u?u.indexOf(r):r: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:s}}function mA(e,t){let n,i,o=lA(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 fA(e,t,n){let{key:i}=n;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 bA(e){let{propsArr:t,props:n,item:i,itemData:o,ret:r,sourceKey:s}=e;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;r[t[e]]={value:n,label:g?g(b):null!=b?b:String(n)},h.field&&(r[t[e]].source={field:h.field.key(),key:s})}}c&&(r[t[e]]={value:"function"==typeof a.value?a.value(c,i):c,label:"function"==typeof a.label?a.label(d,i):d})}}const _A=(e,t,n)=>{const i="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",r=sA(i,e);return r&&r[0]?(t.tree=$w(r[0],n.children||(e=>e[o])),t.tree):null};const vA=e=>{let{propsArr:t,props:n,cube:i,cache:o,itemDepthObject:r,f:s}=e;for(let e=0;e<t.length;e++){const a=n[t[e]],l=a.fields?a.fields:[a];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==s){const e=mA(r,pA(t.field,{cube:i,cache:o}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function CA(){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(),r=t.key(),s="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)))),r=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(i.indexOf(e)))),s={__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]],r="".concat(i,"__").concat(null!==(a=t.qElemNumber)&&void 0!==a?a:t.qElemNo);s[r]||(s[r]=Nw({__id:r,__parent:i,qValues:[]},t),l=!0),i=r}if(l)for(let e=0;e<r.length;e++){const t=n[r[e]];s[i].qValues.push(t)}}const l=Object.keys(s).map((e=>s[e]));return function(){var e,t=nA,n=iA;function i(i){var o,r,s,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 rA(e,t-1)&&!rA(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,i)))),n=t.map(oA),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(oA(e)),u.push(tA));g=(e,n)=>t[n],p=(e,t)=>n[t]}for(s=0,o=u.length;s<o;++s)r=u[s],c=u[s]=new Xw(r),null!=(d=g(r,s,i))&&(d+="")&&(h=c.id=d,m.set(h,m.has(h)?eA:c)),null!=(d=p(r,s,i))&&(d+="")&&(c.parent=d);for(s=0;s<o;++s)if(d=(c=u[s]).parent){if(!(l=m.get(d)))throw new Error("missing: "+d);if(l===eA)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===tA&&1===a.children.length;)a=a.children[0],--o;for(let e=u.length-1;e>=0&&(c=u[e]).data===tA;--e)c.data=null}if(a.parent=Jw,a.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(Zw),a.parent=null,o>0)throw new Error("cycle");return a}return i.id=function(e){return arguments.length?(t=Qw(e),i):t},i.parentId=function(e){return arguments.length?(n=Qw(e),i):n},i.path=function(t){return arguments.length?(e=Qw(t),i):e},i}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}(t):_A(o,n,e);if(!s)return null;const a=s.height,l=[];for(let r=0;r<=a;r++){let s=null;if(r>0)if("S"===o.qMode){let e=gA(o)[r-1];s=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[r-1];r>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),s=n.fields[e]}const{props:a,main:c}=i.normalizeConfig(Nw(Nw({},e),{},{field:s?s.key():void 0}),t),d=Object.keys(a);l[r]={propsArr:d,props:a,main:c};const h=s?pA(s,{cube:o,cache:n}):{fieldDepth:0};vA({propsArr:d,props:a,cube:o,cache:n,itemDepthObject:h,f:s})}const c=s.copy().descendants(),d=s.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],s=o.data,a=fA(i,s,{key:r});bA({propsArr:t,props:n,item:o,itemData:s,ret:a,sourceKey:r,isTree:!0}),d[e].data=a}return s}function yA(e,t,n,i){const o=Array.isArray(e)?e:[e];let r=[];for(let s=0;s<o.length;s++)if(void 0!==o[s].field){const a=t.raw(),l=t.key();if(!_A(a,n,e))continue;const c="object"==typeof o[s].field?o[s].field:t.field(o[s].field),{props:d,main:h}=i.normalizeConfig(o[s],t),u=Object.keys(d),g=pA(c,{cube:a,cache:n}),{nodeFn:p,attrFn:m,valueFn:f}=mA({fieldDepth:0},g);vA({propsArr:u,props:d,cube:a,cache:n,itemDepthObject:g,f:c});const b=!!o[s].trackBy,_=typeof o[s].trackBy,v={},C=[],y=p(n.tree),w=[];for(let e=0;e<y.length;e++){const t=y[e],n=m?m(f(t)):f(t);if(h.filter&&!h.filter(n))continue;const r=fA(h,n,{key:l});bA({propsArr:u,props:d,item:t,itemData:n,ret:r,sourceKey:l}),b&&i.track({cfg:o[s],itemData:n,obj:r,target:C,tracker:v,trackType:_}),w.push(r)}const A=b?i.collect(C,{main:h,propsArr:u,props:d}):w;r=[...r,...A]}return r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==s.g?s.g:"undefined"!=typeof self&&self;var wA,AA,SA=(wA=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,i,o,r,s,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,_=e.substring(b,b+1),v=b+("."===_||","===_?1:0),C=f>0?e.substring(v,u):"";if(n=(t="-"===(e=e.substring(g,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(i=e.match(/[^\d\-\+#]/g))&&i[i.length-1]||".",r=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(r),e[0]=d.join(""),(s=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-s;)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,v=0;v<u;v++)m+=h.charAt(v),!((v-b+1)%l)&&v<u-l&&(m+=r);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(i=t.join(""))&&""!==i||(n=!1),p+(n?"-":"")+i+C}},wA(AA={exports:{}}),AA.exports);function xA(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const kA={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"},EA=/%\)?$/,LA=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,DA=/^\(oct\)/i,IA=/^\(dec\)/i,NA=/^\(hex\)/i,RA=/^\(bin\)/i,TA=/^\(rom\)/i,MA=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,OA=/#|0/g;function qA(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 PA(e,t,n){const i=xA(e);return n?i:new RegExp(i||"",t)}function BA(e,t,n,i){let o,r,s,a,l,c,d,h,u,g=e.pattern;var p,m;i&&(e.abbreviate=!0),p=t,(m=n)&&(m=xA(m)),p&&(p=xA(p)),u=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),s=g.match(u),s=s?s[0]:"",a=s?g.substr(0,g.indexOf(s)):g,l=s?g.substring(g.indexOf(s)+s.length):"",s||(s=g?"#":"##########"),t&&t===n&&(o=s.split(n),r=o.pop(),s=o.join("")+n+r,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(s=s.replace(PA(c,"g"),t)),d=n,n=".",d&&(s=s.replace(PA(d,"g"),n)),h=s.match(/#/g),h=h?h.length:0;const f=g.split(d);let b;f[1]&&(b=f[1].match(OA)),e.prefix=a||"",e.postfix=l||"",e.pattern=g,e.maxPrecision=b?b.length:2,e.percentage=EA.test(g),e.numericPattern=s||"",e.numericRegex=new RegExp("".concat(PA(t,null,!0),"|").concat(PA(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=n,e.temp=h}class FA{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 kA;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 FA(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],MA.test(e[0])&&(i.positive.isFunctional=!0),e[1]?MA.test(e[1])&&(i.negative.isFunctional=!0):i.negative=!1,e[2]?MA.test(e[2])&&(i.zero.isFunctional=!0):i.zero=!1;const o="U"===this.type;i.positive.isFunctional||BA(i.positive,t,n,o),i.negative&&!i.negative.isFunctional&&BA(i.negative,t,n,o),i.zero&&!i.zero.isFunctional&&BA(i.zero,t,n,o)}formatValue(e){let t,n,i,o,r,s,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,r=d.d,s=d.t,d.isFunctional)e=function(e,t,n){let i;return LA.test(t)?e=qA(e,Number(/\d{2}/.exec(t)[0]),t,n):DA.test(t)?e=qA(e,8,t,n):IA.test(t)?e=qA(e,10,t,n):NA.test(t)?e=qA(e,16,t,n):RA.test(t)?e=qA(e,2,t,n):TA.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)),r=(e-o)/1e3,s=[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<s.length;n++)if(s[n]<=o){i+=a[n],o-=s[n];break}for(n=0;n<r;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,r);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,r=t[0];for(a=0,n=Number(Number(e).toExponential().split("e")[1]);r<=n&&a<t.length;)a++,r=t[a];a>0&&(i=t[a-1]),i&&n>0&&i>0?o=i:(n<0&&i<0||!i)&&(r<0&&r-n<=d.maxPrecision?o=r:i<=n&&!(r>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(r)[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(r)[0];if(n+=r,e=SA(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+=r+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(".",r));else{for(l+=r,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(i)/Math.log(10)))),a=0;a<t;a++)l+="#";e=SA(l,e)}e=e.replace(d.numericRegex,(e=>e===s?d.groupTemp:e===r?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 WA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:i=!1,toKey:o=e=>e}=t;let r,s,a=Object.create(null),l=Object.create(null),c=0,d=0;return r=i?function(){return s=o(...arguments),r.has(s)?r.get(s):r.set(s,e(...arguments))}:t=>(s=o(t),r.has(s)?r.get(s):r.set(s,e(t))),r.set=(e,t)=>(c>=n&&(delete a[l[d]],delete l[d],c--,d++),a[e]=t,l[c]=e,c++,t),r.get=e=>a[e],r.has=e=>e in a,r.clear=()=>{a=Object.create(null),l=Object.create(null),c=0,d=0},r.size=()=>c,r}function VA(e,t,n,i,o){const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new FA(...t)}(o,e,t,n,i),s=WA(r.formatValue.bind(r),{toKey:e=>isNaN(e)?e:+e});function a(e){return s(e)}return a.format=function(e,t,n,i){return s.clear(),r.format(t,e,n,i)},a.pattern=function(e){return e&&(s.clear(),r.pattern=e,r.prepare()),r.pattern},a}const zA="D",HA="T",jA="TS",UA=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$A=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],GA=["January","February","March","April","May","June","July","August","September","October","November","December"],KA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function YA(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function ZA(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class XA{constructor(e,t,n){const i=e||{};i.qCalendarStrings||(i.qCalendarStrings={qLongDayNames:UA,qDayNames:$A,qLongMonthNames:GA,qMonthNames:KA}),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={[HA]:i.qTimeFmt||"hh:mm:ss",[zA]:i.qDateFmt||"YYYY-MM-DD",[jA]:i.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new XA(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*ZA(t),i=60*ZA(n),o=60*ZA(i),r=1e3*ZA(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(i),s:Math.floor(o),f:Math.round(r)}}(e),o=i.d,r=i.h,s=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)||(r+=24*o),/h+/gi.test(t)||(s+=60*r),/m+/gi.test(t)||(a+=60*s),/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:r,m:s,s:a,f:l,t:d}}(e,t));const o=(r=this,s=i,{"Y+|y+":{Y:"".concat(Number("".concat(s.year).slice(-2))),YY:YA("".concat(s.year).slice(-2),2),YYY:YA("".concat(s.year).slice(-3),3),def:e=>YA("".concat(s.year),e.length)},"M+":{M:s.month+1,MM:YA("".concat(s.month+1),2),MMM:r.locale_months_abbr[s.month],def:r.locale_months[s.month]},"W+|w+":{W:s.day,WW:YA("".concat(s.day),2),WWW:r.locale_days_abbr[s.day],def:r.locale_days[s.day]},"D+|d+":{D:s.date,def:e=>YA("".concat(s.date),e.length)},"h+|H+":{h:s.h,def:e=>YA("".concat(s.h),e.length)},"m+":{m:s.m,def:e=>YA("".concat(s.m),e.length)},"s+|S+":{s:s.s,def:e=>YA("".concat(s.s),e.length)},"f+|F+":{def(e){let t="".concat(s.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=s.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var r,s;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 QA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new XA(...t)}function JA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=QA(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),i=WA(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 r(e){return e=o(e),i(e)}return r.format=function(e,t){return i.clear(),t=o(t),n.format(t,e)},r.locale=function(o){return n=QA(o,e,t),i=WA(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},r.qtype=function(e){return void 0!==e&&(t=e,i.clear()),t},r}function eS(){let e,{meta:t,id:n,key:i,localeInfo:o,fieldExtractor:r,value:s,type:a,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=s||("dimension"===a?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===a?"first":"avg",h=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return JA(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:".",r="U",s=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,i=e.qNumFormat.qThou||i,o=e.qNumFormat.qDec||o,r=e.qNumFormat.qType||r,s=s&&-1===["M"].indexOf(e.qNumFormat.qType)):s=!0,(s||"U"===r)&&(n="#".concat(o,"##"),r="U"),VA(n,i,o,r,t)}(t,o),u="dimension"===a?"first":(e,t)=>h(t),g={id:()=>n,key:()=>i,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>a,origin:()=>l,items:()=>(e||(e=r(g)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:u,formatter:()=>h,tags:()=>t.qTags};return g}function tS(e,t,n,i,o){return(t[e]||[]).map(((t,r)=>{const s="".concat(i?"".concat(i,"/"):"").concat(e,"/").concat(r),a={instance:eS(Ww({id:"".concat(n?"".concat(n,"/"):"").concat(s),key:s,meta:t},o))};return a.attrDims=tS("qAttrDimInfo",t,n,s,Ww({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),a.attrExps=tS("qAttrExprInfo",t,n,s,Ww({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),a.measures=tS("qMeasureInfo",t,n,s,Ww({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),a}))}function nS(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const r=nS.util,s={cache:i,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},a={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;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,s),fields:()=>i.fields.slice(),extract:e=>s.extractor(e,a,i,r),hierarchy:e=>s.hierarchy(e,a,i,r),_cache:()=>i};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(s.extractor=yA,s.hierarchy=CA,s.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(s.extractor=jw,s.pages=o.qDataPages,s.hierarchy=CA):s.extractor=()=>[],s.fieldExtractor=e=>s.extractor({field:e},a,i,r);const l="S"===o.qMode?e=>e.qElemNumber:void 0,c="S"===o.qMode?e=>e.qNum:void 0;i.wrappedFields.push(...tS("qDimensionInfo",o,e,"",Ww({},s,{value:l,type:"dimension"}))),i.wrappedFields.push(...tS("qMeasureInfo",o,e,"",Ww({},s,{value:c,type:"measure"}))),i.fields=i.wrappedFields.map((e=>e.instance));const d=e=>{e.forEach((e=>{i.allFields.push(e.instance),d(e.measures),d(e.attrDims),d(e.attrExps)}))};return d(i.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=a.field(t.from),o=eS(Nw({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>s.extractor({field:e},a,i,r),key:t.key,type:n.type(),localeInfo:s.localeInfo,value:n.value},t.override||{}));i.virtualFields.push(o)})),i.allFields.push(...i.virtualFields),a}const iS=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],oS=/\/qDimensionInfo(?:\/(\d+))?/,rS=/\/qMeasureInfo\/(\d+)/,sS=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,aS=/\/qAttrExprInfo\/(\d+)/,lS=/\/?qHyperCube/,cS=/\/?qTreeData/,dS=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),hS=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function uS(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,r=[],s={},a=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,i=-1,o=-1,r="",s=e=>e;lS.test(e)?(r="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),s=dS):cS.test(e)&&(r="".concat(n.substr(0,n.indexOf("qTreeData")+9)),s=hS);let a=!0;if(oS.test(e)&&(i=+oS.exec(e)[1]),rS.test(e)&&(o=+rS.exec(e)[1]),sS.test(e)){o=-1,i=0;const e=+sS.exec(n)[2];isNaN(e)||(i=e,n=n.replace(/\/\d+$/,"")),a=!1}if(aS.test(e)){const e=o;if(t){o=0;const s=sA(r,t);o+=(s.qMeasureInfo||[]).length,i>-1?(o=s.qDimensionInfo.slice(0,i).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),i=-1):(o=s.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=s.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+aS.exec(n)[1]}else i>-1?(i=-1,o=+aS.exec(n)[1]):o+=+aS.exec(n)[1]+1}return iS.forEach((e=>{let[t,i]=e;n=n.replace(t,i)})),a&&(n=s(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,s.multiRangeSelectTreeDataValues||(s.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>s.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,s.rangeSelectHyperCubeValues||(s.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>s.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,s.selectHyperCubeContinuousRange||(s.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>s.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,r=i.qNoOfLeftDims,a=i.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(s.selectPivotCells||(s.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===r||a>=r)&&r>-1?n.forEach((e=>{s.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:a-r})})):n.forEach((e=>{s.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!s.selectPivotCells.cells.length}}else s.selectHyperCubeCells||(s.selectHyperCubeCells={path:t.path,cols:[]}),s.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||s.selectHyperCubeCells.values)||(s.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!s.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,r.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&a?[{method:"resetMadeSelections",params:[]}]:(s.rangeSelectHyperCubeValues&&r.push({method:"rangeSelectHyperCubeValues",params:[s.rangeSelectHyperCubeValues.path,s.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),s.selectHyperCubeContinuousRange&&r.push({method:"selectHyperCubeContinuousRange",params:[s.selectHyperCubeContinuousRange.path,s.selectHyperCubeContinuousRange.ranges]}),s.selectHyperCubeCells&&r.push({method:"selectHyperCubeCells",params:[s.selectHyperCubeCells.path,s.selectHyperCubeCells.values,s.selectHyperCubeCells.cols]}),s.selectPivotCells&&r.push({method:"selectPivotCells",params:[s.selectPivotCells.path,s.selectPivotCells.cells]}),s.multiRangeSelectTreeDataValues&&r.push({method:"multiRangeSelectTreeDataValues",params:[s.multiRangeSelectTreeDataValues.path,s.multiRangeSelectTreeDataValues.ranges]}),r);var c}function gS(e){nS.util=e.data("matrix").util,e.data("q",nS),e.formatter("q-number",VA),e.formatter("q-time",JA)}gS.qBrushHelper=uS,gS.selections=uS;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const pS=/,(?![^(]*\))/,mS=/\s(?![^(]*\))/,fS=/^[0-9]+[a-zA-Z%]+?$/,bS=["none","inset","initial","inherit"],_S=e=>{if(!e)return;const t=e.split(mS).filter((e=>!bS.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||fS.test(e))(t)||bS.includes(t.toLowerCase())?void 0:t;return n},vS=e=>e?e.split(pS).map((e=>e.trim())):[];function CS(e,t,n,i){return n&&i?n.getStyle(`object.${i}`,e,t):n?n.getStyle("",e,t):void 0}function yS(e,t,n,i,o){return e&&i?"none"!==e.color?i.getColorPickerColor(e):void 0:CS(t,n,i,o)}const wS={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},AS={"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 SS(e,t,n){const i=e?.bgImage;if(i){let o="";if("media"===i.mode||"media"===e.useImage){let e;const r=i?.mediaUrl,{qUrl:s}=r?.qStaticContentUrl||{};o=s?decodeURIComponent(s):void 0,o=function(e,t){return t?function(e){let t,n,i,o;return e?.session?.config?(t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host):""}(e)+t:void 0}(t,o),n&&(e=Object.entries(n).map((([e,t])=>`&${e}=${encodeURIComponent(t)}`)).join("&"),o=`${o}?${e}`)}"expression"===i.mode&&(o=i.expressionUrl?decodeURIComponent(i.expressionUrl):void 0);const r=function(e){let t="center center";return e?.bgImage?.position&&(t=AS[e.bgImage.position]),t}(e),s=function(e){let t=wS.originalSize;const n=e?.bgImage?.sizing;return n&&(t=wS[n]),t}(e);return o?{url:o,pos:r,size:s}:void 0}}function xS(e,t,n){const i=e?.bgColor;return i&&t&&(i.useExpression||i.useColorExpression)?t.validateColor(i.colorExpression):yS(i?.color,"","backgroundColor",t,n)}function kS(e,t,n){const i=CS("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&bS.includes(e.toLowerCase()))return e.toLowerCase();const i=vS(e);if(1!==i.length)return e;let o=n;if(!o){const n=vS(t);if(1!==n.length)return e;o=_S(n[0])}if(!o)return e;const r=_S(i[0]);return r?e.replace(r,o):`${e} ${o}`})(e?.shadow?.boxShadow||i,i,yS(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function ES(e,t,n,i){const o=e?.title?.[t]||{},r=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:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const LS={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},DS=["theme","selections"];function IS({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r}){return function({app:e,themeApi:t,theme:n,queryParams:i,components:o=[],checkboxes:r=!1}){const s=function(e=[]){const t={};return e.forEach((e=>{const n=e?.key;DS.includes(n)&&(t[n]=e)})),t}(o),a=(e,n)=>t.getStyle("object.listBox",e,n),l=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,c=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:i,checkboxes:o}){const r=i.theme?.content?.fontColor,s=e(r)||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,r=`${i}Contrast`,c=e(l[i])||n("",`dataColors.${i}`)||"possible"===i&&n("","backgroundColor")||t.palette?.selected?.[o]||LS[i],d=a?_y(c,s):s||t.palette?.selected[`${r}Text}`];return{[i]:c,[r]:d}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:l,theme:n,getListboxStyle:a,overrides:s,checkboxes:r}),d=s.theme||{},h=l(d.header?.fontColor)||a("title.main","color"),u=function({themeApi:e,themeOverrides:t}){let n;const i=t?.background;return i?(n=i?.useExpression?xS({bgColor:i},e,"listBox"):e.getColorPickerColor(i?.color),n):n}({themeApi:t,themeOverrides:d}),g=d.background?.image?SS({bgImage:d.background.image},e,i):void 0,p=u||a("","backgroundColor")||n.palette.background.default,m=function(e,t){const n=fy(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(p,a),f=function(e){return _y("#fff",e("content","color"))}(a),b=d.header?.fontStyle||{},_=d.content?.fontStyle||{},v=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:p,backgroundImage:g?.url&&!g?.url.startsWith("url(")?`url('${g.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:g?.size,backgroundPosition:g?.pos},header:{color:h,fontSize:d.header?.fontSize||a("title.main","fontSize"),fontFamily:d.header?.fontFamily||a("title.main","fontFamily"),fontWeight:v(b.bold,"bold","normal")||a("title.main","fontWeight")||"bold",textDecoration:b.underline?"underline":"initial",fontStyle:v(b.italic,"italic","normal")||a("title.main","fontStyle")||"initial"},content:{backgroundColor:r?void 0:c.possible,color:c.possibleContrast||a("content","color"),fontSize:d.content?.fontSize||a("content","fontSize"),fontFamily:d.content?.fontFamily||a("content","fontFamily"),fontWeight:v(_.bold,"bold","normal")||a("content","fontWeight")||"normal",textDecoration:_.underline?"underline":"initial",fontStyle:v(_.italic,"italic","normal")||a("content","fontStyle")||"initial"},search:{color:f,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:m,backdropFilter:"blur(8px)"},selections:c}}({app:e,themeApi:t,theme:n,queryParams:i,components:o,checkboxes:r})}function NS({alignTo:e,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,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,_]=(0,t.useState)(0),v=wa(),C=(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}},s,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:E}=(0,t.useContext)(Dp),L=(0,t.useRef)(),D=(0,t.useRef)(),[I]=JC(s,y,D),[N]=zp(y),[R]=(0,t.useState)((()=>ey({selectDisabled:u}))),T=fb({containerRef:D,enabled:k}),{checkboxes:M=h}=N||{},O=IS({themeApi:x,theme:v,hostConfig:E,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),r()},B=Gv({layout:N,model:y,translator:S,selectionState:R,selections:I}),F=ny(N);return t.createElement(Fm,{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},t.createElement(Od,{container:!0,direction:"column",gap:0,ref:D},t.createElement(Od,{item:!0,container:!0,style:{direction:p,padding:v.spacing(1)}},t.createElement(Od,{item:!0},q?t.createElement(kd,{onClick:A,disabled:!q,size:"large"},t.createElement(Up,{title:S.get("Listbox.Unlock")})):t.createElement(kd,{onClick:w,disabled:!F,size:"large"},t.createElement(Gp,{title:S.get("Listbox.Lock")}))),t.createElement(Od,{item:!0,xs:!0}),t.createElement(Od,{item:!0},t.createElement(qC,{layout:N,more:{enabled:!q,actions:B,alignTo:L,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")}}))),t.createElement(Od,{item:!0,xs:!0},t.createElement("div",{ref:L}),t.createElement(Od,{item:!0},t.createElement(YC,{ref:C,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})),t.createElement(zv,{model:y,app:s,layout:N,selections:I,selectionState:R,direction:p,onSetListCount:e=>_(e),onCtrlF:()=>{C.current.focus()},styles:O,keyboard:T}))))}function RS({field:e,api:n,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=()=>{}}){const{translator:a}=(0,t.useContext)(Dp),l=r||(0,t.useRef)(),c=wa(),[d,h]=(0,t.useState)(!1),u=()=>{h(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,b=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,v=0===_&&0===g.qTotal;let C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:b}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,A=null,S=null,x=null;return r||(w=t.createElement(Od,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},t.createElement(jd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label),t.createElement(jd,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?A=t.createElement(Od,{item:!0},t.createElement(kd,{size:"large"},t.createElement(Up,null))):g.qOneAndOnlyOne||(A=t.createElement(Od,{item:!0},t.createElement(kd,{title:a.get("Selection.Clear"),onClick:t=>{t.stopPropagation(),n.clearField(g.qField,e.states[i])},size:"large"},t.createElement(vh,null)))),S=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===v&&y.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),x=t.createElement(Od,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&h(!d)})||null},w,A,S,d&&t.createElement(NS,{alignTo:l,show:d,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}))),r?t.createElement(NS,{alignTo:l,show:!0,close:u,app:n.model,fieldName:g.qField,stateName:e.states[i]}):x}const TS=e=>{const n=t.useRef({});return t.useEffect((()=>{n.current=e})),n.current};function MS(e){return sa("MuiBadge",e)}const OS=aa("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"]),qS=Xs("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),PS=Xs("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${va(n.anchorOrigin.vertical)}${va(n.anchorOrigin.horizontal)}${va(n.overlap)}`],"default"!==n.color&&t[`color${va(n.color)}`],n.invisible&&t.invisible]}})(ql((({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(Dc(["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:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${OS.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}))));function BS(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const FS=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:r,component:s,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:_="standard",...v}=n,{badgeContent:C,invisible:y,max:w,displayValue:A}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=TS({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:g,invisible:u,badgeContent:p,showZero:b}),S=TS({anchorOrigin:BS(i),color:h,overlap:d,variant:_,badgeContent:p}),x=y||null==C&&"dot"!==_,{color:k=h,overlap:E=d,anchorOrigin:L,variant:D=_}=x?S:n,I=BS(L),N="dot"!==D?A:void 0,R={...n,badgeContent:C,invisible:x,max:w,displayValue:N,showZero:b,anchorOrigin:I,color:k,overlap:E,variant:D},T=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e;return tn({root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${va(n.vertical)}${va(n.horizontal)}`,`anchorOrigin${va(n.vertical)}${va(n.horizontal)}${va(o)}`,`overlap${va(o)}`,"default"!==t&&`color${va(t)}`]},MS,s)})(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]=pc("root",{elementType:qS,externalForwardedProps:{...M,...v},ownerState:R,className:en(T.root,o),ref:t,additionalProps:{as:s}}),[P,B]=pc("badge",{elementType:PS,externalForwardedProps:M,ownerState:R,className:T.badge});return(0,Js.jsxs)(O,{...q,children:[c,(0,Js.jsx)(P,{...B,children:N})]})})),WS=FS,VS=function(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function zS(e){return sa("MuiListItem",e)}function HS(e){return sa("MuiListItemSecondaryAction",e)}aa("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),aa("MuiListItemSecondaryAction",["root","disableGutters"]);const jS=Xs("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}}]}),US=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...r}=i,s=t.useContext(Ch),a={...i,disableGutters:s.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return tn({root:["root",t&&"disableGutters"]},HS,n)})(a);return(0,Js.jsx)(jS,{className:en(l.root,o),ownerState:a,ref:n,...r})}));US.muiName="ListItemSecondaryAction";const $S=US,GS=Xs("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]}})(ql((({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:{[`& > .${Eh.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}}]})))),KS=Xs("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),YS=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiListItem"}),{alignItems:o="center",children:r,className:s,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:_={},slots:v={},...C}=i,y=t.useContext(Ch),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(r),x=S.length&&VS(S[S.length-1],["ListItemSecondaryAction"]),k={...i,alignItems:o,dense:w.dense,disableGutters:p,disablePadding:m,divider:f,hasSecondaryAction:x},E=(e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:r,divider:s,hasSecondaryAction:a}=e;return tn({root:["root",i&&"dense",!o&&"gutters",!r&&"padding",s&&"divider","flex-start"===t&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},zS,n)})(k),L=Nc(A,n),D=v.root||l.Root||GS,I=_.root||c.root||{},N={className:en(E.root,I.className,s),...C};let R=a||"li";return x?(R=N.component||a?R:"div","li"===d&&("li"===R?R="div":"li"===N.component&&(N.component="div")),(0,Js.jsx)(Ch.Provider,{value:w,children:(0,Js.jsxs)(KS,{as:d,className:en(E.container,h),ref:L,ownerState:k,...u,children:[(0,Js.jsx)(D,{...I,...!Tu(D)&&{as:R,ownerState:{...k,...I.ownerState}},...N,children:S}),S.pop()]})})):(0,Js.jsx)(Ch.Provider,{value:w,children:(0,Js.jsxs)(D,{...I,as:R,ref:L,...!Tu(D)&&{ownerState:{...k,...I.ownerState}},...N,children:[S,b&&(0,Js.jsx)($S,{children:b})]})})})),ZS=YS,XS=e=>_h((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)),QS="MultiState-item",JS=Xs(Od)((({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 ex({field:e,api:n,moreAlignTo:i=null,onClose:o=()=>{}}){const[r,s]=(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)(Dp),g=u.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=t.createElement(t.Fragment,null,t.createElement(Od,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(WS,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},t.createElement(jd,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.label))),t.createElement(Od,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(Od,{item:!0},t.createElement(kd,{size:"large"},t.createElement(XS,null)))));const f=t.createElement(Sh,{dense:!0},t.createElement(ZS,{title:g,onClick:()=>{e.states.forEach((t=>n.clearField(e.name,t)))}},t.createElement(og,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>t.createElement(ZS,{key:o,title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},t.createElement(Tl,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(RS,{field:e,api:n,stateIx:o,skipHandleShowListBoxPopover:!0})))))),b=t.createElement(Fm,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?b:t.createElement(JS,{container:!0,gap:0,className:QS,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,s(!r))}},m,r&&b,a>-1&&t.createElement(NS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?t.createElement(NS,{alignTo:h,show:a>-1,close:p,app:n.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const tx="More",nx={item:`${tx}-item`,badge:`${tx}-badge`},ix=Xs(Od)((({theme:e})=>({[`&.${nx.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${nx.badge}`]:{padding:e.spacing(0,1)}})));function ox({items:e=[],api:n}){const i=wa(),[o,r]=(0,t.useState)(!1),[s,a]=(0,t.useState)(-1),[l,c]=(0,t.useState)(null),d=(0,t.useRef)(),h=()=>{a(-1)};let u=null;return s>-1&&(u=e[s].states.length>1?t.createElement(ex,{field:e[s],api:n,moreAlignTo:d,onClose:h}):t.createElement(RS,{field:e[s],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),t.createElement(ix,{container:!0,gap:0,className:nx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},t.createElement(Od,{item:!0},t.createElement(Tl,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(jd,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),t.createElement(Od,{item:!0},t.createElement(kd,{size:"large"},t.createElement(XS,null))),o&&t.createElement(Fm,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(Sh,{dense:!0},e.map(((e,i)=>t.createElement(ZS,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},t.createElement(Tl,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(ex,{field:e,api:n}):t.createElement(RS,{field:e,api:n}))))))),u)}function rx({api:e,app:n}){const i=wa(),[o]=Fp(n),[r]=zp(o),[s,a]=(0,t.useState)({items:[],more:[]}),{modalObjectStore:l}=(0,t.useContext)(Dp).selectionStore,[c,d]=jp(),[h,u]=(0,t.useState)(0);return(0,t.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-72,n=Math.floor(t/120);u(n)}),[d]),(0,t.useEffect)((()=>{if(!(n&&o&&r&&h))return;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))))}(r);a((t=>{const i=e;if((()=>{const{model:e}=l.get(n.id)||{};return"njsListbox"===e?.genericType})()&&i.length+1===t.items.length){const e=t.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);i.splice(o,0,e)}let o=[];return h<i.length&&(o=i.splice(h-i.length)),{items:i,more:o}}))}),[n,o,r,e.isInModal(),h]),t.createElement(Od,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((n=>t.createElement(Od,{item:!0,key:`${n.states.join("::")}::${n.name}`,style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.states.length>1?t.createElement(ex,{field:n,api:e}):t.createElement(RS,{field:n,api:e})))),s.more.length>0&&t.createElement(Od,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.createElement(ox,{items:s.more,api:e})))}const sx=e=>_h((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)),ax=e=>_h((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 lx({api:e,app:n}){const{translator:i}=(0,t.useContext)(Dp),[o]=function(e){const[n]=Fp(e),[i]=zp(n),[o]=Hp(e),[r,s]=(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}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),r=(n.qStateNames||[]).map((e=>e)).join("::");o!==r&&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})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,n,i]}(n);return t.createElement(Od,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(Od,{item:!0},t.createElement(kd,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},t.createElement(sx,null))),t.createElement(Od,{item:!0},t.createElement(kd,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},t.createElement(ax,null))),t.createElement(Od,{item:!0},t.createElement(kd,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},t.createElement(lC,null))))}const cx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function dx([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function hx(){return cx.map(dx).join("")}function ux({app:e}){const n=wa(),[i]=ZC(e);return i?t.createElement(Od,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},t.createElement(Od,{item:!0,style:{borderRight:`1px solid ${n.palette.divider}`}},t.createElement(lx,{api:i,app:e})),t.createElement(Od,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},t.createElement(rx,{api:i,app:e}))):null}let gx;gx="undefined"!=typeof window?window:"undefined"!=typeof self?self:s.g;let px=null,mx=null;const fx=gx.clearTimeout,bx=gx.setTimeout,_x=gx.cancelAnimationFrame||gx.mozCancelAnimationFrame||gx.webkitCancelAnimationFrame,vx=gx.requestAnimationFrame||gx.mozRequestAnimationFrame||gx.webkitRequestAnimationFrame;null==_x||null==vx?(px=fx,mx=function(e){return bx(e,20)}):(px=function([e,t]){_x(e),fx(t)},mx=function(e){const t=vx((function(){fx(n),e()})),n=bx((function(){_x(t),e()}),20);return[t,n]});class Cx 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"),r=parseFloat(i.paddingRight||"0"),s=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,d=l.width-o-r,h=this._parentNode.offsetHeight-s-a,u=this._parentNode.offsetWidth-o-r;(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,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=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},r=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;s(this),this.__resizeRAF__&&px(this.__resizeRAF__),this.__resizeRAF__=mx((function(){r(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(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=gx.getComputedStyle(r);c&&"static"===c.position&&(r.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%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__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",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(h),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__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:r=!1,doNotBailOutOnEmptyChildren:s=!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 _=!1;return o||(0===u&&(_=!0),f.height=0,b.height=u,b.scaledHeight=g),r||(0===m&&(_=!0),f.width=0,b.width=m,b.scaledWidth=p),s&&(_=!1),(0,t.createElement)(d,{ref:this._setRef,style:{...f,...c},...h},!_&&e(b))}}function yx({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:i,isModal:o,constraints:r,selections:s}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:i=!1}=t.nativeEvent,r=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case gb.TAB:if(document.activeElement===a||!l&&!a.contains(document.activeElement))return;if(i)vb(a)||_b(a)||yb(t,e);else if(!(Cb(a)||_b(a)||vb(a)))break;r();break;case gb.ENTER:case gb.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),r();break;case gb.ESCAPE:yb(t,e),s.isActive()&&s.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=r?.select||r?.active,t=o();return e||t})())return;const{keyCode:s,ctrlKey:a=!1,shiftKey:l=!1}=e;switch(s){case gb.ARROW_UP:n({up:1});break;case gb.ARROW_DOWN:n({down:1});break;case gb.PAGE_UP:n({up:i.stop-i.start});break;case gb.PAGE_DOWN:n({down:i.stop-i.start});break;case gb.HOME:n({scrollPosition:a&&l?"overflowStart":"start"});break;case gb.END:n({scrollPosition:a&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const wx=Xs("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Ax({text:e}){const{translator:n}=(0,t.useContext)(Dp);return t.createElement(wx,null,n.get(e))}const Sx={fontSize:"12px"},xx=Xs(dd)((({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"}}))),kx=Xs(Od,{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}}))),Ex=Xs(jd)((({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})));function Lx({translator:e,toggleLock:n,keyboard:i,isLoading:o}){const r=e.get("SelectionToolbar.ClickToUnlock");return t.createElement(xx,{title:r,tabIndex:i.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?t.createElement(Cd,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(Up,{disableRipple:!0,style:Sx}),!o&&t.createElement(jd,{fontSize:"14px"},r))}const Dx=e=>_h((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)),Ix=e=>_h((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)),Nx=e=>_h((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)),Rx=Xs(og)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}))),Tx=function({iconData:e,translator:n,iconStyle:i,disabled:o,keyboard:r}){if(!e)return;const{icon:s,tooltip:a,onClick:l,onKeyDown:c}=e,d=s,h=n.get(a);return l?t.createElement(Rx,{variant:"outlined",onClick:l,tabIndex:r.innerTabStops?0:-1,title:h,size:"large",disableRipple:!0,disabled:o,onKeyDown:c,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},t.createElement(d,{style:i})):t.createElement(d,{title:h,size:"large",style:{...i,padding:"7px"}})};function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mx.apply(null,arguments)}let Ox=0;const qx=function({layout:e,translator:n,styles:i,isRtl:o,showLock:r,showSearchIcon:s,constraints:a,onShowSearch:l,classes:c,containerRect:d,isPopover:h,showToolbar:u,showDetachedToolbarOnly:g,containerRef:p,model:m,selectionState:f,isDirectQuery:b,selections:_,keyboard:v,autoConfirm:C,app:y,disablePortal:w}){const[A,S]=(0,t.useState)(g),[x,k]=(0,t.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[E,L]=(0,t.useState)(!1);(0,t.useEffect)((()=>{k(e?.qListObject?.qDimensionInfo?.qLocked)}),[e?.qListObject?.qDimensionInfo?.qLocked]);const D=(0,t.useRef)(null),I=(({dimInfo:e,app:t,selections:n,isPopover:i,active:o,keyboard:r})=>{switch(e.qGrouping){case"H":return{icon:Ix,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const s=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:s?Nx:Dx,tooltip:"Listbox.Cyclic",onClick:s?a:void 0,onKeyDown:s?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case gb.SPACE:case gb.ENTER:a();break;case gb.TAB:{if(!r.enabled)return;let n;n=e.shiftKey?r.focusSelection():_b(t)||vb(t),n||yb(e,r)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:y,selections:_,isPopover:h,active:!a?.active,keyboard:v}),N=r&&x,R=!r&&x,T=s||R||I,M=9-(T?7:0),O=o?9-(T?7:0):4,q=(s?28:0)+(R?28:0)+(I?28:0),P=function({isLocked:e,setLocked:t,settingLockedState:n,model:i,setSettingLockedState:o}){return()=>{const r=new Date;if(r-Ox<500)return Promise.resolve();if(n)return()=>{};o(!0),Ox=r;const s=e?i.unlock:i.lock;return t(!e),s.call(i,"/qListObjectDef").catch((()=>{t(e)})).finally((()=>{setTimeout((()=>{o(!1)}),0)}))}}({isLocked:x,setLocked:k,settingLockedState:E,setSettingLockedState:L,model:m}),B=Gv({layout:e,model:m,translator:n,selectionState:f,isDirectQuery:b,selections:_}),F=x||!r?void 0:[{key:"lock",type:void 0,label:n.get("SelectionToolbar.ClickToLock"),getSvgIconShape:$p,enabled:()=>!E&&!f.selectDisabled()&&ny(e),action:P}],W=a?.active?t.createElement(HC,{title:n.get("Listbox.Search"),size:"large",style:{...Sx,padding:"7px"}}):t.createElement(kd,{onClick:l,tabIndex:-1,title:n.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(HC,{style:Sx}));(0,t.useEffect)((()=>{if(!D.current||!d)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:i,paddingRight:o}){const r=i+o;return!!(e.width<(t?.current?.clientWidth??0)+n+r+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:d,titleRef:D,iconsWidth:q,paddingLeft:M,paddingRight:O});S(g||e)}),[q,M,O,D.current,g,Object.entries(d||{}).sort().join(",")]);const V=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,extraItems:r,selections:s,keyboard:a,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:r,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:s,onConfirm:()=>{a?.focus()},onCancel:()=>{a?.focus()}}}}({isDetached:!h&&A,showToolbar:u,containerRef:p,isPopover:h,isLocked:x,extraItems:F,listboxSelectionToolbarItems:B,selections:_,keyboard:v,autoConfirm:C,disablePortal:w}),z=t.createElement(qC,Mx({isRtl:o,layout:e},V));if(g)return z;const H=R?t.createElement(Up,{size:"large",style:{...Sx,padding:"7px"}}):void 0;return t.createElement(kx,{item:!0,container:!0,styles:i,isRtl:o,marginY:1,paddingLeft:`${M}px`,paddingRight:`${O}px`,className:"header-container"},N&&t.createElement(Lx,{isLoading:E,translator:n,toggleLock:P,keyboard:v}),T&&t.createElement(Od,{item:!0,container:!0,alignItems:"center",width:q,className:"header-action-container"},H||s&&W,t.createElement(Tx,{iconData:I,iconStyle:Sx,disabled:_.isActive()&&h,translator:n,keyboard:v})),t.createElement(Od,{item:!0,xs:!0,minWidth:0,justifyContent:o?"flex-end":"flex-start",className:c.listBoxHeader},t.createElement(Ex,{variant:"h6",noWrap:!0,ref:D,title:e.title,styles:i},e.title)),t.createElement(Od,{item:!0,display:"flex"},z))},Px="ListBoxInline",Bx={listBoxHeader:`${Px}-listBoxHeader`,screenReaderOnly:`${Px}-screenReaderOnly`,listboxWrapper:`${Px}-listboxWrapper`},Fx=Xs(Od,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((({theme:e,containerPadding:t,isGridMode:n,styles:i})=>({...i.background,[`& .${Bx.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${Bx.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${Bx.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:n?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})));function Wx({options:e,layout:n}){const{app:i,direction:o,frequencyMode:r,checkboxes:s,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:_,toolbar:v=!0,isPopover:C=!1,showLock:y=!1,components:w,selectDisabled:A=()=>!1,disablePortal:S=!0}=e,x=wa(),{translator:k,keyboardNavigation:E,themeApi:L,queryParams:D,constraints:I}=(0,t.useContext)(Dp),{checkboxes:N=s}=n||{},R=IS({app:i,themeApi:L,theme:x,queryParams:D,components:w,checkboxes:N}),T=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),M=(0,t.useRef)(),O=(0,t.useRef)(),[q,P]=jp(),[B,F]=(0,t.useState)(!1),[W,V]=(0,t.useState)(!1),z=(0,t.useRef)(!1),[H,j]=(0,t.useState)({down:0,up:0,scrollPosition:""}),U=e=>j((t=>({...t,...e}))),[$,G]=(0,t.useState)({start:0,stop:0}),[K]=ZC(i),[Y]=(0,t.useState)((()=>ey({selectDisabled:A}))),Z=fb({containerRef:M,enabled:E}),X=(0,t.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:K})),[i,K]),Q=n?.qListObject.qDimensionInfo.qError,J=Q&&I.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ee,handleOnMouseEnter:te,handleOnMouseLeave:ne,globalKeyDown:ie}=(0,t.useMemo)((()=>yx({keyboard:Z,hovering:z,updateKeyScroll:U,containerRef:M,currentScrollIndex:$,app:i,appSelections:K,constraints:I,isModal:X,selections:h})),[Z,z,U,M,$,i,K,I,X]);(0,t.useEffect)((()=>(document.addEventListener("keydown",ie),()=>{document.removeEventListener("keydown",ie)})),[ie]),(0,t.useEffect)((()=>{!0===a&&V(!0);const e=()=>{F(!0)},t=()=>{F(!1),"toggle"===a&&V(!1)};return C&&(h.isActive()||(h.on("activated",e),h.on("deactivated",t)),F(C)),v&&h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),F(C||h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}}),[v,h,C]);const{wildCardSearch:oe,searchEnabled:re,autoConfirm:se=!1,layoutOptions:ae={}}=n??{},le=n?.qListObject?.qDimensionInfo?.qLocked,ce=!1!==re&&"toggle"===a&&!le,de=n?.title?.length&&!1!==n?.showTitle,he=v&&!de&&!C,ue=v&&de||C,ge="rtl"===o;if(!(d&&n&&k&&R))return null;const pe=!0===a||"toggle"===a&&W&&!1!==re,me=ae.dense??!1,fe=()=>{V(!W)},be=()=>{"toggle"===a?fe():O.current.focus()},_e=pe&&("toggle"===a||l),ve="grid"===ae?.dataLayout,Ce=function({isGridMode:e,dense:t,height:n,layoutOrder:i}){let o;if(e){let r;r=Xb({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===i?`${r} 4px`:`${r} 6px ${r} 4px`}else o=void 0;return o}({isGridMode:ve,dense:me,height:M.current?.clientHeight,layoutOrder:ae.layoutOrder});Q&&_?.();const ye=ue?30:0,we=t.createElement(qx,{app:i,showSearchIcon:ce,onShowSearch:fe,isPopover:C,showToolbar:B,isDirectQuery:T,autoConfirm:se,showDetachedToolbarOnly:he,layout:n,translator:k,styles:R,isRtl:ge,showLock:y,constraints:I,classes:Bx,containerRect:P,containerRef:M,model:d,selectionState:Y,selections:h,keyboard:Z,disablePortal:S});return t.createElement(t.Fragment,null,he&&we,t.createElement(Fx,{className:"listbox-container",container:!0,tabIndex:Z.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ce,styles:R,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ee,onMouseEnter:te,onMouseLeave:ne,ref:e=>{M.current=e,q(e)},isGridMode:ve,"aria-label":Z.active?k.get("Listbox.ScreenReaderInstructions"):""},ue&&we,t.createElement(Od,{item:!0,container:!0,direction:"column",height:"100%",minHeight:ye,role:"region","aria-label":k.get("Listbox.ResultFilterLabel")},t.createElement(Od,{item:!0},t.createElement(YC,{ref:O,selections:h,selectionState:Y,model:d,dense:me,keyboard:Z,visible:pe,search:a,autoFocus:_e,beginSelectionOnFocus:!C,wildCardSearch:oe,searchEnabled:re,direction:o,hide:ce&&fe,styles:R})),t.createElement(Od,{item:!0,xs:!0,className:Bx.listboxWrapper},Q?t.createElement(Ax,{text:J}):t.createElement(Cx,null,(({height:e,width:s})=>t.createElement(zv,{model:d,app:i,constraints:I,layout:n,selections:h,selectionState:Y,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:N,height:e,width:s,update:u,fetchStart:g,postProcessPages:p,calculatePagesHeight:m,keyboard:Z,showGray:f,scrollState:b,keyScroll:{state:H,reset:()=>j({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:$,set:G},renderedCallback:_,onCtrlF:be,isModal:X,styles:R})))))))}const Vx=t.memo(Wx),zx=function({options:e={}}){const{model:n}=e,[i]=zp(n);return t.createElement(Vx,{options:e,layout:i})};const Hx={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 jx(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 Ux=(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}},$x=(0,t.forwardRef)((({app:e,fieldIdentifier:n,qId:i,stateName:o,element:r,initialOptions:s,renderedCallback:a},l)=>{const[c,d]=(0,t.useState)(s),{isExistingObject:h,hasExternalSelectionsApi:u}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:c});h||Object.assign(c,{frequencyMode:jx(c.frequencyMode)});const[g,p]=(0,t.useState)(0);(0,t.useEffect)((()=>{if(g)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(g+1)}),[h,u]);const m=h?function({app:e,qId:n,options:i={}}){const[o,r]=(0,t.useState)(),[s]=qp(),{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 s.get(t)||await e.getObject(t)}(n));if(!t){if(!s.get(o.id)){s.set(o.id,o);const e=()=>{s.clear(o.id)};o.once("closed",e),i=()=>{o.removeListener("closed",e)}}r(o)}}(),()=>{t=!0,i()}}),[]),o}({app:e,qId:i,options:c}):function({app:e,fieldIdentifier:n,stateName:i,options:o={}}){const[r,s]=(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;r&&r.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?s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),u(n))}),[]);const{dense:f,checkboxes:b,listLayout:_,properties:v={}}=o,C={dense:f};"horizontal"===_&&(C.dataLayout="grid",C.layoutOrder="column",C.maxVisibleColumns={auto:!0},C.maxVisibleRows={auto:!1,maxRows:1});const y=(0,t.useRef)();y.current||(y.current=hx());const w=ip()(!0,{},Hx,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:p&&"N"===m?"V":m},histogram:p,checkboxes:b,layoutOptions:C,title:g});let A;if(ip()(!0,w,v),n.qLibraryId?(w.qListObjectDef.qLibraryId=n.qLibraryId,A=n.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[n],A=n),"P"!==m&&p)if(r?.multiFieldDim)w.frequencyMax="fetch";else{const e=n.qLibraryId?r:A;w.frequencyMax={qValueExpression:Wv(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:c}),f=(0,t.useRef)(r),b=u?c.selectionsApi:JC(e,m,[f,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],_=(0,t.useMemo)((()=>({...c,selections:b,model:m,app:e,renderedCallback:a})),[c,b,m,e]);return(0,t.useImperativeHandle)(l,(()=>({setOptions:e=>d(e)})),[]),b&&m?t.createElement(zx,{options:_}):null})),Gx={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Kx({app:e,fieldIdentifier:n,stateName:i,element:o,options:r={}}){const[s,a]=(0,t.useState)(!!r.show);return t.createElement(NS,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:n,stateName:i,autoFocus:r.autoFocus,components:r.components,sortCriteria:r.sortCriteria,direction:r.direction})}function Yx(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Zx(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 Xx({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 r="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||hx(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),Yx(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,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(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Zx(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||hx(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),Yx(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,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(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Zx(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 Qx({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||hx(),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 Jx=e=>({qDef:{qFieldDefs:[e]}});function ek({children:e,halo:t}){const n={async addDimension(n){const i=(e=>{let t;return t="string"==typeof e?ip()(!0,{},Hx,{qListObjectDef:Jx(e)}):e.qListObjectDef?ip()(!0,{},Hx,e):ip()(!0,{},Hx,{qListObjectDef:e}),t})(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||hx(),!i.title)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 tk(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 nk({sn:e,properties:t,fields:n,children:i},o){if(!n.length)return;const r=e.qae.data.targets[0];if(!r)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:s}=r,a=s.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")?Qx:e.match("/qChildListDef")?ek:Xx}(s),d=c({dc:l,def:r,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===tk(t)?await d.addMeasure(t):await d.addDimension(t)}}const ik={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 r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},ok=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},rk=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},ak=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)},lk=2**53-1;function ck(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function dk(e,t){const n=ip()(!0,{},t,e);return ik.getValue(n,"qOtherTotalSpec.qOtherCounted")||ik.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ik.getValue(n,"qOtherTotalSpec.qOtherLimit")||ik.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function hk(e,t){return ip()(!0,{},t,e)}function uk(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const gk={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===ik.getValue(e,t)&&ik.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:ck,importCommonProperties:function(e,t,n){const i="masterobject"===ik.getValue(t,"properties.qInfo.qType")?"masterobject":ik.getValue(n,"qInfo.qType");ik.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:dk,createDefaultMeasure:hk,resolveValue:uk,getHypercubePath:function(e){const t=ik.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?(rk(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=ip()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?ik.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||ck(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=ip()(!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},r=uk(o.max,n.dimensions.length,lk),s=uk(o.min,n.dimensions.length,0);return{maxDimensions:uk(i.max,r,lk),minDimensions:uk(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(dk(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(dk(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(dk(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(dk(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(dk(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(hk(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(hk(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(hk(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(hk(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(hk(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=ik.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=ik.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},pk={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=ik.getValue(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ok(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.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&&(gk.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!ik.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=gk.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=ik.getValue(t,o||"").qHyperCubeDef,l=ik.getValue(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u}=gk.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=gk.getDefaultDimension(),defaultMeasure:p=gk.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,gk.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u})&&gk.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:h,minMeasures:u,newHyperCubeDef:l}),gk.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),gk.addDefaultMeasures({exportFormat:e,maxMeasures:h,minMeasures:u,newHyperCubeDef:l,defaultMeasure:p}),gk.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),gk.copyPropertyIfExist("qMaxStackedCells",a,l),gk.copyPropertyIfExist("qNoOfLeftDims",a,l),gk.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),gk.copyPropertyOrSetDefault("qMode",a,l,"S"),gk.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),gk.copyPropertyOrSetDefault("qSortbyYValue",a,l),gk.copyPropertyOrSetDefault("qIndentMode",a,l),gk.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),gk.importCommonProperties(s,e,t),gk.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),gk.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},mk=e=>ik.getValue(e,"data.targets.0.propertyPath"),fk=async({halo:e,model:t,cellRef:n,newType:i,properties:o,viewDataMode:r=!1})=>{const s=o?{qProperty:o}:await t.getFullPropertyTree(),a=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return pk.exportProperties})(mk(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 pk.importProperties})(mk(e)))(d);if(!h)throw new Error("Target chart does not support conversion");return h({exportFormat:l({propertyTree:s,hypercubePath:gk.getHypercubePath(a),viewDataMode:r}),initialProperties:{qInfo:{qType:i},visualization:i,...ik.getValue(d,"properties.initial",{})},dataDefinition:ik.getValue(d,"data.targets.0.",{}),hypercubePath:gk.getHypercubePath(d),viewDataMode:r})},bk={hypercube:pk},_k=ip().bind(null,!0),vk={},{isArray:Ck}=Array;function yk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function wk(e){return void 0===e}function Ak(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Sk(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=wk(e[i||t])?r:e[t],e=e[i||t]})),e}function xk(e,t){let n=!0;if(yk(e)&&yk(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 r=function(e){return e?_k({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;xk(r,s)||Ak(t,o)||(wk(s)?i.push({op:"add",path:a,value:r}):yk(r)&&yk(s)?i=i.concat(vk.generate(s,r,a)):Ck(r)&&Ck(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&wk(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(!wk(t[0])&&wk(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(vk.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{wk(t[o])&&!Ak(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 r=t.from?t.from.split("/").splice(-1)[0]:null;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(yk(o)&&yk(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!Ak(s,e)&&delete s[e]})),_k(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(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(Ck(n)?n.splice(+i,1):delete n[i]);var s}))},vk.clone=function(e){return _k({},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)):_k(e,t)};const kk=vk;let Ek,Lk;function Dk(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 Ik(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 Nk(e){Tk(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 Rk(e){if(e.__hooks.obsolete)return Promise.resolve();Lk=-1,Ek=e;let t=-1;Ek.__hooks.initiated&&(t=Ek.__hooks.list.length);try{Ek.fn.call(null)}catch(e){console.error(e)}Ek.__hooks.initiated=!0,t>-1&&t!==Ek.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=Ek.__hooks;return Pk(Ek),Lk=void 0,Ek=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){Tk(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){Tk(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 Tk(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 Mk(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 Ok(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 qk(e){return e.__hooks.imperativeHandle}function Pk(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Bk(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Pk(e))}function Fk(e){if(void 0===Ek)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Ek.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Wk(e){return Fk(++Lk),Ek.context[e]}function Vk(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function zk(e){return{__hooked:!0,fn:e,initiate:Ik,run:Rk,teardown:Nk,runSnaps:Mk,runMenu:Ok,focus:CE,blur:yE,observeActions:Bk,getImperativeHandle:qk,updateRectOnNextRun:Vk}}function Hk(e){const t=Fk(++Lk);if(!t.value){t.component=Ek;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,Rk(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function jk(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=Fk(++Lk);Dk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Ek.__hooks.pendingEffects.indexOf(n)&&Ek.__hooks.pendingEffects.push(n))}function Uk(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=Fk(++Lk);Dk(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Ek.__hooks.pendingLayoutEffects.push(n))}function $k(e,t){t||console.warn("useMemo called without dependencies.");const n=Fk(++Lk);return Dk(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Gk(e){return $k((()=>({current:e})),[])}function Kk(e,t){const[n,i]=Hk((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Fk(++Lk);return o.component||(o.component=Ek),Uk((()=>{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 Yk(){return Wk("element")}function Zk(){const e=Yk(),t=Ek.__hooks.resizer,[n,i]=Hk((()=>{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()),Uk((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};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 Xk(){return Wk("layout")}function Qk(){const e=Wk("layout"),[t]=Hk({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Jk(){return Wk("appLayout")}function eE(){const e=Wk("model");return e&&e.session?e:void 0}function tE(){const e=Wk("app");return e&&e.session?e:void 0}function nE(){const e=Wk("global");return e&&e.session?e:void 0}function iE(){return Wk("selections")}function oE(){return Wk("theme")}function rE(){return Wk("nebbie")}function sE(){return Wk("translator")}function aE(){return Wk("deviceType")}function lE(){return Wk("navigation")}function cE(){return Wk("plugins")}function dE(e,t){const[n]=Hk({action(){n._config.action.call(null)}});return n.component||(n.component=Ek,Ek.__hooks.actions.list.push(n)),$k((()=>{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 hE(){return Ek.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),Ek.__hooks.contraintsWarning=!1),Wk("constraints")}function uE(){return Wk("interactions")}function gE(){return Wk("options")}function pE(e,t){const n=Fk(++Lk);if(!n.imperative){if(Ek.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(Dk(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],Ek.__hooks.imperativeHandle=i}}function mE(e){const t=Fk(++Lk);t.value||(t.value=1,Ek.__hooks.snaps.push(t)),t.fn=e}function fE(e){const t=Fk(++Lk);t.value||(t.value=1,Ek.__hooks.menus.push(t)),t.fn=e}function bE(){Fk(++Lk);const e=Ek.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function _E(){return Wk("emitter")}function vE(){const e=Wk("keyboardNavigation"),t=Wk("focusHandler");if(!Ek.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n.enabled&&n.active&&(yE(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Ek);Ek.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),CE(this))}.bind(Ek);Ek.__hooks.accessibility.focusFunction=n;const i=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Ek);Ek.__hooks.accessibility.focusSelectionFunction=i}const n=Ek.__hooks.accessibility.focusFunction,i=Ek.__hooks.accessibility.exitFunction,o=Ek.__hooks.accessibility.focusSelectionFunction,[r,s]=Hk({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return Ek.__hooks.accessibility.setter=s,Ek.__hooks.accessibility.enabled=e,jk((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function CE(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 yE(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 wE={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},AE=Object.keys(wE);function SE(e,t){console.warn("Obsolete API - time to get hooked!");const n={...wE};var i;i=n,Object.keys(yg().prototype).forEach((e=>{i[e]=yg().prototype[e]})),yg().init(i);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==AE.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const r=function({sn:e,component:t}){const n={},i=[],o=(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(yg().prototype).forEach((e=>{i[e]=yg().prototype[e]})),yg().init(i),i);var i;return n})(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}}}({sn:e,component:o}),s=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:s,selections:t.selections,actions:r.actions}),Object.assign(n,{actions:r.actions,model:t.model,app:t.app,selections:t.selections}),[n,r]}const xE=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],kE=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map((([e,t])=>e+(Math.random()*(t-e)|0).toString(32))).join(""),EE=(e,t)=>e&&e.find((e=>e.qDef?.cId===t))||null,LE=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??kE()}}),DE=e=>({...LE(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),IE=(e,t,n)=>{const i=t;e.forEach(((e,t)=>{const o=e.qTags,r={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(i,n.properties,o,r,n):(r.qSortByNumeric=1,r.qSortByAscii=1),i.qDef.qSortCriterias?i.qDef.qSortCriterias[t]=r:i.qDef.qSortCriterias=[r]}))},NE=new Error("Not supported in this object, need to implement in subclass."),RE=e=>e?[...e].map((e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e)):[],TE=(e,t)=>{if(e)return t&&ik.getValue(e,t)?ik.getValue(e,t).qHyperCube:e.qHyperCube};function ME(e,t){return e.filter(((e,n)=>t.includes(n)))}function OE(e,t,n=void 0){const i=e.getAlternativeDimensions(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function qE(e,t,n){rk(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function PE(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 BE(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function FE(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function WE(e,t,n,i,o,r){await e.autoSortDimension(t),rk(e.hcProperties.qInterColumnSortOrder,n+r),i.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function VE(e,t,n=void 0){const i=e.getAlternativeMeasures(),o=n??i.length;return i.splice(o,0,t),Promise.resolve(t)}function zE(e,t){rk(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function HE(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<1e3}function jE(e,t,n,i){const o=e-n.length;let[r]=n.splice(n.length-1,1);return i.splice(0,0,r),[r]=i.splice(o+1,1),n.splice(t,0,r),Promise.resolve(r)}const UE=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 EE(t,e.id)??EE(n,e.id)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw NE}addDimensions(){throw NE}removeDimension(){throw NE}removeDimensions(){throw NE}autoSortDimension(){throw NE}replaceDimension(){throw NE}getSorting(){throw NE}createLibraryDimension(e){let t=ip()(!0,{},this.dimensionProperties||{},e.defaults||{});return t=DE(t),t.qLibraryId=e.id,t.qDef.autoSort=!0,t.qDef.qSortCriterias=xE,delete t.qDef.qFieldDefs,delete t.qDef.qFieldLabels,t}createFieldDimension(e){let t=ip()(!0,{},this.dimensionProperties||{},e.defaults||{});return t=DE(t),e.field||(t.qDef.qFieldDefs=[],t.qDef.qFieldLabels=[],t.qDef.qSortCriterias=[]),t.qDef.qFieldDefs=[e.field],t.qDef.qFieldLabels=e.label?[e.label]:[""],t.qDef.qSortCriterias=xE,t.qDef.autoSort=!0,t}addFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t)}addFieldDimensions(e){const t=e.map((e=>this.createFieldDimension(e)));return this.addDimensions(t)}addLibraryDimension(e){const t=this.createLibraryDimension(e);return this.addDimension(t)}addLibraryDimensions(e){const t=e.map((e=>this.createLibraryDimension(e)));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map((e=>this.createLibraryDimension(e)));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map((e=>this.createFieldDimension(e)));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e){const t=this.createLibraryDimension(e);return this.addDimension(t,!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 NE}addMeasures(){throw NE}removeMeasure(){throw NE}removeMeasures(){throw NE}autoSortMeasure(){throw NE}replaceMeasure(){throw NE}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return EE(t,e.id)??EE(n,e.id)}createExpressionMeasure(e){const t=ip()(!0,{},this.measureProperties||{},e.defaults||{});return t.qDef=t.qDef??{},t.qDef.qNumFormat=t.qDef.qNumFormat??{},t.qDef.qDef=e.expression,t.qDef.qLabel=e.label,t.qDef.autoSort=!0,t}addExpressionMeasure(e){const t=this.createExpressionMeasure(e);return this.addMeasure(t)}addExpressionMeasures(e){const t=e.map((e=>this.createExpressionMeasure(e)));return this.addMeasures(t)}createLibraryMeasure(e){const t=ip()(!0,{},this.measureProperties||{},e.defaults||{});return t.qDef=t.qDef??{},t.qDef.qNumFormat=t.qDef.qNumFormat??{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(t.qDef),t.qLibraryId=e.id,t.qDef.autoSort=!0,delete t.qDef.qDef,delete t.qDef.qLabel,t}addLibraryMeasure(e){const t=this.createLibraryMeasure(e);return this.addMeasure(t)}addLibraryMeasures(e){const t=e.map((e=>this.createLibraryMeasure(e)));return this.addMeasures(t)}addAltLibraryMeasures(e){const t=e.map((e=>this.createLibraryMeasure(e)));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map((e=>this.createExpressionMeasure(e)));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e){const t=this.createExpressionMeasure(e);return this.addMeasure(t,!0)}addAlternativeLibraryMeasure(e){const t=this.createLibraryMeasure(e);return this.addMeasure(t,!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})}))}},$E=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()=>(qE(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)},GE=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)},KE=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)},YE=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}))},ZE=class extends UE{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?ik.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=RE(this.hcProperties.qDimensions),this.hcProperties.qMeasures=RE(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=TE(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e){const t=DE(e.dimension);return FE(this,e.alternative)?OE(this,t,e.index):$E(this,t,e.index)}async addDimensions(e){const t=this.getDimensions(),n=t.length,i=[];let o=0;const{dimensions:r}=e;for await(const s of r){if(BE(this,t))return i;const r=DE(s);if(FE(this,e.alternative||!1)){const e=await OE(this,r);i.push(e)}else t.length<this.maxDimensions()&&(await WE(this,r,n,t,i,o),o++)}return i}removeDimension(e){const{alternative:t,index:n}=e;t&&YE(this,n),GE(this,n)}async removeDimensions(e){const t=this.getAlternativeDimensions(),n=this.getDimensions();if(0===e.indexes.length)return[];let i=[];const o=[...e.indexes].sort(((e,t)=>t-e));if(e.alternative&&t.length>0){i=ME(t,e.indexes);for await(const e of o)await YE(this,e)}else if(n.length>0){i=ME(n,e.indexes);for await(const e of o)await GE(this,e)}return i}replaceDimension(e){const{index:t,dimension:n}=e;return this.autoSortDimension(n).then((()=>function(e,t,n){if(!n)return;const i=e.getDimensions(),o=i[t],r={...n,qDef:{...n.qDef,cId:kE()}};return i[t]=r,r&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,t,n)))}reinsertDimension(e){const t=LE(e.dimension);return FE(this,e.alternative)?OE(this,t,e.index).then((()=>{PE(this,t)})):function(e,t,n){const i=e.getDimensions(),o=n??i.length;return i.length<e.maxDimensions()?(i.splice(o,0,t),qE(e,i),PE(e,t)):Promise.resolve(t)}(this,t,e.index)}moveDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions();return e.fromIndex<t.length&&e.toIndex<t.length?Promise.resolve(ak(t,e.fromIndex,e.toIndex)):e.fromIndex<t.length&&e.toIndex>=t.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e.fromIndex,e.toIndex,t,n):e.fromIndex>=t.length&&e.toIndex<t.length?Promise.resolve(jE(e.fromIndex,e.toIndex,t,n)):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;ak(i,o,r)}(e.fromIndex,e.toIndex,t,n))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then((n=>{const i=t?.qLibraryId&&(o=t.qLibraryId,(r=n)&&r.find((e=>e.qInfo.qId===o))||null);var o,r;return i&&IE(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&&IE([i],t,e),t}))}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=TE(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}addMeasure(e){const t=LE(e.measure);return HE(this,e.alternative)?VE(t,this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures,e.index):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((()=>(zE(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,t,e.index)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e){const t=this.getMeasures(),n=[];let i=0;return e.measures.forEach((async o=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,t))return!1;const r=LE(o);return HE(this,e.alternative||!1)?(VE(this,r),n.push(r)):t.length<this.maxMeasures()&&(await function(e,t,n,i,o){const r=e.getDimensions(),s={...t};return s.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},rk(e.hcProperties.qInterColumnSortOrder,r.length+n.length+o),n.push(s),i.push(s),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,s,e.properties,e),Promise.resolve(i)}(this,r,t,n,i),i++),!0})),n}removeMeasure(e){const{index:t,alternative:n}=e;n&&function(e,t){e.getAlternativeMeasures().splice(t,1)}(this,t),KE(this,t)}async removeMeasures(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();let i=[];if(0===e.length)return i;if(e.alternative&&n.length>0)i=ME(n,e.indexes),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.indexes);else if(t.length>0){i=ME(t,e.indexes);const n=[...e.indexes].sort(((e,t)=>t-e));for await(const e of n)await KE(this,e)}return i}replaceMeasure(e){const{index:t,measure:n}=e;return this.autoSortMeasure(n).then((()=>function(e,t,n){const i=e.getMeasures(),o=i[t],r={...n,qDef:{...n.qDef,cId:kE()}};return i[t]=r,r&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,r,o,t,e.properties,e),r}(this,t,n)))}reinsertMeasure(e){const t=LE(e.measure);return HE(this,e.alternative)?VE(this,t,e.index):function(e,t,n){const i=e.getMeasures(),o=n??i.length;return i.length<e.maxMeasures()?(i.splice(o,0,t),zE(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,t,e.index)}moveMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return e.fromIndex<t.length&&e.toIndex<t.length?Promise.resolve(ak(t,e.fromIndex,e.toIndex)):e.fromIndex<t.length&&e.toIndex>=t.length?function(e,t,n,i){const o=t-n.length;let[r]=i.splice(0,1);return n.push(r),[r]=n.splice(e,1),i.splice(o,0,r),Promise.resolve(r)}(e.fromIndex,e.toIndex,t,n):e.fromIndex>=t.length&&e.toIndex<t.length?jE(e.fromIndex,e.toIndex,t,n):Promise.resolve(function(e,t,n,i){const o=e-n.length,r=t-n.length;ak(i,o,r)}(e.fromIndex,e.toIndex,t,n))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e){ik.move(this.hcProperties.qInterColumnSortOrder,e.fromIndex,e.toIndex)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},XE=()=>{};function QE(e,t){return void 0===e?()=>t:()=>e}function JE(e){const t=e||{};return{min:"function"==typeof t.min?t.min:QE(t.min,0),max:"function"==typeof t.max?t.max:QE(t.max,1e3),added:t.added||t.add||XE,description:t.description||XE,moved:t.moved||t.move||XE,removed:t.removed||t.remove||XE,replaced:t.replaced||t.replace||XE,isDefined:()=>!!e}}function eL(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:JE(e.dimensions),measures:JE(e.measures)}}function tL(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(eL)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function nL(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:tL(n.qae),component:n.component||{},create:e=>function(e,t,n){"function"==typeof e.component&&(e.component=zk(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==Rk&&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 r={},s=["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)}s.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!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.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 s.forEach((e=>{r[e]=JSON.stringify(c.context[e])})),r.themeName=c.context.theme?c.context.theme.name():void 0,r.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):SE(e,t),r=[];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 r=kk.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));kk.apply(o,s);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const a=kk.generate(r,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)},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new ZE(e)}:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}function iL(e){return sa("MuiIcon",e)}aa("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const oL=Xs("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${va(n.color)}`],t[`fontSize${va(n.fontSize)}`]]}})(ql((({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(Dc()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),rL=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium",...l}=n,c={...n,baseClassName:i,color:r,component:s,fontSize:a},d=(e=>{const{color:t,fontSize:n,classes:i}=e;return tn({root:["root","inherit"!==t&&`color${va(t)}`,`fontSize${va(n)}`]},iL,i)})(c);return(0,Js.jsx)(oL,{as:s,className:en(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})}));rL.muiName="Icon";const sL=rL,aL=e=>_h((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 lL({d:e}){const n=wa();let i="inherit",o=n.palette.success.main;e.missing?o=n.palette.warning.main:e.error&&(i="error",o=n.palette.error.main);const r={color:o},s=t.createElement(jd,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},t.createElement(sL,null,e.missing||e.error?t.createElement(aL,{style:r}):t.createElement(Qm,{style:r})));return t.createElement(Od,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(Od,{item:!0},s),t.createElement(Od,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(jd,{noWrap:!0,component:"p"},t.createElement(jd,{component:"span",variant:"subtitle2",color:i},e.description),t.createElement(jd,{component:"span"}," "),t.createElement(jd,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function cL({data:e}){const n=wa();return t.createElement(Od,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,n)=>t.createElement(lL,{d:e,key:n})));return o.length>0&&t.createElement(Od,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:n.spacing(2)}},t.createElement(jd,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function dL({title:e="Error",message:n="",data:i=[]}){return t.createElement(Od,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(Od,{item:!0},t.createElement(aL,{style:{fontSize:"38px"}})),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"h6",align:"center","data-tid":"error-title"},e)),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),t.createElement(cL,{data:i}))}function hL(){return hL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hL.apply(null,arguments)}const uL="Progress",gL={root:`${uL}-root`,front:`${uL}-front`,back:`${uL}-back`},pL=Xs("div")((({theme:e})=>({[`&.${gL.root}`]:{position:"relative",display:"inline-block"},[`& .${gL.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${gL.back}`]:{color:e.palette.divider}}))),mL={small:16,medium:32,large:64,xlarge:128};function fL({size:e="medium",...n}){const i=mL[e];return t.createElement(pL,{className:gL.root},t.createElement(Cd,hL({variant:"determinate",value:100,className:gL.back,size:i,thickness:3},n)),t.createElement(Cd,hL({variant:"indeterminate",disableShrink:!0,className:gL.front,size:i,thickness:3},n)))}function bL(){return bL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bL.apply(null,arguments)}const _L={stripes:"LongRunningQuery-stripes"},vL=Xs(Od)((()=>({[`& .${_L.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 CL({cancel:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(vL,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(Od,{item:!0},t.createElement(fL,null)),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),t.createElement(Od,bL({item:!0},i),t.createElement(og,{variant:"contained",onClick:e},n.get("Cancel"))))}function yL({retry:e,translator:n,...i}){return t.createElement(t.Fragment,null,t.createElement(Od,{item:!0},t.createElement(aL,{style:{fontSize:"38px"}})),t.createElement(Od,{item:!0},t.createElement(jd,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),t.createElement(Od,{item:!0},t.createElement(og,bL({variant:"contained",onClick:e},i),n.get("Retry"))))}function wL({canCancel:e,canRetry:n,api:i}){const{translator:o}=(0,t.useContext)(Dp);return t.createElement(Od,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:_L.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&t.createElement(CL,{cancel:i.cancel,translator:o,className:_L.cancel}),n&&t.createElement(yL,{retry:i.retry,translator:o,className:_L.retry}))}function AL(){return t.createElement(Od,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(fL,{size:"large"}))}const SL={width:0,height:0},xL="Header",kL={containerStyle:`${xL}-containerStyle`,containerTitleStyle:`${xL}-containerTitleStyle`},EL=Xs(Od)((({theme:e})=>({[`&.${kL.containerStyle}`]:{flexGrow:0},[`&.${kL.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),LL=function({id:e,layout:n,sn:i,anchorEl:o,hovering:r,focusHandler:s,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=[kL.containerStyle,...d||h?[kL.containerTitleStyle]:[]],f=r||u,b=t.createElement(qC,{show:!1,selections:{show:u,api:i.component.selections,onKeyDeactivate:s.refocusContent},actions:g,popover:{show:f,anchorEl:o},focusHandler:s,layout:n,isRtl:l});return t.createElement(EL,{item:!0,container:!0,wrap:"nowrap",className:m.join(" ")},t.createElement(Od,{item:!0,zeroMinWidth:!0,xs:!0,dir:l?"rtl":"ltr"},t.createElement(Od,{container:!0,wrap:"nowrap",direction:"column"},d?t.createElement(Dv,{title:n.title},t.createElement(jd,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:a.main},n.title)):t.createElement("div",{id:`${e}_title`,style:SL,"aria-label":c.get("Accessibility.Object.NoTitle")}),h&&t.createElement(Dv,{title:n.subtitle},t.createElement(jd,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:a.subTitle},n.subtitle)))),t.createElement(Od,{item:!0},b))},DL=(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 r,s,a="=";n&&i?(r=`${t.conditionField?.aggregator}(${Fv(t.conditionField?.field)})`,s=`${t.firstValue?.fixedValue}`):!n&&i?(r="",s=`${t.firstValue?.fixedValue}`,a=""):n||i?(r=`${t.conditionField?.aggregator}(${Fv(t.conditionField?.field)})`,s=`${t.firstValue?.aggregator}(${Fv(t.firstValue?.field)})`):(r=`${Fv(e.field)}`,s=`${t.firstValue?.aggregator}(total ${Fv(t.firstValue?.field)})`);const l=`${a}${r}${o[0]}${s}`;let c="";if(o.length>1){if(!i&&(!t.secondValue?.aggregator||!t.secondValue?.field)||i&&!t.secondValue?.fixedValue)return"";let e,s;n&&i?(e=`${t.secondValue?.fixedValue}`,s=` and ${r}`):!n&&i?(e=`${t.secondValue?.fixedValue}`,s=""):n||i?(e=`${t.secondValue?.aggregator}(${Fv(t.secondValue?.field)})`,s=` and ${r}`):(e=`${t.secondValue?.aggregator}(total ${Fv(t.secondValue?.field)})`,s=` and ${r}`),c=`${s}${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))},IL=(e,t)=>DL(e,t).map((e=>`${e.field}: ${e.label}`)).join("; "),NL=e=>_h((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 RL({styles:e,children:n}){return t.createElement(jd,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"}},n)}const TL=function({layout:e,translator:n,filtersFootnoteString:i,footerStyle:o,isRtl:r}){const s=DL(e?.filters??[],n),a={color:o?.color,fontFamily:o?.fontFamily,fontSize:o?.fontSize,fontWeight:o?.fontWeight};return t.createElement(Dv,{title:i},t.createElement(Od,{container:!0,wrap:"nowrap",sx:{backgroundColor:o?.backgroundColor,padding:o?.padding,borderTop:o?.borderTop},"data-testid":"filters-footnote",justifyContent:r?"flex-end":"flex-start"},t.createElement(Od,{item:!0,display:"flex"},t.createElement(NL,{style:{fontSize:"12px",color:o.color,margin:"auto"}}),t.createElement(RL,{styles:{...a,marginLeft:"2px"}},n.get("Object.FiltersApplied")," ")),t.createElement(Od,{item:!0,display:"flex"},s.map((e=>t.createElement(Od,{container:!0,wrap:"nowrap",key:`${e.field}-${e.label}`},t.createElement(RL,{styles:{...a,fontWeight:"bold"}},`${e.field}:`),t.createElement(RL,{styles:a}," ",e.label," ")))))))},ML="Footer-itemStyle",OL=Xs(Od)((()=>({[`& .${ML}`]:{minWidth:0,width:"100%"}}))),qL="njs-cell-footer",PL=function({layout:e,titleStyles:n={},translator:i,flags:o,isCardTheme:r,isRtl:s}){const a=n.footer,l=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,c=IL(e?.filters??[],i),d=!e?.footnote&&l&&c,h=o?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),u=r?"1px":"6px";return e&&e.showTitles&&(e.footnote||d)?t.createElement(OL,{container:!0},t.createElement(Od,{item:!0,className:ML,"data-testid":qL,sx:{paddingTop:e=>h?u:e.spacing(1)}},e.footnote&&t.createElement(Dv,{title:e.footnote},t.createElement(jd,{noWrap:!0,variant:"body2",className:qL,style:a,align:s?"right":"left"},e.footnote)),d&&t.createElement(TL,{layout:e,translator:i,filtersFootnoteString:c,footerStyle:a,isRtl:s}))):null};class BL{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 FL=function({sn:e,snOptions:n,snPlugins:i,layout:o,appLayout:r,halo:s,cellId:a}){const{component:l}=e,{theme:c,language:d,constraints:h,interactions:u,keyboardNavigation:g}=(0,t.useContext)(Dp),[p]=(0,t.useState)((()=>new BL)),[m,f]=(0,t.useState)(!1),[b,_]=(0,t.useState)(0),[v,C,y]=jp(),[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&&C&&(!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"),s.app&&s.app.session&&t.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:i,embed:s.public.nebbie,context:{constraints:h,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:g,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:t}}})).then((e=>{!1!==e&&(0===b&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),_(b+1))}))})))}),[C,n,i,w,y,o,r,c,d,h,u,m,g]),t.createElement("div",{ref:v,"data-render-count":b,style:{position:"relative",height:"100%"},className:"njs-viz"},t.createElement("div",{ref:S,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}}))},WL={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"};class VL extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const zL=["action-button","sn-nav-menu","filterpane","sn-shape"],HL=[...zL,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],jL=e=>-1===zL.indexOf(e),UL=e=>jL(e)?"10px 10px 0":"10px 0 0",$L=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])=>{$L.set(e,t)}));const GL=$L,KL=(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 YL({delay:e=750}){const[n,i]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),n?t.createElement(AL,null):null}const ZL=e=>!e.qError||7005===e.qError.qErrorCode,XL=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),QL=e=>e&&(Array.isArray(e)?e:[e])||[],JL=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t),a=XL(o,QL(s.qDimensionInfo||s.qItems),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=XL(r,QL(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:a,reqMeasErrors:l}};function eD(){return new(yg())}const tD=(0,t.forwardRef)((({halo:e,model:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,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:_,externalFocusManagement:v,disableCellPadding:C=!1,navigation:y,queryParams:w}=(0,t.useContext)(Dp),[A]=(0,t.useState)(l||eD),S=wa(),[x,k,E]=jp(),[L,D]=(0,t.useReducer)(KL,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=r)?{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]=zp(N),[B]=Hp(u),[F,W,V]=jp(),[z,H]=(0,t.useState)(i),[j,U]=(0,t.useState)(o),$=`njs-cell-${a}`,[G]=JC(u,N,[`#${$}`,".njs-action-toolbar-popover"]),[K,Y]=(0,t.useState)(!1),Z=(0,t.useRef)({enter:null,leave:null}),{titleStyles:X,bgColor:Q,bgImage:J,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:n,app:i,themeName:o,disableThemeBorder:r,queryParams:s})=>{const a=(0,t.useMemo)((()=>{if(e&&n){const o=e.components?e.components.find((e=>"general"===e.key)):null,a=(t=e.visualization,WL[t.toLowerCase()]?WL[t.toLowerCase()]:t),l={main:ES(o,"main",n,a),footer:ES(o,"footer",n,a),subTitle:ES(o,"subTitle",n,a)},c=xS(o,n,a),d=SS(o,i,s),h=function(e,t,n,i){const o=yS(e?.borderColor,"","borderColor",t,n);let r=e?.borderWidth;return!r&&!i&&(r=CS("","borderWidth",t,n)),r&&o?`${r} solid ${o}`:void 0}(o,n,a,r),u=function(e,t,n){return e?.borderRadius||CS("","borderRadius",t,n)}(o,n,a);return{titleStyles:l,bgColor:c,bgImage:d,border:h,borderRadius:u,boxShadow:kS(o,n,a)}}var t;return{}}),[e,n,i,o,r]);return a})({layout:T,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:z?.disableThemeBorder,queryParams:w}),ie=!("rtl"!==z?.direction),oe=(0,t.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,t.useEffect)((()=>{XC(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&V&&V.focus())},oe.current.refocusContent=()=>{L.sn.component&&"function"==typeof L.sn.component.focus&&L.sn.component.focus()}}),[]),(0,t.useEffect)((()=>{if(r)return void s();if(!B||!T)return;if(L.visualization===T.visualization&&L.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!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=QL(g.qDimensionInfo||g.qItems).filter(ZL),m=QL(g.qMeasureInfo).filter(ZL);if(o+=h,r+=u,(p.length<h||m.length<u)&&(i=!0),g.qError){s=!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:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let h=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=h||await i.getProperties();h=n;const o=JL(e,t,n,s);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,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),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:L.sn,layout:T,model:N})})(L.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:r,selections:s,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:r,selections:s,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:s,navigation:c??y})})(T.visualization,e),()=>{}}),[g,L.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:()=>L.sn.generator.qae,getExtensionDefinition:()=>L.sn.generator.definition.ext,support(e,t,n){if(T&&L.loaded&&!L.error){const i=t||L.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 L.sn.component.focus&&(e?L.sn.component.focus():L.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:H,setSnPlugins:U,setModel:R,getImperativeHandle:()=>L.sn?.component&&"function"==typeof L.sn.component.getImperativeHandle?L.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>L.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=k;let n=JSON.parse(JSON.stringify(T));return"function"==typeof L.sn.component.setSnapshotData&&(n=await L.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)}})),[L.sn,W,k,T,S.name,B]);let re=null;L.loading&&!L.longRunningQuery?re=t.createElement(YL,null):L.error?(d&&d(L.error.errorObject?L.error.errorObject:new VL(L.error.title)),re=t.createElement(dL,L.error)):L.loaded&&(re=t.createElement(FL,{key:T.visualization,sn:L.sn,halo:e,snOptions:z,snPlugins:j,layout:T,appLayout:B,cellId:a}));const se=!!e.public.theme?.getStyle("","","_cards"),ae=e.public.galaxy?.flags;let le,ce;C?(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,r=e?.showTitles&&!!e?.subtitle,s=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,a=e?.visualization,l=IL(e?.filters??[],o),c=!e?.footnote&&s&&l,d=e?.showTitles&&(!!e?.footnote||c);let h;return n&&(i.main.padding=UL(a)),r&&(i.subTitle.padding=((e,t)=>{const n=jL(e);return t?n?"0 10px":"0":UL(e)})(a,n)),d&&(-1===zL.indexOf(a)&&(i.footer.borderTop="1px solid #d9d9d9"),i.footer.padding="6px 10px"),(t||-1===HL.indexOf(a))&&(h=`${n||r?"0":"10px"} 10px ${d?"0":"5px"}`),h}})({layout:T,isError:L.error,isCardTheme:se,titleStyles:X,translator:f})):(le=!0,ce=void 0);const de=GL.get(T?.visualization),he=f.get(de);return t.createElement(Dm,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Q||"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:()=>{Z.current.leave&&clearTimeout(Z.current.leave),Z.enter||(Z.current.enter=setTimeout((()=>{Y(!0),Z.current.enter=null}),250))},onMouseLeave:()=>{Z.current.enter&&clearTimeout(Z.current.enter),Z.current.leave||(Z.current.leave=setTimeout((()=>{Y(!1),Z.current.leave=null}),750))}},t.createElement(Od,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:S.spacing(1)}:{},...L.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${a}_title ${a}_type ${a}_content`},T&&t.createElement("div",{id:`${a}_type`,style:SL,"aria-label":he??T.visualization}),E&&T&&L.sn&&t.createElement(LL,{layout:T,sn:L.sn,anchorEl:E,hovering:K,focusHandler:oe.current,titleStyles:X,isRtl:ie,id:a,translator:f}," "),t.createElement(Od,{tabIndex:_&&!v?0:-1,onKeyDown:_&&!v?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:F},re),E&&T&&L.sn&&t.createElement(PL,{layout:T,titleStyles:X,translator:f,flags:ae,isCardTheme:se,isRtl:ie})),L.longRunningQuery&&t.createElement(wL,{canCancel:O,canRetry:q,api:P}))})),nD=tD;function iD(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function oD(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?function(e,t){return iD(e)&&iD(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(r,n[o])||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):i.push(...oD(`${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 sD=(e,t,n)=>{if(!e)return Promise.resolve();let i=kk.generate(t,n);return ip()(!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()},aD=()=>{};async function lD(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l,c,d,h=aD,u=null,g=null,p=null,m=null,f=!1;const b=new Promise((e=>{p=e})),_=new Promise((e=>{m=e})),v=e=>()=>{e?.(),m(),s(),f=!0};let C={},y=[];const w=new(yg());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 _;const t=u.current.getQae();if(!t?.data?.targets?.[0]?.propertyPath)return;const n=t.data.targets[0].propertyPath,i=u.current.getExtensionDefinition().data,o=await e.getEffectiveProperties();if(n&&i){const t={app:e.app,dimensionDefinition:i.dimensions,measureDefinition:i.measures,dimensionProperties:o.qHyperCubeDef?.qDimensions?.[0]||gk.getDefaultDimension(),measureProperties:o.qHyperCubeDef?.qMeasures?.[0]||gk.getDefaultMeasure(),globalChangeListeners:void 0,path:n};return new ZE(t)}},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 r(),h(),h=aD},async convertTo(t,i=!0,o=!1){if(i){if((r=await e.getLayout())&&!r.qHasSoftPatches&&!r.qExtendsId&&(r.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const i=await fk({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(),s=await fk({halo:n,model:e,cellRef:u,newType:t,properties:i}),a=s.qProperty;return await sD(e,i,a),s}var r;return await fk({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 r=await fk({halo:n,model:e,cellRef:u,newType:t,properties:o,viewDataMode:!0});i=await n.app.createSessionObject(r.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 _,u.current.getImperativeHandle()),takeSnapshot:async()=>(await _,u.current.takeSnapshot()),...A,__DO_NOT_USE__:{mount(r){if(g)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return g=r,[h,u]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,emitter:a,initialError:l,navigation:c,onError:d}){const{root:h}=e,u=t.createRef(),g=hx(),p=Qd.createPortal(t.createElement(nD,{ref:u,halo:e,model:i,currentId:g,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:s,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(),s(),d(e)}})(),[m,u]}({halo:n,element:r,model:e,initialSnOptions:C,initialSnPlugins:y,initialError:o,onMount:p,emitter:w,navigation:i,onError:a}),b},async applyProperties(t){const n=oD("/",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({...C,...e,onInitialRender:v(t)})})():C={...C,...e,onInitialRender:v(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 fk({halo:n,model:e,cellRef:u,newType:t,properties:i}),r=o.qProperty;return await sD(e,i,r),o},async revert(){await e.clearSoftPatches()}}}};return S}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,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}async function cD({type:e,version:t,fields:n,properties:i,extendProperties:o},r,s,a){let l={};const c=[],{modelStore:d}=a;try{const s=r.types.get({name:e,version:t});l=await s.initialProperties(i,o);const a=await s.supernova();n&&await nk({sn:a,properties:l,fields:n,children:c},r),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},l)}catch(t){l=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),d.set(e.id,e),e}return l}function dD(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 hD=(0,t.forwardRef)((({model:e,halo:n,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,unmount:a,navigation:l,onError:c},d)=>{const{root:h}=n,[u,g]=(0,t.useState)(e),[p]=zp(u),{theme:m,modelStore:f}=(0,t.useContext)(Dp),[b,_]=(0,t.useState)([]),[v,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:r,rows:s}=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=dD(e,r,s),delete c.mountedPromise,c;const d=await async function({id:e,options:t,plugins:n,element:i},o,r){const{modelStore:s,rpcRequestModelStore:a}=r,l=`${e}`;let c=a.get(l);c||(c=o.app.getObject(e),a.set(l,c));const d=await c;return s.set(l,d),lD(d,{options:t,plugins:n,element:i},o)}({id:e.name},n,f);return{model:d.model,id:e.name,bounds:dD(e,r,s),cellRef:t.createRef(),currentId:hx(),mounted:a,mountedPromise:l,options:{...i,onInitialRender:o}}})));a.forEach((e=>h.addCell(e.currentId,e.cellRef))),_(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,n,i,o,r,s,a,l){const{x:c,y:d,width:h,height:u}=e.bounds,g={left:`${c}%`,top:`${d}%`,width:`${h}%`,height:`${u}%`,position:"absolute"},p=n.public.galaxy?.flags;return p?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(g.boxSizing="border-box",g.padding="4px"),t.createElement("div",{style:g,key:e.model.id},t.createElement(nD,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,navigation:a,onError:l}))}(e,n,e.options,o,r,e.mounted,l,c))):[]),[b]);(0,t.useEffect)((()=>{const e=p?.components?p.components.find((e=>"general"===e.key)):null;C(xS(e,n.public.theme)),w(SS(e,n.app))}),[p,n.public.theme,n.app,m]),(0,t.useImperativeHandle)(d,(()=>({setModel:g})),[]);const E=!p||void 0===p.height||Number.isNaN(p.height)?"100%":`${Number(p.height)}%`,L=b.map((e=>e.mountedPromise)),D=L.filter((e=>!!e));return D.length&&Promise.all(L).then((()=>{s()})),t.createElement("div",{className:"njs-sheet",style:{width:"100%",height:E,position:"relative",backgroundColor:v,backgroundImage:y&&y.url?`url(${y.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:y&&y.size,backgroundPosition:y&&y.pos}},k)})),uD=hD,gD=()=>{};async function pD({id:e,options:n,plugins:i,element:o,onRender:r,onError:s,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},r={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,a=`${n}`;let l,c=s.get(a);c||(c=e.app.getObject(n),s.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,r.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return XC(r),r}(l,c,p):void 0);return"sheet"===p.genericType?async function(e,n,i,o,r,s=async()=>{}){const{onRender:a,onError:l}=n,c=function({model:e,halo:n,navigation:i,initialError:o,onDestroy:r=async()=>{},onRender:s=()=>{},onError:a=()=>{}}={}){let l=gD,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(),s()};let f={},b=[];const _={id:e.id,model:e,navigation:i,getImperativeHandle:async()=>(await p,c.current.getImperativeHandle()),async destroy(){await r(),l(),l=gD},__DO_NOT_USE__:{mount(r){if(d)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=r,[l,c]=function({halo:e,element:n,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a,navigation:l,onError:c}){const{root:d}=e,h=t.createRef();let u;const g=()=>{d.remove(u)};return u=Qd.createPortal(t.createElement(uD,{ref:h,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s,unmount:g,navigation:l,onError:c}),n,i.id),l.setSheetRef(h),d.add(u,g),[g,h]}({halo:n,element:r,model:e,initialSnOptions:f,initialSnPlugins:b,initialError:o,onMount:h,navigation:i,onError:a}),g},async applyProperties(t){const n=oD("/",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 _}({model:e,halo:i,navigation:o,initialError:r,onDestroy:s,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:r,onError:s},l,m):lD(p,{options:n,plugins:i,element:o,onRender:r,onError:s},l,m)}function mD(e={}){return{isEnabled:t=>!0===e[t]}}var fD=s(1440),bD=s.n(fD);const _D={};function vD(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||bD()(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!_D[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);_D[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new VL(`Failed to load visualization: '${r}'`,e)}))}return _D[o]}(s.name,s.version,t,n.load).then((e=>(i=i||nL(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e,t=!1){return this.supernova().then((()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(ip()(!0,n,e),n):{...n,...e}}))}};return s}({name:e,version:o},t,r),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 CD={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()))}};CD.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const yD=(e={},t={})=>({...e,...t}),wD=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),AD=function e(n={}){const o=function(e){const t=_g({initial:e});return Object.keys(vg).forEach((e=>{t.translator.add(vg[e])})),{translator:t.translator}}(n.context.language);function r(e,s){if(s)return r.createConfiguration(s)(e);let a={...n.context,translator:o.translator,hostConfig:n.hostConfig};const[l,c]=function({app:e,context:n}){let o,r=!1;const s=new Promise((e=>{o=e})),a=t.createRef(),l=document.createElement("div");l.style.display="none",l.setAttribute("data-nebulajs-version","6.0.0-alpha.6"),l.setAttribute("data-app-id",e.id),document.body.appendChild(l),n&&Np(n);const c=Tp(e.id),d=Mp(e.id),h=i.createRoot(l);h.render(t.createElement(Op,{ref:a,initialContext:n,renderCallback:o,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 s,p.push(e),g.push(t),a.current.setComps(p)})(),remove(e){r||(async()=>{await s;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 s,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await s,e&&Np(e),a.current.setContext(e)})()},destroy(){r=!0,g.forEach((e=>{e&&e()})),c.destroy(),h.unmount(),document.body.removeChild(l)}},c,d,a,s]}({app:e,context:a}),d=function({themes:e=[],loadTheme:t,root:n}={}){const i=Ep();return{setTheme:async o=>{let r=e.filter((e=>e.id===o))[0],s="dark"===o?"dark":"light";if(!r&&t&&(r={load:t}),r&&r.load)try{const e=await Promise.race([r.load(o),Lp(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(s))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:s},o),n.setMuiThemeName(s)},externalAPI:i.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:l});a.themeApi=d.externalAPI;const h={galaxy:{translator:o.translator,theme:d.externalAPI,flags:mD(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:o.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]=vD(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(_D).forEach((t=>{t.split("__")[0]===e&&(_D[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&&bg&&bg.getWebResourceAuthParams){const{queryParams:e}=await bg.getWebResourceAuthParams({hostConfig:n.hostConfig});a.queryParams=e,l.context(a)}})().then(e)})),f=null,b=null;const _={render:async e=>(await m,e.id?pD(e,u,c):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,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 r=await o.supernova();n&&await nk({sn:r,properties:g,fields:n,children:p},h),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},g)}catch(t){b=t,g={qInfo:{qType:e},visualization:e}}const _=await h.app.createSessionObject(g);p.length>0&&await _.setFullPropertyTree({qProperty:g,qChildren:p}),m.set(_.id,_);const v=f(_);return lD(_,{options:o,plugins:r,element:s,onRender:c,onError:d},h,l,b,(async()=>{await h.app.destroySessionObject(_.id),v()}))}(e,u,c)),destroy:async()=>{l.destroy()},create:async e=>cD(e,u,!1,c),generateProperties:async e=>cD(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:o.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(n){b?console.error("Already mounted"):(b=function({element:e,app:n}){return Qd.createPortal(t.createElement(ux,{app:n}),e,hx())}({element:n,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 r={fieldName:o,async mount(s,a={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>r.emit("selectionActivated"),d=()=>r.emit("selectionDeactivated");return new Promise((o=>{[this._instance,this._ref]=function({element:e,app:n,fieldIdentifier:i,qId:o,stateName:r="$",options:s={},renderedCallback:a}){const l=t.createRef();return[Qd.createPortal(t.createElement($x,{ref:l,app:n,element:e,fieldIdentifier:i,qId:o,stateName:r,initialOptions:s,renderedCallback:a}),e,hx()),l]}({element:s,app:e,fieldIdentifier:n,qId:i,options:Ux({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>r.emit("selectionActivated"),n=()=>r.emit("selectionDeactivated");if(r._ref?.current){const i=Ux({onSelectionActivated:t,onSelectionDeactivated:n,...e});r._ref.current.setOptions(i)}}}};return XC(r),r},getRegisteredTypes:g.getList,__DO_NOT_USE__:{types:g,popover(n,i,o){_._popoverInstance&&(l.remove(_._popoverInstance),_._popoverInstance=null);const r=((e={})=>{const t={...Gx};return ip()(!0,t,e),t})({onPopoverClose:()=>_.emit("fieldPopoverClose"),...o});_._popoverInstance=t.createElement(Kx,{element:n,key:hx(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),l.add(_._popoverInstance)}}};return u.public.nebbie=_,u.types=g,XC(_),_}return r.createConfiguration=t=>e(((e,t)=>({context:yD(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:wD(e.types,t.types),themes:wD(e.themes,t.themes),flags:yD(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:yD(e.anything,t.anything)}))(n,t)),r.config=n,r}(CD),SD=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},xD=globalThis.crypto||{getRandomValues:()=>123456},kD=function(e){return t=>{const n=ip()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^xD.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const i=n._mock;let o=n;return i&&(delete n._mock,o=ip()({},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,LD=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=ED(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},DD=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function ID(e){return!DD.includes(e)}function ND(e){const t=ED(e.getLayout);return t.qInfo&&t.qInfo.qId}function RD(e,t){let n=ND(e);const{delay:i}=t,{id:o,session:r,...s}=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(r,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:LD(n,{async:ID(t),delay:i})})),{}),genericType:e.type};return{[n]:a}}function TD(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!ND(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const MD=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(TD);const n=function(e,t){return e.reduce(((e,n)=>({...e,...RD(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},OD=function(){return()=>Promise.resolve({id:"app-layout"})},qD={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new SD,i=new kD(n),o=new MD(e,t),r=new OD,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,destroySessionObject:async()=>{},getObject:o,getAppLayout:r,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(s)}(e,t)},PD=qD,BD={generator:nL,hook:zk,theme:Ep,locale:_g},FD=Zl((0,Js.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),WD=Zl((0,Js.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"}),"ColorLens"),VD=Zl((0,Js.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"}),"WbSunny"),zD=Zl((0,Js.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"}),"Brightness3"),HD=Zl((0,Js.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"}),"Language");function jD(e){return sa("MuiToolbar",e)}aa("MuiToolbar",["root","gutters","regular","dense"]);const UD=Xs("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ql((({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}]})))),$D=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular",...a}=n,l={...n,component:o,disableGutters:r,variant:s},c=(e=>{const{classes:t,disableGutters:n,variant:i}=e;return tn({root:["root",!n&&"gutters",i]},jD,t)})(l);return(0,Js.jsx)(UD,{as:o,className:en(c.root,i),ref:t,ownerState:l,...a})})),GD=$D;function KD(e){return sa("MuiToggleButtonGroup",e)}const YD=aa("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),ZD=t.createContext({}),XD=t.createContext(void 0);function QD(e){return sa("MuiToggleButton",e)}const JD=aa("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),eI=Xs("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${YD.grouped}`]:t.grouped},{[`& .${YD.grouped}`]:t[`grouped${va(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]}})(ql((({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}.${JD.disabled},& .${YD.middleButton}.${JD.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}.${JD.disabled},& .${YD.middleButton}.${JD.disabled}`]:{borderLeft:"1px solid transparent"}}}]})))),tI=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="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 tn({root:["root",n,i&&"fullWidth"],grouped:["grouped",`grouped${va(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},KD,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]),_=t.useCallback(((e,t)=>{d&&d(e,g===t?null:t)}),[d,g]),v=t.useMemo((()=>({className:f.grouped,onChange:l?_:b,value:g,size:u,fullWidth:c,color:s,disabled:a})),[f.grouped,l,_,b,g,u,c,s,a]),C=function(e){return t.Children.toArray(e).filter((e=>t.isValidElement(e)))}(o),y=C.length,w=e=>{const t=0===e,n=e===y-1;return t&&n?"":t?f.firstButton:n?f.lastButton:f.middleButton};return(0,Js.jsx)(eI,{role:"group",className:en(f.root,r),ref:n,ownerState:m,...p,children:(0,Js.jsx)(ZD.Provider,{value:v,children:C.map(((e,t)=>(0,Js.jsx)(XD.Provider,{value:w(t),children:e},t)))})})})),nI=tI;function iI(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const oI=Xs(dd,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${va(n.size)}`]]}})(ql((({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,[`&.${JD.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ar(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${JD.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Dc()).map((([t])=>({props:{color:t},style:{[`&.${JD.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ar(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ar(e.palette[t].main,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),r=t.useContext(XD),s=na({props:Qs({...o,selected:iI(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,..._}=s,v={...s,color:c,disabled:d,disableFocusRipple:h,fullWidth:u,size:f},C=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e;return tn({root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${va(r)}`,s]},QD,t)})(v),y=r||"";return(0,Js.jsx)(oI,{className:en(o.className,C.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:v,"aria-pressed":m,..._,children:a})})),sI=rI;function aI(e){return sa("MuiMenu",e)}aa("MuiMenu",["root","paper","list"]);const lI={vertical:"top",horizontal:"right"},cI={vertical:"top",horizontal:"left"},dI=Xs(Fm,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hI=Xs(Pm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uI=Xs(xC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),gI=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,className:s,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}=i,C=La(),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 tn({root:["root"],paper:["paper"],list:["list"]},aI,t)})(y),A=o&&!a&&d,S=t.useRef(null);let x=-1;t.Children.map(r,((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,..._}},E=Bh({elementType:b.root,externalSlotProps:_.root,ownerState:y,className:[w.root,s]}),[L,D]=pc("paper",{className:w.paper,elementType:hI,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:y}),[I,N]=pc("list",{className:en(w.list,l.className),elementType:uI,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,Js.jsx)(dI,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lI:cI,slots:{root:b.root,paper:L,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:E,paper:D,backdrop:"function"==typeof _.backdrop?_.backdrop(y):_.backdrop,transition:{...R,onEntering:(...e)=>{((e,t)=>{S.current&&S.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),p&&p(e,t)})(...e),R?.onEntering?.(...e)}}},open:d,ref:n,transitionDuration:g,ownerState:y,...v,classes:u,children:(0,Js.jsx)(I,{actions:S,autoFocus:o&&(-1===x||a),autoFocusItem:A,variant:f,...N,children:r})})})),pI=gI,mI=new Map,fI=[],bI=fI.map,_I=fI.some,vI=fI.hasOwnProperty,CI=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,yI=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,wI=/(?:\.[^/]*|\/)$/;class AI extends Error{constructor(e){super(e)}}function SI(e){const t=CI.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function xI(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(fI.pop()(o(e)))}catch(e){n(new AI("invalid module"))}i.remove()},i.onerror=()=>{n(new AI("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=DI,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(bI.call(arguments,n)).then(kI):n(e)}return r.alias=function(t){return xI(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function kI(e){const t={};for(const n of e)for(const e in n)vI.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 LI(e){return"exports"==(e+="")||"module"===e}function DI(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),fI.push(_I.call(t,LI)?e=>{const i={},o={exports:i};return Promise.all(bI.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(bI.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}AI.prototype.name=AI.name,xI(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=mI.get(n);return i||mI.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new AI("unable to load package.json");return e.redirected&&!mI.has(e.url)&&mI.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,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new AI("illegal name");const r=SI(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(SI(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!wI.test(r.path)&&(r.path+=".js"),r.path&&r.version&&yI.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),wI.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),DI.amd={};const II=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=xI((async e=>i(e)));return o.alias({"@nebula.js/stardust":e})(n||t)},NI={};function RI(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]),[n,t=>e.setProperties(t)]}window.onHotChange=(e,t)=>(NI[e]||(NI[e]=[]),NI[e].push(t),window[e]&&t(),()=>{const n=NI[e].indexOf(t);NI[e].splice(n,1)});const TI=t.createContext();function MI({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={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||hx(),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:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const OI={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},qI={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function PI(e,t="dimension"){const n="dimension"===t?OI:qI,[i]=Pp(n,e),[o]=zp(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function BI(e){return sa("MuiListSubheader",e)}aa("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const FI=Xs("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${va(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(ql((({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}}]})))),WI=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1,...c}=n,d={...n,color:o,component:r,disableGutters:s,disableSticky:a,inset:l},h=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e;return tn({root:["root","default"!==n&&`color${va(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]},BI,t)})(d);return(0,Js.jsx)(FI,{as:r,className:en(h.root,i),ref:t,ownerState:d,...c})}));WI&&(WI.muiSkipListHighlight=!0);const VI=WI;var zI=s(3657),HI=s.n(zI),jI=s(2339),UI=s.n(jI);const $I=Zl((0,Js.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),GI=Zl((0,Js.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function KI(e){return sa("MuiInput",e)}const YI={...xu,...aa("MuiInput",["root","underline","input"])},ZI=Xs(Fu,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(ql((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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:'"\\00a0"',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(Dc()).map((([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})))]}}))),XI=Xs(Wu,{name:"MuiInput",slot:"Input",overridesResolver:Bu})({}),QI=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:r,fullWidth:s=!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=tn({root:["root",!n&&"underline"],input:["input"]},KI,t);return{...t,...i}})(n),p={root:{ownerState:{disableUnderline:i}}},m=c??r?Qi(c??r,p):p,f=d.root??o.Root??ZI,b=d.input??o.Input??XI;return(0,Js.jsx)(Hu,{slots:{root:f,input:b},slotProps:m,fullWidth:s,inputComponent:a,multiline:l,ref:t,type:h,...u,classes:g})}));QI.muiName="Input";const JI=QI;function eN(e){return sa("MuiFilledInput",e)}const tN={...xu,...aa("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},nN=Xs(Fu,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(ql((({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)",r=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}},[`&.${tN.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${tN.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},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"},[`&.${tN.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tN.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tN.disabled}, .${tN.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${tN.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Dc()).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}}]}}))),iN=Xs(Wu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Bu})(ql((({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}}]})))),oN=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:r,fullWidth:s=!1,hiddenLabel:a,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:h={},type:u="text",...g}=n,p={...n,disableUnderline:i,fullWidth:s,inputComponent:l,multiline:c,type:u},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:r,hiddenLabel:s,multiline:a}=e,l=tn({root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd","small"===r&&`size${va(r)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},eN,t);return{...t,...l}})(n),f={root:{ownerState:p},input:{ownerState:p}},b=d??r?Qi(f,d??r):f,_=h.root??o.Root??nN,v=h.input??o.Input??iN;return(0,Js.jsx)(Hu,{slots:{root:_,input:v},slotProps:b,fullWidth:s,inputComponent:l,multiline:c,ref:t,type:u,...g,classes:m})}));oN.muiName="Input";const rN=oN;function sN(e){return sa("MuiFormLabel",e)}const aN=aa("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lN=Xs("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(ql((({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(Dc()).map((([t])=>({props:{color:t},style:{[`&.${aN.focused}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${aN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aN.error}`]:{color:(e.vars||e).palette.error.main}}}]})))),cN=Xs("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ql((({theme:e})=>({[`&.${aN.error}`]:{color:(e.vars||e).palette.error.main}})))),dN=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiFormLabel"}),{children:i,className:o,color:r,component:s="label",disabled:a,error:l,filled:c,focused:d,required:h,...u}=n,g=Au({props:n,muiFormControl:wu(),states:["color","required","focused","disabled","error","filled"]}),p={...n,color:g.color||"primary",component:s,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:r,filled:s,required:a}=e;return tn({root:["root",`color${va(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]},sN,t)})(p);return(0,Js.jsxs)(lN,{as:s,ownerState:p,className:en(m.root,o),ref:t,...u,children:[i,g.required&&(0,Js.jsxs)(cN,{ownerState:p,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})})),hN=dN;function uN(e){return sa("MuiInputLabel",e)}aa("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gN=Xs(hN,{shouldForwardProp:e=>Zs(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aN.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]]}})(ql((({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)"}}]})))),pN=t.forwardRef((function(e,t){const n=na({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,margin:o,shrink:r,variant:s,className:a,...l}=n,c=wu();let d=r;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const h=Au({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:r,variant:s,required:a}=e,l=tn({root:["root",n&&"formControl",!r&&"animated",o&&"shrink",i&&"normal"!==i&&`size${va(i)}`,s],asterisk:[a&&"asterisk"]},uN,t);return{...t,...l}})(u);return(0,Js.jsx)(gN,{"data-shrink":d,ref:t,className:en(g.root,a),...l,ownerState:u,classes:g})})),mN=pN;function fN(e){return sa("MuiFormControl",e)}aa("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const bN=Xs("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${va(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%"}}]}),_N=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="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,_={...i,color:s,component:a,disabled:l,error:c,fullWidth:h,hiddenLabel:u,margin:g,required:p,size:m,variant:f},v=(e=>{const{classes:t,margin:n,fullWidth:i}=e;return tn({root:["root","none"!==n&&`margin${va(n)}`,i&&"fullWidth"]},fN,t)})(_),[C,y]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{if(!VS(t,["Input","Select"]))return;const n=VS(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=>{VS(t,["Input","Select"])&&(Ou(t.props,!0)||Ou(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 E;t.useRef(!1);const L=t.useCallback((()=>{A(!0)}),[]),D=t.useCallback((()=>{A(!1)}),[]),I=t.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:h,hiddenLabel:u,size:m,onBlur:()=>{x(!1)},onFocus:()=>{x(!0)},onEmpty:D,onFilled:L,registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,h,u,E,D,L,p,m,f]);return(0,Js.jsx)(yu.Provider,{value:I,children:(0,Js.jsx)(bN,{as:a,ownerState:_,className:en(v.root,r),ref:n,...b,children:o})})})),vN=_N;function CN(e){return sa("MuiFormHelperText",e)}const yN=aa("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var wN;const AN=Xs("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${va(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ql((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yN.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}}]})))),SN=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p",disabled:s,error:a,filled:l,focused:c,margin:d,required:h,variant:u,...g}=n,p=Au({props:n,muiFormControl:wu(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:r,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:r,filled:s,focused:a,required:l}=e;return tn({root:["root",o&&"disabled",r&&"error",i&&`size${va(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]},CN,t)})(m);return(0,Js.jsx)(AN,{as:r,className:en(f.root,o),ref:t,...g,ownerState:m,children:" "===i?wN||(wN=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):i})})),xN=SN;function kN(e){return sa("MuiNativeSelect",e)}const EN=aa("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),LN=Xs("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}}}]}))),DN=Xs(LN,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${EN.multiple}`]:t.multiple}]}})({}),IN=Xs("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}}]}))),NN=Xs(IN,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${va(n.variant)}`],n.open&&t.iconOpen]}})({}),RN=t.forwardRef((function(e,n){const{className:i,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard",...c}=e,d={...e,disabled:o,variant:l,error:r},h=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e;return tn({select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${va(n)}`,r&&"iconOpen",i&&"disabled"]},kN,t)})(d);return(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)(DN,{ownerState:d,className:en(h.select,i),disabled:o,ref:a||n,...c}),e.multiple?null:(0,Js.jsx)(NN,{as:s,ownerState:d,className:h.icon})]})})),TN=RN;function MN(e){return sa("MuiSelect",e)}const ON=aa("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var qN;const PN=Xs(LN,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ON.select}`]:t.select},{[`&.${ON.select}`]:t[n.variant]},{[`&.${ON.error}`]:t.error},{[`&.${ON.multiple}`]:t.multiple}]}})({[`&.${ON.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),BN=Xs(IN,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${va(n.variant)}`],n.open&&t.iconOpen]}})({}),FN=Xs("input",{shouldForwardProp:e=>Ys(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function WN(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function VN(e){return null==e||"string"==typeof e&&!e.trim()}const zN=t.forwardRef((function(e,n){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:u,error:g=!1,IconComponent:p,inputRef:m,labelId:f,MenuProps:b={},multiple:_,name:v,onBlur:C,onChange:y,onClose:w,onFocus:A,onOpen:S,open:x,readOnly:k,renderValue:E,required:L,SelectDisplayProps:D={},tabIndex:I,type:N,value:R,variant:T="standard",...M}=e,[O,q]=ff({controlled:R,default:d,name:"Select"}),[P,B]=ff({controlled:x,default:c,name:"Select"}),F=t.useRef(null),W=t.useRef(null),[V,z]=t.useState(null),{current:H}=t.useRef(null!=x),[j,U]=t.useState(),$=Nc(n,m),G=t.useCallback((e=>{W.current=e,e&&z(e)}),[]),K=V?.parentNode;t.useImperativeHandle($,(()=>({focus:()=>{W.current.focus()},node:F.current,value:O})),[O]),t.useEffect((()=>{c&&P&&V&&!H&&(U(s?null:K.clientWidth),W.current.focus())}),[V,s]),t.useEffect((()=>{r&&W.current.focus()}),[r]),t.useEffect((()=>{if(!f)return;const e=tu(W.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&W.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[f]);const Y=(e,t)=>{e?S&&S(t):w&&w(t),H||(U(s?null:K.clientWidth),B(e))},Z=t.Children.toArray(a),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(_){n=Array.isArray(O)?O.slice():[];const t=O.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),O!==n&&(q(n),y)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:v}}),y(o,e)}_||Y(!1,t)}},Q=null!==V&&P;let J,ee;delete M["aria-invalid"];const te=[];let ne=!1,ie=!1;(Ou({value:O})||u)&&(E?J=E(O):ne=!0);const oe=Z.map((e=>{if(!t.isValidElement(e))return null;let n;if(_){if(!Array.isArray(O))throw new Error(lo(2));n=O.some((t=>WN(t,e.props.value))),n&&ne&&te.push(e.props.children)}else n=WN(O,e.props.value),n&&ne&&(ee=e.props.children);return n&&(ie=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:X(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})}));ne&&(J=_?0===te.length?null:te.reduce(((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e)),[]):ee);let re,se=j;!s&&H&&V&&(se=K.clientWidth),re=void 0!==I?I:h?null:0;const ae=D.id||(v?`mui-component-select-${v}`:void 0),le={...e,variant:T,value:O,open:Q,error:g},ce=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e;return tn({select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${va(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]},MN,t)})(le),de={...b.PaperProps,...b.slotProps?.paper},he=Ta();return(0,Js.jsxs)(t.Fragment,{children:[(0,Js.jsx)(PN,{as:"div",ref:G,tabIndex:re,role:"combobox","aria-controls":Q?he:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[f,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":L?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:e=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Y(!0,e))},onMouseDown:h||k?null:e=>{0===e.button&&(e.preventDefault(),W.current.focus(),Y(!0,e))},onBlur:e=>{!Q&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:v}}),C(e))},onFocus:A,...D,ownerState:le,className:en(D.className,ce.select,l),id:ae,children:VN(J)?qN||(qN=(0,Js.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):J}),(0,Js.jsx)(FN,{"aria-invalid":g,value:Array.isArray(O)?O.join(","):O,name:v,ref:F,"aria-hidden":!0,onChange:e=>{const t=Z.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),y&&y(e,t))},tabIndex:-1,disabled:h,className:ce.nativeInput,autoFocus:r,required:L,...M,ownerState:le}),(0,Js.jsx)(BN,{as:p,className:ce.icon,ownerState:le}),(0,Js.jsx)(pI,{id:`menu-${v||""}`,anchorEl:K,open:Q,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":f,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:he,...b.MenuListProps},paper:{...de,style:{minWidth:se,...null!=de?de.style:null}}},children:oe})]})})),HN=zN,jN=Zl((0,Js.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),UN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zs(e)&&"variant"!==e,slot:"Root"},$N=Xs(JI,UN)(""),GN=Xs(Ku,UN)(""),KN=Xs(rN,UN)(""),YN=t.forwardRef((function(e,n){const i=na({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=jN,id:h,input:u,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:b=!1,native:_=!1,onClose:v,onOpen:C,open:y,renderValue:w,SelectDisplayProps:A,variant:S="outlined",...x}=i,k=_?TN:HN,E=Au({props:i,muiFormControl:wu(),states:["variant","error"]}),L=E.variant||S,D={...i,variant:L,classes:s},I=(e=>{const{classes:t}=e,n=tn({root:["root"]},MN,t);return{...t,...n}})(D),{root:N,...R}=I,T=u||{standard:(0,Js.jsx)($N,{ownerState:D}),outlined:(0,Js.jsx)(GN,{label:p,ownerState:D}),filled:(0,Js.jsx)(KN,{ownerState:D})}[L],M=Nc(n,Kp(T));return(0,Js.jsx)(t.Fragment,{children:t.cloneElement(T,{inputComponent:k,inputProps:{children:r,error:E.error,IconComponent:d,variant:L,type:void 0,multiple:b,..._?{id:h}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:v,onOpen:C,open:y,renderValue:w,SelectDisplayProps:{id:h,...A}},...g,classes:g?Qi(R,g.classes):R,...u?u.props.inputProps:{}},...(b&&_||c)&&"outlined"===L?{notched:!0}:{},ref:M,className:en(T.props.className,a,I.root),...!u&&{variant:L},...x})})}));YN.muiName="Select";const ZN=YN;function XN(e){return sa("MuiTextField",e)}aa("MuiTextField",["root"]);const QN={standard:JI,filled:rN,outlined:Ku},JN=Xs(vN,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eR=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,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:_,label:v,maxRows:C,minRows:y,multiline:w=!1,name:A,onBlur:S,onChange:x,onFocus:k,placeholder:E,required:L=!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:L,select:I,variant:q},F=(e=>{const{classes:t}=e;return tn({root:["root"]},XN,t)})(B),W=Ta(p),V=g&&W?`${W}-helper-text`:void 0,z=v&&W?`${W}-label`:void 0,H=QN[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=v),I&&(N&&N.native||(U.id=void 0),U["aria-describedby"]=void 0);const[G,K]=pc("root",{elementType:JN,shouldForwardComponentProp:!0,externalForwardedProps:{...j,...P},ownerState:B,className:en(F.root,s),ref:t,additionalProps:{disabled:c,error:d,fullWidth:u,required:L,color:a,variant:q}}),[Y,Z]=pc("input",{elementType:H,externalForwardedProps:j,additionalProps:U,ownerState:B}),[X,Q]=pc("inputLabel",{elementType:mN,externalForwardedProps:j,ownerState:B}),[J,ee]=pc("htmlInput",{elementType:"input",externalForwardedProps:j,ownerState:B}),[te,ne]=pc("formHelperText",{elementType:xN,externalForwardedProps:j,ownerState:B}),[ie,oe]=pc("select",{elementType:ZN,externalForwardedProps:j,ownerState:B}),re=(0,Js.jsx)(Y,{"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:u,multiline:w,name:A,rows:D,maxRows:C,minRows:y,type:M,value:O,id:W,inputRef:_,onBlur:S,onChange:x,onFocus:k,placeholder:E,inputProps:ee,slots:{input:R.htmlInput?J:void 0},...Z});return(0,Js.jsxs)(G,{...K,children:[null!=v&&""!==v&&(0,Js.jsx)(X,{htmlFor:W,id:z,...Q,children:v}),I?(0,Js.jsx)(ie,{"aria-describedby":V,id:W,labelId:z,value:O,input:re,...oe,children:r}):re,g&&(0,Js.jsx)(te,{id:V,...ne,children:g})]})})),tR=eR,nR="Search",iR={gridContainer:`${nR}-gridContainer`,gridItem:`${nR}-gridItem`},oR=Xs(Od)((({theme:e})=>({[`& .${iR.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${iR.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 sR({onChange:e=()=>{},onEnter:n=()=>{},onEscape:i=()=>{}}){const[o,r]=(0,t.useState)("");return t.createElement(oR,{className:iR.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},t.createElement(Od,{item:!0},t.createElement(HC,null)),t.createElement(Od,{className:iR.gridItem,item:!0,xs:!0},t.createElement(tR,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onFocus:rR,onKeyDown:e=>{switch(e.key){case"Enter":n(),r("");break;case"Escape":i()}}})))}function aR({field:e,onSelect:n,sub:i,parts:o}){return t.createElement(Ih,{onClick:()=>n(e.qName),"data-key":e.qName},t.createElement(Oh,null,o.map(((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&t.createElement($I,{fontSize:"small"}))}function lR({item:e,onSelect:n,parts:i}){return t.createElement(Ih,{onClick:()=>n(e.qInfo),"data-key":e.qInfo.qId},t.createElement(Oh,null,i.map(((e,n)=>t.createElement("span",{key:n,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function cR({aggr:e,field:n,onSelect:i}){return t.createElement(Ih,{onClick:()=>i(e),"data-key":e},t.createElement(Oh,null,`${e}(${n})`))}function dR({app:e,onSelect:n,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=PI(e,o),a=(0,t.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?t.createElement(t.Fragment,null,t.createElement(VI,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=UI()(e.qData.title,r),o=HI()(e.qData.title,i);return r&&0===i.length?null:t.createElement(lR,{key:e.qInfo.qId,item:e,onSelect:n,parts:o})}))):null}function hR({alignTo:e,show:n,close:i,onSelected:o,type:r}){const s=(0,t.useContext)(TI),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(""),h=wa(),[u]=Pp({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=zp(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"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return t.createElement(Fm,{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}}},!a&&t.createElement(sR,{onChange:d}),a&&t.createElement(Sh,{dense:!0,component:"nav"},t.createElement(Ih,{onClick:()=>l(null)},t.createElement(_C,null,t.createElement(GI,null)),t.createElement(Oh,null,"Back")),t.createElement(Jv,null),t.createElement(VI,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>t.createElement(cR,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&t.createElement(Sh,{dense:!0,component:"nav",style:{background:h.palette.background.lightest}},t.createElement(dR,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),t.createElement(VI,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const n=UI()(e.qName,c),i=HI()(e.qName,n);return c&&0===n.length?null:t.createElement(aR,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const uR=({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 gR({items:e,type:n="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,t.useState)(!1),d=(0,t.useRef)(null),h=(0,t.useContext)(TI),[u]=PI(h,n);return t.createElement("div",null,t.createElement(jd,{variant:"overline"},i),t.createElement(Sh,{dense:!0},e.map(((e,i)=>t.createElement(ZS,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i,secondaryAction:t.createElement(kd,{onClick:()=>{s(i)},size:"large"},t.createElement(vh,null))},t.createElement(Oh,null,t.createElement(uR,{field:e,libraryItems:u,type:n})))))),t.createElement(og,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&t.createElement(hR,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===n?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:n}))}function pR({setProperties:e,target:n,properties:i}){const[o,r]=(0,t.useState)([]),s=n.dimensions&&n.dimensions.max&&n.dimensions.max()>1?MI:Qx,a=n.propertyPath.match("/qHyperCube")?Xx:s,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 t.createElement("div",{style:{width:"100%"}},t.createElement(jd,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},n.propertyPath),t.createElement(gR,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),t.createElement(gR,{key:"measures",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"}))}function mR({setProperties:e,sn:n,properties:i}){if(!n)return null;const{targets:o}=n.qae.data;return o.length?t.createElement(Sh,null,o.map((n=>t.createElement(ZS,{key:n.propertyPath,divider:!0,disableGutters:!0},t.createElement(pR,{target:n,properties:i,setProperties:e}))))):t.createElement(jd,null,"No data targets found")}const fR=t.createContext({});function bR(e){return sa("MuiAccordion",e)}const _R=aa("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),vR=Xs(Dm,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_R.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(ql((({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"}},[`&.${_R.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${_R.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),ql((({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:{[`&.${_R.expanded}`]:{margin:"16px 0"}}}]})))),CR=Xs("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),yR=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:h=!1,slots:u={},slotProps:g={},TransitionComponent:p,TransitionProps:m,...f}=i,[b,_]=ff({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=t.useCallback((e=>{_(!b),d&&d(e,!b)}),[b,d,_]),[C,...y]=t.Children.toArray(o),w=t.useMemo((()=>({expanded:b,disabled:a,disableGutters:l,toggle:v})),[b,a,l,v]),A={...i,square:h,disabled:a,disableGutters:l,expanded:b},S=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e;return tn({root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],heading:["heading"],region:["region"]},bR,t)})(A),x={slots:{transition:p,...u},slotProps:{transition:m,...g}},[k,E]=pc("root",{elementType:vR,externalForwardedProps:{...x,...f},className:en(S.root,r),shouldForwardComponentProp:!0,ownerState:A,ref:n,additionalProps:{square:h}}),[L,D]=pc("heading",{elementType:CR,externalForwardedProps:x,className:S.heading,ownerState:A}),[I,N]=pc("transition",{elementType:ph,externalForwardedProps:x,ownerState:A});return(0,Js.jsxs)(k,{...E,children:[(0,Js.jsx)(L,{...D,children:(0,Js.jsx)(fR.Provider,{value:w,children:C})}),(0,Js.jsx)(I,{in:b,timeout:"auto",...N,children:(0,Js.jsx)("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:S.region,children:y})})]})})),wR=yR;function AR(e){return sa("MuiAccordionSummary",e)}const SR=aa("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),xR=Xs(dd,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(ql((({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),[`&.${SR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${SR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${SR.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${SR.expanded}`]:{minHeight:64}}}]}}))),kR=Xs("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(ql((({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}),[`&.${SR.expanded}`]:{margin:"20px 0"}}}]})))),ER=Xs("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(ql((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${SR.expanded}`]:{transform:"rotate(180deg)"}})))),LR=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l,slots:c,slotProps:d,...h}=i,{disabled:u=!1,disableGutters:g,expanded:p,toggle:m}=t.useContext(fR),f={...i,expanded:p,disabled:u,disableGutters:g},b=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e;return tn({root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},AR,t)})(f),_={slots:c,slotProps:d},[v,C]=pc("root",{ref:n,shouldForwardComponentProp:!0,className:en(b.root,r),elementType:xR,externalForwardedProps:{..._,...h},ownerState:f,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:u,"aria-expanded":p,focusVisibleClassName:en(b.focusVisible,a)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{m&&m(e),l&&l(e)})(t)}})}),[y,w]=pc("content",{className:b.content,elementType:kR,externalForwardedProps:_,ownerState:f}),[A,S]=pc("expandIconWrapper",{className:b.expandIconWrapper,elementType:ER,externalForwardedProps:_,ownerState:f});return(0,Js.jsxs)(v,{...C,children:[(0,Js.jsx)(y,{...w,children:o}),s&&(0,Js.jsx)(A,{...S,children:s})]})})),DR=LR;function IR(e){return sa("MuiAccordionDetails",e)}aa("MuiAccordionDetails",["root"]);const NR=Xs("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(ql((({theme:e})=>({padding:e.spacing(1,2,2)})))),RR=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiAccordionDetails"}),{className:i,...o}=n,r=n,s=(e=>{const{classes:t}=e;return tn({root:["root"]},IR,t)})(r);return(0,Js.jsx)(NR,{className:en(s.root,i),ref:t,ownerState:r,...o})})),TR=RR,MR=Zl((0,Js.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");let OR=null;const qR="AutoComponents",PR={summary:`${qR}-summary`,details:`${qR}-details`,root:`${qR}-root`},BR=Xs(Od)((({theme:e})=>({[`& .${PR.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${PR.details}`]:{padding:e.spacing(1)}}))),FR=Xs(wR)((({theme:e})=>({[`& .${PR.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),WR={boolean:function({property:e,value:n,target:i,changed:o}){return t.createElement(mf,{control:t.createElement(Rf,{checked:n,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(n);return t.createElement(tR,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:n,changed:i,app:o}){return t.createElement(FR,{square:!0,className:PR.root},t.createElement(DR,{expandIcon:t.createElement(MR,null),className:PR.summary},t.createElement(jd,null,e)),t.createElement(TR,{className:PR.details},HR(n,i,o)))},number:function({property:e,value:n,target:i,changed:o}){const[r,s]=(0,t.useState)(+n);return t.createElement(tR,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==n&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:n,target:i,changed:o}){const r=n.qStringExpression&&n.qStringExpression.qExpr?n.qStringExpression.qExpr:"",[s,a]=(0,t.useState)(r);return t.createElement(tR,{variant:"standard",InputProps:{startAdornment:t.createElement(zC,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==n&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:n,target:i,changed:o,app:r}){const[s,a]=(0,t.useState)(n.name),[l,c]=(0,t.useState)([]);return(0,t.useEffect)((()=>{!async function(){const e=await async function(e){return OR||(OR=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await OR.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?t.createElement("em",null,"No variables in app"):t.createElement(vN,{size:"small",fullWidth:!0},t.createElement(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:s,renderValue:e=>0===e.length?t.createElement("em",null,"Select a variable"):e},l.map((e=>t.createElement(mC,{key:e.value,value:e.value},e.label)))))}},VR=/^q[A-Z]/;let zR=!1;function HR(e,n,i,o){o&&o.PP_EXPRESSIONS&&(zR=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(VR.test(t))return!1;const n=((e,t)=>Array.isArray(e)?"array":zR&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":zR&&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!!WR[n]&&{Component:WR[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return t.createElement(BR,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>t.createElement(Od,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},t.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:n})))))}function jR({viz:e,sn:n,isTemp:i,storage:o,flags:r}){const[s,a]=RI(e?.model),l=(0,t.useContext)(TI),[c,d]=(0,t.useState)(!1!==o.get("readFromCache")),h=(0,t.useCallback)((()=>{a(s)}),[e,n,s]);return n&&e&&s?t.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&t.createElement(t.Fragment,null,t.createElement(Od,{item:!0,container:!0,alignItems:"center"},t.createElement(mf,{control:t.createElement(Rf,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),t.createElement(Jv,null)),t.createElement(mR,{properties:s,setProperties:a,sn:n}),HR(s,h,l,r)):null}function UR(e){return sa("MuiDialog",e)}const $R=aa("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),GR=t.createContext({}),KR=Xs(um,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),YR=Xs(xm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ZR=Xs("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${va(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"}}}]}),XR=Xs(Dm,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${va(n.scroll)}`],t[`paperWidth${va(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ql((({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)`,[`&.${$R.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}`,[`&.${$R.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,[`&.${$R.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),QR=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiDialog"}),o=wa(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"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",onBackdropClick:b,onClick:_,onClose:v,open:C,PaperComponent:y=Dm,PaperProps:w={},scroll:A="paper",slots:S={},slotProps:x={},TransitionComponent:k=lm,transitionDuration:E=r,TransitionProps:L,...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:r}=e;return tn({root:["root"],container:["container",`scroll${va(n)}`],paper:["paper",`paperScroll${va(n)}`,`paperWidth${va(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]},UR,t)})(I),R=t.useRef(),T=Ta(a),M=t.useMemo((()=>({titleId:T})),[T]),O={slots:{transition:k,...S},slotProps:{transition:L,paper:w,backdrop:d,...x}},[q,P]=pc("root",{elementType:YR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:en(N.root,u),ref:n}),[B,F]=pc("backdrop",{elementType:KR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I}),[W,V]=pc("paper",{elementType:XR,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:I,className:en(N.paper,w.className)}),[z,H]=pc("container",{elementType:ZR,externalForwardedProps:O,ownerState:I,className:en(N.container)}),[j,U]=pc("transition",{elementType:lm,externalForwardedProps:O,ownerState:I,additionalProps:{appear:!0,in:C,timeout:E,role:"presentation"}});return(0,Js.jsx)(q,{closeAfterTransition:!0,slots:{backdrop:B},slotProps:{backdrop:{transitionDuration:E,as:c,...F}},disableEscapeKeyDown:g,onClose:v,open:C,onClick:e=>{_&&_(e),R.current&&(R.current=null,b&&b(e),v&&v(e,"backdropClick"))},...P,...D,children:(0,Js.jsx)(j,{...U,children:(0,Js.jsx)(z,{onMouseDown:e=>{R.current=e.target===e.currentTarget},...H,children:(0,Js.jsx)(W,{as:y,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":T,"aria-modal":l,...V,children:(0,Js.jsx)(GR.Provider,{value:M,children:h})})})})})})),JR=QR;function eT(e){return sa("MuiDialogTitle",e)}const tT=aa("MuiDialogTitle",["root"]),nT=Xs(jd,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),iT=t.forwardRef((function(e,n){const i=na({props:e,name:"MuiDialogTitle"}),{className:o,id:r,...s}=i,a=i,l=(e=>{const{classes:t}=e;return tn({root:["root"]},eT,t)})(a),{titleId:c=r}=t.useContext(GR);return(0,Js.jsx)(nT,{component:"h2",className:en(l.root,o),ownerState:a,ref:n,variant:"h6",id:r??c,...s})})),oT=iT;function rT(e){return sa("MuiDialogContent",e)}aa("MuiDialogContent",["root","dividers"]);const sT=Xs("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ql((({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:{[`.${tT.root} + &`]:{paddingTop:0}}}]})))),aT=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...r}=n,s={...n,dividers:o},a=(e=>{const{classes:t,dividers:n}=e;return tn({root:["root",n&&"dividers"]},rT,t)})(s);return(0,Js.jsx)(sT,{className:en(a.root,i),ownerState:s,ref:t,...r})})),lT=aT;function cT(e){return sa("MuiDialogActions",e)}aa("MuiDialogActions",["root","spacing"]);const dT=Xs("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}}}]}),hT=t.forwardRef((function(e,t){const n=na({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...r}=n,s={...n,disableSpacing:o},a=(e=>{const{classes:t,disableSpacing:n}=e;return tn({root:["root",!n&&"spacing"]},cT,t)})(s);return(0,Js.jsx)(dT,{className:en(a.root,i),ownerState:s,ref:t,...r})})),uT=hT;var gT=s(7713);function pT({model:e,show:n,close:i}){const[o,r]=(0,t.useState)(""),[s,a]=(0,t.useState)(null),[l,c]=(0,t.useState)([]),[d,h,u]=jp(),g=wa(),p=(0,t.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,t.useEffect)((()=>{if(!n)return;const t=()=>{e&&n&&e.getProperties().then((e=>{n&&r(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 r=gT.editor.create(u,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:h.width,height:h.height});const s=r.onDidChangeModelDecorations((()=>{const e=gT.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[u,h,o]),t.createElement(JR,{disableEscapeKeyDown:!0,open:n,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},t.createElement(oT,null,"Modify object properties"),t.createElement(lT,{dividers:!0},t.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),t.createElement(uT,null,t.createElement(og,{variant:"contained",onClick:i},"Cancel"),t.createElement(og,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const mT=t.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),fT=t.createContext();function bT({id:e,onLoad:n}){const i=(0,t.useContext)(fT),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]),t.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const _T="Cell",vT={secondaryIcon:`${_T}-secondaryIcon`,drop:`${_T}-drop`},CT=Xs(Od)((({theme:e})=>({[`& .${vT.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${vT.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function yT({id:e,expandable:n,minHeight:i}){const o=(0,t.useContext)(TI),[r]=qp(),[s,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)(mT),b=f===e,_=(0,t.useRef)();(0,t.useEffect)((()=>{const t=o.getObject(e).then((t=>(a(t),r.set(`${e}`,t),t)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[v,C]=(0,t.useState)(!1),y=(0,t.useCallback)((()=>{C(!1)}),[]),w=(0,t.useCallback)(((e,t)=>{_.current={viz:e,el:t},h(e)}),[e]),A=(0,t.useCallback)(((e=!1)=>{if(_.current)if(e)c(!0),_.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),c(!1)}));else{const e=_.current.el.getBoundingClientRect();_.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)}`)}))}}),[s,u]),S=!b&&_.current&&g&&g===_.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=g===d;return t.createElement(CT,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},t.createElement(Od,{item:!0},t.createElement(GD,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},t.createElement(pT,{model:s,show:v,close:y}),t.createElement(kd,{title:"Modify object properties",className:vT.secondaryIcon,disabled:!s,onClick:()=>C(!0),size:"large"},_h({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"}}]})),t.createElement(kd,{title:"Open in single render view",className:vT.secondaryIcon,disabled:!s,href:s?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${s.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},_h({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"}}]})),t.createElement(kd,{title:"Take and render as snapshot",className:vT.secondaryIcon,disabled:!s,onClick:()=>A(),size:"large"},_h({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?t.createElement(Cd,{size:24}):t.createElement(kd,{title:"Export as image",className:vT.secondaryIcon,disabled:!s,onClick:()=>A(!0),size:"large"},_h({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"}}]})),t.createElement(Od,{item:!0,xs:!0}),n&&t.createElement(kd,{title:"Edit",className:vT.secondaryIcon,disabled:!d||x,onClick:()=>p(d),size:"large"},_h({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&&t.createElement(kd,{title:"Expand",disabled:!s||!d,className:vT.secondaryIcon,onClick:()=>{b?m(null):(m(e),p(d))},size:"large"},_h({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"}}]})))),t.createElement(Od,{item:!0,xs:!0,style:{...S},className:vT.drop},t.createElement(bT,{id:e,onLoad:w})))}function wT({info:e,storage:n,uid:i}){const o=(0,t.useContext)(fT),{activeViz:r,setActiveViz:s}=(0,t.useContext)(mT),[a]=RI(r?.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=>{s(e)})),()=>{t.then((e=>e.destroy()))}}),[i]),(0,t.useEffect)((()=>{a&&n.props(e.supernova.name,a)}),[a]),r&&r.id===i?t.createElement(Od,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},t.createElement(Od,{item:!0,xs:!0},t.createElement(yT,{id:i}))):null}function AT({types:e,cache:n}){const i=(0,t.useContext)(TI),[o]=Hp(i),[r,s]=(0,t.useState)(null),{expandedObject:a}=(0,t.useContext)(mT);if((0,t.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return t.createElement(Od,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>t.createElement(Od,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${n}`},t.createElement(yT,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):t.createElement(Od,{item:!0},t.createElement("div",null,t.createElement(jd,{display:"inline"},"Could not find any components with "),t.createElement(jd,{display:"inline"},t.createElement("code",null,`qType: "${e[0]}"`)),t.createElement(jd,{display:"inline"}," in the current app"))))}const ST=["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"],xT=["select","active","passive"];function kT(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function ET(){const e=(0,t.useRef)(),n=Y(),{info:i}=jt(),{waiting:o,app:r}=(({info:e})=>{const[n,i]=(0,t.useState)(null),[o,r]=(0,t.useState)(!0);(0,t.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await Ht({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/auth/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else{const e=await Pt(`https://${i.host}${i.prefix?`/${i.prefix}`:""}`);r=je().buildUrl({...i,urlParams:{"qlik-csrf-token":e}})}return(await Ve().create({schema:ze,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:n,setApp:i}})({info:i}),s=(0,t.useMemo)((()=>Kt(r)),[r]),[a,l]=(0,t.useState)(null),[c,d]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[g,p]=(0,t.useState)(s.get("themeName")),[m,f]=(0,t.useState)(s.get("language")||"en-US"),[b,_]=(0,t.useState)("light"),[v,C]=(0,t.useState)(xT),[y,w]=(0,t.useState)(!0===s.get("objectListMode")),A=(0,t.useRef)(null),[S,x]=(0,t.useState)(),[k,E]=t.useState(null),[L,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)((()=>Ll(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=()=>{II(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,NI[n]&&NI[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=>II(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=AD(r,{context:{theme:g,language:m,interactions:kT(v),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=>(_("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)}),[r,i,o,I]),(0,t.useLayoutEffect)((()=>{R&&(R.context({theme:g}),"light"!==g&&"dark"!==g||_(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=()=>{r&&r.destroySessionObject(e.current)};if(window.addEventListener("beforeunload",t),r){const e=Tp(r.id),t=Mp(r.id);q({modelStore:e,selectionStore:t,myKey:"this is the key here"})}return()=>{window.removeEventListener("beforeunload",t)}}),[r]),t.createElement(Dp.Provider,{value:O},t.createElement(TI.Provider,{value:r},t.createElement(Cl,{injectFirst:!0},t.createElement(cl,{theme:P},t.createElement(fT.Provider,{value:R},t.createElement(Od,{container:!0,wrap:"nowrap",direction:"column",style:{background:P.palette.background.darkest,height:"100%"},gap:0},t.createElement(Od,{item:!0},t.createElement(GD,{variant:"dense",style:{background:P.palette.background.paper,boxShadow:P.shadows[1]}},t.createElement(Od,{container:!0,gap:1},t.createElement(Od,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(Od,{item:!0},t.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},t.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),t.createElement(Od,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(kd,{title:"Home",onClick:()=>n("/"),size:"large"},t.createElement(FD,{style:{verticalAlign:"middle"}}))),t.createElement(Od,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(uu,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation"},t.createElement(bu,{label:t.createElement(jd,null,"Create"),value:0}),t.createElement(bu,{label:t.createElement(jd,null,"Edit"),value:1}))),t.createElement(Od,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},t.createElement(Od,{item:!0,gap:1},t.createElement(jd,null,"State:")),t.createElement(Od,{item:!0,gap:2},t.createElement(nI,{size:"small",value:v,onChange:(e,t)=>{C(t),R&&R.context({interactions:kT(t)})},color:"primary"},t.createElement(sI,{value:"select"},"Select"),t.createElement(sI,{value:"active"},"Active"),t.createElement(sI,{value:"passive"},"Passive"),t.createElement(sI,{value:"edit"},"Edit"))),t.createElement(Od,{item:!0},M.length?t.createElement(t.Fragment,null,t.createElement(kd,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},t.createElement(WD,{fontSize:"small"})),t.createElement(pI,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},M.map((e=>t.createElement(mC,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):t.createElement(kd,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?t.createElement(VD,{fontSize:"small"}):t.createElement(zD,{fontSize:"small"}))),t.createElement(Od,{item:!0},t.createElement(og,{startIcon:t.createElement(HD,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),t.createElement(pI,{anchorEl:L,open:!!L,keepMounted:!0,onClose:()=>D(null)},ST.map((e=>t.createElement(mC,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void(R&&R.context({language:t}));var t}},e))))))))),t.createElement(Od,{item:!0,style:{padding:P.spacing(1,1,0,1)}},t.createElement("div",{ref:A,style:{flex:"0 0 auto",boxShadow:P.shadows[1]}})),t.createElement(Od,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:P.spacing(0,1,1,1)}},t.createElement(mT.Provider,{value:B},h?t.createElement(Od,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},t.createElement(Od,{item:!0,xs:!0,zeroMinWidth:!0},y?t.createElement(AT,{cache:S,types:[i?.supernova.name]}):t.createElement(wT,{info:i,storage:s,uid:S})),a&&t.createElement(Od,{item:!0,style:{background:P.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:P.shadows[1],padding:0}},t.createElement(jR,{sn:h,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):t.createElement(Od,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},t.createElement(Od,{item:!0},t.createElement(Cd,null)))))))))))}const LT=()=>t.createElement(Dl,null,t.createElement(yc,{marginTop:5},t.createElement(jd,{variant:"h4",gutterBottom:!0},"Error!"),t.createElement(jd,{variant:"subtitle1",gutterBottom:!0},"OAUTH REDIRECT LINK ERROR!"),t.createElement(jd,{variant:"body2",paragraph:!0},"We updated our route which was previously had the responsibility to handle the redirected link including the correct credentials to have"," ",t.createElement("code",null,t.createElement("b",null,"/auth/"))," ","part within it. This change is now impacting your redirect links if you already using your old client-id."),t.createElement(jd,{variant:"h6",gutterBottom:!0},"Here is what you need to do:"),t.createElement(jd,{variant:"body2",paragraph:!0},t.createElement("b",null,"1.")," Go to your tenant that you created your client id",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"2.")," Open Managment console",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"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)",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"4.")," Find your Client id and from ... menu, click on edit",t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"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:',t.createElement("code",null,"http://localhost:8000/login/callback"),t.createElement("br",null),"now it will be like:",t.createElement("code",null,"http://localhost:8000/",t.createElement("b",null,"auth/"),"login/callback"),t.createElement("br",null),t.createElement("br",null),t.createElement("b",null,"6.")," Click on save and you are set!",t.createElement("br",null)))),DT=()=>t.createElement(Re,null,t.createElement(Qt,null,t.createElement(de,null,t.createElement(le,{element:t.createElement(kc,null)},t.createElement(le,{path:"/",element:t.createElement(pg,null)}),t.createElement(le,{path:"/app-list",element:t.createElement(mg,null)})),t.createElement(le,{path:"/dev",element:t.createElement(ET,null)}),t.createElement(le,{path:"/login/callback",element:t.createElement(LT,null)}))));i.createRoot(document.querySelector("#app")).render(t.createElement(DT,null))})()})();
|
|
103
103
|
//# sourceMappingURL=eHub.js.map
|