@nebula.js/cli-serve 7.3.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eRender.js CHANGED
@@ -99,5 +99,5 @@
99
99
  animation: ${vl} 1.4s linear infinite;
100
100
  `:null,wl="string"!=typeof Sl?Ci`
101
101
  animation: ${Sl} 1.4s ease-in-out infinite;
102
- `:null,kl=Za("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Es(n.color)}`]]}})(Cs(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:xl||{animation:`${vl} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Cl=Za("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),El=Za("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Es(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Cs(({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:wl||{animation:`${Sl} 1.4s ease-in-out infinite`}}]}))),Ll=Za("circle",{name:"MuiCircularProgress",slot:"Track"})(Cs(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Rl=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:s,thickness:c,value:u,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Sa({root:["root",n,`color${Es(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Es(n)}`,o&&"circleDisableShrink"]},yl,t)})(f),m={},g={},y={};if("determinate"===d){const e=2*Math.PI*((bl-c)/2);m.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,Jo.jsx)(kl,{className:ti(h.root,r),style:{width:s,height:s,...g,...l},ownerState:f,ref:t,role:"progressbar",...y,...p,children:(0,Jo.jsxs)(Cl,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?(0,Jo.jsx)(Ll,{className:h.track,ownerState:f,cx:bl,cy:bl,r:(bl-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,(0,Jo.jsx)(El,{className:h.circle,style:m,ownerState:f,cx:bl,cy:bl,r:(bl-c)/2,fill:"none",strokeWidth:c})]})})}),Pl=Rl;function Ol(e){return ra("MuiIconButton",e)}const Tl=oa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Il=Za(gl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Es(n.color)}`],n.edge&&t[`edge${Es(n.edge)}`],t[`size${Es(n.size)}`]]}})(Cs(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Cs(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Tl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Tl.loading}`]:{color:"transparent"}}))),ql=Za("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),jl=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...f}=n,h=Ms(u),m=p??(0,Jo.jsx)(Pl,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,loading:d,loadingIndicator:m,size:c},y=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Sa({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Es(r)}`,o&&`edge${Es(o)}`,`size${Es(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Ol,t)})(g);return(0,Jo.jsxs)(Il,{id:d?h:u,className:ti(y.root,i),centerRipple:!0,focusRipple:!l,disabled:s||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&(0,Jo.jsx)("span",{className:y.loadingWrapper,style:{display:"contents"},children:(0,Jo.jsx)(ql,{className:y.loadingIndicator,ownerState:g,children:d&&m})}),o]})}),Ml=jl,Dl=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"}}]}),_l=e=>vs(Dl(e));n.dn(_l);const Nl=function(e){return"string"==typeof e};function Al(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}const $l=Al;function zl(e){return e&&e.ownerDocument||document}const Fl=zl;function Bl(e){return zl(e).defaultView||window}const Wl=Bl;function Hl(e){return parseInt(a.version,10)>=19?e?.props?.ref||null:e?.ref||null}var Ul="unmounted",Vl="exited",Gl="entering",Kl="entered",Jl="exiting",Xl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Vl,r.appearStatus=Gl):o=Kl:o=t.unmountOnExit||t.mountOnEnter?Ul:Vl,r.state={status:o},r.nextCallback=null,r}Vs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ul?{status:Vl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Gl&&n!==Kl&&(t=Gl):n!==Gl&&n!==Kl||(t=Jl)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Gl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ba.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vl&&this.setState({status:Ul})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ba.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:Gl},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Kl},function(){t.props.onEntered(i,a)})})})):this.safeSetState({status:Kl},function(){t.props.onEntered(i)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ba.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Jl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Vl},function(){e.props.onExited(r)})})})):this.safeSetState({status:Vl},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ba.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ul)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ws(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(Gs.Provider,{value:null},"function"==typeof n?n(e,r):a.cloneElement(a.Children.only(n),r))},t}(a.Component);function Zl(){}Xl.contextType=Gs,Xl.propTypes={},Xl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zl,onEntering:Zl,onEntered:Zl,onExit:Zl,onExiting:Zl,onExited:Zl},Xl.UNMOUNTED=Ul,Xl.EXITED=Vl,Xl.ENTERING=Gl,Xl.ENTERED=Kl,Xl.EXITING=Jl;const Yl=Xl,Ql=e=>e.scrollTop;function ec(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function tc(e,t,n,r,o,i){const a="exited"!==e||t?n[e]||n.exited:r;return o||i?{...a,...o,...i}:a}function nc(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function rc(e){return`scale(${e}, ${e**2})`}const oc={entering:{opacity:1,transform:rc(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:rc(.75)},exited:{opacity:0,transform:rc(.75)}},ic={opacity:0,transform:rc(.75),visibility:"hidden"},ac=a.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",...g}=e,y=nl(),b=a.useRef(),v=Uo(),S=a.useRef(null),x=Ns(S,Hl(o),t),w=ec(S,u),k=ec(S,(e,t)=>{Ql(e);const{duration:n,delay:r,easing:o}=nc({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=v.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)}),C=ec(S,c),E=ec(S,f),L=ec(S,e=>{const{duration:t,delay:n,easing:r}=nc({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=v.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=rc(.75),d&&d(e)}),R=ec(S,e=>{e.style.transition="",p&&p(e)});return(0,Jo.jsx)(Yl,{appear:r,in:s,nodeRef:S,onEnter:k,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:E,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m,...g,children:(e,{ownerState:t,...n})=>{const r=tc(e,s,oc,ic,h,o.props.style);return a.cloneElement(o,{style:r,ref:x,...n})}})});ac&&(ac.muiSupportAuto=!0);const sc=ac,lc=function(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1},cc=function(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t},uc="data-mui-focusable",dc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pc(e){const t=[],n=[];return Array.from(e.querySelectorAll(dc)).forEach((e,r)=>{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:r,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 fc(){return!0}const hc=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=pc,isEnabled:s=fc,open:l}=e,c=a.useRef(!1),u=a.useRef(null),d=a.useRef(null),p=a.useRef(null),f=a.useRef(null),h=a.useRef(!1),m=a.useRef(null),g=_s(Hl(t),m),y=a.useRef(null);a.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),a.useEffect(()=>{if(c.current=!1,!l||!m.current)return;const e=zl(m.current),t=cc(e),n=((r=m.current)?r.hasAttribute(uc)?r:r.querySelector(`[${uc}]`):null)??m.current;var r;return lc(m.current,t)||(n.hasAttribute("tabIndex")||n.setAttribute("tabIndex","-1"),h.current&&n.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),a.useEffect(()=>{if(!l||!m.current)return;const e=zl(m.current),t=t=>{y.current=t,!r&&s()&&"Tab"===t.key&&cc(e)===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;const n=cc(e);if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(lc(t,n))return;if(r&&n!==u.current&&n!==d.current)return;if(n!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let o=[];if(n!==u.current&&n!==d.current||(o=i(m.current)),o.length>0){const e=Boolean(y.current?.shiftKey&&"Tab"===y.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{const t=cc(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,s,l,i]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return(0,Jo.jsxs)(a.Fragment,{children:[(0,Jo.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Jo.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})};function mc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const gc=a.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=_s(a.isValidElement(n)?Hl(n):null,t);if(ii(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),ii(()=>{if(i&&!o)return mc(t,i),()=>{mc(t,null)}},[t,i,o]),o){if(a.isValidElement(n)){const e={ref:l};return a.cloneElement(n,e)}return n}return i?ba.createPortal(n,i):i}),yc=function(e,t,n){return void 0===e||Nl(e)?t:{...t,ownerState:{...t.ownerState,...n}}},bc=function(e,t,n){return"function"==typeof e?e(t,n):e},vc=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n},Sc=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},xc=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ti(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=vc({...o,...r}),s=Sc(r),l=Sc(o),c=t(a),u=ti(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}};function wc(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=bc(d[e],o),{props:{component:m,...g},internalRef:y}=xc({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),b=_s(y,h?.ref,t.ref),v="root"===e?m||c:m;return[f,yc(f,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o)]}const kc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Cc={opacity:0,visibility:"hidden"},Ec=a.forwardRef(function(e,t){const n=Uo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:y=r,...b}=e,v=a.useRef(null),S=Ns(v,Hl(s),t),x=ec(v,p),w=ec(v,(e,t)=>{Ql(e);const r=nc({style:g,timeout:y,easing:l},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),k=ec(v,d),C=ec(v,m),E=ec(v,e=>{const t=nc({style:g,timeout:y,easing:l},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),L=ec(v,e=>{e.style.transition="",h&&h(e)});return(0,Jo.jsx)(Yl,{appear:i,in:c,nodeRef:v,onEnter:w,onEntered:k,onEntering:x,onExit:E,onExited:L,onExiting:C,addEndListener:e=>{o&&o(v.current,e)},timeout:y,...b,children:(e,{ownerState:t,...n})=>{const r=tc(e,c,kc,Cc,g,s.props.style);return a.cloneElement(s,{style:r,ref:S,...n})}})}),Lc=Ec;function Rc(e){return ra("MuiBackdrop",e)}oa("MuiBackdrop",["root","invisible"]);const Pc=Za("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"}}]}),Oc=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Sa({root:["root",n&&"invisible"]},Rc,t)})(m),y={component:i,slots:{transition:p,root:l.Root,...d},slotProps:{...c,...u}},[b,v]=wc("root",{elementType:Pc,externalForwardedProps:y,className:ti(g.root,o),ownerState:m}),[S,x]=wc("transition",{elementType:Lc,externalForwardedProps:y,ownerState:m});return(0,Jo.jsx)(S,{in:s,timeout:f,...h,...x,children:(0,Jo.jsx)(b,{"aria-hidden":!0,...v,ref:t,children:r})})}),Tc=Oc;function Ic(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function qc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function jc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mc(e){return parseFloat(Bl(e).getComputedStyle(e).paddingRight)||0}function Dc(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.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&&jc(e,o)})}function _c(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}const Nc=()=>{},Ac=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&&jc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Dc(t,e.mount,e.modalRef,r,!0);const o=_c(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:r}),n)}mount(e,t){const n=_c(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=zl(e);return t.body===e?Bl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=qc(Bl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Mc(r)+e}px`;const t=zl(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Mc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=zl(r).body;else{const t=r.parentElement,n=Bl(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}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)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=_c(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&jc(e.modalRef,t),Dc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&jc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $c(e){return ra("MuiModal",e)}oa("MuiModal",["root","hidden","backdrop"]);const zc=Za("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Cs(({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"}}]}))),Fc=Za(Tc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Bc=a.forwardRef(function(e,t){const n=Ya({name:"MuiModal",props:e}),{BackdropComponent:r=Fc,BackdropProps:o,classes:i,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:f={},disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:x=!1,onClose:w,onTransitionEnter:k,onTransitionExited:C,open:E,slotProps:L={},slots:R={},theme:P,...O}=n,T={...n,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:y,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:S,keepMounted:x},{getRootProps:I,getBackdropProps:q,getTransitionProps:j,portalRef:M,isTopModal:D,exited:_,hasTransition:N}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=a.useRef({}),f=a.useRef(null),h=a.useRef(null),m=_s(h,d),[g,y]=a.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),x=()=>{Ac.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=As(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||zl(f.current).body;Ac.add(S(),e),h.current&&x()}),k=()=>Ac.isTopModal(S()),C=As(e=>{f.current=e,e&&(u&&k()?x():h.current&&jc(h.current,v))}),E=a.useCallback(()=>{Ac.remove(S(),v)},[v]);a.useEffect(()=>()=>{E()},[E]),a.useEffect(()=>{u?w():b&&o||E()},[u,E,b,o,w]);const L=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=vc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:L(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:u}},getTransitionProps:()=>({onEnter:Ic(()=>{y(!1),i&&i()},l?.props.onEnter??Nc),onExited:Ic(()=>{y(!0),s&&s(),o&&E()},l?.props.onExited??Nc)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:b}}({...T,rootRef:t}),A={...T,exited:_},$=(e=>{const{open:t,exited:n,classes:r}=e;return Sa({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$c,r)})(A),z={};if(void 0===c.props.tabIndex&&(z.tabIndex="-1"),N){const{onEnter:e,onExited:t}=j();z.onEnter=e,z.onExited=t}const F={slots:{root:p.Root,backdrop:p.Backdrop,...R},slotProps:{...f,...L}},[B,W]=wc("root",{ref:t,elementType:zc,externalForwardedProps:{...F,...O,component:d},getSlotProps:I,ownerState:A,className:ti(s,$?.root,!A.open&&A.exited&&$?.hidden)}),[H,U]=wc("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>q({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ti(o?.className,$?.backdrop),ownerState:A});return x||E||N&&!_?(0,Jo.jsx)(gc,{ref:M,container:u,disablePortal:y,children:(0,Jo.jsxs)(B,{...W,children:[!S&&r?(0,Jo.jsx)(H,{...U}):null,(0,Jo.jsx)(hc,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:b,isEnabled:D,open:E,children:a.cloneElement(c,z)})]})}):null}),Wc=Bc;function Hc(e){return ra("MuiPaper",e)}oa("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 Uc=Za("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}`]]}})(Cs(({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)"}}]}))),Vc=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiPaper"}),r=Uo(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:i,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sa({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Hc,o)})(u);return(0,Jo.jsx)(Uc,{as:i,ownerState:u,className:ti(d.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${mr("#fff",Oo(a))}, ${mr("#fff",Oo(a))})`}},...c.style}})}),Gc=Vc;function Kc(e){return ra("MuiPopover",e)}function Jc(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=ti(r?.className,o?.className,i?.className),s=n(i,o);return{...o,...i,...s,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=ti(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Zc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Qc(e){return"function"==typeof e?e():e}oa("MuiPopover",["root","paper"]);const eu=Za(Wc,{name:"MuiPopover",slot:"Root"})({}),tu=Za(Gc,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nu=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},slots:g={},slotProps:y={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:S="auto",TransitionProps:x={},disableScrollLock:w=!1,...k}=n,C=a.useRef(),E={...n,anchorOrigin:i,anchorReference:l,elevation:p,marginThreshold:f,transformOrigin:b,TransitionComponent:v,transitionDuration:S,TransitionProps:x},L=(e=>{const{classes:t}=e;return Sa({root:["root"],paper:["paper"]},Kc,t)})(E),R=a.useCallback(()=>{if("anchorPosition"===l)return s;const e=Qc(o),t=(e&&1===e.nodeType?e:Fl(C.current).body).getBoundingClientRect();return{top:t.top+Xc(t,i.vertical),left:t.left+Zc(t,i.horizontal)}},[o,i.horizontal,i.vertical,s,l]),P=a.useCallback(e=>({vertical:Xc(e,b.vertical),horizontal:Zc(e,b.horizontal)}),[b.horizontal,b.vertical]),O=a.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===l)return{top:null,left:null,transformOrigin:Yc(n)};const r=R();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Wl(Qc(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&i<f){const e=i-f;i-=e,n.vertical+=e}else if(null!==f&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!==f&&a<f){const e=a-f;a-=e,n.horizontal+=e}else if(c>p){const e=c-p;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Yc(n)}},[o,l,R,P,f]),[T,I]=a.useState(h),q=a.useCallback(()=>{const e=C.current;if(!e)return;const t=O(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)},[O]);a.useEffect(()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q)),[o,w,q]),a.useEffect(()=>{h&&q()}),a.useImperativeHandle(r,()=>h?{updatePosition:()=>{q()}}:null,[h,q]),a.useEffect(()=>{if(!h)return;const e=$l(()=>{q()}),t=Wl(Qc(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,q]);let j=S;const M={slots:{transition:v,...g},slotProps:{transition:x,paper:m,...y}},[D,_]=wc("transition",{elementType:sc,externalForwardedProps:M,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),q()},onExited:t=>{e.onExited?.(t),I(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==S||D.muiSupportAuto||(j=void 0);const N=d||(o?Fl(Qc(o)).body:void 0),[A,{slots:$,slotProps:z,...F}]=wc("root",{ref:t,elementType:eu,externalForwardedProps:{...M,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Jc("function"==typeof y.backdrop?y.backdrop(E):y.backdrop,{invisible:!0})},container:N,open:h},ownerState:E,className:ti(L.root,u)}),[B,W]=wc("paper",{ref:C,className:L.paper,elementType:tu,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:T?void 0:{opacity:0}},ownerState:E});return(0,Jo.jsx)(A,{...F,...!Nl(A)&&{slots:$,slotProps:z,disableScrollLock:w},children:(0,Jo.jsx)(D,{..._,timeout:j,children:(0,Jo.jsx)(B,{...W,children:c})})})}),ru=nu;var ou=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),iu=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},au=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=iu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},iu(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ou(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.stopIndex,i=[],a=null,s=null,l=e.startIndex;l<=o;l++)t(l)?null!==s&&(i.push(a,s),a=s=null):(s=l,null===a&&(a=l));if(null!==s){for(var c=Math.min(Math.max(s,a+r-1),n-1),u=s+1;u<=c&&!t(u);u++)s=u;i.push(a,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var d=i[0]-1;if(t(d))break;i[0]=d}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,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,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then(function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i}).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)r(o)}}]),t}(a.PureComponent);const su=au,lu=["S","XS"],cu=e=>e.reduce((e,t)=>e.concat(t));async function uu({selections:e,elemNumbers:t,toggle:n,isSingleSelect:r}){if(0===t.length)return!1;let o=!1;if(!t.some(e=>Number.isNaN(e))){const i=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",i,n]})}catch{o=!1}o||(r?e.cancel():e.clear())}return o}const du="RowColumn",pu={row:`${du}-row`,rowBorderBottom:`${du}-rowBorderBottom`,column:`${du}-column`,fieldRoot:`${du}-fieldRoot`,cell:`${du}-cell`,labelText:`${du}-labelText`,labelDense:`${du}-labelDense`,highlighted:`${du}-highlighted`,checkboxLabel:`${du}-checkboxLabel`,icon:`${du}-icon`,S:`${du}-S`,XS:`${du}-XS`,A:`${du}-A`,X:`${du}-X`,frequencyCount:`${du}-frequencyCount`,barContainer:`${du}-barContainer`,bar:`${du}-bar`,barSelected:`${du}-barSelected`,barWithCheckbox:`${du}-barWithCheckbox`,barSelectedWithCheckbox:`${du}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${du}-excludedTextWithCheckbox`},fu=`.${pu.fieldRoot}`,hu=e=>!(e?.metaKey||e?.ctrlKey);const mu=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),gu=e=>vs(mu(e));n.dn(gu);const yu=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,bu=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||yu(e))&&t,vu=e=>e.filter(e=>!!e).join(" ").trim(),Su=e=>e||"-",xu=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:r})=>"P"===t?`${e.freqMinWidth}px`:n&&!r?"max-content":"25%",wu=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,ku=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${pu.labelText}`]:{color:t.selections.selected}}:{};const r=t.selections,o=r[n],i=r[`${n}Contrast`];return{background:o,color:i,"& $cell":{paddingRight:0},[`& .${pu.labelText}`]:{color:i},[`& .${pu.icon}`]:{color:i}}},Cu={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Eu=Za("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:r,dense:o,direction:i,sizes:a,frequencyMode:s,freqHitsValue:l,styles:c})=>{const{backgroundColor:u,...d}=c.content,p=ku({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),f=ku({theme:e,styles:c,checkboxes:t,selectionState:"excluded"}),h={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},m={opacity:"30%"};return{"& .value":{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder} !important`,borderRadius:"4px",outline:"none"}},[`& .${pu.row}`]:{flexWrap:"nowrap",...c.content},[`& .${pu.rowBorderBottom}`]:{borderBottom:r?"none":`1px solid ${e.palette.divider}`,borderLeft:r?`1px solid ${e.palette.divider}`:"none"},[`& .${pu.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${pu.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${pu.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...Cu,...d},[`& .${pu.labelDense}`]:{lineHeight:"18px"},[`& .${pu.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${pu.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Cu,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${pu.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:d.color},[`& .${pu.S}`]:{...p,"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder}, inset 0 0 0 4px ${e.palette.custom.whiteBorder} !important`,borderRadius:"4px",outline:"none"},border:n?"none":void 0},[`& .${pu.XS}`]:{...ku({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${pu.A}`]:{...ku({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${pu.X}`]:{...f,border:n?"none":void 0},[`& .${pu.X}, & .${pu.XS}`]:{border:n?"none":void 0,[`& .${pu.barSelected} .bar-filled`]:{...h}},[`& .${pu.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Cu,flex:`0 0 ${xu({sizes:a,frequencyMode:s,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==s&&l?a.freqMinWidth:"max-content",maxWidth:wu({sizes:a,frequencyMode:s,isGridMode:n}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0},[`&.${pu.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${pu.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...h}},[`& .${pu.barSelected}`]:{"& .bar-filled":{...m}},[`& .${pu.barWithCheckbox}`]:{left:"rtl"===i?4:29,width:"calc(100% - 33px)"},[`& .${pu.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${pu.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}}),Lu=a.memo(Eu),Ru=a.createContext(void 0);function Pu(){return a.useContext(Ru)}function Ou(e){return ra("MuiFormControlLabel",e)}const Tu=oa("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function Iu({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const qu=Za("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tu.label}`]:t.label},t.root,t[`labelPlacement${Es(n.labelPlacement)}`]]}})(Cs(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tu.disabled}`]:{cursor:"default"},[`& .${Tu.label}`]:{[`&.${Tu.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}}]}))),ju=Za("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Cs(({theme:e})=>({[`&.${Tu.error}`]:{color:(e.vars||e).palette.error.main}}))),Mu=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:p="end",name:f,onChange:h,required:m,slots:g={},slotProps:y={},value:b,...v}=n,S=Pu(),x=l??s.props.disabled??S?.disabled,w=m??s.props.required,k={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===s.props[e]&&void 0!==n[e]&&(k[e]=n[e])});const C=Iu({props:n,muiFormControl:S,states:["error"]}),E={...n,disabled:x,labelPlacement:p,required:w,error:C.error},L=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Sa({root:["root",n&&"disabled",`labelPlacement${Es(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Ou,t)})(E),R={slots:g,slotProps:{...i,...y}},[P,O]=wc("typography",{elementType:js,externalForwardedProps:R,ownerState:E});let T=d;return null==T||T.type===js||c||(T=(0,Jo.jsx)(P,{component:"span",...O,className:ti(L.label,O?.className),children:T})),(0,Jo.jsxs)(qu,{className:ti(L.root,o),ownerState:E,ref:t,...v,children:[a.cloneElement(s,k),w?(0,Jo.jsxs)("div",{children:[T,(0,Jo.jsxs)(ju,{ownerState:E,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):T]})}),Du=Mu,_u=function(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=a.useRef(void 0!==t),[s,l]=a.useState(n);return[i?t:s,a.useCallback(e=>{i||l(e)},[])]};function Nu(e){return ra("PrivateSwitchBase",e)}oa("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Au=Za(gl,{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}}]}),$u=Za("input",{name:"MuiSwitchBase",shouldForwardProp:Xa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zu=a.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:u,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:y,required:b=!1,tabIndex:v,type:S,value:x,slots:w={},slotProps:k={},...C}=e,[E,L]=_u({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=Pu();let P=a;R&&void 0===P&&(P=R.disabled);const O="checkbox"===S||"radio"===S,T={...e,checked:E,disabled:P,disableFocusRipple:s,edge:l},I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Sa({root:["root",n&&"checked",r&&"disabled",o&&`edge${Es(o)}`],input:["input"]},Nu,t)})(T),q={slots:w,slotProps:{input:d,...k}},[j,M]=wc("root",{ref:t,elementType:Au,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...q,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),R&&R.onFocus&&R.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),R&&R.onBlur&&R.onBlur(e)})(t)}}),ownerState:T,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null}}),[D,_]=wc("input",{ref:p,elementType:$u,className:I.input,externalForwardedProps:q,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||y)return;const t=e.target.checked;L(t),m&&m(e,t)})(t)}}),ownerState:T,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:P,id:O?u:void 0,name:f,readOnly:y,required:b,tabIndex:v,type:S,..."checkbox"===S&&void 0===x?{}:{value:x}}});return(0,Jo.jsxs)(j,{...M,children:[(0,Jo.jsx)(D,{..._}),E?o:c]})}),Fu=zu;function Bu(e){return ra("MuiSvgIcon",e)}oa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wu=Za("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Es(n.color)}`],t[`fontSize${Es(n.fontSize)}`]]}})(Cs(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{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}}]}))),Hu=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...f}=n,h=a.isValidElement(r)&&"svg"===r.type,m={...n,color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:h},g={};u||(g.viewBox=p);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sa({root:["root","inherit"!==t&&`color${Es(t)}`,`fontSize${Es(n)}`]},Bu,r)})(m);return(0,Jo.jsxs)(Wu,{as:s,className:ti(y.root,o),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...f,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?(0,Jo.jsx)("title",{children:d}):null]})});Hu.muiName="SvgIcon";const Uu=Hu;function Vu(e,t){function n(t,n){return(0,Jo.jsx)(Uu,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Uu.muiName,a.memo(a.forwardRef(n))}const Gu=Vu((0,Jo.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"})),Ku=Vu((0,Jo.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"})),Ju=Vu((0,Jo.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Xu(e){return ra("MuiCheckbox",e)}const Zu=oa("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Yu=Za(Fu,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Es(n.size)}`],"default"!==n.color&&t[`color${Es(n.color)}`]]}})(Cs(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{[`&.${Zu.checked}, &.${Zu.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Zu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Qu=(0,Jo.jsx)(Ku,{}),ed=(0,Jo.jsx)(Gu,{}),td=(0,Jo.jsx)(Ju,{}),nd=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Qu,color:o="primary",icon:i=ed,indeterminate:s=!1,indeterminateIcon:l=td,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:h={},...m}=n,g=s?l:i,y=s?l:r,b={...n,disableRipple:d,color:o,indeterminate:s,size:u},v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Sa({root:["root",n&&"indeterminate",`color${Es(r)}`,`size${Es(o)}`]},Xu,t);return{...t,...i}})(b),S=h.input??c,[x,w]=wc("root",{ref:t,elementType:Yu,className:ti(v.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...m},ownerState:b,additionalProps:{type:"checkbox",icon:a.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:a.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:f,slotProps:{input:Jc("function"==typeof S?S(b):S,{"data-indeterminate":s,"aria-checked":s?"mixed":void 0})}}});return(0,Jo.jsx)(x,{...w,classes:v})}),rd="ListBoxCheckbox",od={cbIcon:`${rd}-cbIcon`,cbIconChecked:`${rd}-cbIconChecked`,cbIconExcluded:`${rd}-cbIconExcluded`,cbIconAlternative:`${rd}-cbIconAlternative`,checkbox:`${rd}-checkbox`,dense:`${rd}-dense`},id=Za(nd,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${od.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"},[`& .${od.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:'""'}},[`& .${od.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${od.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${od.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${od.dense}`]:{padding:"4px 8px"}})),ad=(e,t=!0,n=!1)=>(0,Jo.jsx)("span",{className:e.cbIcon,children:n&&(0,Jo.jsx)("span",{className:t&&n?e.cbIconExcluded:""})});function sd({onChange:e,checked:t,label:n,dense:r,excluded:o,styles:i,showGray:a=!0,dataN:s}){return(0,Jo.jsx)(id,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[od.checkbox,r&&od.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":s},name:n,icon:ad(od,a,o),checkedIcon:(0,Jo.jsx)("span",{className:od.cbIconChecked}),styles:i})}const ld=Vu((0,Jo.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"})),cd=Vu((0,Jo.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"})),ud=Za("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Xa})({position:"relative",display:"flex"}),dd=Za(ld,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),pd=Za(cd,{name:"MuiRadioButtonIcon"})(Cs(({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})}}]}))),fd=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,Jo.jsxs)(ud,{className:n.root,ownerState:o,children:[(0,Jo.jsx)(dd,{fontSize:r,className:n.background,ownerState:o}),(0,Jo.jsx)(pd,{fontSize:r,className:n.dot,ownerState:o})]})},hd=Ic,md=a.createContext(void 0);function gd(e){return ra("MuiRadio",e)}const yd=oa("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),bd=Za(Fu,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Es(n.size)}`],t[`color${Es(n.color)}`]]}})(Cs(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${yd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${yd.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),vd=(0,Jo.jsx)(fd,{checked:!0}),Sd=(0,Jo.jsx)(fd,{}),xd=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=vd,color:i="primary",icon:s=Sd,name:l,onChange:c,size:u="medium",className:d,disabled:p,disableRipple:f=!1,slots:h={},slotProps:m={},inputProps:g,...y}=n,b=Pu();let v=p;b&&void 0===v&&(v=b.disabled),v??=!1;const S={...n,disabled:v,disableRipple:f,color:i,size:u},x=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Es(n)}`,"medium"!==r&&`size${Es(r)}`]};return{...t,...Sa(o,gd,t)}})(S),w=a.useContext(md);let k=r;const C=hd(c,w&&w.onChange);let E=l;var L,R;w&&(void 0===k&&(L=w.value,k="object"==typeof(R=n.value)&&null!==R?L===R:String(L)===String(R)),void 0===E&&(E=w.name));const P=m.input??g,[O,T]=wc("root",{ref:t,elementType:bd,className:ti(x.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:m,...y},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),C(t,...n)}}),ownerState:S,additionalProps:{type:"radio",icon:a.cloneElement(s,{fontSize:s.props.fontSize??u}),checkedIcon:a.cloneElement(o,{fontSize:o.props.fontSize??u}),disabled:v,name:E,checked:k,slots:h,slotProps:{input:"function"==typeof P?P(S):P}}});return(0,Jo.jsx)(O,{...T,classes:x})}),wd="ListBoxRadioButton-radioButton",kd=Za(xd,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${wd}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function Cd({onChange:e,checked:t,label:n,dense:r,dataN:o,styles:i}){return(0,Jo.jsx)(kd,{checked:t,onChange:e,value:n,name:n,className:wd,inputProps:{"data-n":o},disableRipple:!0,size:r?"small":"medium",dense:r,styles:i})}const Ed=function({label:e,dense:t,showGray:n=!0,checkboxes:r,cell:o,valueTextAlign:i}){return(0,Jo.jsx)(js,{component:"span",variant:"body2",className:vu([pu.labelText,t&&pu.labelDense,n&&bu({cell:o,checkboxes:r})&&pu.excludedTextWithCheckbox]),align:i,dir:"auto",children:(0,Jo.jsx)("span",{children:e})})},Ld=function({label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}){return"string"==typeof e?(0,Jo.jsx)(Ed,{label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}):e},Rd=function({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:s,isSingleSelect:l,checkboxes:c,valueTextAlign:u,styles:d}){const p=(0,Jo.jsx)(sd,{onChange:e,label:t,checked:r,dense:o,excluded:yu(i),isGridCol:a,showGray:s,dataN:n,styles:d}),f=(0,Jo.jsx)(Cd,{onChange:e,label:t,checked:r,dense:o,dataN:n,styles:d});return(0,Jo.jsx)(Du,{control:l?f:p,className:pu.checkboxLabel,label:(0,Jo.jsx)(Ld,{label:t,dense:o,showGray:s,checkboxes:c,cell:i,valueTextAlign:u})},n)};function Pd({labels:e,dense:t,showGray:n,checkboxes:r}){const o=e.map(([e,t],n)=>(0,Jo.jsx)("span",{id:n,className:t?pu.highlighted:"",children:e}));return(0,Jo.jsx)(Ed,{label:o,dense:t,showGray:n,checkboxes:r})}const Od=function({onChange:e,labels:t,checkboxes:n,dense:r,showGray:o,qElemNumber:i,isSelected:a,cell:s,isGridCol:l,isSingleSelect:c,valueTextAlign:u,styles:d}){const p=(0,Jo.jsx)(Pd,{labels:t,dense:r,showGray:o,checkboxes:n});return n?(0,Jo.jsx)(Rd,{onChange:e,label:p,qElemNumber:i,isSelected:a,dense:r,cell:s,isGridCol:l,showGray:o,isSingleSelect:c,checkboxes:n,valueTextAlign:u,styles:d}):p};function Td({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:s,isSingleSelect:l,checkboxes:c,valueTextAlign:u,styles:d}){return c?(0,Jo.jsx)(Rd,{onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:s,isSingleSelect:l,checkboxes:c,valueTextAlign:u,styles:d}):(0,Jo.jsx)(Ed,{label:t,dense:o,showGray:!0,checkboxes:c,cell:i,valueTextAlign:u})}const Id=a.memo(Td),qd=oa("MuiBox",["root"]),jd=Bo(),Md=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=yi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Pt);return a.forwardRef(function(e,a){const s=lr(n),{className:l,component:c="div",...u}=Ia(e);return(0,Jo.jsx)(i,{as:c,ref:a,className:ti(l,o?o(r):r),theme:t&&s[t]||s,...u})})}({themeId:Ho,defaultTheme:jd,defaultClassName:qd.root,generateClassName:ta.generate}),Dd=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:r,frequencyMax:o}){if(!e||!t||"-"===Su(e))return;const i=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),r="%"===n.substring(n.length-1),o=parseFloat(r?n:e);return`${r?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:o});return(0,Jo.jsx)(Md,{className:vu([pu.bar,n&&pu.barWithCheckbox,r&&(n?pu.barSelectedWithCheckbox:pu.barSelected)]),children:(0,Jo.jsx)(Md,{className:"bar-filled",width:i})})},_d=function({cell:e,checkboxes:t,dense:n,showGray:r}){const o=Su(e?.qFrequency);return(0,Jo.jsx)(es,{style:{display:"flex",alignItems:"center"},className:pu.frequencyCount,"aria-label":o,title:o,children:(0,Jo.jsx)(js,{noWrap:!0,color:"inherit",variant:"body2",className:vu([n&&pu.labelDense,pu.labelText,r&&bu({cell:e,checkboxes:t})&&pu.excludedTextWithCheckbox]),children:o})})};function Nd({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:r?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Ad=Za(es,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:r,direction:o,fillHeight:i})=>{const a="padding"+("rtl"===o?"Left":"Right");return{[`&.${pu.fieldRoot}`]:{...Nd({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i}),[a]:r?"8px":void 0}}}),$d=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===$d.ARROW_UP||e===$d.ARROW_DOWN||e===$d.ARROW_LEFT||e===$d.ARROW_RIGHT}),zd=$d;function Fd(e){e?.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function Bd(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function Wd({containerRef:e,enabled:t}){const[n,r]=(0,a.useState)(!1),o={enabled:t,active:n,innerTabStops:!t||n,blur(n){if(!t)return;r(!1);const o=Bd(e.current)||e.current?.parentElement;var i;i=e.current,i?.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),Fd(e.current),n&&o&&(o.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),o.focus())},focus(){if(!t)return;r(!0);const n=e.current,o=n?.querySelector(".search input"),i=n?.querySelector(".value.last-focused"),a=n?.querySelector(".value.selector, .value"),s=n?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=n?.querySelector("#listbox-unlock-button"),c=n?.querySelector(".listbox-cyclic-button"),u=c||o||i||a||l||s;u?.setAttribute("tabIndex",0),u?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return n?.setAttribute("tabIndex",0),n?.focus(),n}};return o}const Hd=e=>+e.getAttribute("data-n"),Ud=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Vd=e=>{const t=e?.querySelector(".value.last-focused"),n=e?.querySelector(".value.selector"),r=e?.querySelector(".value"),o=t||n||r;return o?.setAttribute("tabIndex",0),o?.focus(),Fd(e),o},Gd=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},Kd=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Bd(i),s=1===a?.querySelectorAll(".listbox-container").length;if(o||s)t.blur(!0);else{Fd(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},Jd={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"},Xd=function({index:e,rowIndex:t,columnIndex:n,style:r,data:o}){const{onChange:i,onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,onTouchStart:d,onTouchEnd:p,pages:f,isLocked:h,column:m=!1,checkboxes:g=!1,textAlign:y,direction:b,layoutOptions:v={},freqIsAllowed:S,isSingleSelect:x,actions:w,frequencyMax:k="",histogram:C=!1,keyboard:E,showGray:L=!0,showTick:R=!0,columnCount:P=1,rowCount:O=1,dataOffset:T,deducedFrequencyMode:I,focusListItems:q,listCount:j,sizes:M,translator:D,showSearch:_,isModal:N,contentFontStyle:A,styles:$,fillHeight:z}=o,{dense:F=!1,dataLayout:B="singleColumn",layoutOrder:W}=v,{itemPadding:H}=M;let U,V;const G={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===W?(U=t*P+n,G.max=O,G.currentIndex=t):(U=n*O+t,G.max=P,G.currentIndex=n);const e=0;V={...r,height:z?"100%":r.height,left:e+(0===n?r.left:Number(r.left)+n*e),top:0===t?r.top:Number(r.top)+t*e}}else U=e,G.max=j,G.currentIndex=e,V={...r};U+=T;const[K,J]=(0,a.useState)(null);(0,a.useEffect)(()=>{null!==K&&(0===G.currentIndex&&q.first&&(K.focus(),q.setFirst(!1)),G.currentIndex===G.max-1&&q.last&&(K.focus(),q.setLast(!1)))},[K,q.first,q.last]);const X=(0,a.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:r,cancel:o,setScrollPosition:i,focusListItems:a,keyboard:s,isModal:l,rowCount:c,columnCount:u,rowIndex:d,columnIndex:p,layoutOrder:f}){const h=(e,t,n=!1)=>{if(e===zd.ARROW_LEFT||e===zd.ARROW_RIGHT||"number"!=typeof d||"number"!=typeof p){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const r=t?.parentElement.parentElement,o=r?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:r,layoutOrder:o,keyCode:i,numCells:a})=>{const s=e=>{let t;return"row"===o?(t=a%r,e<t?n:n-1):(t=a%n,e<r-1?n:t)};let l=e,c=t;if(i===zd.ARROW_DOWN)if(e>=s(t)-1){if(t===r-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=s(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*r+c;const u=a%n;return 0===u||l<u?l*r+c:(l-u)*(r-1)+c+u*r})({rowIndex:d,columnIndex:p,rowCount:c,columnCount:u,layoutOrder:f,keyCode:e,numCells:o}),r=t?.parentElement.parentElement.children[n];return r?.querySelector("[role]")}};let m=!1;const g=e=>{m=e};return c=>{let u;const{currentTarget:d,nativeEvent:p}=c,{keyCode:f,shiftKey:y=!1,ctrlKey:b=!1,metaKey:v=!1}=p;switch(f){case zd.TAB:{const e=d.closest(".listbox-container"),t=void 0!==l?l():void 0;if(d.classList.add("last-focused"),!s?.enabled){if(!t)return;return s.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(y){Ud(e)||Gd(e)||(t?s.focusSelection():Kd(c,s));break}s.focusSelection()||Gd(e)||Ud(e)||(d.blur(),Kd(c,s));break}case zd.SHIFT:g(!0);break;case zd.SPACE:e([Hd(d)],!1,c);break;case zd.ARROW_DOWN:case zd.ARROW_RIGHT:u=h(f,d,!0),y&&u&&(m&&(e([Hd(d)],!0),g(!1)),e([Hd(u)],!0));break;case zd.ARROW_UP:case zd.ARROW_LEFT:u=h(f,d,!1),y&&u&&(m&&(e([Hd(d)],!0),g(!1)),e([Hd(u)],!0));break;case zd.ENTER:if(r(),void 0===l)return;break;case zd.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case zd.HOME:if(a.setFirst(!0),b){i?.("overflowStart");break}i?.("start");break;case zd.END:if(a.setLast(!0),b){i?.("overflowEnd");break}i?.("end");break;case zd.A:if(b||v){t();break}return;case zd.F:if(b||v){n();break}return;default:return}u&&u.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:q,keyboard:E,isModal:N,rowCount:O,columnCount:P,rowIndex:t,columnIndex:n,layoutOrder:W}),[w,E?.innerTabStops,O,P,t,n,W]),Z=(0,a.useMemo)(()=>function({pages:e,cellIndex:t}){let n;const r=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(r){const e=r.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=r.qMatrix[t-e.qTop])}return n}({pages:f,cellIndex:U}),[f,U]),Y="S"===Z?.qState||"XS"===Z?.qState||"L"===Z?.qState||"XL"===Z?.qState,Q=(0,a.useMemo)(()=>(({column:e,histogram:t,cell:n,showGray:r})=>{if(!n)return[];const o=[e?pu.column:pu.row];t||o.push(pu.rowBorderBottom);const i=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?pu.XS:pu.S;break;case"S":case"L":n=pu.S;break;case"A":n=!!t&&pu.A;break;case"X":case"XL":n=!!t&&pu.X;break;default:n=!1}return n}({cell:n,showGray:r});return i&&o.push(i),o})({column:m,histogram:C,cell:Z,showGray:L}),[Z?.qState,C,F]),ee=(0,a.useCallback)(e=>{e.preventDefault()},[g]),te=(0,a.useMemo)(()=>Z&&function({direction:e,cell:t,textAlign:n}){const r=!["NaN",void 0].includes(t?.qNum);let o;return o=!n||n.auto?r?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:n?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:b,cell:Z,textAlign:y}),[b,Z,y]);if(!Z)return null;const ne="grid"===B&&"column"===W,re=Z?.qText??"";let oe;if(Z.qHighlightRanges?.qRanges?.length){oe=function(e,t){if(!t.length)return[];const n=t.reduce((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n},[]);return n}(re,Z.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[])}const ie={alignItems:"center",display:"flex",fontSize:"8px"},ae="rtl"===b,se={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ae?8:g?0:void 0,paddingRight:g?0:ae?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Y&&h,ue=!g&&Y&&!h,de=!g&&R,pe=g||!R,fe=function({translator:e,label:t,qState:n,isSelected:r,currentIndex:o,maxIndex:i,showSearch:a}){const s=Jd[n],l=e.get(s),c=[];if(r){const t=a?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const u=`${t} ${l}`,d=e.get("CurrentSelections.Of",[o+1,i+1]);return c.unshift(u,d),c.join(". ").trim()}({translator:D,label:re,qState:Z.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:_}),he=!ae&&"right"===te||ae&&"left"===te;return(0,Jo.jsx)(Lu,{className:pu.barContainer,checkboxes:g,style:V,styles:$,isGridCol:ne,isGridMode:"grid"===B,dense:F,direction:b,sizes:M,frequencyMode:I,freqHitsValue:he,contentFontStyle:A,"data-testid":"listbox.item",children:(0,Jo.jsxs)(Ad,{role:"row","aria-label":fe,"aria-selected":Y,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:J,container:!0,dataLayout:B,cellPaddingRight:pe,layoutOrder:W,itemPadding:H,gap:0,className:vu(["value",pu.fieldRoot,...Q]),onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,onKeyDown:X,onTouchStart:d,onTouchEnd:p,onContextMenu:ee,tabIndex:le&&E.innerTabStops?0:-1,"data-n":Z?.qElemNumber,direction:b,fillHeight:z,children:[Z?.qFrequency&&(0,Jo.jsx)(Dd,{qFrequency:Z?.qFrequency,histogram:C,checkboxes:g,isSelected:Y,frequencyMax:k}),(0,Jo.jsx)(es,{style:se,className:vu([pu.cell,pu.selectedCell]),title:`${re}`,children:oe?(0,Jo.jsx)(Od,{onChange:i,labels:oe,checkboxes:g,dense:F,showGray:L,qElemNumber:Z.qElemNumber,isSelected:Y,cell:Z,isGridCol:ne,isSingleSelect:x,valueTextAlign:te,styles:$}):(0,Jo.jsx)(Id,{onChange:i,label:re,qElemNumber:Z.qElemNumber,isSelected:Y,dense:F,cell:Z,isGridCol:ne,showGray:L,isSingleSelect:x,checkboxes:g,valueTextAlign:te,styles:$})}),S&&(0,Jo.jsx)(_d,{cell:Z,checkboxes:g,dense:F,showGray:L}),de&&(0,Jo.jsxs)(es,{className:pu.icon,children:[ce&&(0,Jo.jsx)(xs,{style:ie,size:"small"}),ue&&(0,Jo.jsx)(gu,{style:ie,size:"small"})]})]})})};var Zd=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yd(e,t){return e===t||!(!Zd(e)||!Zd(t))}function Qd(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Yd(e[n],t[n]))return!1;return!0}const ep=function(e,t){var n;void 0===t&&(t=Qd);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var tp="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function np(e){cancelAnimationFrame(e.id)}function rp(e,t){var n=tp(),r={id:requestAnimationFrame(function o(){tp()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var op=-1;function ip(e){if(void 0===e&&(e=!1),-1===op||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),op=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return op}var ap=null;function sp(e){if(void 0===e&&(e=!1),null===ap||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ap="positive-descending":(t.scrollLeft=1,ap=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ap}return ap}var lp=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cp(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Hs(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Hs(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ep(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=ep(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,u=r._getItemStyleCache(g&&s,g&&l,g&&c),f=e+":"+t;if(u.hasOwnProperty(f))o=u[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;u[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=ep(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(sp()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&np(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=rp(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Vs(t,e),t.getDerivedStateFromProps=function(e,t){return up(e,t),y(e),null};var b=t.prototype;return b.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)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,y=ip();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=s(this.props,this._instanceProps),v=l(this.props,this._instanceProps)>f?y:0,S=b>d?y:0;this.scrollTo({scrollLeft:void 0!==r?c(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,v):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(sp()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&np(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,c=e.innerRef,u=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?lp:f,m=e.outerElementType,g=e.outerTagName,y=e.rowCount,b=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),k=w[0],C=w[1],E=this._getVerticalRangeToRender(),L=E[0],R=E[1],P=[];if(r>0&&y)for(var O=L;O<=R;O++)for(var T=k;T<=C;T++)P.push((0,a.createElement)(t,{columnIndex:T,data:p,isScrolling:v?x:void 0,key:h({columnIndex:T,data:p,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,T)}));var I=s(this.props,this._instanceProps),q=l(this.props,this._instanceProps);return(0,a.createElement)(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ci({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},(0,a.createElement)(u||d||"div",{children:P,ref:c,style:{height:I,pointerEvents:x?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,y=m.scrollLeft,b=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(y,b,g,S,v)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=h(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(a.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var up=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dp=function(e,t){return e};function pp(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,Hs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Hs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ep(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=ep(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=ep(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(sp()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&np(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=rp(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Vs(t,e),t.getDerivedStateFromProps=function(e,t){return fp(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?ip():0:l.scrollHeight>l.clientHeight?ip():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(sp()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&np(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?dp:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===h,w=x?this._onScrollHorizontal:this._onScrollVertical,k=this._getRangeToRender(),C=k[0],E=k[1],L=[];if(u>0)for(var R=C;R<=E;R++)L.push((0,a.createElement)(t,{data:d,key:f(R,d),index:R,isScrolling:b?S:void 0,style:this._getItemStyle(R)}));var P=r(this.props,this._instanceProps);return(0,a.createElement)(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ci({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},(0,a.createElement)(l||c||"div",{children:L,ref:s,style:{height:x?"100%":P,pointerEvents:S?"none":void 0,width:x?P:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(a.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var fp=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},hp=cp({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),mp=pp({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,f=Math.max(0,l*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const gp="#BBB",yp="#f1f1f1",bp="ListBox-styledScrollbars";function vp({renderProps:e,layoutOptions:t,maxCount:n,columnCount:r,rowCount:o,overflowDisclaimer:i,qCardinal:a,dataOffset:s}){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),u=l?n.column:n.row,d=(l?r:o)>=u,p=((e,t,n,r)=>e===t*n+r+n)(a,c,l?o:r,s),f=!!s&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),h=d&&!p&&c>=u-1||f||i.state.show;i.set(h)}const{StyledFixedSizeList:Sp,StyledFixedSizeGrid:xp}=function(){const e=e=>({scrollbarColor:`${gp} ${yp}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:yp},"&::-webkit-scrollbar-thumb":{backgroundColor:gp,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:gi(mp,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${bp}`]:e(t)})),StyledFixedSizeGrid:gi(hp,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${bp}`]:e(t)}))}}(),wp=e=>{const t=(0,a.useMemo)(()=>"text"in e?e:{},[e]);return(0,a.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 r=n.measureText(e);return Math.ceil(r.width||0)})(t.text,t.font||"12px Source Sans Pro"),[t.text,t.font])};function kp(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Cp({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[Ep,Lp]=ga({});function Rp(e){const t=`${e.id}`,[n]=Ep();return{setStoreValue:(e,r)=>n.set(`${t}/${e}`,r),getStoreValue:e=>n.get(`${t}/${e}`)}}function Pp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Op(e){return e instanceof Pp(e).Element||e instanceof Element}function Tp(e){return e instanceof Pp(e).HTMLElement||e instanceof HTMLElement}function Ip(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Pp(e).ShadowRoot||e instanceof ShadowRoot)}var qp=Math.max,jp=Math.min,Mp=Math.round;function Dp(){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 _p(){return!/^((?!chrome|android).)*safari/i.test(Dp())}function Np(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Tp(e)&&(o=e.offsetWidth>0&&Mp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mp(r.height)/e.offsetHeight||1);var a=(Op(e)?Pp(e):window).visualViewport,s=!_p()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ap(e){var t=Pp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $p(e){return e?(e.nodeName||"").toLowerCase():null}function zp(e){return((Op(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fp(e){return Np(zp(e)).left+Ap(e).scrollLeft}function Bp(e){return Pp(e).getComputedStyle(e)}function Wp(e){var t=Bp(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Hp(e,t,n){void 0===n&&(n=!1);var r=Tp(t),o=Tp(t)&&function(e){var t=e.getBoundingClientRect(),n=Mp(t.width)/e.offsetWidth||1,r=Mp(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=zp(t),a=Np(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==$p(t)||Wp(i))&&(s=function(e){return e!==Pp(e)&&Tp(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ap(e);var t}(t)),Tp(t)?((l=Np(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Fp(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Up(e){var t=Np(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Vp(e){return"html"===$p(e)?e:e.assignedSlot||e.parentNode||(Ip(e)?e.host:null)||zp(e)}function Gp(e){return["html","body","#document"].indexOf($p(e))>=0?e.ownerDocument.body:Tp(e)&&Wp(e)?e:Gp(Vp(e))}function Kp(e,t){var n;void 0===t&&(t=[]);var r=Gp(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Pp(r),a=o?[i].concat(i.visualViewport||[],Wp(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Kp(Vp(a)))}function Jp(e){return["table","td","th"].indexOf($p(e))>=0}function Xp(e){return Tp(e)&&"fixed"!==Bp(e).position?e.offsetParent:null}function Zp(e){for(var t=Pp(e),n=Xp(e);n&&Jp(n)&&"static"===Bp(n).position;)n=Xp(n);return n&&("html"===$p(n)||"body"===$p(n)&&"static"===Bp(n).position)?t:n||function(e){var t=/firefox/i.test(Dp());if(/Trident/i.test(Dp())&&Tp(e)&&"fixed"===Bp(e).position)return null;var n=Vp(e);for(Ip(n)&&(n=n.host);Tp(n)&&["html","body"].indexOf($p(n))<0;){var r=Bp(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Yp="top",Qp="bottom",ef="right",tf="left",nf="auto",rf=[Yp,Qp,ef,tf],of="start",af="end",sf="viewport",lf="popper",cf=rf.reduce(function(e,t){return e.concat([t+"-"+of,t+"-"+af])},[]),uf=[].concat(rf,[nf]).reduce(function(e,t){return e.concat([t,t+"-"+of,t+"-"+af])},[]),df=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pf(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function ff(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var hf={placement:"bottom",modifiers:[],strategy:"absolute"};function mf(){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 gf(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?hf:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},hf,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:Op(e)?Kp(e):e.contextElement?Kp(e.contextElement):[],popper:Kp(t)};var u,d,p=function(e){var t=pf(e);return df.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,o.options.modifiers),d=u.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(d).map(function(e){return d[e]})));return o.orderedModifiers=p.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r});a.push(s||function(){})}}),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(mf(t,n)){o.rects={reference:Hp(t,Zp(n),"fixed"===o.options.strategy),popper:Up(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 r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:ff(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),s=!0}};if(!mf(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var yf={passive:!0};function bf(e){return e.split("-")[0]}function vf(e){return e.split("-")[1]}function Sf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xf(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bf(o):null,a=o?vf(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Yp:t={x:s,y:n.y-r.height};break;case Qp:t={x:s,y:n.y+n.height};break;case ef:t={x:n.x+n.width,y:l};break;case tf:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Sf(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case of:t[c]=t[c]-(n[u]/2-r[u]/2);break;case af:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var wf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kf(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=tf,S=Yp,x=window;if(c){var w=Zp(n),k="clientHeight",C="clientWidth";w===Pp(n)&&"static"!==Bp(w=zp(n)).position&&"absolute"===s&&(k="scrollHeight",C="scrollWidth"),(o===Yp||(o===tf||o===ef)&&i===af)&&(S=Qp,m-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=l?1:-1),o!==tf&&(o!==Yp&&o!==Qp||i!==af)||(v=ef,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-r.width,f*=l?1:-1)}var E,L=Object.assign({position:s},c&&wf),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Mp(n*o)/o||0,y:Mp(r*o)/o||0}}({x:f,y:m},Pp(n)):{x:f,y:m};return f=R.x,m=R.y,l?Object.assign({},L,((E={})[S]=b?"0":"",E[v]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},L,((t={})[S]=b?m+"px":"",t[v]=y?f+"px":"",t.transform="",t))}const Cf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=uf.reduce(function(e,n){return e[n]=function(e,t,n){var r=bf(e),o=[tf,Yp].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[tf,ef].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Ef={left:"right",right:"left",bottom:"top",top:"bottom"};function Lf(e){return e.replace(/left|right|bottom|top/g,function(e){return Ef[e]})}var Rf={start:"end",end:"start"};function Pf(e){return e.replace(/start|end/g,function(e){return Rf[e]})}function Of(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ip(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Tf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function If(e,t,n){return t===sf?Tf(function(e,t){var n=Pp(e),r=zp(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=_p();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Fp(e),y:l}}(e,n)):Op(t)?function(e,t){var n=Np(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):Tf(function(e){var t,n=zp(e),r=Ap(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=qp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=qp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Fp(e),l=-r.scrollTop;return"rtl"===Bp(o||n).direction&&(s+=qp(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(zp(e)))}function qf(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function jf(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Mf(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?sf:c,d=n.elementContext,p=void 0===d?lf:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=qf("number"!=typeof g?g:jf(g,rf)),b=p===lf?"reference":lf,v=e.rects.popper,S=e.elements[h?b:p],x=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Kp(Vp(e)),n=["absolute","fixed"].indexOf(Bp(e).position)>=0&&Tp(e)?Zp(e):e;return Op(n)?t.filter(function(e){return Op(e)&&Of(e,n)&&"body"!==$p(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=If(e,n,r);return t.top=qp(o.top,t.top),t.right=jp(o.right,t.right),t.bottom=jp(o.bottom,t.bottom),t.left=qp(o.left,t.left),t},If(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Op(S)?S:S.contextElement||zp(e.elements.popper),l,u,a),w=Np(e.elements.reference),k=xf({reference:w,element:v,strategy:"absolute",placement:o}),C=Tf(Object.assign({},v,k)),E=p===lf?C:w,L={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},R=e.modifiersData.offset;if(p===lf&&R){var P=R[o];Object.keys(L).forEach(function(e){var t=[ef,Qp].indexOf(e)>=0?1:-1,n=[Yp,Qp].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t})}return L}const Df={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=bf(g),b=l||(y!==g&&h?function(e){if(bf(e)===nf)return[];var t=Lf(e);return[Pf(e),t,Pf(t)]}(g):[Lf(g)]),v=[g].concat(b).reduce(function(e,n){return e.concat(bf(n)===nf?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?uf:l,u=vf(r),d=u?s?cf:cf.filter(function(e){return vf(e)===u}):rf,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=Mf(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bf(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),S=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=v[0],E=0;E<v.length;E++){var L=v[E],R=bf(L),P=vf(L)===of,O=[Yp,Qp].indexOf(R)>=0,T=O?"width":"height",I=Mf(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),q=O?P?ef:tf:P?Qp:Yp;S[T]>x[T]&&(q=Lf(q));var j=Lf(q),M=[];if(i&&M.push(I[R]<=0),s&&M.push(I[q]<=0,I[j]<=0),M.every(function(e){return e})){C=L,k=!1;break}w.set(L,M)}if(k)for(var D=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 C=t,"break"},_=h?3:1;_>0&&"break"!==D(_);_--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _f(e,t,n){return qp(e,jp(t,n))}const Nf={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Mf(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=bf(t.placement),b=vf(t.placement),v=!b,S=Sf(y),x="x"===S?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var O,T="y"===S?Yp:tf,I="y"===S?Qp:ef,q="y"===S?"height":"width",j=w[S],M=j+g[T],D=j-g[I],_=f?-C[q]/2:0,N=b===of?k[q]:C[q],A=b===of?-C[q]:-k[q],$=t.elements.arrow,z=f&&$?Up($):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[T],W=F[I],H=_f(0,k[q],z[q]),U=v?k[q]/2-_-H-B-L.mainAxis:N-H-B-L.mainAxis,V=v?-k[q]/2+_+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&Zp(t.elements.arrow),K=G?"y"===S?G.clientTop||0:G.clientLeft||0:0,J=null!=(O=null==R?void 0:R[S])?O:0,X=j+V-J,Z=_f(f?jp(M,j+U-J-K):M,j,f?qp(D,X):D);w[S]=Z,P[S]=Z-j}if(s){var Y,Q="x"===S?Yp:tf,ee="x"===S?Qp:ef,te=w[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[Yp,tf].indexOf(y),ae=null!=(Y=null==R?void 0:R[x])?Y:0,se=ie?re:te-k[ne]-C[ne]-ae+L.altAxis,le=ie?te+k[ne]+C[ne]-ae-L.altAxis:oe,ce=f&&ie?function(e,t,n){var r=_f(e,t,n);return r>n?n:r}(se,te,le):_f(f?se:re,te,f?le:oe);w[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},Af={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=bf(n.placement),l=Sf(s),c=[tf,ef].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return qf("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:jf(e,rf))}(o.padding,n),d=Up(i),p="y"===l?Yp:tf,f="y"===l?Qp:ef,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=Zp(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,v=u[p],S=y-d[c]-u[f],x=y/2-d[c]/2+b,w=_f(v,x,S),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Of(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $f(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 zf(e){return[Yp,ef,Qp,tf].some(function(t){return e[t]>=0})}var Ff=gf({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Pp(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,yf)}),s&&l.addEventListener("resize",n.update,yf),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,yf)}),s&&l.removeEventListener("resize",n.update,yf)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xf({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,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:bf(t.placement),variation:vf(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,kf(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kf(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]||{},r=t.attributes[e]||{},o=t.elements[e];Tp(o)&&$p(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[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 r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Tp(r)&&$p(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Cf,Df,Nf,Af,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Mf(t,{elementContext:"reference"}),s=Mf(t,{altBoundary:!0}),l=$f(a,r),c=$f(s,o,i),u=zf(l),d=zf(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Bf(e){return ra("MuiPopper",e)}function Wf(e){return"function"==typeof e?e():e}oa("MuiPopper",["root"]);const Hf={},Uf=a.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h,ownerState:m,...g}=e,y=a.useRef(null),b=_s(y,t),v=a.useRef(null),S=_s(v,d),x=a.useRef(S);ii(()=>{x.current=S},[S]),a.useImperativeHandle(d,()=>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,o),[k,C]=a.useState(w),[E,L]=a.useState(Wf(n));a.useEffect(()=>{v.current&&v.current.forceUpdate()}),a.useEffect(()=>{n&&L(Wf(n))},[n]),ii(()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Ff(E,y.current,{placement:w,...u,modifiers:e});x.current(t);const n=y.current;return()=>{if(n){const{style:e}=n,r=e.position,o=e.top,i=e.left,a=e.transform;t.destroy(),e.position=r,e.top=o,e.left=i,e.transform=a}else t.destroy();x.current(null)}},[E,i,s,l,u,w]);const R={placement:k};null!==h&&(R.TransitionProps=h);const P=(e=>{const{classes:t}=e;return Sa({root:["root"]},Bf,t)})(e),O=f.root??"div",T=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:bc(n,r),{props:s,internalRef:l}=xc({...i,externalSlotProps:a}),c=_s(l,a?.ref,e.additionalProps?.ref);return yc(t,{...s,ref:c},r)}({elementType:O,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:P.root});return(0,Jo.jsx)(O,{...T,children:"function"==typeof r?r(R):r})}),Vf=Za(a.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=Hf,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:y={},...b}=e,[v,S]=a.useState(!0);if(!l&&!u&&(!m||v))return null;let x;if(o)x=o;else if(n){const e=Wf(n);x=e&&void 0!==e.nodeType?zl(e).body:zl(null).body}const w=u||!l||m&&!v?void 0:"none",k=m?{in:u,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,Jo.jsx)(gc,{disablePortal:s,container:x,children:(0,Jo.jsx)(Uf,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:t,open:m?!v:u,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:y,...b,style:{position:"fixed",top:0,left:0,display:w,...h},TransitionProps:k,children:r})})}),{name:"MuiPopper",slot:"Root"})({}),Gf=a.forwardRef(function(e,t){const n=Yo(),r=Ya({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:y,slotProps:b,...v}=r,S=y?.root??a?.Root,x={anchorEl:o,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...v};return(0,Jo.jsx)(Vf,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:b??s,...x,ref:t})});function Kf(e){return ra("MuiTooltip",e)}const Jf=oa("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Xf=Za(Gf,{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]}})(Cs(({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"] .${Jf.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jf.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jf.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Jf.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Jf.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Jf.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Jf.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Jf.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Zf=Za("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${Es(n.placement.split("-")[0])}`]]}})(Cs(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Jf.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Jf.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Jf.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:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Jf.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Jf.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),Yf=Za("span",{name:"MuiTooltip",slot:"Arrow"})(Cs(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Qf=!1;const eh=new tl;let th={x:0,y:0};function nh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:h=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:y=!1,id:b,leaveDelay:v=0,leaveTouchDelay:S=1500,onClose:x,onOpen:w,open:k,placement:C="bottom",PopperComponent:E,PopperProps:L={},slotProps:R={},slots:P={},title:O,TransitionComponent:T,TransitionProps:I,...q}=n,j=a.isValidElement(o)?o:(0,Jo.jsx)("span",{children:o}),M=Uo(),D=Yo(),[_,N]=a.useState(),[A,$]=a.useState(null),z=a.useRef(!1),F=p||y,B=nl(),W=nl(),H=nl(),U=nl(),[V,G]=_u({controlled:k,default:!1,name:"Tooltip",state:"open"});let K=V;const J=Ms(b),X=a.useRef(),Z=$s(()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),U.clear()});a.useEffect(()=>Z,[Z]);const Y=e=>{eh.clear(),Qf=!0,G(!0),w&&!K&&w(e)},Q=$s(e=>{eh.start(800+v,()=>{Qf=!1}),G(!1),x&&K&&x(e),B.start(M.transitions.duration.shortest,()=>{z.current=!1})}),ee=e=>{z.current&&"touchstart"!==e.type||(_&&_.removeAttribute("title"),W.clear(),H.clear(),h||Qf&&m?W.start(Qf?m:h,()=>{Y(e)}):Y(e))},te=e=>{W.clear(),H.start(v,()=>{Q(e)})},[,ne]=a.useState(!1),re=e=>{const t=e?.target??_;if(!t||!Ds(t)){ne(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),te(n)}},oe=e=>{_||N(e.currentTarget),Ds(e.target)&&(ne(!0),ee(e))},ie=e=>{z.current=!0;const t=j.props;t.onTouchStart&&t.onTouchStart(e)};a.useEffect(()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&Q(e)}},[Q,K]);const ae=Ns(Hl(j),N,t);O||0===O||(K=!1);const se=a.useRef(),le={},ce="string"==typeof O;c?(le.title=K||!ce||d?null:O,le["aria-describedby"]=K?J:null):(le["aria-label"]=ce?O:null,le["aria-labelledby"]=K&&!ce?J:null);const ue={...le,...q,...j.props,className:ti(q.className,j.props.className),onTouchStart:ie,ref:ae,...y?{onMouseMove:e=>{const t=j.props;t.onMouseMove&&t.onMouseMove(e),th={x:e.clientX,y:e.clientY},se.current&&se.current.update()}}:{}},de={};f||(ue.onTouchStart=e=>{ie(e),H.clear(),B.clear(),Z(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(g,()=>{document.body.style.WebkitUserSelect=X.current,ee(e)})},ue.onTouchEnd=e=>{j.props.onTouchEnd&&j.props.onTouchEnd(e),Z(),H.start(S,()=>{Q(e)})}),d||(ue.onMouseOver=nh(ee,ue.onMouseOver),ue.onMouseLeave=nh(te,ue.onMouseLeave),F||(de.onMouseOver=ee,de.onMouseLeave=te)),u||(ue.onFocus=nh(oe,ue.onFocus),ue.onBlur=nh(re,ue.onBlur),F||(de.onFocus=oe,de.onBlur=re));const pe={...n,isRtl:D,arrow:r,disableInteractive:F,placement:C,PopperComponentProp:E,touch:z.current},fe="function"==typeof R.popper?R.popper(pe):R.popper,he=a.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(A),options:{element:A,padding:4}}];return L.popperOptions?.modifiers&&(e=e.concat(L.popperOptions.modifiers)),fe?.popperOptions?.modifiers&&(e=e.concat(fe.popperOptions.modifiers)),{...L.popperOptions,...fe?.popperOptions,modifiers:e}},[A,L.popperOptions,fe?.popperOptions]),me=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Sa({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Es(i.split("-")[0])}`],arrow:["arrow"]},Kf,t)})(pe),ge="function"==typeof R.transition?R.transition(pe):R.transition,ye={slots:{popper:s.Popper,transition:s.Transition??T,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:R.arrow??l.arrow,popper:{...L,...fe??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...I,...ge??l.transition}}},[be,ve]=wc("popper",{elementType:Xf,externalForwardedProps:ye,ownerState:pe,className:ti(me.popper,L?.className)}),[Se,xe]=wc("transition",{elementType:sc,externalForwardedProps:ye,ownerState:pe}),[we,ke]=wc("tooltip",{elementType:Zf,className:me.tooltip,externalForwardedProps:ye,ownerState:pe}),[Ce,Ee]=wc("arrow",{elementType:Yf,className:me.arrow,externalForwardedProps:ye,ownerState:pe,ref:$});return(0,Jo.jsxs)(a.Fragment,{children:[a.cloneElement(j,ue),(0,Jo.jsx)(be,{as:E??Gf,placement:C,anchorEl:y?{getBoundingClientRect:()=>({top:th.y,left:th.x,right:th.x,bottom:th.y,width:0,height:0})}:_,popperRef:se,open:!!_&&K,id:J,transition:!0,...de,...ve,popperOptions:he,children:({TransitionProps:e})=>(0,Jo.jsx)(Se,{timeout:M.transitions.duration.shorter,...e,...xe,children:(0,Jo.jsxs)(we,{...ke,children:[O,r?(0,Jo.jsx)(Ce,{...Ee}):null]})})})]})}),oh=rh,ih=Za(js,{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 ah({width:e,text:t,dense:n,tooltip:r}){const{translator:o}=(0,a.useContext)(fa);return(0,Jo.jsx)(oh,{title:r?o.get(t):"",children:(0,Jo.jsx)(ih,{width:e,dense:n,component:"div",variant:"body1",py:"12px",children:o.get(t)})})}const sh=Vu((0,Jo.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"})),lh=Za(Gc)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),ch=Za("div")(()=>({paddingLeft:"6px",flexGrow:1})),uh=Za("div")(({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"})),dh=Za(sh)(()=>({fontSize:"14px"}));function ph({text:e,dismiss:t,dense:n,parentWidth:r=0}){const o="function"==typeof t,i=n?370:282,a=Math.max(r/2-i/2,0),s=Math.min(i,r)-42,l=n&&r<i;return(0,Jo.jsxs)(lh,{left:a,style:{maxWidth:i},children:[(0,Jo.jsx)(ch,{children:(0,Jo.jsx)(ah,{text:e,dense:n,width:s,tooltip:l})}),(0,Jo.jsx)(uh,{dense:n,children:o&&(0,Jo.jsx)(Ml,{"aria-label":"close",onClick:()=>t(),children:(0,Jo.jsx)(dh,{})})})]})}function fh({itemWidth:e,layout:t,frequencyMode:n}){const r=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},i=!["N",void 0].includes(n);return!(!r||!i&&!o)}const hh=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,mh=e=>{const t=hh(e);return`Max(AGGR(Count(${t}), ${t}))`},gh=Za("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function yh({model:e,app:t,constraints:n,layout:r,selections:o,selectionState:i,direction:s,checkboxes:l,height:c,width:u,frequencyMode:d,update:p,fetchStart:f,postProcessPages:h,calculatePagesHeight:m=!1,keyboard:g={},showGray:y=!0,scrollState:b,keyScroll:v={state:{},reset:()=>{}},currentScrollIndex:S={set:()=>{}},renderedCallback:x,onCtrlF:w,showSearch:k,isModal:C,styles:E}){const{translator:L}=(0,a.useContext)(fa),[R,P]=(0,a.useState)(!1),O=!(!r||!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:T=l,histogram:I}=r??{},q=(0,a.useRef)(null),j=(0,a.useRef)({queue:[],validPages:!1,dataOffset:0}),M=(0,a.useRef)({pages:[]}),{frequencyMax:D,awaitingFrequencyMax:_}=((e,t)=>{const n=(e=>"fetch"===e?.frequencyMax)(t),[r,o]=(0,a.useState)(),[i,s]=(0,a.useState)(n);return(0,a.useEffect)(()=>{n&&(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=mh(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),s(!1)})()},[n&&t]),{frequencyMax:n?r:t?.frequencyMax,awaitingFrequencyMax:i}})(t,r),{isLoadingData:N,...A}=function({local:e,loaderRef:t,model:n,fetchStart:r,scrollTimeout:o,postProcessPages:i,listData:s}){const[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)([]);let[p]=(0,a.useState)(0);const f=(a,l)=>{const u=e.current.dataOffset;e.current.queue.push({start:a+u,stop:l+u});const f=!!t.current&&t.current._listRef&&t.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 o=e.current.queue.slice(-1)[0];if(!o)return c(!1),void t();const a=n.getListObjectData("/qListObjectDef",[{qTop:o.start>p?o.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:o.start,qHeight:p,qLeft:0,qWidth:1}]).then(n=>{const r=i?i(n):n;e.current.validPages=!0,s.current.pages=r,d(r),c(!1),t()});r&&r(a)},f?o:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(p=e),f)},pages:u,isLoading:l}}({local:j,loaderRef:q,model:e,fetchStart:f,scrollTimeout:0,postProcessPages:h,listData:M}),{getStoreValue:$,setStoreValue:z}=Rp(e),F=(0,a.useCallback)(A.loadMoreItems,[r]),[B,W]=(0,a.useState)({show:!1,dismissed:!1}),[H,U]=(0,a.useState)([]);A?.pages&&i.update({setPages:U,pages:A.pages,isSingleSelect:O,layout:r});const V=r?.qListObject.qDimensionInfo.qCardinal;(A?.pages.length&&!_||0===V)&&x?.();const G=(0,a.useCallback)(e=>{if(!H?.length||!j.current.validPages)return!1;j.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=H.filter(e=>t(e))[0];return n&&t(n)},[r,H]),{interactionEvents:K,select:J}=function({selectionState:e,selections:t,checkboxes:n=!1,doc:r=document,loaderRef:o}){const i=(0,a.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,a.useEffect)(()=>{if(!o.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=o.current._listRef._outerRef;return r.addEventListener("gesturestart",e),r.addEventListener("gesturechange",t),r.addEventListener("gestureend",n),()=>{r.removeEventListener("gesturestart",e),r.removeEventListener("gesturechange",t),r.removeEventListener("gestureend",n)}},[o.current?._listRef?._outerRef]);const s=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),uu({selections:t,elemNumbers:i.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:i.current.toggle})),l=(t,n)=>{const r=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 cu(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r}),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([t,n],r)},c=t=>{const{startElemNumber:n}=i.current;if(n===t)return;const r=l(i.current.startElemNumber,t);e.updateItems(r,!0,i.current.elemNumbers)},u=(0,a.useCallback)(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),r=!e.isSingleSelect&&hu(t.nativeEvent);i.current.elemNumbers=[n],i.current.toggle=r,r||e.clearItemStates(!0),e.updateItem(n),i.current.active=!1,s()},[]),d=(0,a.useCallback)(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),r=!e.isSingleSelect&&hu(t);i.current.isRange=!1,i.current.startElemNumber=n,i.current.elemNumbers=[n],i.current.toggle=r,i.current.active=!0,r||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(i.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),p=(0,a.useCallback)(e=>{if(0===e.button&&i.current.active){if(i.current.active=!1,i.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}s()}},[]),f=(0,a.useCallback)(e=>{0===e.button&&i.current.active&&(i.current.active=!1,s())},[]),h=(0,a.useCallback)(t=>{if(!i.current.active)return;i.current.isRange||(i.current.isRange=!0,e.isSelected(i.current.startElemNumber)||(e.updateItem(i.current.startElemNumber,!0),i.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=(0,a.useCallback)(t=>{if(i.current.active||i.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void s();const n=Number(t.touches[0].target?.closest(fu)?.getAttribute("data-n")),r=Number(t.touches[1].target?.closest(fu)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?s():(i.current.active=!0,l(n,r).length<7&&(i.current.touchRangeSmall=!0),i.current.elemNumbers=[],i.current.touchElemNumbers=[n,r])},[]),g=(0,a.useCallback)(()=>{if(2!==i.current.touchElemNumbers.length)return;if(i.current.touchRangeSmall)return i.current.touchRangeSmall=!1,i.current.touchElemNumbers=[],void(i.current.active=!1);const[e,t]=i.current.touchElemNumbers;i.current.startElemNumber=e,c(t),i.current.touchElemNumbers=[],i.current.active=!1,i.current.toggle=!0,s()},[]);(0,a.useEffect)(()=>(r.addEventListener("mouseup",f),()=>{r.removeEventListener("mouseup",f)}),[f]),(0,a.useEffect)(()=>{const n=()=>{e.clearItemStates(!1)},r=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",n),t.on("deactivated",n),t.on("cleared",r),()=>{t.removeListener("clearItemStates",n),t.removeListener("deactivated",n),t.removeListener("cleared",r)}},[t]);const y={};return n?Object.assign(y,{onChange:u}):Object.assign(y,{onMouseUp:p,onMouseDown:d,onMouseEnter:h,onTouchStart:m,onTouchEnd:g}),{interactionEvents:y,select:async(n=[],r=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const i=!e.isSingleSelect&&hu(o?.nativeEvent);i||e.clearItemStates(!0);const a=[];return e.updateItems(n,r,a),e.setSelectableValuesUpdating(),uu({selections:t,elemNumbers:r?a:n,isSingleSelect:e.isSingleSelect,toggle:i})}}}({selectionState:i,selections:o,checkboxes:T,doc:document,loaderRef:q}),{layoutOptions:X={}}=r||{};let Z=!0;X.dataLayout&&(Z="singleColumn"===X.dataLayout||"row"===X?.layoutOrder);const Y="grid"===X?.dataLayout,Q=e=>{const t={...Z?{rowIndex:e}:{columnIndex:e}},n=Y?t:e;q.current._listRef.scrollToItem(n)},ee=()=>{if(j.current.queue=[],j.current.validPages=!1,q.current){q.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===v.state.scrollPosition;if(r&&r.qSelectionInfo.qInSelections||e)return void(e&&v.reset());j.current.dataOffset=0,Q(0)}};p&&p.call(null,ee),(0,a.useEffect)(()=>{b&&!R&&q.current&&(q.current._listRef.scrollToItem(b.initScrollPos),P(!0))},[q.current]),(0,a.useEffect)(()=>{ee()},[r,j.current.dataOffset]);let te=100;const ne="grid"!==X.dataLayout,re=r?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:r=!1}){const o=e?.length&&r?(({pages:e=[],minimumBatchSize:t,count:n})=>{const r=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return r?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:H,minimumBatchSize:te,count:re,calculatePagesHeight:m,layoutOptions:X,model:e});let ie=fh({itemWidth:u,layout:r,frequencyMode:d});const ae=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>!!e.qFrequency?.match("%")))?"P":"-"}(H),se=function({layout:e,width:t,height:n,listCount:r,count:o,freqIsAllowed:i,checkboxes:a,styles:s}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:u={},maxVisibleColumns:d,dense:p,dataLayout:f}=l,{fontSize:h="12px",fontFamily:m="Source sans pro"}=s?.content||{},g=`${h} ${m}`,y=wp({text:kp(e),font:g}),b=wp({text:kp(5),font:g}),v=wp({text:kp(8),font:g}),S=i?b:0,x=a?20:0;let w=56+S+x;!a&&w>=80&&(w+=20);let k,C,E,L,R=y+18+S+x;!a&&R>=80&&(R+=20),R=Math.min(150,Math.max(R,w));const P=Cp({isGridMode:"grid"===f,dense:p}),O=n??8*P;if(c){let e=t;"row"===c?(k={overflowX:"hidden"},e+=8,({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:r,itemMinWidth:o}){const i=e?.maxColumns||3,a=n-10;let s;const l=Math.min(t,Math.max(1,Math.round(a/Math.max(o,r))));s=!1!==e?.auto?l:Math.min(t,i,l),s=Math.max(s,1);const c=a/s;return{rowCount:Math.ceil(t/s),columnWidth:c,columnCount:s}}({maxVisibleColumns:d,listCount:r,containerWidth:e,columnAutoWidth:R,itemMinWidth:w}))):(k={overflowY:"hidden"},({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r,columnAutoWidth:o,containerWidth:i,itemMinWidth:a}){let s;const l=e?.maxRows||3,c=Math.floor(r/t);s=!1!==e.auto?c:Math.min(n,l,c),s=Math.max(s,1);const u=Math.ceil(n/s);return{columnWidth:Math.max(o,i/u,a),columnCount:u,rowCount:s}}({maxVisibleRows:u,itemHeight:P,listCount:r,listHeight:O,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}C=("singleColumn"===f?1:C)||1,L=("singleColumn"===f?o:L)||r;const T=l.dense?838e3:577e3;L=Math.min(L,T);const I=Math.floor(3355e4/E);C=Math.min(C,I)||1;const q=L*C;return{columnCount:C,columnWidth:E,rowCount:L,overflowStyling:k,itemHeight:P,listHeight:O,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(r,q),maxCount:{row:T,column:I},itemPadding:4,textWidth:y,freqMinWidth:b,freqMaxWidth:v}}({layout:r,width:u,height:c,listCount:oe,count:re,freqIsAllowed:ie,checkboxes:T,styles:E});se.columnWidth&&(ie=fh({itemWidth:se.columnWidth,layout:r,frequencyMode:d}));const{listCount:le}=se;z("listCount",le);const ce=$("inputText"),ue=function({layout:e,searchInputText:t,listCount:n}){const{translator:r}=(0,a.useContext)(fa),o=[];if(t?.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}(n),t=r.get(e,[n]);o.push(t)}const i=function({layout:e,translatorDynamic:t}){const{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},r=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let o;switch(r){case 0:o="ScreenReader.ZeroSelected";break;case 1:o="ScreenReader.OneSelected";break;default:o="ScreenReader.ManySelected"}return t.get(o,[r])}({layout:e,translatorDynamic:r});o.push(i);const s=o.filter(e=>!!e?.length).join(". ");return s}({layout:r,searchInputText:ce,listCount:le}),de=e=>{const{scrollIndex:t,offset:n,triggerRerender:o}=function({position:e,isRow:t,sizes:n,layout:r,offset:o}){let i,a=!1,s=o??0;switch(e){case"start":i=0;break;case"end":i=t?n.rowCount:n.columnCount;break;case"overflowStart":s=0,i=0,a=!0;break;case"overflowEnd":s=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(r,n.listCount),i=r.qListObject.qDimensionInfo.qCardinal,a=!0}return{scrollIndex:i,offset:s,triggerRerender:a}}({position:e,isRow:Z,sizes:se,layout:r,offset:j.current.dataOffset});j.current.dataOffset=n,o&&i.triggerStateChanged(),Q(t)};(0,a.useEffect)(()=>{const e=v.state;e.up?Q(S.state.start-e.up):e.down?Q(S.state.stop+e.down):e.scrollPosition&&de(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&v.reset()},[v.state.up,v.state.down,v.state.scrollPosition]);const{textAlign:pe}=r?.qListObject.qDimensionInfo||{},[fe,he]=(0,a.useState)({first:!1,last:!1}),{List:me,Grid:ge}=function({layout:e,width:t,checkboxes:n,local:r,isVertical:o,pages:i,selectionState:a,interactionEvents:s,deducedFrequencyMode:l,histogram:c,isSingleSelect:u,select:d,selectAll:p,onCtrlF:f,textAlign:h,selections:m,keyboard:g,showGray:y,scrollState:b,direction:v,sizes:S,listCount:x,overflowDisclaimer:w,setScrollPosition:k,focusListItems:C,setCurrentScrollIndex:E,constraints:L,frequencyMax:R,freqIsAllowed:P,translator:O,showSearch:T,isModal:I,styles:q}){const{layoutOptions:j={}}=e||{},{columnWidth:M,listHeight:D,itemHeight:_,rowCount:N,columnCount:A}=S||{},$=("grid"===j.dataLayout?M:t)>80,z={direction:"rtl"===v?"rtl":"ltr",useIsScrolling:!0,className:bp},F=e?.qListObject.qDimensionInfo.qLocked,B=D<=_,W={isLocked:F,column:!o,pages:i,...F||a.selectDisabled()?{}:s,checkboxes:n,layoutOptions:j,deducedFrequencyMode:l,freqIsAllowed:P,isSingleSelect:u,textAlign:h,sizes:S,actions:{select:d,confirm:()=>m?.confirm.call(m),cancel:()=>m?.cancel.call(m),setScrollPosition:k,selectAll:p,onCtrlF:f},frequencyMax:R,histogram:c,keyboard:g,showGray:y,showTick:$,dataOffset:r.current.dataOffset,focusListItems:C,direction:v,translator:O,showSearch:T,isModal:I,styles:q,fillHeight:B};return{List:({onItemsRendered:n,ref:o})=>(r.current.listRef=o,(0,Jo.jsx)(Sp,{...z,dataTestid:"fixed-size-list",scrollDisabled:L?.active,height:D,width:t,itemCount:x,itemData:{...W,listCount:x},itemSize:_,onItemsRendered:t=>{E({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),vp({renderProps:t,layoutOptions:j,maxCount:S.maxCount,columnCount:A,rowCount:N,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:r.current.dataOffset}),n({...t})},ref:o,children:Xd})),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:i,scrollBarWidth:a}=S,{layoutOrder:s}=j||{},l=Math.min(D,N*_+a);return r.current.listRef=o,(0,Jo.jsx)(xp,{...z,dataTestid:"fixed-size-grid",scrollDisabled:L?.active,height:l,width:t,columnCount:A,columnWidth:M,rowCount:N,rowHeight:_,style:{...i},itemData:{...W,column:void 0,columnCount:A,rowCount:N},onItemsRendered:t=>{const o="row"===s;E({start:o?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:o?t.visibleRowStopIndex:t.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,f=c*o,h=s):(d=l,p=a*i,f=c,h=s*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:t,scrollState:b,layoutOrder:s,rowCount:N,columnCount:A});vp({renderProps:t,layoutOptions:j,maxCount:S.maxCount,columnCount:A,rowCount:N,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:r.current.dataOffset}),n(i)},ref:o,children:Xd})}}}({direction:s,layout:r,height:c,width:u,checkboxes:T,deducedFrequencyMode:ae,histogram:I,keyboard:g,showGray:y,interactionEvents:K,select:J,selectAll:()=>{i.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:pe,isVertical:ne,pages:H,selectionState:i,isSingleSelect:O,selections:o,scrollState:b,local:j,sizes:se,listCount:le,overflowDisclaimer:{state:B,set:e=>W(t=>({...t,show:e}))},setScrollPosition:de,focusListItems:{first:fe.first,setFirst:e=>he(t=>({...t,first:e})),last:fe.last,setLast:e=>he(t=>({...t,last:e}))},setCurrentScrollIndex:S.set,constraints:n,frequencyMax:D,freqIsAllowed:ie,translator:L,showSearch:k,isModal:C,styles:E}),{columnWidth:ye,listHeight:be,itemHeight:ve}=se||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:r}){return Math.ceil(e/t)*Math.ceil(n/r)*2}({width:u,columnWidth:ye,listHeight:be,itemHeight:ve})),(0,Jo.jsxs)(gh,{children:[(0,Jo.jsx)("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:ue}),!le&&V>0&&(0,Jo.jsx)(ah,{width:u,text:"Listbox.NoMatchesForYourTerms"}),(0,Jo.jsx)(su,{isItemLoaded:G,itemCount:le||1,loadMoreItems:F.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:q,role:"grid",children:ne?me:ge}),B.show&&!B.dismissed&&(0,Jo.jsx)(ph,{text:"Listbox.ItemsOverflow",dismiss:()=>W(e=>({...e,dismissed:!0})),parentWidth:q?.current?._listRef?.props?.width,dense:X?.dense})]})}const bh=e=>({...e,shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]});n.dn(e=>(void 0)(bh(e)));const vh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});n.dn(e=>(void 0)(vh(e)));const Sh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});n.dn(e=>(void 0)(Sh(e)));const xh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});n.dn(e=>(void 0)(xh(e)));const wh=({layout:e,model:t,translator:n,selectionState:r,isDirectQuery:o=!1,selections:i})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const a="/qListObjectDef",s=()=>{i.isActive()||i.begin(a)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:bh,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectAll(a)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:Sh,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectPossible(a)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:vh,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectAlternative(a)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:xh,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectExcluded(a)}}].filter(Boolean)};function kh(e){return ra("MuiDivider",e)}n.dn(wh);const Ch=oa("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Eh=Za("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]}})(Cs(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Lh=Za("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Cs(({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)`}}]}))),Rh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:s=(o||"vertical"===a?"div":"hr"),flexItem:l=!1,light:c=!1,role:u=("hr"!==s?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:s,flexItem:l,light:c,orientation:a,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Sa({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},kh,r)})(h);return(0,Jo.jsx)(Eh,{as:s,className:ti(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===s&&"vertical"!==a?void 0:a,...f,children:o?(0,Jo.jsx)(Lh,{className:m.wrapper,ownerState:h,children:o}):null})});Rh&&(Rh.muiSkipListHighlight=!0);const Ph=Rh,Oh=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 Th(e){const t=Uo(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}n.dn(e=>(void 0)(Oh(e)));const Ih={className:"njs-cell-action"},qh=a.forwardRef(({item:e,addAnchor:t=!1},n)=>{const r=Uo(),{hidden:o,disabled:i,style:a,hasSvgIconShape:s}=Th(e);if(o)return null;const l=Number.parseInt(r.spacing(.5),10),c=e.keyboardAction||e.action,u=c?e=>["Enter"].includes(e.key)&&c():null,d=c?e=>[" ","Spacebar"].includes(e.key)&&c():null,p=`actions-toolbar-${e.key}`,f=e.ref||(t?null:n);return(0,Jo.jsxs)(Ml,{ref:f,title:e.label,onClick:e.action,onKeyDown:u,onKeyUp:d,disabled:i,style:a,className:[Ih.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":p,children:[s&&vs(e.getSvgIconShape()),t&&(0,Jo.jsx)("div",{ref:n,style:{bottom:-l,right:0,position:"absolute",width:"100%",height:0}})]})}),jh=qh,Mh=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"}}]}),Dh=e=>vs(Mh(e));n.dn(Dh);const _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 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"}}]}),Nh=e=>vs(_h(e));n.dn(Nh);const Ah=a.createContext({}),$h=ii;function zh(e){return ra("MuiListItemIcon",e)}const Fh=oa("MuiListItemIcon",["root","alignItemsFlexStart"]),Bh=oa("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Wh(e){return ra("MuiMenuItem",e)}const Hh=oa("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Uh=a.createContext(null);Uh.Provider;const Vh=Za(gl,{shouldForwardProp:e=>Xa(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]}})(Cs(({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"}},[`&.${Hh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Hh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Hh.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ch.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ch.inset}`]:{marginLeft:52},[`& .${Bh.root}`]:{marginTop:0,marginBottom:0},[`& .${Bh.inset}`]:{paddingLeft:36},[`& .${Fh.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,[`& .${Fh.root} svg`]:{fontSize:"1.25rem"}}}]}))),Gh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...f}=n,h=a.useContext(Uh),m=a.useContext(Ah),g=a.useMemo(()=>({dense:i||m.dense||!1,disableGutters:l}),[m.dense,i,l]),y=a.useRef(null);$h(()=>{r&&y.current&&function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(y.current,h)},[r]);const b={...n,dense:g.dense,divider:s,disableGutters:l},v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=Sa({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Wh,a);return{...a,...s}})(n),S=Ns(y,t),{root:x,...w}=v;let k;return n.disabled||(k=void 0!==d?d:-1),(0,Jo.jsx)(Ah.Provider,{value:g,children:(0,Jo.jsx)(Vh,{ref:S,role:u,tabIndex:k,component:o,focusVisibleClassName:ti(v.focusVisible,c),className:ti(v.root,p),...f,ownerState:b,classes:w})})}),Kh=Gh,Jh=Za("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Cs(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Xh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=a.useContext(Ah),s={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Sa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zh,n)})(s);return(0,Jo.jsx)(Jh,{className:ti(l.root,r),ownerState:s,ref:t,...o})}),Zh=Xh;function Yh(e){return ra("MuiList",e)}oa("MuiList",["root","padding","dense","subheader"]);const Qh=Za("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}}]}),em=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=n,d=a.useMemo(()=>({dense:s}),[s]),p={...n,component:i,dense:s,disablePadding:l},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sa({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Yh,t)})(p);return(0,Jo.jsx)(Ah.Provider,{value:d,children:(0,Jo.jsxs)(Qh,{as:i,className:ti(f.root,o),ref:t,ownerState:p,...u,children:[c,r]})})}),tm=em,nm=qc;function rm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function om(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function im(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 am(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&im(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const sm=a.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,f=a.useRef(null),h=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$h(()=>{r&&f.current.focus()},[r]),a.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${nm(Wl(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=Ns(f,t);let g=-1;a.Children.forEach(i,(e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const y=a.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e});return(0,Jo.jsx)(tm,{role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=cc(Fl(t));if("ArrowDown"===n)e.preventDefault(),am(t,r,c,l,rm);else if("ArrowUp"===n)e.preventDefault(),am(t,r,c,l,om);else if("Home"===n)e.preventDefault(),am(t,null,c,l,rm);else if("End"===n)e.preventDefault(),am(t,null,c,l,om);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&im(r,o);o.previousKeyMatched&&(s||am(t,r,!1,l,rm,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...p,children:y})}),lm="More-icon",cm=Za(ru)(({theme:e})=>({pointerEvents:"none",[`& .${lm} *`]:{color:e.palette.text.primary}}));function um({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:r,disabled:o,hasSvgIconShape:i}=Th(e);return r?null:(0,Jo.jsxs)(Kh,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[i&&(0,Jo.jsx)(Zh,{className:lm,children:vs(e.getSvgIconShape())}),(0,Jo.jsx)(js,{noWrap:!0,children:e.label})]})}const dm=a.forwardRef(({actions:e=[],show:t=!0,alignTo:n,popoverProps:r={},popoverPaperStyle:o={},onCloseOrActionClick:i=()=>{},disablePortal:a=!0},s)=>{const l=e.length>0,c=e.findIndex(e=>!e.disabled);return l&&(0,Jo.jsx)(cm,{...r,onClose:i,ref:s,open:t,anchorEl:n.current,getContentAnchorEl:a?null:void 0,container:a?n.current:void 0,disablePortal:a,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...o}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,Jo.jsx)(sm,{id:"moreMenuList",children:e.map((e,t)=>(0,Jo.jsx)(um,{item:e,autoFocus:t===c,onActionClick:i},t))})})});const pm="ActionsToolbar",fm={item:`${pm}-item`,itemSpacing:`${pm}-itemSpacing`},hm=Za(ru)(({theme:e})=>({[`& .${fm.itemSpacing}`]:{padding:e.spacing(0,.25)}})),mm=a.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:r=!1},o)=>t.length>0?(0,Jo.jsx)(es,{container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>(0,Jo.jsx)(es,{className:`${fm.itemSpacing} ${fm.item}`,children:(0,Jo.jsx)(jh,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),gm={pointerEvents:"none"},ym=function({show:e=!0,actions:t=[],maxItems:n=3,selections:r={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:o,more:i={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:s={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:u,autoConfirm:d=!1,layout:p}){const f=function({api:e,layout:t,onConfirm:n=()=>{},onCancel:r=()=>{},onKeyDeactivate:o=()=>{}}){const{translator:i}=(0,a.useContext)(fa);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:_h},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{r(),e.cancel()},keyboardAction:()=>{o(),r(),e.cancel()},getSvgIconShape:Mh},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{o(),n(),e.confirm()},getSvgIconShape:mu}]}({...r,layout:p}),{translator:h,keyboardNavigation:m}=(0,a.useContext)(fa),[g,y]=(0,a.useState)(!1),b={vertical:12,horizontal:u?0:(s.anchorEl?.clientWidth??0)-7},v={vertical:"bottom",horizontal:u?-7:"right"},S=(0,a.useRef)(),x=(0,a.useRef)(),w=Uo(),k=(0,a.useMemo)(()=>({margin:w.spacing(.5,0)})),C=e=>{const t=S.current||c;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=(0,a.useMemo)(()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:r,isRtl:o}){return i=>{const{target:a,nativeEvent:s}=i,{keyCode:l}=s;switch(l){case zd.ARROW_LEFT:case zd.ARROW_DOWN:case zd.ARROW_RIGHT:case zd.ARROW_UP:if(a.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)})(a);let t=[zd.ARROW_LEFT,zd.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)}i.stopPropagation(),i.preventDefault();break;case zd.SPACE:i.preventDefault();break;case zd.TAB:e&&t?.refocusContent&&(i.shiftKey&&n(!1)===i.target||!i.shiftKey&&n(!0)===i.target)&&(i.preventDefault(),i.stopPropagation(),t.refocusContent());break;case zd.ESCAPE:r&&(r.onCancel(),r.api.cancel(),i.preventDefault(),i.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:C,selections:r,isRtl:u}),[m,l,C,r,u]);if((0,a.useEffect)(()=>()=>{y(!1)},[s.show,e,r.show]),(0,a.useEffect)(()=>{l&&(l.on("focus_toolbar_first",()=>{const e=C(!1);e?.focus()}),l.on("focus_toolbar_last",()=>{const e=C(!0);e?.focus()}))},[]),d)return;let L=i.enabled,R=i.actions;const P=i.alignTo||x,O=t.filter(e=>!e.hidden);if(O.length>n){const e=O.splice(-(O.length-n)-1);L=!0,R=[...e,...i.actions]}if(!r.show&&0===O.length&&!L)return null;const T={key:"more",label:h.get("Menu.More"),getSvgIconShape:Oh,hidden:!1,active:g,enabled:()=>L,action:()=>y(!g)},I=O.length>0,q=R.length>0,j=I&&r.show||q&&r.show,M=(0,Jo.jsxs)(es,{ref:S,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:u?"row-reverse":"row"},children:[o?.length&&(0,Jo.jsx)(mm,{className:"actions-toolbar-extra-actions",actions:o,isRtl:u}),I&&(0,Jo.jsx)(mm,{actions:O}),q&&(0,Jo.jsx)(mm,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:x,actions:[T],addAnchor:!0}),j&&(0,Jo.jsx)(es,{className:fm.itemSpacing,style:k,children:(0,Jo.jsx)(Ph,{orientation:"vertical"})}),r.show&&(0,Jo.jsx)(mm,{className:"actions-toolbar-default-actions",actions:f,isRtl:u}),g&&(0,Jo.jsx)(dm,{show:g,actions:R,alignTo:P,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{y(!1)},disablePortal:i.disablePortal})]});return s.show?(0,Jo.jsx)(hm,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:b,transformOrigin:v,hideBackdrop:!0,style:gm,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:w.spacing(.5,.25)}}},children:M}):e&&M};var bm;const vm=Za("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Xa})({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%"}),Sm=Za("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Xa})(Cs(({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})}}]})));function xm(e){return ra("MuiInputBase",e)}const wm=oa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function km(e){return ra("MuiOutlinedInput",e)}const Cm={...wm,...oa("MuiOutlinedInput",["root","notchedOutline","input"])};function Em(e){return parseInt(e,10)||0}const Lm={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rm(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pm=a.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:s,...l}=e,{current:c}=a.useRef(null!=s),u=a.useRef(null),d=_s(t,u),p=a.useRef(null),f=a.useRef(null),h=a.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=Bl(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 a=i.boxSizing,s=Em(i.paddingBottom)+Em(i.paddingTop),l=Em(i.borderBottomWidth)+Em(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;return o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),m=As(()=>{const e=u.current,t=h();if(!e||!t||Rm(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=a.useCallback(()=>{const e=u.current,t=h();if(!e||!t||Rm(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),y=a.useRef(-1);return ii(()=>{const e=Al(g),t=u?.current;if(!t)return;const n=Bl(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(y.current),g(),y.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(y.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),ii(()=>{g()}),(0,Jo.jsxs)(a.Fragment,{children:[(0,Jo.jsx)("textarea",{value:s,onChange:e=>{c||g();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:o,style:i,...l}),(0,Jo.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Lm,...i,paddingTop:0,paddingBottom:0}})]})}),Om=Pm;function Tm(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}var Im;const qm="mui-auto-fill",jm="mui-auto-fill-cancel",Mm=(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${Es(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dm=(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]},_m=Za("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mm})(Cs(({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",[`&.${wm.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%"}}]}))),Nm=Za("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dm})(Cs(({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})},r={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] + .${wm.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${wm.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:jm,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:qm}}},{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"}}]}})),Am=function(e){return function(t){return(0,Jo.jsx)(ws,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${qm}`]:{from:{animationName:qm}},[`@keyframes ${jm}`]:{from:{animationName:jm}}}),$m=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,error:m,fullWidth:g=!1,id:y,inputComponent:b="input",inputProps:v={},inputRef:S,margin:x,maxRows:w,minRows:k,multiline:C=!1,name:E,onBlur:L,onChange:R,onClick:P,onFocus:O,onKeyDown:T,onKeyUp:I,placeholder:q,readOnly:j,renderSuffix:M,rows:D,size:_,slotProps:N={},slots:A={},startAdornment:$,type:z="text",value:F,...B}=n,W=null!=v.value?v.value:F,{current:H}=a.useRef(null!=W),U=a.useRef(),V=a.useCallback(e=>{},[]),G=Ns(U,S,v.ref,V),[K,J]=a.useState(!1),X=Pu(),Z=Iu({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:K,a.useEffect(()=>{!X&&p&&K&&(J(!1),L&&L())},[X,p,K,L]);const Y=X&&X.onFilled,Q=X&&X.onEmpty,ee=a.useCallback(e=>{!function(e,t=!1){return e&&(Tm(e.value)&&""!==e.value||t&&Tm(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():Y&&Y()},[Y,Q]);$h(()=>{H&&ee({value:W})},[W,ee,H]),$h(()=>{if(!i)return;const e=U.current;if(!e)return;const t=Fl(e),n=cc(t),r=null==n||n===t.body||n===t.documentElement;e===n?X&&X.onFocus?X.onFocus():J(!0):r&&e.focus()},[i]),a.useEffect(()=>{ee(U.current)},[]);let te=b,ne=v;C&&"input"===te&&(ne=D?{type:void 0,minRows:D,maxRows:D,...ne}:{type:void 0,maxRows:w,minRows:k,...ne},te=Om),a.useEffect(()=>{X&&X.setAdornedStart(Boolean($))},[X,$]);const re={...n,color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:g,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:$,type:z},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sa({root:["root",`color${Es(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Es(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},xm,t)})(re),ie=A.root||c.Root||_m,ae=N.root||u.root||{},se=A.input||c.Input||Nm;return ne={...ne,...N.input??u.input},(0,Jo.jsxs)(a.Fragment,{children:[!f&&"function"==typeof Am&&(Im||(Im=(0,Jo.jsx)(Am,{}))),(0,Jo.jsxs)(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!Nl(ie)&&{ownerState:{...re,...ae.ownerState}},className:ti(oe.root,ae.className,s,j&&"MuiInputBase-readOnly"),children:[$,(0,Jo.jsx)(Ru.Provider,{value:null,children:(0,Jo.jsx)(se,{"aria-invalid":Z.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:d,disabled:Z.disabled,id:y,onAnimationStart:e=>{ee(e.animationName===jm?U.current:{value:"x"})},name:E,placeholder:q,readOnly:j,required:Z.required,rows:D,value:W,onKeyDown:T,onKeyUp:I,type:z,...ne,...!Nl(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:ti(oe.input,ne.className,j&&"MuiInputBase-readOnly"),onBlur:e=>{L&&L(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||U.current;if(null==t)throw new Error(qe(1));ee({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{O&&O(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):J(!0)}})}),h,M?M({...Z,startAdornment:$}):null]})]})}),zm=$m,Fm=Za(_m,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mm})(Cs(({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 .${Cm.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Cm.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Cm.focused} .${Cm.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{[`&.${Cm.focused} .${Cm.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Cm.error} .${Cm.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Cm.disabled} .${Cm.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"}}]}})),Bm=Za(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=null!=o&&""!==o,l={...e,notched:i,withLabel:s};return(0,Jo.jsx)(vm,{"aria-hidden":!0,className:r,ownerState:l,...a,children:(0,Jo.jsx)(Sm,{ownerState:l,children:s?(0,Jo.jsx)("span",{children:o}):bm||(bm=(0,Jo.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Cs(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Wm=Za(Nm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dm})(Cs(({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}}]}))),Hm=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...f}=n,h=(e=>{const{classes:t}=e,n=Sa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},km,t);return{...t,...n}})(n),m=Pu(),g=Iu({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:p},b=u.root??r.Root??Fm,v=u.input??r.Input??Wm,[S,x]=wc("notchedOutline",{elementType:Bm,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:null!=s&&""!==s&&g.required?(0,Jo.jsxs)(a.Fragment,{children:[s," ","*"]}):s}});return(0,Jo.jsx)(zm,{slots:{root:b,input:v},slotProps:d,renderSuffix:e=>(0,Jo.jsx)(S,{...x,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:l,ref:t,type:p,...f,classes:{...h,notchedOutline:null}})});Hm.muiName="Input";const Um=Hm;function Vm(e){return ra("MuiInputAdornment",e)}const Gm=oa("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Km;const Jm=Za("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Es(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Cs(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Gm.positionStart}&:not(.${Gm.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Xm=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=n,p=Pu()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const h={...n,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:f},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Sa({root:["root",n&&"disablePointerEvents",o&&`position${Es(o)}`,a,r&&"hiddenLabel",i&&`size${Es(i)}`]},Vm,t)})(h);return(0,Jo.jsx)(Ru.Provider,{value:null,children:(0,Jo.jsx)(Jm,{as:i,ownerState:h,className:ti(m.root,o),ref:t,...d,children:"string"!=typeof r||l?(0,Jo.jsxs)(a.Fragment,{children:["start"===c?Km||(Km=(0,Jo.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]}):(0,Jo.jsx)(js,{color:"textSecondary",children:r})})})}),Zm=Xm,Ym=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));n.dn(Ym);const Qm="/qListObjectDef",eg=e=>e?.substring(0,64e3),tg=Za(Um,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let r={};return t&&(r={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"},...r}}),ng=Za(Ml)(()=>({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 rg({popoverOpen:e,selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:s=!0,autoFocus:l=!0,beginSelectionOnFocus:c=!0,wildCardSearch:u=!1,searchEnabled:d,direction:p,hide:f,styles:h},m){const{translator:g}=(0,a.useContext)(fa),[y,b]=(0,a.useState)(""),[v,S]=(0,a.useState)(!1),x=(0,a.useRef)(),w=(0,a.useRef)(),k=g.get("Listbox.Clear.Search"),{getStoreValue:C,setStoreValue:E}=Rp(r),L="rtl"===p,R=async()=>{try{await r.abortListObjectSearch(Qm)}finally{b("")}};(0,a.useEffect)(()=>s?()=>R():()=>{},[s]),(0,a.useEffect)(()=>(t.on("deactivated",R),()=>{t.removeListener&&t.removeListener("deactivated",R)}),[]),(0,a.useEffect)(()=>{if(v&&x.current){const e=y.length-1;x.current.setSelectionRange(e,e),S(!1)}},[v,x.current]),(0,a.useEffect)(()=>{E("inputText",y)},[y]);const P=()=>{x.current?.focus()},O=()=>{R(),P()};return(0,a.useImperativeHandle)(m,()=>({focus(){P()}})),s&&!1!==d?(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(tg,{styles:h,dense:i,isRtl:L,startAdornment:(0,Jo.jsx)(Zm,{position:"start",sx:{marginLeft:i?"8px":"9px"},children:(0,Jo.jsx)(Ym,{size:i?"small":"normal"})}),endAdornment:(0,Jo.jsx)(Zm,{position:"end",sx:{marginLeft:0},children:""!==y&&(0,Jo.jsx)(ng,{tabIndex:0,ref:w,title:k,"aria-label":k,onClick:O,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Tab":e.shiftKey?P():Vd(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:(0,Jo.jsx)(Dh,{size:i?"small":"normal"})})}),className:"search",inputRef:x,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:y,onFocus:()=>{u&&(b("**"),S(!0)),c&&!n.selectDisabled()&&!t.isModal()&&t.begin("/qListObjectDef")},onChange:async e=>{const t=eg(e.target.value);return b(t),t.length?r.searchListObjectFor(Qm,t):R()},onKeyDown:async i=>{const{currentTarget:a}=i,s=a.closest(".listbox-container");switch(i.key){case"Enter":(async()=>{let e;const o=eg(y),i=await r.searchListObjectFor(Qm,o);n.selectDisabled()||i&&o.length&&C("listCount")>0&&(e=r.acceptListObjectSearch(Qm,!0),t.selectionsMade=!0,n.clearItemStates(!1),b(""))})();break;case"Escape":if(Vd(s),t.cancel(),e)return;break;case"Tab":i.shiftKey?Gd(s)||o.focusSelection():w.current?w.current.focus():Vd(s);break;case"f":case"F":if(!i.ctrlKey&&!i.metaKey)return;f&&(f(),Vd(s));break;default:return}i.preventDefault(),i.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search"),"aria-describedby":"listbox-search-instructions"}}),(0,Jo.jsx)("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:g.get("Listbox.Search.ScreenReaderInstructions")})]}):null}const og=(0,a.forwardRef)(rg);function ig(e){if(!e.session)return[];const{selectionStore:t}=(0,a.useContext)(fa),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return(0,a.useEffect)(()=>{e&&!o&&(o=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:r,appModalStore:o}=t,i=async(e=!0)=>{const{model:t,objectSelections:o}=r.get(n)||{};t&&(await t.endSelections(e),r.clear(n),o.emit("deactivated"))},a={begin:async({model:t,paths:o,accept:a=!0,objectSelections:s})=>{if(s===r.get(n)?.objectSelections)return;i(a),r.set(n,{model:t,objectSelections:s});const l=Array.isArray(o)?o:[o],c=async o=>{try{await t.beginSelections(l),r.set(n,{model:t,objectSelections:s})}catch(t){6003!==t.code||o?r.clear(n):(await e.abortModal(a),c(!0))}};await c()},end:i};o.set(n,a);const s={model:e,isInModal:()=>!!r.get(n),isModal:e=>e?r.get(n)?.objectSelections===e:!!r.get(n),forward:()=>a.end().then(()=>e.forward()),back:()=>a.end().then(()=>e.back()),clear:()=>a.end().then(()=>e.clearAll()),clearField:(t,n="$")=>a.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))},[e]),[o]}function ag(e){return Object.keys(d().prototype).forEach(t=>{e[t]=d().prototype[t]}),d().init(e),e}n.dn(ag);const sg=({appSelections:e,appModal:t,model:n})=>{let r,o=!1,i=!1;const a={id:n.id,setLayout(e){r=e},begin(e){const r=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",r),r.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:a}))},clear(){return i=!1,this.emit("cleared"),r.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return i=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return i=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const r=this.begin([t.params[0]]);if(!e.isModal())return!1;await r;const o=await n[t.method](...t.params);return i="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked&&!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(r&&r.qListObject&&r.qListObject.qDimensionInfo&&r.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(a),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:a}),noModal:(e=!1)=>t.end(e)};return ag(a),a};function lg(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=ig(e),[s]=ss(t),{appModalStore:l}=(0,a.useContext)(fa).selectionStore,c=l.get(e.id),[u,d]=(0,a.useState)();return(0,a.useEffect)(()=>{i&&t&&!u&&d(sg({appSelections:i,appModal:c,model:t}))},[i,t]),(0,a.useEffect)(()=>{if(!u)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n={}})=>{const r=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const r=e.map(e=>"string"==typeof e?document.querySelector(e):e?.current).filter(e=>!!e&&!!document.contains(e));r.length&&!r.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",r),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",r),n?.onSelectionDeactivated?.()}}})({elements:o,objectSelections:u,options:r});return u.addListener("activated",e),u.addListener("deactivated",t),()=>{u.isActive()&&u.confirm(),u.removeListener("activated",e),u.removeListener("deactivated",t)}},[u]),(0,a.useEffect)(()=>{u&&u.setLayout(s)},[u,s]),[u]}function cg(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:r,selectDisabled:o,layout:i}){this.setPages=e;const a=this.lastRowCount===i.qListObject.qSize.qcy,s=this.lastApprMaxGlyphCount===i.qListObject.qDimensionInfo.qApprMaxGlyphCount;a&&s||(this.lastRowCount=i.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=i.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,!!lu.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return cu(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=r,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=i?.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:r}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(e,n,r){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(r?.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,r=t.getState(n);return[{...n,qState:r},...e.slice(1)]});return{...e,qMatrix:n}});return n},updateItem(e,n,r){t.updateItemNoEvents(e,n,r),t.triggerStateChanged()},updateItems(e,n,r){e.forEach(e=>{t.updateItemNoEvents(e,n,r)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const ug=(e,t,n=void 0)=>e?.[t]??n;function dg(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return ug(t,"qSelected",0)+ug(t,"qSelectedExcluded",0)+ug(t,"qLocked",0)+ug(t,"qLockedExcluded",0)>0}function pg(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 fg(e){if("object"==typeof e&&pg(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=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),r=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),r=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),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const hg={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}},mg="qcm-color";function gg(...e){const t={type:mg,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===mg)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(pg(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in hg}(e)){const t=hg[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function yg(e){let t,n,r;if(pg(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?fg(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function bg(e){let t,n,r=0;const o="string"==typeof e?gg(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function vg(e){let t,n,r=0;const o="string"==typeof e?gg(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function Sg(e){if(pg(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?fg(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function xg(e,t){return pg(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:xg(gg(e),t)}function wg(e){return pg(e)?1===e.a?Sg(e):xg(e):wg(gg(e))}const kg=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Cg(e){return.2126*kg(e.r)+.7152*kg(e.g)+.0722*kg(e.b)}function Eg(...e){const t=gg(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=bg(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};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=gg(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=gg(...e);return t.invalid||Cg(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Sg(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=xg(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=wg(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=yg(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?gg(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=bg(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=vg(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=vg(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)=>Eg(o(18*e)),getDarkenedColor:(e=1)=>Eg(o(18*-e))}}function Lg(e,t){if(!e||!t)return;const n=Cg(e),r=Cg(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const Rg="#FFFFFF";function Pg(e,t){const n=Eg(Rg),r=Eg(e),o=Eg(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Lg(n,r),a=Lg(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?Rg:"#000000"}function Og(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 Tg,Ig,qg,jg="top",Mg="top-right",Dg="right",_g="bottom-right",Ng="bottom",Ag="bottom-left",$g="left",zg="top-left";Og(Og(Og(Og(Og(Og(Og(Og(Og(Og(Tg={},"equal-equal",[jg,Ng]),"equal-higher",[Ng,_g]),"equal-lower",[jg,Mg]),"equal-void",[jg,Ng]),"higher-equal",[$g,Ag,jg,Mg]),"higher-higher-acute",[Ng,Ag,$g,Mg]),"higher-higher-obtuse",[Ng,jg]),"higher-lower-negative",[jg,Mg,Dg]),"higher-lower-positive",[Ng,Ag,$g]),"higher-void",[jg]),Og(Og(Og(Og(Og(Og(Og(Og(Og(Og(Tg,"lower-equal",[jg]),"lower-higher-negative",[jg,zg]),"lower-higher-positive",[_g]),"lower-lower-acute",[jg,zg,$g,Mg,Dg]),"lower-lower-obtuse",[jg,Ng]),"lower-void",[jg]),"void-equal",[jg]),"void-higher",[jg,Ng]),"void-lower",[jg,Ng,$g]),"void-void",[jg]),Og(Tg,"unclassified",[jg,Ng,Dg,$g,Mg,_g,Ag,zg]);var Fg=function(){if(qg)return Ig;qg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Ig=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Ig}();function Bg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Wg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Hg(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Fg);var Ug=.7,Vg=1/Ug,Gg="\\s*([+-]?\\d+)\\s*",Kg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xg=/^#([0-9a-f]{3,8})$/,Zg=new RegExp(`^rgb\\(${Gg},${Gg},${Gg}\\)$`),Yg=new RegExp(`^rgb\\(${Jg},${Jg},${Jg}\\)$`),Qg=new RegExp(`^rgba\\(${Gg},${Gg},${Gg},${Kg}\\)$`),ey=new RegExp(`^rgba\\(${Jg},${Jg},${Jg},${Kg}\\)$`),ty=new RegExp(`^hsl\\(${Kg},${Jg},${Jg}\\)$`),ny=new RegExp(`^hsla\\(${Kg},${Jg},${Jg},${Kg}\\)$`),ry={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 oy(){return this.rgb().formatHex()}function iy(){return this.rgb().formatRgb()}function ay(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?sy(t):3===n?new dy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ly(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ly(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=Zg.exec(e))?new dy(t[1],t[2],t[3],1):(t=Yg.exec(e))?new dy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qg.exec(e))?ly(t[1],t[2],t[3],t[4]):(t=ey.exec(e))?ly(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ty.exec(e))?yy(t[1],t[2]/100,t[3]/100,1):(t=ny.exec(e))?yy(t[1],t[2]/100,t[3]/100,t[4]):ry.hasOwnProperty(e)?sy(ry[e]):"transparent"===e?new dy(NaN,NaN,NaN,0):null}function sy(e){return new dy(e>>16&255,e>>8&255,255&e,1)}function ly(e,t,n,r){return r<=0&&(e=t=n=NaN),new dy(e,t,n,r)}function cy(e){return e instanceof Hg||(e=ay(e)),e?new dy((e=e.rgb()).r,e.g,e.b,e.opacity):new dy}function uy(e,t,n,r){return 1===arguments.length?cy(e):new dy(e,t,n,r??1)}function dy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function py(){return`#${gy(this.r)}${gy(this.g)}${gy(this.b)}`}function fy(){const e=hy(this.opacity);return`${1===e?"rgb(":"rgba("}${my(this.r)}, ${my(this.g)}, ${my(this.b)}${1===e?")":`, ${e})`}`}function hy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function my(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gy(e){return((e=my(e))<16?"0":"")+e.toString(16)}function yy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vy(e,t,n,r)}function by(e){if(e instanceof vy)return new vy(e.h,e.s,e.l,e.opacity);if(e instanceof Hg||(e=ay(e)),!e)return new vy;if(e instanceof vy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new vy(a,s,l,e.opacity)}function vy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sy(e){return(e=(e||0)%360)<0?e+360:e}function xy(e){return Math.max(0,Math.min(1,e||0))}function wy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bg(Hg,ay,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oy,formatHex:oy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return by(this).formatHsl()},formatRgb:iy,toString:iy}),Bg(dy,uy,Wg(Hg,{brighter(e){return e=null==e?Vg:Math.pow(Vg,e),new dy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ug:Math.pow(Ug,e),new dy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dy(my(this.r),my(this.g),my(this.b),hy(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:py,formatHex:py,formatHex8:function(){return`#${gy(this.r)}${gy(this.g)}${gy(this.b)}${gy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fy,toString:fy})),Bg(vy,function(e,t,n,r){return 1===arguments.length?by(e):new vy(e,t,n,r??1)},Wg(Hg,{brighter(e){return e=null==e?Vg:Math.pow(Vg,e),new vy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ug:Math.pow(Ug,e),new vy(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,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new dy(wy(e>=240?e-240:e+120,o,r),wy(e,o,r),wy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vy(Sy(this.h),xy(this.s),xy(this.l),hy(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=hy(this.opacity);return`${1===e?"hsl(":"hsla("}${Sy(this.h)}, ${100*xy(this.s)}%, ${100*xy(this.l)}%${1===e?")":`, ${e})`}`}}));const ky=Math.PI/180,Cy=180/Math.PI,Ey=.96422,Ly=.82521,Ry=4/29,Py=6/29,Oy=3*Py*Py,Ty=Py*Py*Py;function Iy(e){if(e instanceof qy)return new qy(e.l,e.a,e.b,e.opacity);if(e instanceof Ny)return Ay(e);e instanceof dy||(e=cy(e));var t,n,r=_y(e.r),o=_y(e.g),i=_y(e.b),a=jy((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=jy((.4360747*r+.3850649*o+.1430804*i)/Ey),n=jy((.0139322*r+.0971045*o+.7141733*i)/Ly)),new qy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function qy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jy(e){return e>Ty?Math.pow(e,1/3):e/Oy+Ry}function My(e){return e>Py?e*e*e:Oy*(e-Ry)}function Dy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _y(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ny(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ay(e){if(isNaN(e.h))return new qy(e.l,0,0,e.opacity);var t=e.h*ky;return new qy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bg(qy,function(e,t,n,r){return 1===arguments.length?Iy(e):new qy(e,t,n,r??1)},Wg(Hg,{brighter(e){return new qy(this.l+18*(e??1),this.a,this.b,this.opacity)},darker(e){return new qy(this.l-18*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new dy(Dy(3.1338561*(t=Ey*My(t))-1.6168667*(e=1*My(e))-.4906146*(n=Ly*My(n))),Dy(-.9787684*t+1.9161415*e+.033454*n),Dy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bg(Ny,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ny)return new Ny(e.h,e.c,e.l,e.opacity);if(e instanceof qy||(e=Iy(e)),0===e.a&&0===e.b)return new Ny(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Cy;return new Ny(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ny(e,t,n,r??1)},Wg(Hg,{brighter(e){return new Ny(this.h,this.c,this.l+18*(e??1),this.opacity)},darker(e){return new Ny(this.h,this.c,this.l-18*(e??1),this.opacity)},rgb(){return Ay(this).rgb()}}));var $y=e=>()=>e;function zy(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):$y(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?zy: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(r){return Math.pow(e+r*t,n)}}(t,n,e):$y(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=uy(e)).r,(t=uy(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=zy(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Fy="center",By="bottom";function Wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hy(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 Uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uy(Object(n),!0).forEach(function(t){Hy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[{key:"NoDataExist",alignment:Fy,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:Fy,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:Fy,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:Fy},{key:"DataRangeIncludingZero",alignment:By},{key:"LimitedData",alignment:By},{key:"NegativeOrZeroValues",alignment:By}].reduce(function(e,t){return e[t.key]=t,e},{});var Gy=Object.prototype.hasOwnProperty,Ky=Object.prototype.toString,Jy=Object.defineProperty,Xy=Object.getOwnPropertyDescriptor,Zy=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ky.call(e)},Yy=function(e){if(!e||"[object Object]"!==Ky.call(e))return!1;var t,n=Gy.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Gy.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Gy.call(e,t)},Qy=function(e,t){Jy&&"__proto__"===t.name?Jy(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},eb=function(e,t){if("__proto__"===t){if(!Gy.call(e,t))return;if(Xy)return Xy(e,t).value}return e[t]},tb=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=eb(s,n),s!==(o=eb(t,n))&&(u&&o&&(Yy(o)||(i=Zy(o)))?(i?(i=!1,a=r&&Zy(r)?r:[]):a=r&&Yy(r)?r:{},Qy(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Qy(s,{name:n,newValue:o}));return s};function nb(e,t,n,r){if(!e)return-1;const o=n.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),s=o.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some((e,t)=>e!==t)){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function rb(e,t,n){let r=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function ob(e){let t=e.cache,n=e.f,r=e.mainCell,o=e.p,i=e.page,a=e.rowIdx,s=e.row,l=e.sourceKey,c=e.target,u=e.targetProp,d=e.columnOrder,p=r;if(o.field&&o.field!==n){const e=nb(o.field,i,{cache:t},d);if(-1===e)return;p=tb({qRow:a},e(s))}c[u]=rb(o,p,{key:l})}function ib(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),s=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),c=r.normalizeConfig(o[e],t),u=c.props,d=c.main,p=Object.keys(u),f=!!o[e].trackBy,h=typeof o[e].trackBy,m={},g=[],y=[];for(let t=0;t<a.qDataPages.length;t++){const i=nb(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==i)for(let c=0;c<a.qDataPages[t].qMatrix.length;c++){const b=a.qDataPages[t].qArea.qTop+c,v=tb({qRow:b},i(a.qDataPages[t].qMatrix[c])),S=rb(d,v,{key:s});if(!d.filter||d.filter(v)){for(let e=0;e<p.length;e++){const r=u[p[e]];let o=r.fields||[r];r.fields&&(S[p[e]]=[]);for(let i=0;i<o.length;i++)ob({cache:n,f:l,mainCell:v,p:o[i],prop:p[e],page:a.qDataPages[t],rowIdx:b,row:a.qDataPages[t].qMatrix[c],sourceKey:s,target:r.fields?S[p[e]]:S,targetProp:r.fields?i:p[e],columnOrder:a.qColumnOrder});if(r.fields){const t=S[p[e]].map(e=>e.value),n=S[p[e]].map(e=>e.label);S[p[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(S[p[e]].value)}}}f&&r.track({cfg:o[e],itemData:v,obj:S,target:g,tracker:m,trackType:h}),y.push(S)}}}const b=f?r.collect(g,{main:d,propsArr:p,props:u}):y;i=[...i,...b]}return i}function ab(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function sb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=cb)):void 0===t&&(t=lb);for(var n,r,o,i,a,s=new pb(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new pb(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(db)}function lb(e){return e.children}function cb(e){return Array.isArray(e)?e[1]:null}function ub(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function db(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function pb(e){this.data=e,this.depth=this.height=0,this.parent=null}function fb(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}pb.prototype=sb.prototype={constructor:pb,count:function(){return this.eachAfter(ab)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[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(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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 sb(this).eachBefore(ub)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var hb={depth:-1},mb={},gb={};function yb(e){return e.id}function bb(e){return e.parentId}function vb(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Sb(e,t););return e.slice(0,t)}function Sb(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function xb(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=xb(r,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);r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=xb(r,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function wb(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(r=[...r,...wb(e[o].children,t-1,n)]);return r}function kb(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 r=Math.max(0,Math.min(100,t-e));return e=>wb(e.children,r-1,n)}return!1}const Cb=/^qDimensionInfo(?:\/(\d+))?/,Eb=/^\/?qMeasureInfo\/(\d+)/,Lb=/\/qAttrExprInfo\/(\d+)/,Rb=/\/qAttrDimInfo\/(\d+)/;function Pb(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function Ob(e,t){let n=t.cube;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const p=n.qEffectiveInterColumnSortOrder,f=Pb(n);return Cb.test(d)&&(o=!0,i=+Cb.exec(d)[1],d=r.replace(Cb,"")),Eb.test(d)&&("K"===n.qMode?c=+Eb.exec(d)[1]:p&&-1!==p.indexOf(-1)?(c=+Eb.exec(d)[1],u=0):u=+Eb.exec(d)[1],d=d.replace(Eb,"")),d&&(Rb.exec(d)?s=+Rb.exec(d)[1]:Lb.exec(d)&&(a=+Lb.exec(d)[1])),l=o?"S"===n.qMode?f[i]:p?p.indexOf(i):i:p&&-1!==p.indexOf(-1)?p.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function Tb(e,t){let n,r,o=kb(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:r,valueFn:n}}function Ib(e,t,n){let r=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function qb(e){let t=e.propsArr,n=e.props,r=e.item,o=e.itemData,i=e.ret,a=e.sourceKey;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let p,f,h,m,g,y;if("primitive"===d.type?(h=d.value,y=String(d.value)):("function"==typeof d.value&&(p=e=>d.value(e,r)),"function"==typeof d.label&&(f=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),p&&(h=g.map(p),p=null),f&&(y=g.map(f),f=null),h=d.reduce?d.reduce(h):h,y=d.reduceLabel?d.reduceLabel(y,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=h)):(h=o,y=o)),s.fields){const e=p?p(h):h;c.push(e),u.push(f&&null!=y?f(y):null!=y?y:String(e))}else{const n=p?p(h):h;i[t[e]]={value:n,label:f?f(y):null!=y?y:String(n)},d.field&&(i[t[e]].source={field:d.field.key(),key:a})}}c&&(i[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const jb=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=xb(r,e);return i&&i[0]?(t.tree=sb(i[0],n.children||(e=>e[o])),t.tree):null},Mb=e=>{let t=e.propsArr,n=e.props,r=e.cube;e.cache;let o=e.itemDepthObject,i=e.f;for(let e=0;e<t.length;e++){const a=n[t[e]],s=a.fields?a.fields:[a];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==i){const e=Tb(o,Ob(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function Db(){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,r=arguments.length>3?arguments[3]:void 0;const o=t.raw(),i=t.key(),a="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),r=e.fields(),o=e.fields().filter(e=>"dimension"===e.type()).map(e=>n.indexOf(r.indexOf(e))),i=e.fields().filter(e=>"measure"===e.type()).map(e=>n.indexOf(r.indexOf(e))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<o.length;e++){var s;const t=n[o[e]],i="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[i]||(a[i]=Vy({__id:i,__parent:r,qValues:[]},t),l=!0),r=i}if(l)for(let e=0;e<i.length;e++){const t=n[i[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map(e=>a[e]);return function(){var e,t=yb,n=bb;function r(r){var o,i,a,s,l,c,u,d,p=Array.from(r),f=t,h=n,m=new Map;if(null!=e){const t=p.map((t,n)=>function(e){let t=(e=`${e}`).length;return Sb(e,t-1)&&!Sb(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r))),n=t.map(vb),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(vb(e)),p.push(gb));f=(e,n)=>t[n],h=(e,t)=>n[t]}for(a=0,o=p.length;a<o;++a)i=p[a],c=p[a]=new pb(i),null!=(u=f(i,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?mb:c)),null!=(u=h(i,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<o;++a)if(u=(c=p[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===mb)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===gb&&1===s.children.length;)s=s.children[0],--o;for(let e=p.length-1;e>=0&&(c=p[e]).data===gb;--e)c.data=null}if(s.parent=hb,s.eachBefore(function(e){e.depth=e.parent.depth+1,--o}).eachBefore(db),s.parent=null,o>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=fb(e),r):t},r.parentId=function(e){return arguments.length?(n=fb(e),r):n},r.path=function(t){return arguments.length?(e=fb(t),r):e},r}().id(e=>e.__id).parentId(e=>e.__parent)(l)}(t):jb(o,n,e);if(!a)return null;const s=a.height,l=[];for(let i=0;i<=s;i++){let a=null;if(i>0)if("S"===o.qMode){let e=Pb(o)[i-1];a=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[i-1];i>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),a=n.fields[e]}const s=r.normalizeConfig(Vy(Vy({},e),{},{field:a?a.key():void 0}),t),c=s.props,u=s.main,d=Object.keys(c);l[i]={propsArr:d,props:c,main:u};const p=a?Ob(a,{cube:o}):{fieldDepth:0};Mb({propsArr:d,props:c,cube:o,cache:n,itemDepthObject:p,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,o=c[e],a=o.data,s=Ib(r,a,{key:i});qb({propsArr:t,props:n,item:o,itemData:a,ret:s,sourceKey:i}),u[e].data=s}return a}function _b(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const s=t.raw(),l=t.key();if(!jb(s,n,e))continue;const c="object"==typeof o[a].field?o[a].field:t.field(o[a].field),u=r.normalizeConfig(o[a],t),d=u.props,p=u.main,f=Object.keys(d),h=Ob(c,{cube:s}),m=Tb({fieldDepth:0},h),g=m.nodeFn,y=m.attrFn,b=m.valueFn;Mb({propsArr:f,props:d,cube:s,cache:n,itemDepthObject:h,f:c});const v=!!o[a].trackBy,S=typeof o[a].trackBy,x={},w=[],k=g(n.tree),C=[];for(let e=0;e<k.length;e++){const t=k[e],n=y?y(b(t)):b(t);if(p.filter&&!p.filter(n))continue;const i=Ib(p,n,{key:l});qb({propsArr:f,props:d,item:t,itemData:n,ret:i,sourceKey:l}),v&&r.track({cfg:o[a],itemData:n,obj:i,target:w,tracker:x,trackType:S}),C.push(i)}const E=v?r.collect(w,{main:p,propsArr:f,props:d}):C;i=[...i,...E]}return i}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var Nb,Ab,$b=(Nb=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=p-g,b=e.substring(y,y+1),v=y+("."===b||","===b?1:0),S=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-y+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},Nb(Ab={exports:{}}),Ab.exports);function zb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const Fb={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"},Bb=/%\)?$/,Wb=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Hb=/^\(oct\)/i,Ub=/^\(dec\)/i,Vb=/^\(hex\)/i,Gb=/^\(bin\)/i,Kb=/^\(rom\)/i,Jb=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Xb=/#|0/g;function Zb(e,t,n,r){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(".",r||".")}function Yb(e,t,n){const r=zb(e);return n?r:new RegExp(r||"",t)}function Qb(e,t,n,r){let o,i,a,s,l,c,u,d,p,f=e.pattern;var h,m;r&&(e.abbreviate=!0),h=t,(m=n)&&(m=zb(m)),h&&(h=zb(h)),p=new RegExp("(?:[#0]+".concat(h,")?[#0]+(?:").concat(m,"[#0]+)?")),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(Yb(c,"g"),t)),u=n,n=".",u&&(a=a.replace(Yb(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=f.split(u);let y;g[1]&&(y=g[1].match(Xb)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=y?y.length:2,e.percentage=Bb.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(Yb(t,null,!0),"|").concat(Yb(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class ev{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Fb;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 ev(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;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:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],Jb.test(e[0])&&(r.positive.isFunctional=!0),e[1]?Jb.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?Jb.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||Qb(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&Qb(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&Qb(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,s,l,c,u=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,i=u.d,a=u.t,u.isFunctional)e=function(e,t,n){let r;return Wb.test(t)?e=Zb(e,Number(/\d{2}/.exec(t)[0]),t,n):Hb.test(t)?e=Zb(e,8,t,n):Ub.test(t)?e=Zb(e,10,t,n):Vb.test(t)?e=Zb(e,16,t,n):Gb.test(t)?e=Zb(e,2,t,n):Kb.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=s[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,u.pattern,i);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let r,o,i=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&s<t.length;)s++,i=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=u.maxPrecision?o=i:r<=n&&!(i>0&&-n<=u.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.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(i)[0];if(n+=i,e=$b(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<n;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=$b(l,e)}e=e.replace(u.numericRegex,e=>e===a?u.groupTemp:e===i?u.decTemp:""),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+p+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function tv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.size,r=void 0===n?5e3:n,o=t.multipleArguments,i=void 0!==o&&o,a=t.toKey,s=void 0===a?e=>e:a;let l,c,u=Object.create(null),d=Object.create(null),p=0,f=0;return l=i?function(){return c=s(...arguments),l.has(c)?l.get(c):l.set(c,e(...arguments))}:t=>(c=s(t),l.has(c)?l.get(c):l.set(c,e(t))),l.set=(e,t)=>(p>=r&&(delete u[d[f]],delete d[f],p--,f++),u[e]=t,d[p]=e,p++,t),l.get=e=>u[e],l.has=e=>e in u,l.clear=()=>{u=Object.create(null),d=Object.create(null),p=0,f=0},l.size=()=>p,l}function nv(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ev(...t)}(o,e,t,n,r),a=tv(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const rv="D",ov="T",iv="TS",av=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sv=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lv=["January","February","March","April","May","June","July","August","September","October","November","December"],cv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uv(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function dv(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class pv{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:av,qDayNames:sv,qLongMonthNames:lv,qMonthNames:cv}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={[ov]:r.qTimeFmt||"hh:mm:ss",[rv]:r.qDateFmt||"YYYY-MM-DD",[iv]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new pv(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 r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,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)),r=function(e,t){let n,r=function(e){const t=e,n=24*dv(t),r=60*dv(n),o=60*dv(r),i=1e3*dv(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,s=r.s,l=r.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)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:i,m:a,s,f:l,t:u}}(e,t));const o=(i=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:uv("".concat(a.year).slice(-2),2),YYY:uv("".concat(a.year).slice(-3),3),def:e=>uv("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:uv("".concat(a.month+1),2),MMM:i.locale_months_abbr[a.month],def:i.locale_months[a.month]},"W+|w+":{W:a.day,WW:uv("".concat(a.day),2),WWW:i.locale_days_abbr[a.day],def:i.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>uv("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>uv("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>uv("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>uv("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.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=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var i,a;const s=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,e=>{let t,n,r;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){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r})}}function fv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new pv(...t)}function hv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=fv(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=tv(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 i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=fv(o,e,t),r=tv(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function mv(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.meta,r=t.id,o=t.key,i=t.localeInfo,a=t.fieldExtractor,s=t.value,l=t.type,c=t.sourceField;const u=s||("dimension"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===l?"first":"avg",p=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return hv(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),nv(n,r,o,i,t)}(n,i),f={id:()=>r,key:()=>o,raw:()=>n,title:()=>n.qFallbackTitle||n.label,type:()=>l,origin:()=>c,items:()=>(e||(e=a(f)),e),min:()=>n.qMin,max:()=>n.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:"dimension"===l?"first":(e,t)=>p(t),formatter:()=>p,tags:()=>n.qTags};return f}function gv(e,t,n,r,o){return(t[e]||[]).map((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),s={instance:mv(tb({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=gv("qAttrDimInfo",t,n,a,tb({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=gv("qAttrExprInfo",t,n,a,tb({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=gv("qMeasureInfo",t,n,a,tb({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s})}function yv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,r=e.config,o=void 0===r?{}:r;const i={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},a=n;if(!a)throw new Error('Missing "data" input');if(!a.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const s=yv.util,l={cache:i,cube:a,localeInfo:o.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:o.virtualFields},c={key:()=>t,raw:()=>a,field:e=>function(e,t){let n=t.cache;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,l),fields:()=>i.fields.slice(),extract:e=>l.extractor(e,c,i,s),hierarchy:e=>l.hierarchy(e,c,i,s),_cache:()=>i};"K"===a.qMode||"T"===a.qMode||!a.qMode&&a.qNodesOnDim?(l.extractor=_b,l.hierarchy=Db,l.pages="K"===a.qMode?a.qStackedDataPages:a.qTreeDataPages):"S"===a.qMode?(l.extractor=ib,l.pages=a.qDataPages,l.hierarchy=Db):l.extractor=()=>[],l.fieldExtractor=e=>l.extractor({field:e},c,i,s);const u="S"===a.qMode?e=>e.qElemNumber:void 0,d="S"===a.qMode?e=>e.qNum:void 0;i.wrappedFields.push(...gv("qDimensionInfo",a,t,"",tb({},l,{value:u,type:"dimension"}))),i.wrappedFields.push(...gv("qMeasureInfo",a,t,"",tb({},l,{value:d,type:"measure"}))),i.fields=i.wrappedFields.map(e=>e.instance);const p=e=>{e.forEach(e=>{i.allFields.push(e.instance),p(e.measures),p(e.attrDims),p(e.attrExps)})};return p(i.wrappedFields),(o.virtualFields||[]).forEach(e=>{const n=c.field(e.from),r=mv(Vy({meta:n.raw(),id:"".concat(t,"/").concat(e.key),sourceField:n,fieldExtractor:e=>l.extractor({field:e},c,i,s),key:e.key,type:n.type(),localeInfo:l.localeInfo,value:n.value},e.override||{}));i.virtualFields.push(r)}),i.allFields.push(...i.virtualFields),c}const bv=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],vv=/\/qDimensionInfo(?:\/(\d+))?/,Sv=/\/qMeasureInfo\/(\d+)/,xv=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,wv=/\/qAttrExprInfo\/(\d+)/,kv=/\/?qHyperCube/,Cv=/\/?qTreeData/,Ev=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),Lv=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function Rv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach(e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;kv.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=Ev):Cv.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=Lv);let s=!0;if(vv.test(e)&&(r=+vv.exec(e)[1]),Sv.test(e)&&(o=+Sv.exec(e)[1]),xv.test(e)){o=-1,r=0;const e=+xv.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(wv.test(e)){const e=o;if(t){o=0;const a=xb(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce((e,t)=>e+t.qAttrExprInfo.length,o),r=-1):(o=a.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,o),o=a.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,o)),o+=+wv.exec(n)[1]}else r>-1?(r=-1,o=+wv.exec(n)[1]):o+=+wv.exec(n)[1]+1}return bv.forEach(e=>{let t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return Wy(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Wy(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),r=t[0],o=t[1];n=n.replace(r,o)}),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>a.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,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>a.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,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>a.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(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===i||s>=i)&&i>-1?n.forEach(e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})}):n.forEach(e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})}),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));l=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}}),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i);var c}function Pv(e){yv.util=e.data("matrix").util,e.data("q",yv),e.formatter("q-number",nv),e.formatter("q-time",hv)}Pv.qBrushHelper=Rv,Pv.selections=Rv;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const Ov=/,(?![^(]*\))/,Tv=/\s(?![^(]*\))/,Iv=/^[0-9]+[a-zA-Z%]+?$/,qv=["none","inset","initial","inherit"],jv=e=>{if(!e)return;const t=e.split(Tv).filter(e=>!qv.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||Iv.test(e))(t)||qv.includes(t.toLowerCase())?void 0:t;return n},Mv=e=>e?e.split(Ov).map(e=>e.trim()):[];function Dv(e,t,n,r){return n&&r?n.getStyle(`object.${r}`,e,t):n?n.getStyle("",e,t):void 0}function _v(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Dv(t,n,r,o)}const Nv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Av={"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 $v(e,t,n,r){const o=e?.bgImage;if(o){let i="";if("media"===o.mode||"media"===e.useImage){let e;const a=o?.mediaUrl,{qUrl:s}=a?.qStaticContentUrl||{};i=s?decodeURIComponent(s):void 0,i=function(e,t,n){if(t)return n?n+t:function(e){let t,n,r,o;if(e?.session?.config){t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,r=o?"https://":"http://";const i="/"===n.pathname?"":n.pathname.replace(/\/app\/.*$/,"");return r+n.host+i}return""}(e)+t}(t,i,r),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),i=`${i}?${e}`)}"expression"===o.mode&&(i=o.expressionUrl?decodeURIComponent(o.expressionUrl):void 0);const a=function(e){let t="center center";return e?.bgImage?.position&&(t=Av[e.bgImage.position]),t}(e),s=function(e){let t=Nv.originalSize;const n=e?.bgImage?.sizing;return n&&(t=Nv[n]),t}(e);return i?{url:i,pos:a,size:s}:void 0}}function zv(e,t,n){const r=e?.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):_v(r?.color,"","backgroundColor",t,n)}function Fv(e,t,n){const r=Dv("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&qv.includes(e.toLowerCase()))return e.toLowerCase();const r=Mv(e);if(1!==r.length)return e;let o=n;if(!o){const n=Mv(t);if(1!==n.length)return e;o=jv(n[0])}if(!o)return e;const i=jv(r[0]);return i?e.replace(i,o):`${e} ${o}`})(e?.shadow?.boxShadow||r,r,_v(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function Bv(e,t,n,r){const o=e?.title?.[t]||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||n.getStyle(`object.${r}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||n.getStyle(`object.${r}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color):n.getStyle(`object.${r}`,`title.${t}`,"color"),backgroundColor:o.backgroundColor||n.getStyle(`object.${r}`,`title.${t}`,"backgroundColor"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const Wv={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Hv=["theme","selections"];function Uv({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a}){return function({app:e,themeApi:t,theme:n,queryParams:r,components:o=[],checkboxes:i=!1,hostConfig:a}){const s=function(e=[]){const t={};return e.forEach(e=>{const n=e?.key;Hv.includes(n)&&(t[n]=e)}),t}(o),l=(e,n)=>t.getStyle("object.listBox",e,n),c=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,u=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:r,checkboxes:o}){const i=r.theme?.content?.fontColor,a=e(i)||n("content","color")||t.palette?.text.primary,s=!o&&(r.theme?.content?.useContrastColor??!0),l=r.selections?.colors||{},c=r=>{const o="selected"===r?"main":r,i=`${r}Contrast`,c=e(l[r])||n("",`dataColors.${r}`)||"possible"===r&&n("","backgroundColor")||t.palette?.selected?.[o]||Wv[r],u=s?Pg(c,a):a||t.palette?.selected[`${i}Text}`];return{[r]:c,[i]:u}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:c,theme:n,getListboxStyle:l,overrides:s,checkboxes:i}),d=s.theme||{},p=c(d.header?.fontColor)||l("title.main","color"),f=function({themeApi:e,themeOverrides:t}){let n;const r=t?.background;return r?(n=r?.useExpression?zv({bgColor:r},e,"listBox"):e.getColorPickerColor(r?.color),n):n}({themeApi:t,themeOverrides:d}),h=d.background?.image?$v({bgImage:d.background.image},e,r,a?.host):void 0,m=f||l("","backgroundColor")||n.palette.background.default,g=function(e,t){const n=Eg(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(m,l),y=function(e){return Pg("#fff",e("content","color"))}(l),b=d.header?.fontStyle||{},v=d.content?.fontStyle||{},S=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:m,backgroundImage:h?.url&&!h?.url.startsWith("url(")?`url('${h.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:h?.size,backgroundPosition:h?.pos},header:{color:p,fontSize:d.header?.fontSize||l("title.main","fontSize"),fontFamily:d.header?.fontFamily||l("title.main","fontFamily"),fontWeight:S(b.bold,"bold","normal")||l("title.main","fontWeight")||"bold",textDecoration:b.underline?"underline":"initial",fontStyle:S(b.italic,"italic","normal")||l("title.main","fontStyle")||"initial"},content:{backgroundColor:i?void 0:u.possible,color:u.possibleContrast||l("content","color"),fontSize:d.content?.fontSize||l("content","fontSize"),fontFamily:d.content?.fontFamily||l("content","fontFamily"),fontWeight:S(v.bold,"bold","normal")||l("content","fontWeight")||"normal",textDecoration:v.underline?"underline":"initial",fontStyle:S(v.italic,"italic","normal")||l("content","fontStyle")||"initial"},search:{color:y,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:g,backdropFilter:"blur(8px)"},selections:u}}({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a})}function Vv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:r,close:o,app:i,fieldName:s,stateName:l="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=()=>!1,sortCriteria:f=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}){const m=Boolean(s?.qLibraryId),g=r&&Boolean(e.current),[y,b]=(0,a.useState)(0),v=Uo(),S=(0,a.useRef)(),[x]=ns({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:f,qFieldDefs:m?void 0:[s]},qLibraryId:m?s.qLibraryId:void 0}},i,s,l),w=(0,a.useCallback)(()=>{x.lock("/qListObjectDef")},[x]),k=(0,a.useCallback)(()=>{x.unlock("/qListObjectDef")},[x]),{translator:C,themeApi:E,keyboardNavigation:L,hostConfig:R}=(0,a.useContext)(fa),P=(0,a.useRef)(),O=(0,a.useRef)(),[T]=lg(i,x,O),[I]=ss(x),[q]=(0,a.useState)(()=>cg({selectDisabled:p})),j=Wd({containerRef:O,enabled:L}),{checkboxes:M=d}=I||{},D=Uv({themeApi:E,theme:v,hostConfig:R,components:u,checkboxes:M});if((0,a.useEffect)(()=>{T&&g&&(T.isModal(x)||T.goModal("/qListObjectDef"))},[T,g]),!(x&&I&&C&&D))return null;const _=!0===I.qListObject.qDimensionInfo.qLocked,N=(e,t)=>{const n="escapeKeyDown"!==t;T.noModal(n),o()},A=wh({layout:I,model:x,translator:C,selectionState:q,selections:T}),$=dg(I);return(0,Jo.jsx)(ru,{className:"listbox-container",open:g,onClose:N,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?N():void 0,direction:h,children:(0,Jo.jsxs)(es,{container:!0,direction:"column",gap:0,ref:O,children:[(0,Jo.jsxs)(es,{container:!0,style:{direction:h,padding:v.spacing(1)},children:[(0,Jo.jsx)(es,{children:_?(0,Jo.jsx)(Ml,{onClick:k,disabled:!_,size:"large","aria-label":C.get("Listbox.Unlock"),title:C.get("Listbox.Unlock"),children:(0,Jo.jsx)(xs,{})}):(0,Jo.jsx)(Ml,{onClick:w,disabled:!$,size:"large","aria-label":C.get("Listbox.Lock"),title:C.get("Listbox.Lock"),children:(0,Jo.jsx)(_l,{})})}),(0,Jo.jsx)(es,{size:"grow"}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(ym,{layout:I,more:{enabled:!_,actions:A,alignTo:P,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:T,onConfirm:N,onCancel:()=>N(0,"escapeKeyDown")}})})]}),(0,Jo.jsxs)(es,{size:"grow",role:"region","aria-label":C.get("Listbox.ResultFilterLabel"),children:[(0,Jo.jsx)("div",{ref:P}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(og,{ref:S,popoverOpen:g,styles:D,visible:!0,model:x,listCount:y,selections:T,selectionState:q,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:j.focusSelection},autoFocus:c??!0,direction:h})}),(0,Jo.jsx)(yh,{model:x,app:i,layout:I,selections:T,selectionState:q,direction:h,onSetListCount:e=>b(e),onCtrlF:()=>{S.current.focus()},styles:D,keyboard:j})]})]})})}const Gv=function({displayName:e}){return(0,Jo.jsx)(js,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600,marginTop:"8px"},children:e})};function Kv({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:r=!1,moreAlignTo:o=null,onClose:i=()=>{}}){const{translator:s}=(0,a.useContext)(fa),l=o||(0,a.useRef)(),c=Uo(),[u,d]=(0,a.useState)(!1);let p,f=null,h=null,m="";const g=!!e.isPinned,y=()=>{d(!1),i()};if(g)m=e.qName||e.qField,h=(0,Jo.jsx)(Gv,{displayName:m});else{p=e.selections[n],void 0===p.qTotal&&(p.qTotal=0);const r=p.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},i=(r.qSelected+r.qLocked)/p.qTotal,a=r.qAlternative/p.qTotal,l=(r.qExcluded+r.qLockedExcluded+r.qSelectedExcluded)/p.qTotal,u=r.qSelected+r.qSelectedExcluded+r.qLocked+r.qLockedExcluded,d=0===u&&0===p.qTotal;let f="";p.qTotal===u&&p.qTotal>1?f=s.get("CurrentSelections.All"):u>1&&p.qTotal?f=s.get("CurrentSelections.Of",[u,p.qTotal]):p.qSelectedFieldSelectionInfo&&(f=p.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[n]&&(f=`${e.states[n]}: ${f}`);const m=[{color:c.palette.selected.main,ratio:i},{color:c.palette.selected.alternative,ratio:a},{color:c.palette.selected.excluded,ratio:l}];m.forEach((e,t)=>{e.offset=t?m[t-1].offset+m[t-1].ratio:0});let g=null,y=null,b=null;o||(g=(0,Jo.jsxs)(es,{sx:{flex:1,minWidth:0,opacity:p.qLocked?"0.3":""},children:[(0,Jo.jsx)(js,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label}),(0,Jo.jsx)(js,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"},children:f})]}),p.qLocked?y=(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{size:"large",children:(0,Jo.jsx)(xs,{})})}):p.qOneAndOnlyOne||(y=(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{title:s.get("Selection.Clear"),onClick:r=>{r.stopPropagation(),t.clearField(p.qField,e.states[n])},size:"large",children:(0,Jo.jsx)(Ss,{})})})),b=(0,Jo.jsx)("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"},children:!1===d&&m.map(e=>(0,Jo.jsx)("div",{style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}},e.color))}),h=(0,Jo.jsxs)(Jo.Fragment,{children:[g,y,b]}))}return f=(0,Jo.jsxs)(es,{container:!0,gap:1,ref:l,"data-testid":g?`pin-item-${m}`:`selection-item-${p.qField}`,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px",height:"40px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===r&&(e=>{e.currentTarget.contains(e.target)&&d(!u)})||null,children:[h,u&&(0,Jo.jsx)(Vv,{alignTo:l,show:u,close:y,app:t.model,fieldName:g?e.qField:p.qField,stateName:g?void 0:e.states[n]})]}),o?(0,Jo.jsx)(Vv,{alignTo:l,show:!0,close:y,app:t.model,fieldName:g?e.qField:p.qField,stateName:g?void 0:e.states[n]}):f}const Jv=function(e){const t=a.useRef({});return a.useEffect(()=>{t.current=e}),t.current};function Xv(e){return ra("MuiBadge",e)}const Zv=oa("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"]),Yv=Za("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Qv=Za("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Es(n.anchorOrigin.vertical)}${Es(n.anchorOrigin.horizontal)}${Es(n.overlap)}`],"default"!==n.color&&t[`color${Es(n.color)}`],n.invisible&&t.invisible]}})(Cs(({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(Ls(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:t,horizontal:n}=e.anchorOrigin,r="circular"===e.overlap?"14%":0;return{"--Badge-translateX":"right"===n?"50%":"-50%","--Badge-translateY":"top"===t?"-50%":"50%",top:"top"===t?r:"initial",bottom:"bottom"===t?r:"initial",right:"right"===n?r:"initial",left:"left"===n?r:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${"right"===n?"100%":"0%"} ${"top"===t?"0%":"100%"}`,[`&.${Zv.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function eS(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const tS=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:i,component:a,components:s={},componentsProps:l={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:h,slots:m,slotProps:g,showZero:y=!1,variant:b="standard",...v}=n,{badgeContent:S,invisible:x,max:w,displayValue:k}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Jv({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:s,max:l=r}=a?i:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:f,invisible:p,badgeContent:h,showZero:y}),C=Jv({anchorOrigin:eS(r),color:d,overlap:u,variant:b,badgeContent:h}),E=x||null==S&&"dot"!==b,{color:L=d,overlap:R=u,anchorOrigin:P,variant:O=b}=E?C:n,T=eS(P),I="dot"!==O?k:void 0,q={...n,badgeContent:S,invisible:E,max:w,displayValue:I,showZero:y,anchorOrigin:T,color:L,overlap:R,variant:O},j=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Sa({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Es(n.vertical)}${Es(n.horizontal)}`,`anchorOrigin${Es(n.vertical)}${Es(n.horizontal)}${Es(o)}`,`overlap${Es(o)}`,"default"!==t&&`color${Es(t)}`]},Xv,a)})(q),M={slots:{root:m?.root??s.Root,badge:m?.badge??s.Badge},slotProps:{root:g?.root??l.root,badge:g?.badge??l.badge}},[D,_]=wc("root",{elementType:Yv,externalForwardedProps:{...M,...v},ownerState:q,className:ti(j.root,o),ref:t,additionalProps:{as:a}}),[N,A]=wc("badge",{elementType:Qv,externalForwardedProps:M,ownerState:q,className:j.badge});return(0,Jo.jsxs)(D,{..._,children:[c,(0,Jo.jsx)(N,{...A,children:I})]})}),nS=tS,rS=va;function oS(e){return ra("MuiListItem",e)}oa("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const iS=oa("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function aS(e){return ra("MuiListItemSecondaryAction",e)}oa("MuiListItemSecondaryAction",["root","disableGutters"]);const sS=Za("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}}]}),lS=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=a.useContext(Ah),s={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Sa({root:["root",t&&"disableGutters"]},aS,n)})(s);return(0,Jo.jsx)(sS,{className:ti(l.root,r),ownerState:s,ref:t,...o})});lS.muiName="ListItemSecondaryAction";const cS=lS,uS=Za("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]}})(Cs(({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:{[`& > .${iS.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}}]}))),dS=Za("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),pS=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:h=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:y,slotProps:b={},slots:v={},...S}=n,x=a.useContext(Ah),w=a.useMemo(()=>({dense:f||x.dense||!1,alignItems:r,disableGutters:h}),[r,x.dense,f,h]),k=a.useRef(null),C=a.Children.toArray(o),E=C.length&&rS(C[C.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:r,dense:w.dense,disableGutters:h,disablePadding:m,divider:g,hasSecondaryAction:E},R=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return Sa({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},oS,n)})(L),P=Ns(k,t),O={slots:v,slotProps:b},[T,I]=wc("secondaryAction",{elementType:cS,externalForwardedProps:O,ownerState:L,className:R.secondaryAction}),q=v.root||l.Root||uS,j=b.root||c.root||{},M={className:ti(R.root,j.className,i),...S};let D=s||"li";return E?(D=M.component||s?D:"div","li"===u&&("li"===D?D="div":"li"===M.component&&(M.component="div")),(0,Jo.jsx)(Ah.Provider,{value:w,children:(0,Jo.jsxs)(dS,{as:u,className:ti(R.container,d),ref:P,ownerState:L,...p,children:[(0,Jo.jsx)(q,{...j,...!Nl(q)&&{as:D,ownerState:{...L,...j.ownerState}},...M,children:C}),C.pop()]})})):(0,Jo.jsx)(Ah.Provider,{value:w,children:(0,Jo.jsxs)(q,{...j,as:D,ref:P,...!Nl(q)&&{ownerState:{...L,...j.ownerState}},...M,children:[C,y&&(0,Jo.jsx)(T,{...I,children:y})]})})}),fS=pS,hS=a.createContext({}),mS=a.createContext(void 0),gS=[{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}}}],yS=Za(gl,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Es(n.color)}`],t[`size${Es(n.size)}`],t[`${n.variant}Size${Es(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Cs(({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"},[`&.${aa.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&"start"===e.loadingPosition,style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${aa.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${aa.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)",[`&.${aa.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(Ls()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${aa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${aa.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}),[`&.${aa.loading}`]:{color:"transparent"}}}]}})),bS=Za("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Es(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}},...gS]})),vS=Za("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Es(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}},...gS]})),SS=Za("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xS=Za("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),wS=a.forwardRef(function(e,t){const n=a.useContext(hS),r=a.useContext(mS),o=Ya({props:ni(n,e),name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,id:g,loading:y=null,loadingIndicator:b,loadingPosition:v="center",size:S="medium",startIcon:x,type:w,variant:k="text",...C}=o,E=Ms(g),L=b??(0,Jo.jsx)(Pl,{"aria-labelledby":E,color:"inherit",size:16}),R={...o,color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,loading:y,loadingIndicator:L,loadingPosition:v,size:S,type:w,variant:k},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Sa({root:["root",a&&"loading",i,`${i}${Es(t)}`,`size${Es(o)}`,`${i}Size${Es(o)}`,`color${Es(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Es(s)}`],startIcon:["icon","startIcon",`iconSize${Es(o)}`],endIcon:["icon","endIcon",`iconSize${Es(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},ia,l);return{...l,...c}})(R),O=(x||y&&"start"===v)&&(0,Jo.jsx)(bS,{className:P.startIcon,ownerState:R,children:x||(0,Jo.jsx)(xS,{className:P.loadingIconPlaceholder,ownerState:R})}),T=(f||y&&"end"===v)&&(0,Jo.jsx)(vS,{className:P.endIcon,ownerState:R,children:f||(0,Jo.jsx)(xS,{className:P.loadingIconPlaceholder,ownerState:R})}),I=r||"",q="boolean"==typeof y?(0,Jo.jsx)("span",{className:P.loadingWrapper,style:{display:"contents"},children:y&&(0,Jo.jsx)(SS,{className:P.loadingIndicator,ownerState:R,children:L})}):null,{root:j,...M}=P;return(0,Jo.jsxs)(yS,{ownerState:R,className:ti(n.className,P.root,c,I),component:l,disabled:u||y,focusRipple:!p,focusVisibleClassName:ti(P.focusVisible,h),ref:t,type:w,id:y?E:g,...C,classes:M,children:[O,"end"!==v&&q,i,"end"===v&&q,T]})}),kS=wS,CS=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));n.dn(CS);const ES="MultiState-item",LS=Za(es)(({theme:e})=>({[`&.${ES}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function RS({field:e,api:t,moreAlignTo:n=null,onClose:r=()=>{}}){const[o,i]=(0,a.useState)(!!n),[s,l]=(0,a.useState)(-1),[c,u]=(0,a.useState)(n?n.current:null),d=n||(0,a.useRef)(),{translator:p}=(0,a.useContext)(fa),f=p.get("Selection.ClearAllStates"),h=()=>{l(-1),r()};let m=null;n||(m=(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(es,{sx:{minWidth:0,flexGrow:1},children:(0,Jo.jsx)(nS,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length,children:(0,Jo.jsx)(js,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)("div",{style:{width:"12px"}})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{size:"large",children:(0,Jo.jsx)(CS,{})})})]}));const g=(0,Jo.jsxs)(tm,{dense:!0,children:[(0,Jo.jsx)(fS,{title:f,onClick:()=>{e.states.forEach(n=>t.clearField(e.name,n))},children:(0,Jo.jsx)(kS,{variant:"contained",fullWidth:!0,children:f})}),e.states.map((n,r)=>(0,Jo.jsx)(fS,{title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,r),children:(0,Jo.jsx)(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:(0,Jo.jsx)(Kv,{field:e,api:t,stateIx:r,skipHandleShowListBoxPopover:!0})})},r))]}),y=(0,Jo.jsx)(ru,{open:o,onClose:()=>{i(!1),r()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:g}),b=n?y:(0,Jo.jsxs)(LS,{container:!0,gap:0,className:ES,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!o))},children:[m,o&&y,s>-1&&(0,Jo.jsx)(Vv,{alignTo:d,show:s>-1,close:h,app:t.model,fieldName:e.selections[s].qField,stateName:e.states[s]})]});return n&&s>-1?(0,Jo.jsx)(Vv,{alignTo:d,show:s>-1,close:h,app:t.model,fieldName:e.selections[s].qField,stateName:e.states[s]}):b}const PS="More",OS={item:`${PS}-item`,badge:`${PS}-badge`},TS=Za(es)(({theme:e})=>({[`&.${OS.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${OS.badge}`]:{padding:e.spacing(0,1)}}));function IS({items:e=[],api:t}){const n=Uo(),[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(-1),[l,c]=(0,a.useState)(null),u=(0,a.useRef)(),d=()=>{s(-1)};let p=null;return i>-1&&(p=e[i].states.length>1?(0,Jo.jsx)(RS,{field:e[i],api:t,moreAlignTo:u,onClose:d}):(0,Jo.jsx)(Kv,{field:e[i],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),(0,Jo.jsxs)(TS,{container:!0,gap:0,className:OS.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,o(!r))},children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Md,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText},children:(0,Jo.jsxs)(js,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit",children:["+",e.length]})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{size:"large",children:(0,Jo.jsx)(CS,{})})}),r&&(0,Jo.jsx)(ru,{open:r,onClose:()=>{o(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:(0,Jo.jsx)(tm,{dense:!0,children:e.map((e,n)=>(0,Jo.jsx)(fS,{title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),o(!1),s(t)})(e,n),children:(0,Jo.jsx)(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:e.states.length>1?(0,Jo.jsx)(RS,{field:e,api:t}):(0,Jo.jsx)(Kv,{field:e,api:t})})},n))})}),p]})}function qS({api:e,app:t}){const n=Uo(),[r]=os(t),[o]=ss(r),[i]=(e=>{const[t]=ps(e,"FieldList",fs),[n]=as(t,"getLayout"),r=(e=>{if(!e)return;const t=[];for(let n=0;n<e.length;++n){const r=e[n];if(t.push(r),r.qDerivedFieldData)for(let e=0;e<r.qDerivedFieldData.qDerivedFieldLists.length;++e){const n=r.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<n.qFieldDefs.length;++e){const o=n.qFieldDefs[e];t.push({qName:o.qName,qSrcTables:r.qSrcTables,qTags:o.qTags,isDerived:!0,sourceField:r.qName,derivedDefinitionName:n.qDerivedDefinitionName})}}}return t})(n?.qFieldList?.qItems);return[r]})(t),[s]=(e=>{const[t]=ps(e,"DimensionList",hs),[n]=as(t,"getLayout");return[n?.qDimensionList?.qItems]})(t),[l]=ds(t),{modalObjectStore:c}=(0,a.useContext)(fa).selectionStore,[u,d]=cs(),p=(0,a.useMemo)(()=>{const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const r=e.qField;let o=t[r];void 0===o&&(o={name:r,label:e.qDimensionReferences?.find(e=>e.qLabel)?.qLabel||e.qReadableName||r,states:[],selections:[]},t[r]=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))}(o).sort(ys);return((e,t,n,r)=>{if(!e||!r)return n;if(0===e.length||0===t.length&&0===n.length)return[];const o=((e,t,n)=>n.filter(n=>ms in n&&n[ms]?e.some(e=>e.qName===n[ms]):!(!(gs in n)||!n[gs])&&t.some(e=>e.qInfo?.qId===n[gs]&&"N"===e.qData?.grouping)))(e,r,t),i=[],a=[...n];for(let e=0;e<o.length;e++){const t=o[e],n=!(!(gs in t)||!t[gs]),s=n?r.find(e=>e.qInfo?.qId===t[gs]):null,l=n?s?.qData?.info[0]?.qName:t[ms],c=a.findIndex(e=>n&&e.selections[0].qDimensionReferences?.[0]?.qId===t[gs]||!n&&(e.selections[0].qField===l||e.selections[0].qReadableName===l));if(-1===i.findIndex(e=>e.selections?.[0]?.qField===l&&!e.isPinned))if(-1===c){const t={...o[e],isPinned:!0,states:["$"]};n&&s&&(t.qField=l,t.qName=s.qData.labelExpression||s.qData.title||l),i.push(t)}else i.push(a[c]),a.splice(c,1)}return[...i,...a]})(i,l,e,s)},[o,i,l,s]),f=(e=>{if(!e)return 0;const{width:t}=e,n=Math.floor(t)-72;return Math.floor(n/120)})(d),{items:h,more:m}=(({currentItems:e,containerRef:t,maxItems:n,isInListboxPopover:r})=>{if(!t)return{items:[],more:[]};const o=[...e],i=t.items??[];if(r()&&o.length+1===i.length){const e=i.filter(e=>!1===o.some(t=>e.name===t.name))[0];if(e&&!e.isPinned){const{qField:t}=e.selections[0];e.selections=[{qField:t}];const n=i.indexOf(e);o.splice(n,0,e)}}let a=[];return n<o.length&&(a=o.splice(0,o.length-n)),t.items=o,{items:o,more:a}})({currentItems:p,containerRef:u,maxItems:f,isInListboxPopover:()=>{const{model:e}=c.get(t.id)||{};return"njsListbox"===e?.genericType}});return(0,Jo.jsxs)(es,{ref:u,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"},children:[m.length>0&&(0,Jo.jsx)(es,{style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:(0,Jo.jsx)(IS,{items:m,api:e})}),h.map((t,r)=>(0,Jo.jsx)(es,{style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:t.states.length>1?(0,Jo.jsx)(RS,{field:t,api:e}):(0,Jo.jsx)(Kv,{field:t,api:e})},`${t.states.join("::")}::${t.qField??t.name}${r}`))]})}const jS=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));n.dn(jS);const MS=e=>vs((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 DS({api:e,app:t}){const{translator:n}=(0,a.useContext)(fa),[r]=function(e){const[t]=os(e),[n]=ss(t),[r]=ls(e),[o,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}));(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::")!==(n.qStateNames||[]).map(e=>e).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)},[r,t,n]),(0,a.useEffect)(()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach(n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),i({canGoBack:e,canGoForward:t,canClear:r})},[n]),[o,t,n]}(t);return(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"},children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{style:{marginRight:"8px"},disabled:!r||!r.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large",children:(0,Jo.jsx)(jS,{})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{style:{marginRight:"8px"},disabled:!r||!r.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large",children:(0,Jo.jsx)(MS,{})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{disabled:!r||!r.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large",children:(0,Jo.jsx)(Nh,{})})})]})}n.dn(MS);const _S=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function NS([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function AS(){return _S.map(NS).join("")}function $S({app:e}){const t=Uo(),[n]=ig(e);return n?(0,Jo.jsxs)(es,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"},children:[(0,Jo.jsx)(es,{style:{borderRight:`1px solid ${t.palette.divider}`},children:(0,Jo.jsx)(DS,{api:n,app:e})}),(0,Jo.jsx)(es,{size:"grow",style:{backgroundColor:t.palette.background.darker,overflow:"hidden"},children:(0,Jo.jsx)(qS,{api:n,app:e})})]}):null}let zS;zS="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let FS=null,BS=null;const WS=zS.clearTimeout,HS=zS.setTimeout,US=zS.cancelAnimationFrame||zS.mozCancelAnimationFrame||zS.webkitCancelAnimationFrame,VS=zS.requestAnimationFrame||zS.mozRequestAnimationFrame||zS.webkitRequestAnimationFrame;null==US||null==VS?(FS=WS,BS=function(e){return HS(e,20)}):(FS=function([e,t]){US(e),WS(t)},BS=function(e){const t=VS(function(){WS(n),e()}),n=HS(function(){US(t),e()},20);return[t,n]});class GS extends a.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 r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},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,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=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;a(this),this.__resizeRAF__&&FS(this.__resizeRAF__),this.__resizeRAF__=BS(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{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"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=zS.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__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",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,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:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:p,scaledHeight:f,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},y={};let b=!1;return r||(0===p&&(b=!0),g.height=0,y.height=p,y.scaledHeight=f),o||(0===m&&(b=!0),g.width=0,y.width=m,y.scaledWidth=h),i&&(b=!1),(0,a.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!b&&e(y))}}function KS({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:r,isModal:o,constraints:i,selections:a}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:r=!1}=t.nativeEvent,i=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const s=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case zd.TAB:if(document.activeElement===s||!l&&!s.contains(document.activeElement))return;if(r)Vd(s)||Ud(s)||Kd(t,e);else if(!(Gd(s)||Ud(s)||Vd(s)))break;i();break;case zd.ENTER:case zd.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),i();break;case zd.ESCAPE:Kd(t,e),a.isActive()&&a.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=i?.select||i?.active,t=o();return e||t})())return;const{keyCode:a,ctrlKey:s=!1,shiftKey:l=!1}=e;switch(a){case zd.ARROW_UP:n({up:1});break;case zd.ARROW_DOWN:n({down:1});break;case zd.PAGE_UP:n({up:r.stop-r.start});break;case zd.PAGE_DOWN:n({down:r.stop-r.start});break;case zd.HOME:n({scrollPosition:s&&l?"overflowStart":"start"});break;case zd.END:n({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const JS=Za("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function XS({text:e}){const{translator:t}=(0,a.useContext)(fa);return(0,Jo.jsx)(JS,{children:t.get(e)})}const ZS={fontSize:"12px"},YS=Za(gl)(({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"}})),QS=Za(es,{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=Za(js)(({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})),tx=a.forwardRef(({translator:e,toggleLock:t,keyboard:n,isLoading:r},o)=>{const i=e.get("SelectionToolbar.ClickToUnlock");return(0,Jo.jsxs)(YS,{ref:o,title:i,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:r,children:[r?(0,Jo.jsx)(Pl,{size:16,variant:"indeterminate",color:"primary"}):(0,Jo.jsx)(xs,{disableRipple:!0,style:ZS}),!r&&(0,Jo.jsx)(js,{fontSize:"14px",children:i})]})}),nx=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));n.dn(nx);const rx=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));n.dn(rx);const ox=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));n.dn(ox);const ix=Za(kS)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})),ax=function({iconData:e,translator:t,iconStyle:n,disabled:r,keyboard:o}){if(!e)return;const{icon:i,tooltip:a,onClick:s,onKeyDown:l}=e,c=i,u=t.get(a);return s?(0,Jo.jsx)(ix,{variant:"outlined",onClick:s,tabIndex:o.innerTabStops?0:-1,title:u,size:"large",disableRipple:!0,disabled:r,onKeyDown:l,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button",children:(0,Jo.jsx)(c,{style:n})}):(0,Jo.jsx)(c,{title:u,size:"large",style:{...n,padding:"7px"}})};let sx=0;const lx=function({layout:e,translator:t,styles:n,isRtl:r,showLock:o,showSearchIcon:i,constraints:s,onShowSearch:l,classes:c,containerRect:u,isPopover:d,showToolbar:p,toolbarMode:f="auto",containerRef:h,model:m,selectionState:g,isDirectQuery:y,selections:b,keyboard:v,autoConfirm:S,app:x,title:w,disablePortal:k}){const C="detach"===f,E=!(C||"attach"===f),[L,R]=(0,a.useState)(C),[P,O]=(0,a.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[T,I]=(0,a.useState)(!1);(0,a.useEffect)(()=>{O(e?.qListObject?.qDimensionInfo?.qLocked)},[e?.qListObject?.qDimensionInfo?.qLocked]);const q=(0,a.useRef)(null),j=(0,a.useRef)(null),M=(0,a.useRef)(null),D=(({dimInfo:e,app:t,selections:n,isPopover:r,active:o,keyboard:i})=>{switch(e.qGrouping){case"H":return{icon:rx,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const a=t&&o,s=()=>{r||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:a?ox:nx,tooltip:"Listbox.Cyclic",onClick:a?s:void 0,onKeyDown:a?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case zd.SPACE:case zd.ENTER:s();break;case zd.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():Ud(t)||Vd(t),n||Kd(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:x,selections:b,isPopover:d,active:!s?.active,keyboard:v}),_=o&&P,N=!o&&P,A=i||N||D,$=9-(A?7:0),z=r?9-(A?7:0):4,F=(i?28:0)+(N?28:0)+(D?28:0),B=function({isLocked:e,setLocked:t,settingLockedState:n,model:r,setSettingLockedState:o,unlockButtonRef:i,lockButtonRef:a}){return()=>{const s=new Date;if(s-sx<500)return Promise.resolve();if(n)return()=>{};o(!0),sx=s;const l=e?r.unlock:r.lock;return t(!e),l.call(r,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{o(!1),e?setTimeout(()=>{a.current?.focus()},0):i.current?.focus()},0)})}}({isLocked:P,setLocked:O,settingLockedState:T,setSettingLockedState:I,model:m,unlockButtonRef:j,lockButtonRef:M}),W=wh({layout:e,model:m,translator:t,selectionState:g,isDirectQuery:y,selections:b}),H=P||!o?void 0:[{key:"lock",type:void 0,label:t.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Dl,enabled:()=>!T&&!g.selectDisabled()&&dg(e),action:B,ref:M}],U=s?.active?(0,Jo.jsx)(Ym,{title:t.get("Listbox.Search"),size:"large",style:{...ZS,padding:"7px"}}):(0,Jo.jsx)(Ml,{onClick:l,tabIndex:-1,title:t.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn",children:(0,Jo.jsx)(Ym,{style:ZS})});(0,a.useEffect)(()=>{if(!E)return;if(!q.current||!u)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:r,paddingRight:o}){const i=r+o;return!!(e.width<(t?.current?.clientWidth??0)+n+i+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:u,titleRef:q,iconsWidth:F,paddingLeft:$,paddingRight:z});R(e)},[E,F,$,z,q.current,u?.width,u?.height]);const V=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:r,listboxSelectionToolbarItems:o,extraItems:i,selections:a,keyboard:s,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:i,more:{enabled:!r,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:a,onConfirm:()=>{s?.focus()},onCancel:()=>{s?.focus()}}}}({isDetached:!d&&L,showToolbar:p,containerRef:h,isPopover:d,isLocked:P,extraItems:H,listboxSelectionToolbarItems:W,selections:b,keyboard:v,autoConfirm:S,disablePortal:k}),G=(0,Jo.jsx)(ym,{isRtl:r,layout:e,...V});if(C)return G;const K=N?(0,Jo.jsx)(xs,{size:"large",style:{...ZS,padding:"7px"}}):void 0;return(0,Jo.jsxs)(QS,{item:!0,container:!0,styles:n,isRtl:r,marginY:1,paddingLeft:`${$}px`,paddingRight:`${z}px`,className:"header-container",children:[_&&(0,Jo.jsx)(tx,{isLoading:T,translator:t,toggleLock:B,keyboard:v,ref:j}),A&&(0,Jo.jsxs)(es,{container:!0,alignItems:"center",width:F,className:"header-action-container",children:[K||i&&U,(0,Jo.jsx)(ax,{iconData:D,iconStyle:ZS,disabled:b.isActive()&&d,translator:t,keyboard:v})]}),(0,Jo.jsx)(es,{size:"grow",sx:{minWidth:0},justifyContent:r?"flex-end":"flex-start",className:c.listBoxHeader,children:(0,Jo.jsx)(ex,{variant:"h6",noWrap:!0,ref:q,title:w??e.title,styles:n,children:w??e.title})}),(0,Jo.jsx)(es,{display:"flex",children:G})]})},cx=Za("div")(({theme:e,width:t,height:n})=>({position:"absolute",pointerEvents:"none",zIndex:1,width:t,height:n,boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`}));function ux({width:e,height:t,disabled:n,childNode:r,containerNode:o}){const[i,s]=(0,a.useState)(!1),l=(0,a.useCallback)(()=>{const e=o&&o.contains(document.activeElement),t=r&&r.contains(document.activeElement);s(e&&!t)},[o,r]);return(0,a.useEffect)(()=>{if(o)return o.addEventListener("focusin",l),o.addEventListener("focusout",l),l(),()=>{o.removeEventListener("focusin",l),o.removeEventListener("focusout",l)}},[l,o]),!n&&i?(0,Jo.jsx)(cx,{"aria-hidden":"true",width:e,height:t}):null}const dx="ListBoxInline",px={listBoxHeader:`${dx}-listBoxHeader`,screenReaderOnly:`${dx}-screenReaderOnly`,listboxWrapper:`${dx}-listboxWrapper`},fx=Za(es,{shouldForwardProp:e=>!["containerPadding","styles"].includes(e)})(({containerPadding:e,styles:t})=>({...t.background,[`& .${px.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${px.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${px.listboxWrapper}`]:{padding:e},"&:focus-visible":{outline:"none"}}));function hx({options:e,layout:t}){const{app:n,direction:r,frequencyMode:o,checkboxes:i,search:s=!0,focusSearch:l=!1,rangeSelect:c=!0,model:u,selections:d,update:p,fetchStart:f,postProcessPages:h,calculatePagesHeight:m,showGray:g=!0,scrollState:y,renderedCallback:b,toolbar:v=!0,toolbarMode:S="auto",isPopover:x=!1,showLock:w=!1,components:k,selectDisabled:C=()=>!1,disablePortal:E=!0,flags:L}=e,R=Uo(),{translator:P,keyboardNavigation:O,themeApi:T,queryParams:I,constraints:q,hostConfig:j}=(0,a.useContext)(fa),{checkboxes:M=i}=t||{},D=Uv({app:n,themeApi:T,theme:R,queryParams:I,components:k,checkboxes:M,hostConfig:j}),_=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:n?.layout}),N=(0,a.useRef)(),A=(0,a.useRef)(),[$,z,F]=cs(),[B,W]=(0,a.useState)(!1),[H,U]=(0,a.useState)(!1),V=(0,a.useRef)(!1),[G,K]=(0,a.useState)({down:0,up:0,scrollPosition:""}),J=e=>K(t=>({...t,...e})),[X,Z]=(0,a.useState)({start:0,stop:0}),[Y]=ig(n),[Q]=(0,a.useState)(()=>cg({selectDisabled:C})),ee=Wd({containerRef:N,enabled:O}),te=(0,a.useCallback)(()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:n,appSelections:Y}),[n,Y]),ne=t?.qListObject.qDimensionInfo.qError,re=ne&&q.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[,oe]=(0,a.useState)(!1),[ie,ae]=(0,a.useState)(null),se=(0,a.useCallback)(e=>{ae(e)},[]),{handleKeyDown:le,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=(0,a.useMemo)(()=>KS({keyboard:ee,hovering:V,updateKeyScroll:J,containerRef:N,currentScrollIndex:X,app:n,appSelections:Y,constraints:q,isModal:te,selections:d}),[ee,V,J,N,X,n,Y,q,te]);(0,a.useEffect)(()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)}),[de]),(0,a.useEffect)(()=>{!0===s&&U(!0);const e=()=>{W(!0)},t=()=>{W(!1),"toggle"===s&&U(!1)};return x&&(d.isActive()||(d.on("activated",e),d.on("deactivated",t)),W(x)),v&&d&&(d.isModal()||(d.on("activated",e),d.on("deactivated",t)),W(x||d.isActive())),()=>{d&&d.removeListener&&(d.removeListener("activated",e),d.removeListener("deactivated",t))}},[v,d,x]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=t??{},ge=t?.qListObject?.qDimensionInfo?.qLocked,ye=!1!==fe&&"toggle"===s&&!ge,be=t?.qListObject?.qDimensionInfo,ve=L.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT")?t?.title??be?.qFallbackTitle:t?.title,Se=ve?.length&&!1!==t?.showTitle,xe=["attach","detach","auto"].includes(S)?S:"auto",we=v||x,ke=function({toolbarMode:e,canShowTitle:t,isPopover:n}){return"auto"!==e?e:t||n?"attach":"detach"}({toolbarMode:xe,canShowTitle:Se,isPopover:x}),Ce=we&&"detach"===ke,Ee="rtl"===r;if(!(u&&t&&P&&D))return null;const Le=!0===s||"toggle"===s&&H&&!1!==fe,Re=me.dense??!1,Pe=()=>{const e=!H;U(e),e&&N.current?.scrollIntoView&&N.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"instant"})},Oe=()=>{"toggle"===s?Pe():A.current.focus()},Te=Le&&("toggle"===s||l),Ie=function({isGridMode:e,dense:t,height:n,layoutOrder:r}){let o;if(e){let i;i=Cp({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===r?`${i} 4px`:`${i} 6px ${i} 4px`}else o=void 0;return o}({isGridMode:"grid"===me?.dataLayout,dense:Re,height:N.current?.clientHeight,layoutOrder:me.layoutOrder});ne&&b?.();const qe=we&&!Ce?30:0,je=(0,Jo.jsx)(lx,{app:n,showSearchIcon:ye,onShowSearch:Pe,isPopover:x,showToolbar:B,isDirectQuery:_,autoConfirm:he,toolbarMode:Ce?"detach":xe,title:ve,layout:t,translator:P,styles:D,isRtl:Ee,showLock:w,constraints:q,classes:px,containerRect:z,containerRef:N,model:u,selectionState:Q,selections:d,keyboard:ee,disablePortal:E});return(0,Jo.jsxs)(Jo.Fragment,{children:[Ce&&je,(0,Jo.jsxs)(fx,{className:"listbox-container",container:!0,tabIndex:ee.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ie,styles:D,style:{height:"100%",width:"100%",flexFlow:"column nowrap"},onKeyDown:le,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{N.current=e,$?.(e)},"aria-label":ee.active?P.get("Listbox.ScreenReaderInstructions"):"",onFocus:()=>oe(!0),onBlur:()=>oe(!1),children:[(0,Jo.jsx)(ux,{width:z?.width,height:z?.height,disabled:te()||x,childNode:ie,containerNode:F}),we&&!Ce&&je,(0,Jo.jsxs)(es,{container:!0,direction:"column",height:"100%",minHeight:qe,role:"region","aria-label":P.get("Listbox.ResultFilterLabel"),ref:se,children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(og,{ref:A,selections:d,selectionState:Q,model:u,dense:Re,keyboard:ee,visible:Le,search:s,autoFocus:Te,beginSelectionOnFocus:!x,wildCardSearch:pe,searchEnabled:fe,direction:r,hide:ye&&Pe,styles:D})}),(0,Jo.jsx)(es,{size:"grow",className:px.listboxWrapper,children:ne?(0,Jo.jsx)(XS,{text:re}):(0,Jo.jsx)(GS,{children:({height:e,width:i})=>(0,Jo.jsx)(yh,{model:u,app:n,constraints:q,layout:t,selections:d,selectionState:Q,direction:r,frequencyMode:o,rangeSelect:c,checkboxes:M,height:e,width:i,update:p,fetchStart:f,postProcessPages:h,calculatePagesHeight:m,keyboard:ee,showGray:g,scrollState:y,keyScroll:{state:G,reset:()=>K({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:X,set:Z},renderedCallback:b,onCtrlF:Oe,isModal:te,styles:D})})})]})]})]})}const mx=a.memo(hx),gx=function({options:e={}}){const{model:t}=e,[n]=ss(t);return(0,Jo.jsx)(mx,{options:e,layout:n})};const yx={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 bx(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 vx=(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}},Sx=(0,a.forwardRef)(({app:e,fieldIdentifier:t,qId:n,stateName:r,element:o,initialOptions:i,renderedCallback:s,flags:l},c)=>{const[u,d]=(0,a.useState)(i),{isExistingObject:p,hasExternalSelectionsApi:f}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:u});p||Object.assign(u,{frequencyMode:bx(u.frequencyMode)});const[h,m]=(0,a.useState)(0);(0,a.useEffect)(()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)},[p,f]);const g=p?function({app:e,qId:t,options:n={}}){const[r,o]=(0,a.useState)(),[i]=ts(),{sessionModel:s}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(n).filter(e=>l.includes(e));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,a.useEffect)(()=>{let n=!1,r=()=>{};return async function(){const a=await Promise.resolve(s||async function(t){return i.get(t)||await e.getObject(t)}(t));if(!n){if(!i.get(a.id)){i.set(a.id,a);const e=()=>{i.clear(a.id)};a.once("closed",e),r=()=>{a.removeListener("closed",e)}}o(a)}}(),()=>{n=!0,r()}},[]),r}({app:e,qId:n,options:u}):function({app:e,fieldIdentifier:t,stateName:n,options:r={}}){const[o,i]=(0,a.useState)(""),[s,l]=(0,a.useState)(!0),[c,u]=(0,a.useState)(),[d,p]=(0,a.useState)(),f=r.title??d;let{histogram:h=!1,frequencyMode:m="N"}=r;o&&o.failedToFetchFieldDef&&(h=!1,m="N"),(0,a.useEffect)(()=>{const n=h||"N"!==m;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),r=await n.getLayout();p(r.qDim.title),"N"===r.qDim.qGrouping?i(r.qDim.qFieldDefs?r.qDim.qFieldDefs[0]:""):i({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),i({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),p(t))},[]);const{dense:g,checkboxes:y,listLayout:b,properties:v={}}=r,S={dense:g};"horizontal"===b&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const x=(0,a.useRef)();x.current||(x.current=AS());const w=G()(!0,{},yx,{qInfo:{qId:x.current},qListObjectDef:{qStateName:n,qFrequencyMode:h&&"N"===m?"V":m},histogram:h,checkboxes:y,layoutOptions:S,title:f});let k;if(G()(!0,w,v),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,k=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],k=t),"P"!==m&&h)if(o?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?o:k;w.frequencyMax={qValueExpression:mh(e)}}const[C]=ns(w,s?null:e,k,n);return(0,a.useEffect)(()=>{C&&u(C)},[C]),c}({app:e,fieldIdentifier:t,stateName:r,options:u}),y=(0,a.useRef)(o),b=f?u.selectionsApi:lg(e,g,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],v=(0,a.useMemo)(()=>({...u,selections:b,model:g,app:e,renderedCallback:s,flags:l}),[u,b,g,e]);return(0,a.useImperativeHandle)(c,()=>({setOptions:e=>d(e)}),[]),b&&g?(0,Jo.jsx)(gx,{options:v}):null}),xx={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function wx({app:e,fieldIdentifier:t,stateName:n,element:r,options:o={}}){const[i,s]=(0,a.useState)(!!o.show);return(0,Jo.jsx)(Vv,{show:i,app:e,alignTo:{current:r},anchorOrigin:o.anchorOrigin,transformOrigin:o.transformOrigin,close:()=>{s(!1),o.onPopoverClose&&o.onPopoverClose()},fieldName:t,stateName:n,autoFocus:o.autoFocus,components:o.components,sortCriteria:o.sortCriteria,direction:o.direction})}function kx(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Cx(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Ex({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 r=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||AS(),i.qDef.qSortCriterias=i.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],i.qOtherTotalSpec=i.qOtherTotalSpec||{},i.qAttributeExpressions=i.qAttributeExpressions||[],i.qAttributeDimensions=i.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(i),kx(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(i,r)):(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(i)),i},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Cx(e.qInterColumnSortOrder,n),t.dimensions.removed(o,r,n),o},addMeasure(n){const i="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};i.qDef.cId=i.qDef.cId||AS(),i.qSortBy=i.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},i.qAttributeDimensions=i.qAttributeDimensions||[],i.qAttributeExpressions=i.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(i),kx(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(i,r)):(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(i))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Cx(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,r,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 Lx({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const r=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||AS(),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,r),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,r,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const Rx=e=>({qDef:{qFieldDefs:[e]}});function Px({children:e,halo:t}){const n={async addDimension(n){const r=(e=>{let t;return t="string"==typeof e?G()(!0,{},yx,{qListObjectDef:Rx(e)}):e.qListObjectDef?G()(!0,{},yx,e):G()(!0,{},yx,{qListObjectDef:e}),t})(n),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||AS(),!r.title)if(t.public.galaxy.flags.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT"))r.title=void 0;else if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:r.title=n.qDim.title}else r.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:r,qChildren:[]})},addMeasure(){}};return n}function Ox(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 Tx({sn:e,properties:t,fields:n,children:r},o){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:a}=i,s=a.split("/");let l=t;for(let e=0;e<s.length;e++){const t=s[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?Lx:e.match("/qChildListDef")?Px:Ex}(a),u=c({dc:l,def:i,properties:t,children:r,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===Ox(t)?await u.addMeasure(t):await u.addDimension(t)}}const Ix=e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e,qx={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];if(!Ix(t))return;void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}Ix(o)&&(void 0!==n?i[o]=n:delete i[o])},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},jx=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},Mx=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},Dx=function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},_x=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 r=e.at(t);e.splice(t,1),e.splice(n,0,r)},Nx=2**53-1;function Ax(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function $x(e,t){const n=G()(!0,{},t,e);return qx.getValue(n,"qOtherTotalSpec.qOtherCounted")||qx.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),qx.getValue(n,"qOtherTotalSpec.qOtherLimit")||qx.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function zx(e,t){return G()(!0,{},t,e)}function Fx(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const Bx={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===qx.getValue(e,t)&&qx.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:Ax,importCommonProperties:function(e,t,n){const r="masterobject"===qx.getValue(t,"properties.qInfo.qType")?"masterobject":qx.getValue(n,"qInfo.qType");qx.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:$x,createDefaultMeasure:zx,resolveValue:Fx,getHypercubePath:function(e){const t=qx.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],r=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==r)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==r;)o<r?(Mx(t.qInterColumnSortOrder,o),++o):(--o,Dx(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let r={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(r.qLayoutExclude.quarantine=G()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?qx.setValue(r,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||Ax(o)?r[o]=e.properties[o]:r.qLayoutExclude.disabled[o]=e.properties[o]}),r=G()(!0,{},t,r),null===r.components&&(r.components=[]),r},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],r=t.dimensions||{max:0},o=t.measures||{max:0},i=Fx(o.max,n.dimensions.length,Nx),a=Fx(o.min,n.dimensions.length,0);return{maxDimensions:Fx(r.max,i,Nx),minDimensions:Fx(r.min,a,0),maxMeasures:i,minMeasures:a}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:r,minMeasures:o}){const i=e.data[0];return i.dimensions.length>t&&t>0||i.measures.length>r&&r>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>n||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>o||!r&&i.measures.length>0||!t&&i.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:r,minMeasures:o,newHyperCubeDef:i}){const a=e.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(a.dimensions.length>t&&t>0||a.excludedDimensions&&a.excludedDimensions.length&&a.dimensions.length+a.excludedDimensions.length>n)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(a.measures.length>r&&r>0||a.excludedMeasures&&a.excludedMeasures.length&&a.measures.length+a.excludedMeasures.length>o)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&a.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&a.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:r,defaultDimension:o}){const i=e.data[0];let a;if(t>0)for(a=0;a<i.dimensions.length;++a)r.qDimensions.length<t?r.qDimensions.push($x(i.dimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push($x(i.dimensions[a],o));else if(i.dimensions.length)for(a=0;a<i.dimensions.length;++a)r.qLayoutExclude.qHyperCubeDef.qDimensions.push($x(i.dimensions[a],o));if(i.excludedDimensions.length)for(a=0;a<i.excludedDimensions.length;++a)r.qDimensions.length<n?r.qDimensions.push($x(i.excludedDimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push($x(i.excludedDimensions[a],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:r,defaultMeasure:o}){const i=e.data[0];let a;if(t>0)for(a=0;a<i.measures.length;++a)r.qMeasures.length<t?r.qMeasures.push(zx(i.measures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(zx(i.measures[a],o));else if(i.measures.length)for(a=0;a<i.measures.length;++a)r.qLayoutExclude.qHyperCubeDef.qMeasures.push(zx(i.measures[a],o));if(i.excludedMeasures.length)for(a=0;a<i.excludedMeasures.length;++a)r.qMeasures.length<n?r.qMeasures.push(zx(i.excludedMeasures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(zx(i.excludedMeasures[a],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const r=qx.getValue(e,n||"").qHyperCubeDef,o=[...r.qDimensions];r.qDimensions=[],o.forEach(n=>{r.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 r=qx.getValue(e,n||"").qHyperCubeDef,o=[...r.qMeasures];r.qMeasures=[],o.forEach(n=>{r.qMeasures.push(n),t.measures.added(n,e)})}}},Wx={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}(),r=e.qProperty,o=qx.getValue(r,t||""),i=o.qHyperCubeDef,a=n.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),a.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&a.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),a.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&a.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),a.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();jx(e,a.interColumnSortOrder)&&(a.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(r).forEach(e=>{n.properties[e]=r[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(Bx.restoreChangedProperties(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!qx.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:r={},hypercubePath:o}){const i={qChildren:[]},a=Bx.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),s=qx.getValue(t,o||"").qHyperCubeDef,l=qx.getValue(a,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p}=Bx.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:f=Bx.getDefaultDimension(),defaultMeasure:h=Bx.getDefaultMeasure()}=r;return l.qDimensions.length=0,l.qMeasures.length=0,Bx.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p})&&Bx.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p,newHyperCubeDef:l}),Bx.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:u,newHyperCubeDef:l,defaultDimension:f}),Bx.addDefaultMeasures({exportFormat:e,maxMeasures:d,minMeasures:p,newHyperCubeDef:l,defaultMeasure:h}),Bx.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),Bx.copyPropertyIfExist("qMaxStackedCells",s,l),Bx.copyPropertyIfExist("qNoOfLeftDims",s,l),Bx.copyPropertyOrSetDefault("qInitialDataFetch",s,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Bx.copyPropertyOrSetDefault("qMode",s,l,"S"),Bx.copyPropertyOrSetDefault("qReductionMode",s,l,"N"),Bx.copyPropertyOrSetDefault("qSortbyYValue",s,l),Bx.copyPropertyOrSetDefault("qIndentMode",s,l),Bx.copyPropertyOrSetDefault("qShowTotalsAbove",s,l),Bx.importCommonProperties(a,e,t),Bx.updateDimensionsOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),Bx.updateMeasuresOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),i.qProperty=a,i}(e)},Hx=e=>qx.getValue(e,"data.targets.0.propertyPath"),Ux=async({halo:e,model:t,cellRef:n,newType:r,properties:o,viewDataMode:i=!1})=>{const a=o?{qProperty:o}:await t.getFullPropertyTree(),s=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Wx.exportProperties})(Hx(e)))(s);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:r}=e;return await r.get({name:t,version:n}).supernova()})({halo:e,name:r}),u=c.qae,d=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Wx.importProperties})(Hx(e)))(u);if(!d)throw new Error("Target chart does not support conversion");return d({exportFormat:l({propertyTree:a,hypercubePath:Bx.getHypercubePath(s),viewDataMode:i}),initialProperties:{qInfo:{qType:r},visualization:r,...qx.getValue(u,"properties.initial",{})},dataDefinition:qx.getValue(u,"data.targets.0.",{}),hypercubePath:Bx.getHypercubePath(u),viewDataMode:i})},Vx={hypercube:Wx},Gx=G().bind(null,!0),Kx={},{isArray:Jx}=Array;function Xx(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zx(e){return void 0===e}function Yx(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Qx(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function ew(e,t){let n;return t.substring(1).split("/").slice(0,-1).forEach(t=>{if(!Qx(t))throw new Error(`Unsafe key in path: ${t}`);n=+t;const r=isNaN(n)?{}:[];e[n||t]=Zx(e[n||t])?r:e[t],e=e[n||t]}),e}function tw(e,t){let n=!0;if(Xx(e)&&Xx(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{tw(e[r],t[r])||(n=!1)}),n);if(Jx(e)&&Jx(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!tw(e[n],t[n]))return!1;return!0}return e===t}Kx.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?Gx({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;tw(i,a)||Yx(t,o)||(Zx(a)?r.push({op:"add",path:s,value:i}):Xx(i)&&Xx(a)?r=r.concat(Kx.generate(a,i,s)):Jx(i)&&Jx(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Zx(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(tw(t,o))return r;if(!Zx(t[0])&&Zx(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Kx.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))}),Object.keys(e).forEach(o=>{Zx(t[o])&&!Yx(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},Kx.apply=function(e,t){t.forEach(t=>{let n=ew(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if(!Qx(r)||null!==i&&!Qx(i)){const e=Qx(r)?i:r;throw new Error(`Unsafe key in patch path: ${e}`)}if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Jx(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Jx(o)&&Jx(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Xx(o)&&Xx(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Yx(a,e)&&Qx(e)&&delete a[e]}),Gx(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=ew(e,t.from);Jx(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Jx(n)?n.splice(+r,1):delete n[r]);var a})},Kx.clone=function(e){return Gx({},e)},Kx.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Kx.updateObject=function(e,t){Object.keys(e).length?Kx.apply(e,Kx.generate(e,t)):Gx(e,t)};const nw=Kx;n.dn(ow);const rw=e=>t=>{const n=(r={...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(d().prototype).forEach(e=>{r[e]=d().prototype[e]}),d().init(r),r);var r;return n};function ow({sn:e,component:t}){const n={},r=[],o=rw(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,r.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:r,destroy(){r.length=0}}}let iw,aw;function sw(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 lw(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 cw(e){dw(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 uw(e){if(e.__hooks.obsolete)return Promise.resolve();aw=-1,iw=e;let t=-1;iw.__hooks.initiated&&(t=iw.__hooks.list.length);try{iw.fn.call(null)}catch(e){console.error(e)}iw.__hooks.initiated=!0,t>-1&&t!==iw.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=iw.__hooks;return mw(iw),aw=void 0,iw=void 0,n.chain.promise||(n.chain.promise=new Promise(e=>{n.chain.resolve=e})),function(e){dw(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame(()=>{!function(e){dw(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 dw(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 pw(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 fw(e,t,n,r){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,r)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function hw(e){return e.__hooks.imperativeHandle}function mw(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function gw(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,mw(e))}function yw(e){if(void 0===iw)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=iw.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function bw(e){return yw(++aw),iw.context[e]}function vw(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Sw(e){return{__hooked:!0,fn:e,initiate:lw,run:uw,teardown:cw,runSnaps:pw,runMenu:fw,focus:Yw,blur:Qw,observeActions:gw,getImperativeHandle:hw,updateRectOnNextRun:vw}}function xw(e){const t=yw(++aw);if(!t.value){t.component=iw;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 r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout(()=>{r.__hooks.micro=null,uw(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function ww(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yw(++aw);sw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===iw.__hooks.pendingEffects.indexOf(n)&&iw.__hooks.pendingEffects.push(n))}function kw(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yw(++aw);sw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],iw.__hooks.pendingLayoutEffects.push(n))}function Cw(e,t){t||console.warn("useMemo called without dependencies.");const n=yw(++aw);return sw(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Ew(e){return Cw(()=>({current:e}),[])}function Lw(e,t){const[n,r]=xw(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=yw(++aw);return o.component||(o.component=iw),kw(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]}function Rw(){return bw("element")}function Pw(){const e=Rw(),t=iw.__hooks.resizer,[n,r]=xw(()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}});return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),kw(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}},[e]),n}function Ow(){return bw("layout")}function Tw(){const e=bw("layout"),[t]=xw({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Iw(){return bw("appLayout")}function qw(){const e=bw("model");return e&&e.session?e:void 0}function jw(){const e=bw("app");return e&&e.session?e:void 0}function Mw(){const e=bw("global");return e&&e.session?e:void 0}function Dw(){return bw("selections")}function _w(){return bw("theme")}function Nw(){return bw("nebbie")}function Aw(){return bw("translator")}function $w(){return bw("deviceType")}function zw(){return bw("navigation")}function Fw(){return bw("plugins")}function Bw(e,t){const[n]=xw({action(){n._config.action.call(null)}});return n.component||(n.component=iw,iw.__hooks.actions.list.push(n)),Cw(()=>{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 Ww(){return iw.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),iw.__hooks.contraintsWarning=!1),bw("constraints")}function Hw(){return bw("interactions")}function Uw(){return bw("options")}function Vw(e,t){const n=yw(++aw);if(!n.imperative){if(iw.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(sw(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],iw.__hooks.imperativeHandle=r}}function Gw(e){const t=yw(++aw);t.value||(t.value=1,iw.__hooks.snaps.push(t)),t.fn=e}function Kw(e){const t=yw(++aw);t.value||(t.value=1,iw.__hooks.menus.push(t)),t.fn=e}function Jw(){yw(++aw);const e=iw.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Xw(){return bw("emitter")}function Zw(){const e=bw("keyboardNavigation"),t=bw("focusHandler");if(!iw.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(Qw(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(iw);iw.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Yw(this))}.bind(iw);iw.__hooks.accessibility.focusFunction=n;const r=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(iw);iw.__hooks.accessibility.focusSelectionFunction=r}const n=iw.__hooks.accessibility.focusFunction,r=iw.__hooks.accessibility.exitFunction,o=iw.__hooks.accessibility.focusSelectionFunction,[i,a]=xw({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return iw.__hooks.accessibility.setter=a,iw.__hooks.accessibility.enabled=e,ww(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i}function Yw(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 Qw(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 ek={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},tk=Object.keys(ek);function nk(e,t,n){"function"==typeof e.component&&(e.component=Sw(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==uw&&console.warn("Detected multiple supernova modules, this might cause problems.");const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:s,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 r=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)}),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach(e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify({...r[e],...s})),"interactions"===e&&(t=JSON.stringify({...r[e],...l})),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(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,r){return e.component.runMenu(this,t,n,r)},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 a.forEach(e=>{i[e]=JSON.stringify(c.context[e])}),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):function(e,t){console.warn("Obsolete API - time to get hooked!");const n={...ek};var r;r=n,Object.keys(d().prototype).forEach(e=>{r[e]=d().prototype[e]}),d().init(r);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==tk.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const i=ow({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...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,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const i=nw.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));nw.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const s=nw.generate(i,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,s,r)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const rk=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],ok=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map(([e,t])=>e+(Math.random()*(t-e)|0).toString(32)).join(""),ik=(e,t)=>e&&e.find(e=>e.qDef?.cId===t)||null,ak=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??ok()}}),sk=e=>({...ak(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),lk=(e,t,n)=>{const r=t;e.forEach((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]})},ck=new Error("Not supported in this object, need to implement in subclass."),uk=e=>e?[...e].map(e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e):[],dk=(e,t)=>{if(e)return t&&qx.getValue(e,t)?qx.getValue(e,t).qHyperCube:e.qHyperCube};function pk(e,t){return e.filter((e,n)=>t.includes(n))}function fk(e,t,n=void 0){const r=e.getAlternativeDimensions(),o=n??r.length;return r.splice(o,0,t),Promise.resolve(t)}function hk(e,t,n){Mx(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function mk(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 gk(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function yk(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function bk(e,t,n,r,o,i){await e.autoSortDimension(t),Mx(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function vk(e,t,n=void 0){const r=e.getAlternativeMeasures(),o=n??r.length;return r.splice(o,0,t),Promise.resolve(t)}function Sk(e,t){Mx(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function xk(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<1e3}function wk(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}const kk=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 ik(t,e)??ik(n,e)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw ck}addDimensions(){throw ck}removeDimension(){throw ck}removeDimensions(){throw ck}autoSortDimension(){throw ck}replaceDimension(){throw ck}getSorting(){throw ck}createLibraryDimension(e,t){let n=G()(!0,{},this.dimensionProperties||{},t||{});return n=sk(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=rk,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let r=G()(!0,{},this.dimensionProperties||{},n||{});return r=sk(r),e||(r.qDef.qFieldDefs=[],r.qDef.qFieldLabels=[],r.qDef.qSortCriterias=[]),r.qDef.qFieldDefs=[e],r.qDef.qFieldLabels=t?[t]:[""],r.qDef.qSortCriterias=rk,r.qDef.autoSort=!0,r}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){const e=[t];return this.dimensionDefinition.max?.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasures(){return[]}getAlternativeMeasures(){throw new Error("Method not implemented.")}addMeasure(){throw ck}addMeasures(){throw ck}removeMeasure(){throw ck}removeMeasures(){throw ck}autoSortMeasure(){throw ck}replaceMeasure(){throw ck}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return ik(t,e)??ik(n,e)}createExpressionMeasure(e,t,n){const r=G()(!0,{},this.measureProperties||{},n||{});return r.qDef=r.qDef??{},r.qDef.qNumFormat=r.qDef.qNumFormat??{},r.qDef.qDef=e,r.qDef.qLabel=t,r.qDef.autoSort=!0,r}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t,!1)}createLibraryMeasure(e,t){const n=G()(!0,{},this.measureProperties||{},t||{});return n.qDef=n.qDef??{},n.qDef.qNumFormat=n.qDef.qNumFormat??{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(n.qDef),n.qLibraryId=e,n.qDef.autoSort=!0,delete n.qDef.qDef,delete n.qDef.qLabel,n}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!1)}addAltLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure({expression:e}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=[this.getDimensions().length-e];return this.measureDefinition.max.apply(null,t)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}},Ck=function(e,t,n){const r=e.getDimensions(),o=n??r.length;return r.length<e.maxDimensions()?function(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then(async()=>(hk(e,r,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)},Ek=async function(e,t){!function(e,t){Dx(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)},Lk=async function(e,t){!function(e,t){Dx(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)},Rk=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})},Pk=class extends kk{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?qx.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=uk(this.hcProperties.qDimensions),this.hcProperties.qMeasures=uk(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=dk(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=sk(e);return yk(this,t)?fk(this,r,n):Ck(this,r,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),r=n.length,o=[];let i=0;for await(const a of e){if(gk(this,n))return o;const e=sk(a);if(yk(this,t)){const t=await fk(this,e);o.push(t)}else n.length<this.maxDimensions()&&(await bk(this,e,r,n,o,i),i++)}return o}removeDimension(e,t){return t?Rk(this,e):Ek(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=pk(n,e);for await(const e of i)await Rk(this,e)}else if(r.length>0){o=pk(r,e);for await(const e of i)await Ek(this,e)}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i={...n,qDef:{...n.qDef,cId:ok()}};return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t))}reinsertDimension(e,t,n){const r=ak(e);return yk(this,t)?fk(this,r,n).then(()=>{mk(this,r)}):function(e,t,n){const r=e.getDimensions(),o=n??r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),hk(e,r),mk(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(_x(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(wk(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;_x(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const r=t?.qLibraryId&&(o=t.qLibraryId,(i=n)&&i.find(e=>e.qInfo.qId===o)||null);var o,i;return r&&lk(r.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{const r=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(r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),r=(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)(r,n)||null})(t.qDef.qFieldDefs[0],n);return r&&lk([r],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=dk(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const r=ak(e);return xk(this,t)?vk(this,r,n):function(e,t,n){const r=e.getMeasures(),o=n??r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then(()=>(Sk(e,r),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,r,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),r=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,n))return!1;const i=ak(e);return xk(this,t||!1)?(vk(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a={...t};return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Mx(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0}),r}removeMeasure(e,t){return t?function(e,t){return e.getAlternativeMeasures().splice(t,1)}(this,e):Lk(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();let o=[];if(0===e.length)return o;if(t&&r.length>0)o=pk(r,e),function(e,t){const n=e,r=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=pk(n,e);const t=[...e].sort((e,t)=>t-e);for await(const e of t)await Lk(this,e)}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i={...n,qDef:{...n.qDef,cId:ok()}};return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t))}reinsertMeasure(e,t,n){const r=ak(e);return xk(this,t)?vk(this,r,n):function(e,t,n){const r=e.getMeasures(),o=n??r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),Sk(e,r),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,r,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(_x(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?wk(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;_x(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){qx.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},Ok=()=>{};function Tk(e,t){return void 0===e?()=>t:()=>e}function Ik(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Tk(t.min,0),max:"function"==typeof t.max?t.max:Tk(t.max,1e3),added:t.added||t.add||Ok,description:t.description||Ok,moved:t.moved||t.move||Ok,removed:t.removed||t.remove||Ok,replaced:t.replaced||t.replace||Ok,isDefined:()=>!!e}}function qk(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 r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:Ik(e.dimensions),measures:Ik(e.measures)}}function jk(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(qk)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function Mk(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:jk(n.qae),component:n.component||{},create:e=>nk(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:n?.dataHandler??(e=>new Pk(e))}:{}};return Object.keys(n).forEach(e=>{r[e]||(r.definition[e]=n[e])}),r}function Dk(e){return ra("MuiIcon",e)}oa("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _k=Za("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Es(n.color)}`],t[`fontSize${Es(n.fontSize)}`]]}})(Cs(({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(Ls()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Nk=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:s="medium",...l}=n,c={...n,baseClassName:r,color:i,component:a,fontSize:s},u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sa({root:["root","inherit"!==t&&`color${Es(t)}`,`fontSize${Es(n)}`]},Dk,r)})(c);return(0,Jo.jsx)(_k,{as:a,className:ti(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})});Nk.muiName="Icon";const Ak=Nk,$k=e=>vs((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 zk({d:e}){const t=Uo();let n="inherit",r=t.palette.success.main;e.missing?r=t.palette.warning.main:e.error&&(n="error",r=t.palette.error.main);const o={color:r},i=(0,Jo.jsx)(js,{style:{lineHeight:"30px",paddingRight:t.spacing(1)},children:(0,Jo.jsx)(Ak,{children:e.missing||e.error?(0,Jo.jsx)($k,{style:o}):(0,Jo.jsx)(gu,{style:o})})});return(0,Jo.jsxs)(es,{container:!0,alignItems:"center",wrap:"nowrap",children:[(0,Jo.jsx)(es,{children:i}),(0,Jo.jsx)(es,{container:!0,sx:{minWidth:0},wrap:"nowrap",children:(0,Jo.jsxs)(js,{noWrap:!0,component:"p",children:[(0,Jo.jsx)(js,{component:"span",variant:"subtitle2",color:n,children:e.description}),(0,Jo.jsx)(js,{component:"span",children:" "}),(0,Jo.jsx)(js,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400},children:e.label})]})})]})}function Fk({data:e}){const t=Uo();return(0,Jo.jsx)(es,{container:!0,style:{maxWidth:"300px",overflow:"hidden"},children:e.map((e,n)=>{const r=e.descriptions.map((e,t)=>(0,Jo.jsx)(zk,{d:e},t));return r.length>0&&(0,Jo.jsxs)(es,{container:!0,direction:"column",style:{paddingBottom:t.spacing(2)},children:[(0,Jo.jsx)(js,{noWrap:!0,variant:"subtitle1",align:"left",color:"textSecondary",children:e.title},n),r]},n)})})}function Bk({title:e="Error",message:t="",data:n=[]}){const[r,o]=cs(),[i,a]=cs(),[s,l]=cs(),c=n.some(e=>e.descriptions&&e.descriptions.length>0),u=!!o&&!!a&&!!l&&a.height+l.height>o.height,d=!!o&&!!a&&!!l&&a.width+l.width<=o.width,p=c&&!!o&&!!a&&!!l&&(!u||d);return(0,Jo.jsxs)(es,{ref:r,container:!0,direction:"column",wrap:"wrap",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"},children:[(0,Jo.jsxs)(es,{ref:i,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)($k,{style:{fontSize:"38px"}})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"h6",align:"center","data-tid":"error-title",children:e})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"subtitle1",align:"center","data-tid":"error-message",children:t})})]}),p?(0,Jo.jsx)(Fk,{data:n}):null,c?(0,Jo.jsx)(es,{ref:s,"aria-hidden":!0,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,top:0},children:(0,Jo.jsx)(Fk,{data:n})}):null]})}n.dn($k);const Wk="Progress",Hk={root:`${Wk}-root`,front:`${Wk}-front`,back:`${Wk}-back`},Uk=Za("div")(({theme:e})=>({[`&.${Hk.root}`]:{position:"relative",display:"inline-block"},[`& .${Hk.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Hk.back}`]:{color:e.palette.divider}})),Vk={small:16,medium:32,large:64,xlarge:128};function Gk({size:e="medium",...t}){const n=Vk[e];return(0,Jo.jsxs)(Uk,{className:Hk.root,children:[(0,Jo.jsx)(Pl,{variant:"determinate",value:100,className:Hk.back,size:n,thickness:3,...t}),(0,Jo.jsx)(Pl,{variant:"indeterminate",disableShrink:!0,className:Hk.front,size:n,thickness:3,...t})]})}const Kk={stripes:"LongRunningQuery-stripes"},Jk=Za(es)(()=>({[`& .${Kk.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 Xk({cancel:e,translator:t,...n}){return(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsxs)(Jk,{container:!0,direction:"column",alignItems:"center",gap:2,children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Gk,{})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"h6",align:"center","data-tid":"update-active",children:t.get("Object.Update.Active")})})]}),(0,Jo.jsx)(es,{...n,children:(0,Jo.jsx)(kS,{variant:"contained",onClick:e,children:t.get("Cancel")})})]})}function Zk({retry:e,translator:t,...n}){return(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)($k,{style:{fontSize:"38px"}})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"h6",align:"center","data-tid":"update-cancelled",children:t.get("Object.Update.Cancelled")})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(kS,{variant:"contained",onClick:e,...n,children:t.get("Retry")})})]})}function Yk({canCancel:e,canRetry:t,api:n}){const{translator:r}=(0,a.useContext)(fa);return(0,Jo.jsxs)(es,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Kk.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:[e&&(0,Jo.jsx)(Xk,{cancel:n.cancel,translator:r,className:Kk.cancel}),t&&(0,Jo.jsx)(Zk,{retry:n.retry,translator:r,className:Kk.retry})]})}function Qk(){return(0,Jo.jsx)(es,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:(0,Jo.jsx)(Gk,{size:"large"})})}const eC={width:0,height:0},tC="Header",nC={containerStyle:`${tC}-containerStyle`,containerTitleStyle:`${tC}-containerTitleStyle`},rC=Za(es)(({theme:e})=>({[`&.${nC.containerStyle}`]:{flexGrow:0},[`&.${nC.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),oC=function({id:e,layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:s={},isRtl:l,translator:c}){const u=t.showTitles&&!!t.title,d=t.showTitles&&!!t.subtitle,p=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[f,h]=(0,a.useState)([]);(0,a.useEffect)(()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions(e=>{h([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])})},[n]);const m=[nC.containerStyle,...u||d?[nC.containerTitleStyle]:[]],g=o||p,y=(0,Jo.jsx)(ym,{show:!1,selections:{show:p,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:f,popover:{show:g,anchorEl:r},focusHandler:i,layout:t,isRtl:l});return(0,Jo.jsxs)(rC,{container:!0,wrap:"nowrap",className:m.join(" "),children:[(0,Jo.jsx)(es,{size:"grow",sx:{minWidth:0},dir:l?"rtl":"ltr",children:(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",direction:"column",children:[u?(0,Jo.jsx)(oh,{title:t.title,children:(0,Jo.jsx)(js,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:s.main,children:t.title})}):(0,Jo.jsx)("div",{id:`${e}_title`,style:eC,"aria-label":c.get("Accessibility.Object.NoTitle")}),d&&(0,Jo.jsx)(oh,{title:t.subtitle,children:(0,Jo.jsx)(js,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:s.subTitle,children:t.subtitle})})]})}),(0,Jo.jsx)(es,{children:y})]})},iC=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude");return e.filter(e=>!1!==e.showInFooter).map(e=>{let r="";switch(e.type){case"search":r+=(e=>{let t="",n="";const r=e.options?.mode;switch(r){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":r+=(e=>{const{options:t}=e,n="general"===t?.mode,r="fixed_value"===t?.modifier?.type,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${hh(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${hh(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${hh(t.firstValue?.field)})`):(i=`${hh(e.field)}`,a=`${t.firstValue?.aggregator}(total ${hh(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${hh(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${hh(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case"clear_selection":r+=t.get("Object.FilterLabel.All");break;default:r+=e.options?.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==r&&(r=r.replace(/^"|"$/g,""),e.exclude&&(r=`${n} ${r}`)),{field:e.field,label:r}}).filter(e=>""!==e.label)},aC=(e,t)=>iC(e,t).map(e=>`${e.field}: ${e.label}`).join("; "),sC=e=>vs((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 lC({styles:e,children:t}){return(0,Jo.jsx)(js,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"},children:t})}n.dn(sC);const cC=function({layout:e,translator:t,filtersFootnoteString:n,footerStyle:r,isRtl:o}){const i=iC(e?.filters??[],t),a={color:r?.color,fontFamily:r?.fontFamily,fontSize:r?.fontSize,fontWeight:r?.fontWeight};return(0,Jo.jsx)(oh,{title:n,children:(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",sx:{backgroundColor:r?.backgroundColor,padding:r?.padding,borderTop:r?.borderTop},"data-testid":"filters-footnote",justifyContent:o?"flex-end":"flex-start",children:[(0,Jo.jsxs)(es,{sx:{display:"flex"},children:[(0,Jo.jsx)(sC,{style:{fontSize:"12px",color:r.color,margin:"auto"}}),(0,Jo.jsxs)(lC,{styles:{...a,marginLeft:"2px"},children:[t.get("Object.FiltersApplied"),"  "]})]}),(0,Jo.jsx)(es,{sx:{display:"flex"},children:i.map(e=>(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",children:[(0,Jo.jsx)(lC,{styles:{...a,fontWeight:"bold"},children:`${e.field}:`}),(0,Jo.jsxs)(lC,{styles:a,children:["   ",e.label,"  "]})]},`${e.field}-${e.label}`))})]})})},uC="Footer-itemStyle",dC=Za(es)(()=>({[`& .${uC}`]:{minWidth:0,width:"100%"}})),pC="njs-cell-footer",fC=function({layout:e,titleStyles:t={},translator:n,flags:r,isCardTheme:o,isRtl:i}){const a=t.footer,s=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,l=aC(e?.filters??[],n),c=!e?.footnote&&s&&l,u=r?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),d=o?"1px":"6px";return e&&e.showTitles&&(e.footnote||c)?(0,Jo.jsx)(dC,{container:!0,children:(0,Jo.jsxs)(es,{className:uC,"data-testid":pC,sx:{paddingTop:e=>u?d:e.spacing(1)},children:[e.footnote&&(0,Jo.jsx)(oh,{title:e.footnote,children:(0,Jo.jsx)(js,{noWrap:!0,variant:"body2",className:pC,style:a,align:i?"right":"left",children:e.footnote})}),c&&(0,Jo.jsx)(cC,{layout:e,translator:n,filtersFootnoteString:l,footerStyle:a,isRtl:i})]})}):null};class hC{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 mC=function({sn:e,snOptions:t,snPlugins:n,layout:r,appLayout:o,halo:i,cellId:s}){const{component:l}=e,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=(0,a.useContext)(fa),[h]=(0,a.useState)(()=>new hC),[m,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(0),[v,S,x]=cs(),[w,k]=(0,a.useState)(null),C=(0,a.useCallback)(e=>{e&&k(e)},[]);return(0,a.useEffect)(()=>{if(w)return l.created({options:t}),l.mounted(w),g(!0),()=>{h.stop(),l.willUnmount()}},[w,l]),(0,a.useEffect)(()=>{m&&w&&S&&(!l.isHooked&&r&&r.qSelectionInfo&&r.qSelectionInfo.qInSelections||h.schedule(()=>{const a=[];return d.passive||a.push("passive"),d.active||a.push("interact"),d.select||a.push("select"),d.edit||a.push("edit"),i.app&&i.app.session&&a.push("fetch"),Promise.resolve(l.render({layout:r,options:t,plugins:n,embed:i.public.nebbie,context:{constraints:d,interactions:p,theme:i.public.theme,appLayout:o,keyboardNavigation:f,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:r}),localeInfo:(o||{}).qLocaleInfo,permissions:a}}})).then(e=>{!1!==e&&(0===y&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),b(y+1))})}))},[S,t,n,w,x,r,o,c,u,d,p,m,f]),(0,Jo.jsx)("div",{ref:v,"data-render-count":y,style:{position:"relative",height:"100%"},className:"njs-viz",children:(0,Jo.jsx)("div",{ref:C,id:`${s}_content`,style:{position:"absolute",width:"100%",height:"100%"}})})},gC={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart","sn-table":"straightTableV2",waterfallchart:"waterfallChart","sn-tabbed-container":"tabContainer","sn-slider":"slider"};class yC extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const bC=["action-button","sn-nav-menu","filterpane","sn-shape"],vC=[...bC,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],SC=e=>-1===bC.indexOf(e),xC=e=>SC(e)?"10px 10px 0":"10px 0 0",wC=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])=>{wC.set(e,t)});const kC=wC,CC=(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 EC({delay:e=750}){const[t,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{const t=setTimeout(()=>n(!0),e);return()=>clearTimeout(t)},[]),t?(0,Jo.jsx)(Qk,{}):null}const LC=e=>!e.qError||7005===e.qError.qErrorCode,RC=e=>e&&e.qError&&7005!==e.qError.qErrorCode,PC=(e,t,n,r,o)=>[...Array(Math.max(e,t.length)).keys()].map(e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c=`${s?r:a?l||o:i&&t[e].qFallbackTitle||""}`,u=n(e);return{description:u?`${u}${c.length?":":""}`:null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}}),OC=e=>e&&(Array.isArray(e)?e:[e])||[],TC=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=PC(o,OC(a.qDimensionInfo||a.qItems),e=>r.dimensions.description(n,e,{}),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=PC(i,OC(a.qMeasureInfo),e=>r.measures.description(n,e,{}),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}};function IC(){return new(d())}const qC=(0,a.forwardRef)(({halo:e,model:t,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,currentId:s,emitter:l,navigation:c,onError:u},d)=>{const{app:p,types:f}=e,{nebbie:h}=e.public,{theme:m,translator:g,language:y,keyboardNavigation:b,externalFocusManagement:v,disableCellPadding:S=!1,navigation:x,queryParams:w}=(0,a.useContext)(fa),[k]=(0,a.useState)(l||IC),C=Uo(),[E,L,R]=cs(),[P,O]=(0,a.useReducer)(CC,{loading:!1,loaded:!1,longRunningQuery:!1,error:(T=o)?{title:T.message}:null,sn:null,visualization:null});var T;const[I,q]=(0,a.useState)(t),[j,{validating:M,canCancel:D,canRetry:_},N]=ss(I),[A]=ls(p),[$,z,F]=cs(),[B,W]=(0,a.useState)(n),[H,U]=(0,a.useState)(r),V=`njs-cell-${s}`,[G]=lg(p,I,[`#${V}`,".njs-action-toolbar-popover"]),[K,J]=(0,a.useState)(!1),X=(0,a.useRef)({enter:null,leave:null}),{titleStyles:Z,bgColor:Y,bgImage:Q,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:t,app:n,themeName:r,disableThemeBorder:o,queryParams:i})=>{const{hostConfig:s}=(0,a.useContext)(fa),l=(0,a.useMemo)(()=>{if(e&&t){const a=e.components?e.components.find(e=>"general"===e.key):null,l=(r=e.visualization,gC[r.toLowerCase()]?gC[r.toLowerCase()]:r),c={main:Bv(a,"main",t,l),footer:Bv(a,"footer",t,l),subTitle:Bv(a,"subTitle",t,l)},u=zv(a,t,l),d=$v(a,n,i,s?.host),p=function(e,t,n,r){const o=_v(e?.borderColor,"","borderColor",t,n);let i=e?.borderWidth;return!i&&!r&&(i=Dv("","borderWidth",t,n)),i&&o?`${i} solid ${o}`:void 0}(a,t,l,o),f=function(e,t,n){return e?.borderRadius||Dv("","borderRadius",t,n)}(a,t,l);return{titleStyles:c,bgColor:u,bgImage:d,border:p,borderRadius:f,boxShadow:Fv(a,t,l)}}var r;return{}},[e,t,n,r,o]);return l})({layout:j,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:B?.disableThemeBorder,queryParams:w}),re=!("rtl"!==B?.direction),oe=(0,a.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,a.useEffect)(()=>{ag(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&F&&F.focus())},oe.current.refocusContent=()=>{P.sn.component&&"function"==typeof P.sn.component.focus&&P.sn.component.focus()}},[]),(0,a.useEffect)(()=>{if(o)return void i();if(!A||!j)return;if(P.visualization===j.visualization&&P.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},r)=>{const{hasUnfulfilledErrors:o,aggMinD:i,aggMinM:a,hasLayoutErrors:s,layoutErrors:l}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=OC(f.qDimensionInfo||f.qItems),m=OC(f.qMeasureInfo),g=h.filter(LC),y=m.filter(LC);if(o+=d,i+=p,(g.length<d||y.length<p)&&(r=!0),r=r||h.some(RC)||m.some(RC),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,n,t),c=[],u=[];let d=null;for(let i=0;i<n.length;++i){const a=n[i];if(!s&&o){const n=d||await r.getProperties();d=n;const o=TC(e,t,n,a);c.push(...o.reqDimErrors),u.push(...o.reqMeasErrors)}}const p=c.filter(e=>!(e.missing||e.error)).length,f=e.get("Visualization.Incomplete.Dimensions",[p,i]),h=u.filter(e=>!(e.missing||e.error)).length,m=e.get("Visualization.Incomplete.Measures",[h,a]),g=[{title:f,descriptions:[...c]},{title:m,descriptions:[...u]}],y=s?l:g;return[s||o,{title:s?l[0].title:e.get("Visualization.Incomplete"),data:y}]})(g,j,e.generator.qae.data,I);O(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const r=e&&e.component&&e.component.selections;if(r&&r.id&&n.id&&r.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!r.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;r.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||r.isModal()&&r.noModal()}})({sn:P.sn,layout:j,model:I})})(P.sn);const e=f.getSupportedVersion(j.visualization,j.version);return(async(e,t)=>{O({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:r,model:o,app:i,selections:a,nebbie:s,focusHandler:l,emitter:c,onMount:u,navigation:d})=>{try{const p=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:r}),f=p.create({model:o,app:i,selections:a,nebbie:s,focusHandler:l,emitter:c,navigation:d});f&&(e({type:"LOADED",sn:f,visualization:n}),u())}catch(t){e(r?{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}?`}}),u()}})({dispatch:O,types:f,visualization:e,version:t,model:I,app:p,selections:G,nebbie:h,focusHandler:oe.current,emitter:k,onMount:i,navigation:c??x})})(j.visualization,e),()=>{}},[f,P.sn,I,G,j,A,y]),(0,a.useEffect)(()=>{if(!M)return;const e=setTimeout(()=>O({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[M]),(0,a.useImperativeHandle)(d,()=>({getQae:()=>P.sn.generator.qae,getExtensionDefinition:()=>P.sn.generator.definition.ext,support(e,t,n){if(j&&P.loaded&&!P.error){const r=t||P.sn.generator.definition.ext?.support;if(r)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,r,n||j)}return!1},toggleFocus(e){"function"==typeof P.sn.component.focus&&(e?P.sn.component.focus():P.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:W,setSnPlugins:U,setModel:q,getImperativeHandle:()=>P.sn?.component&&"function"==typeof P.sn.component.getImperativeHandle?P.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>P.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=L;let n=JSON.parse(JSON.stringify(j));return"function"==typeof P.sn.component.setSnapshotData&&(n.snapshotData||(n.snapshotData={}),n=await P.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:g.language(),theme:C.name,appLayout:A,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)},getHypercubePath:()=>P.sn.generator.definition.ext?.options?.hypercubePath}),[P.sn,z,L,j,C.name,A]);let ie=null;P.loading&&!P.longRunningQuery?ie=(0,Jo.jsx)(EC,{}):P.error?(u&&u(P.error.errorObject?P.error.errorObject:new yC(P.error.title)),ie=(0,Jo.jsx)(Bk,{...P.error})):P.loaded&&(ie=(0,Jo.jsx)(mC,{sn:P.sn,halo:e,snOptions:B,snPlugins:H,layout:j,appLayout:A,cellId:s},j.visualization));const ae=!!e.public.theme?.getStyle("","","_cards"),se=e.public.galaxy?.flags;let le,ce;S?(le=!1,ce=void 0):se?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(le=!1,ce=(({layout:e,isError:t,isCardTheme:n,titleStyles:r,translator:o})=>{if(n){const n=e?.showTitles&&!!e?.title,i=e?.showTitles&&!!e?.subtitle,a=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,s=e?.visualization,l=aC(e?.filters??[],o),c=!e?.footnote&&a&&l,u=e?.showTitles&&(!!e?.footnote||c);let d;return n&&(r.main.padding=xC(s)),i&&(r.subTitle.padding=((e,t)=>{const n=SC(e);return t?n?"0 10px":"0":xC(e)})(s,n)),u&&(-1===bC.indexOf(s)&&(r.footer.borderTop="1px solid #d9d9d9"),r.footer.padding="6px 10px"),(t||-1===vC.indexOf(s))&&(d=`${n||i?"0":"10px"} 10px ${u?"0":"5px"}`),d}})({layout:j,isError:P.error,isCardTheme:ae,titleStyles:Z,translator:g})):(le=!0,ce=void 0);const ue=kC.get(j?.visualization),de=g.get(ue);return(0,Jo.jsxs)(Gc,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Y||"unset",backgroundImage:Q&&Q.url?`url(${Q.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:Q&&Q.size,backgroundPosition:Q&&Q.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:E,id:V,onMouseEnter:()=>{X.current.leave&&clearTimeout(X.current.leave),X.enter||(X.current.enter=setTimeout(()=>{J(!0),X.current.enter=null},250))},onMouseLeave:()=>{X.current.enter&&clearTimeout(X.current.enter),X.current.leave||(X.current.leave=setTimeout(()=>{J(!1),X.current.leave=null},750))},children:[(0,Jo.jsxs)(es,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:C.spacing(1)}:{},...P.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${s}_title ${s}_type ${s}_content`,children:[j&&(0,Jo.jsx)("div",{id:`${s}_type`,style:eC,"aria-label":de??j.visualization}),R&&j&&P.sn&&(0,Jo.jsx)(oC,{layout:j,sn:P.sn,anchorEl:R,hovering:K,focusHandler:oe.current,titleStyles:Z,isRtl:re,id:s,translator:g,children:" "}),(0,Jo.jsx)(es,{tabIndex:b&&!v?0:-1,onKeyDown:b&&!v?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(s)}:null,size:"grow",className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:$,children:ie}),R&&j&&P.sn&&(0,Jo.jsx)(fC,{layout:j,titleStyles:Z,translator:g,flags:se,isCardTheme:ae,isRtl:re})]}),P.longRunningQuery&&(0,Jo.jsx)(Yk,{canCancel:D,canRetry:_,api:N})]})}),jC=qC;function MC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function DC(e="/",t,n){const r=[];return Object.keys(t).forEach(o=>{const i=t[o];var a,s;"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?(a=i,s=n[o],(MC(a)&&MC(s)?JSON.stringify(a)===JSON.stringify(s):!Array.isArray(a)&&!Array.isArray(s)&&a===s)||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):r.push(...DC(`${e}${o}/`,t[o],n[o]))}),r}function _C(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 NC=(e,t,n)=>{if(!e)return Promise.resolve();let r=nw.generate(t,n);return G()(!0,t,n),r&&r.length?(r=r.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},AC=()=>{};async function $C(e,t,n,r,o,i=async()=>{}){const{onRender:s,onError:l}=t,c=function({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:s=()=>{}}={}){let l,c,u,p=AC,f=null,h=null,m=null,g=null,y=!1;const b=new Promise(e=>{m=e}),v=new Promise(e=>{g=e}),S=e=>()=>{e?.(),g(),i(),y=!0};let x={},w=[];const k=new(d());let C={};t.context?.enablePrivateExperimental&&(C={support:e=>!(!h||!y)&&f.current.support(e,c?.support,u),getPropertyPanelDefinition:()=>!(!h||!y)&&(c?c.definition:f.current.getExtensionDefinition().definition),async getHypercubePropertyHandler(){await v;const t=f.current.getExtensionDefinition(),n=t.data,r=await e.getEffectiveProperties();if(n){const o={app:e.app,dimensionDefinition:n.dimensions,measureDefinition:n.measures,dimensionProperties:r.qHyperCubeDef?.qDimensions?.[0]||Bx.getDefaultDimension(),measureProperties:r.qHyperCubeDef?.qMeasures?.[0]||Bx.getDefaultMeasure(),globalChangeListeners:void 0,path:f.current.getHypercubePath()};return"function"==typeof t.propertyHandler?t.propertyHandler(o):new Pk(o)}},toggleFocus(e){f.current.toggleFocus(e)},setOnBlurHandler(e){f.current.setOnBlurHandler(e)},onContextMenu:(...e)=>f.current.onContextMenu(...e)});const E={id:e.id,model:e,async destroy(){await o(),p(),p=AC},async convertTo(n,r=!0,o=!1){if(r){if((i=await e.getLayout())&&!i.qHasSoftPatches&&!i.qExtendsId&&(i.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const r=await Ux({halo:t,model:e,cellRef:f,newType:n});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,r.qProperty),r}const r=await e.getEffectiveProperties(),a=await Ux({halo:t,model:e,cellRef:f,newType:n,properties:r}),s=a.qProperty;return await NC(e,r,s),a}var i;return await Ux({halo:t,model:e,cellRef:f,newType:n})},async toggleDataView(n){let r;if(l||!1===n)l&&!0!==n&&(r=e,await t.app.destroySessionObject(l),l=void 0,c=void 0,u=void 0);else{let n=t.context.dataViewType;const o=await e.getEffectiveProperties();if(!t.types.getSupportedVersion(n)){if(!t.types.getSupportedVersion("table"))throw new Error("No data view type registered");n="table"}const i=await Ux({halo:t,model:e,cellRef:f,newType:n,properties:o,viewDataMode:!0});r=await t.app.createSessionObject(i.qProperty),l=r.id,c=f.current.getExtensionDefinition(),u=await e.getLayout()}r&&f.current.setModel(r)},get viewDataToggled(){return void 0!==l},addListener(e,t){k.addListener(e,t)},removeListener(e,t){k.removeListener(e,t)},getImperativeHandle:async()=>(await v,f.current.getImperativeHandle()),takeSnapshot:async()=>(await v,f.current.takeSnapshot()),...C,__DO_NOT_USE__:{mount(o){if(h)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=o,[p,f]=function({halo:e,element:t,model:n,initialSnOptions:r,initialSnPlugins:o,onMount:i,emitter:s,initialError:l,navigation:c,onError:u}){const{root:d}=e,p=a.createRef(),f=AS(),h=ba.createPortal((0,Jo.jsx)(jC,{ref:p,halo:e,model:n,currentId:f,initialSnOptions:r,initialSnPlugins:o,initialError:l,onMount:i,emitter:s,navigation:c,onError:u}),t,f),m=()=>{d.remove(h),n.removeListener("closed",m)};return n.on("closed",m),d.addCell(f,p),(async()=>{try{await d.add(h,m)}catch(e){m(),i(),u(e)}})(),[m,p]}({halo:t,element:o,model:e,initialSnOptions:x,initialSnPlugins:w,initialError:r,onMount:m,emitter:k,navigation:n,onError:s}),b},async applyProperties(t){const n=DC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await b,f.current.setSnOptions({...x,...e,onInitialRender:S(t)})})():x={...x,...e,onInitialRender:S(t)}})(e)},plugins(e){(async e=>{_C(e),h?(async()=>{await b,f.current.setSnPlugins(e)})():w=e})(e)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>e,convert:{async toType(n){const r=await e.getEffectiveProperties(),o=await Ux({halo:t,model:e,cellRef:f,newType:n,properties:r}),i=o.qProperty;return await NC(e,r,i),o},async revert(){await e.clearSoftPatches()}}}};return E}({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:s,onError:l});return c.__DO_NOT_USE__.options(t.options||{}),t.plugins&&c.__DO_NOT_USE__.plugins(t.plugins),t.element&&await c.__DO_NOT_USE__.mount(t.element),c}async function zC({type:e,version:t,fields:n,properties:r,extendProperties:o},i,a,s){let l={};const c=[],{modelStore:u}=s;try{const a=i.types.get({name:e,version:t});l=await a.initialProperties(r,o);const s=await a.supernova();n&&await Tx({sn:s,properties:l,fields:n,children:c},i),r&&s&&s.qae.properties.onChange&&s.qae.properties.onChange.call({},l)}catch(t){l=a?null:{qInfo:{qType:e},visualization:e}}if(!a){const e=await i.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),u.set(e.id,e),e}return l}function FC(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 BC=(0,a.forwardRef)(({model:e,halo:t,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,unmount:s,navigation:l,onError:c},u)=>{const{root:d}=t,[p,f]=(0,a.useState)(e),[h]=ss(p),{theme:m,modelStore:g}=(0,a.useContext)(fa),[y,b]=(0,a.useState)([]),[v,S]=(0,a.useState)(void 0),[x,w]=(0,a.useState)(void 0),[k,C]=(0,a.useState)(""),E=(0,a.useRef)({cellCount:0,cellsRendered:0,initialRender:!1});l?.setCurrentSheetId?.(p.id),(0,a.useEffect)(()=>{if(h){const e=JSON.stringify(h.cells);if(e===k)return;C(e);const r=async()=>{y.forEach(e=>{d.removeCell(e.currentId)});const e=h.cells;E.cellCount=e.length,E.cellsRendered=0;const r=()=>{E.cellsRendered++,E.cellsRendered!==E.cellCount||E.initialRender||(E.initialRender=!0,n.onInitialRender())},{columns:o,rows:i}=h,s=await Promise.all(e.map(async e=>{let s;const l=new Promise(e=>{s=e}),c=y.find(t=>t.id===e.name);if(c)return c.bounds=FC(e,o,i),delete c.mountedPromise,c;const u=await async function({id:e,options:t,plugins:n,element:r},o,i){const{modelStore:a,rpcRequestModelStore:s}=i,l=`${e}`;let c=s.get(l);c||(c=o.app.getObject(e),s.set(l,c));const u=await c;return a.set(l,u),$C(u,{options:t,plugins:n,element:r},o)}({id:e.name},t,g);return{model:u.model,id:e.name,bounds:FC(e,o,i),cellRef:a.createRef(),currentId:AS(),mounted:s,mountedPromise:l,options:{...n,onInitialRender:r}}}));s.forEach(e=>d.addCell(e.currentId,e.cellRef)),b(s)};r()}},[h]),(0,a.useEffect)(()=>{const e=()=>{p.removeListener("closed",e),s()};return p.on("closed",e),()=>p.removeListener("closed",e)},[p]);const L=(0,a.useMemo)(()=>y?y.map(e=>function(e,t,n,r,o,i,a,s){const{x:l,y:c,width:u,height:d}=e.bounds,p={left:`${l}%`,top:`${c}%`,width:`${u}%`,height:`${d}%`,position:"absolute"},f=t.public.galaxy?.flags;return f?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(p.boxSizing="border-box",p.padding="4px"),(0,Jo.jsx)("div",{style:p,children:(0,Jo.jsx)(jC,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:s})},e.model.id)}(e,t,e.options,r,o,e.mounted,l,c)):[],[y]);(0,a.useEffect)(()=>{const e=h?.components?h.components.find(e=>"general"===e.key):null;S(zv(e,t.public.theme)),w($v(e,t.app))},[h,t.public.theme,t.app,m]),(0,a.useImperativeHandle)(u,()=>({setModel:f}),[]);const R=!h||void 0===h.height||Number.isNaN(h.height)?"100%":`${Number(h.height)}%`,P=y.map(e=>e.mountedPromise),O=P.filter(e=>!!e);return O.length&&Promise.all(P).then(()=>{i()}),(0,Jo.jsx)("div",{className:"njs-sheet",style:{width:"100%",height:R,position:"relative",backgroundColor:v,backgroundImage:x&&x.url?`url(${x.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:x&&x.size,backgroundPosition:x&&x.pos},children:L})}),WC=BC,HC=()=>{};async function UC({id:e,options:t,plugins:n,element:r,onRender:o,onError:i,navigation:s},l,c){const{modelStore:u,rpcRequestModelStore:d}=c,p=`${e}`;let f=d.get(p);f||(f=l.app.getObject(e),d.set(p,f));const h=await f;u.set(p,h);const m=s||("sheet"===h.genericType?function(e,t,n){const{galaxy:r}=e.public;if(r.anything?.sense?.navigation)return r.anything?.sense?.navigation;const o={model:n},i={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:r,rpcRequestModelStore:a}=t,s=`${n}`;let l,c=a.get(s);c||(c=e.app.getObject(n),a.set(s,c));try{if(l=await c,"sheet"!==l.genericType)return}catch(e){return}r.set(s,l),o.sheetRef?.current?.setModel?.(l),o.model=l,i.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return ag(i),i}(l,c,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o,i=async()=>{}){const{onRender:s,onError:l}=t,c=function({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:s=()=>{}}={}){let l=HC,c=null,u=null,d=null,p=null;const f=new Promise(e=>{d=e}),h=new Promise(e=>{p=e}),m=e=>()=>{e?.(),p(),i()};let g={},y=[];const b={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,c.current.getImperativeHandle()),async destroy(){await o(),l(),l=HC},__DO_NOT_USE__:{mount(o){if(u)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return u=o,[l,c]=function({halo:e,element:t,model:n,initialSnOptions:r,initialSnPlugins:o,onMount:i,initialError:s,navigation:l,onError:c}){const{root:u}=e,d=a.createRef();let p;const f=()=>{u.remove(p)};return p=ba.createPortal((0,Jo.jsx)(WC,{ref:d,halo:e,model:n,initialSnOptions:r,initialSnPlugins:o,initialError:s,onMount:i,unmount:f,navigation:l,onError:c}),t,n.id),l.setSheetRef(d),u.add(p,f),[f,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:y,initialError:r,onMount:d,navigation:n,onError:s}),f},async applyProperties(t){const n=DC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await f,c.current.setSnOptions({...g,...e,onInitialRender:m(t)})})():g={...g,...e,onInitialRender:m(t)}})(e)},plugins(e){(async e=>{_C(e),u?(async()=>{await f,c.current.setSnPlugins(e)})():y=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return b}({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:s,onError:l});return t.options&&c.__DO_NOT_USE__.options(t.options),t.plugins&&c.__DO_NOT_USE__.plugins(t.plugins),t.element&&await c.__DO_NOT_USE__.mount(t.element),c}(h,{options:t,plugins:n,element:r,onRender:o,onError:i},l,m):$C(h,{options:t,plugins:n,element:r,onRender:o,onError:i},l,m)}function VC(e={}){return{isEnabled:t=>!0===e[t]}}n.dn(VC);var GC=n(77843),KC=n.n(GC);const JC={};function XC(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let r,o;const{meta:i}=n,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||KC()(e,i.deps.properties),supernova:()=>async function(e,t,{config:n},r){const o=`${e}__${t}`;if(!JC[o]){const i=`${e}${t&&` v${t}`||""}`;if(r&&"function"!=typeof r)throw new Error(`load of visualization '${i}' is not a fuction, wrap load promise in function`);const a=(r||n.load)({name:e,version:t}),s=Promise.resolve(a);JC[o]=s.then(e=>{if(!e)throw new Error(`load() of visualization '${i}' resolved to an invalid object`);return e}).catch(e=>{throw console.warn(e),new yC(`Failed to load visualization: '${i}'`,e)})}return JC[o]}(a.name,a.version,t,n.load).then(e=>(r=r||Mk(e,t.public.galaxy),o=JSON.stringify(r.qae.properties.initial),r)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n={qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0,...JSON.parse(o)};return t?(G()(!0,n,e),n):{...n,...e}})}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter(e=>"undefined"===e);return[...t,...e.filter(e=>"undefined"!==e).map(e=>e.split(".").map(e=>parseInt(e,10))).sort((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]).map(e=>e.join("."))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--)if(n[r[t]].supportsPropertiesVersion(e))return r[t];return null},versions:n}}const ZC={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())}};ZC.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const YC=(e={},t={})=>({...e,...t}),QC=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t),eE=function e(t={}){const n=function(e){const t=l({initial:e});return Object.keys(c).forEach(e=>{t.translator.add(c[e])}),{translator:t.translator}}(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let s={...t.context,translator:n.translator,hostConfig:t.hostConfig};const[l,c]=function({app:e,context:t}){let n,r=!1;const o=new Promise(e=>{n=e}),i=a.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","7.3.0"),s.setAttribute("data-app-id",e.id),document.body.appendChild(s),t&&ma(t);const l=function(e){const[t,n]=ga({}),[r,o]=ga({}),[i,a]=ga({}),[s,l]=ga({}),[c,u]=ga({}),[,d]=ga({}),p=({type:e,value:t})=>{const r=d.get(t.id);d.set(t.id,{});const i=()=>{o.clear(t.id),u.set(t.id,{}),u.dispatch(!0)},s=()=>{t.removeListener("closed",s),t.removeListener("changed",i),n.clear(t.id),o.clear(t.id),a.clear(t.id),l.clear(t.id),u.clear(t.id),d.clear(t.id)};return"SET"===e&&(r||(t.on("changed",i),t.once("closed",s))),s},[f,h]=ga({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(e.id),c=function(e){const[t,n]=ga({}),[r,o]=ga({}),[i,a]=ga({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(e.id),u=ve.createRoot(s);u.render((0,Jo.jsx)(ya,{ref:i,initialContext:t,renderCallback:n,modelStore:l,selectionStore:c}));const d={},p=[],f=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach(t=>{d[t].current?.toggleFocus(t===e)})},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add:(e,t)=>(async()=>{await o,f.push(e),p.push(t),i?.current?.setComps(f)})(),remove(e){r||(async()=>{await o;const t=f.indexOf(e);-1!==t&&(p[t]?.(),f.splice(t,1),p.splice(t,1)),i?.current?.setComps(f)})()},setMuiThemeName(e){(async()=>{await o,i?.current?.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&ma(e),i?.current?.setContext(e)})()},destroy(){r=!0,p.forEach(e=>{e&&e()}),l.destroy(),u.unmount(),document.body.removeChild(s)}},l,c,i,o]}({app:e,context:s}),u=function({themes:e=[],loadTheme:t,root:n}={}){const r=ye();return{setTheme:async o=>{let i=e.filter(e=>e.id===o)[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),be(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){console.error(e)}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});s.themeApi=u.externalAPI;const d={galaxy:{translator:n.translator,theme:u.externalAPI,flags:VC(t.flags),deviceType:(h=t.context.deviceType,"auto"!==h?h: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:t.hostConfig,anything:t.anything},theme:u.externalAPI,translator:n.translator,nebbie:null},p={app:e,root:l,config:t,public:d,context:s,types:null},f=function({halo:e,parent:t}){const n={},r=t||{get:()=>{}};return{register:(t,r)=>{n[t.name]||(n[t.name]=XC(t.name,e)),n[t.name].register(t.version,r)},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)||r.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(JC).forEach(t=>{t.split("__")[0]===e&&(JC[t]=void 0)})}(e)}}}({halo:p});var h;t.types.forEach(e=>f.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let m=new Promise(e=>{(async()=>{if(await u.setTheme(t.context.theme),t.hostConfig&&i&&i.getWebResourceAuthParams){const{queryParams:e}=await i.getWebResourceAuthParams({hostConfig:t.hostConfig});s.queryParams=e,l.context(s)}})().then(e)}),g=null,y=null;const b={render:async e=>{await m,e.signal?.throwIfAborted();const t=e.id?UC(e,p,c):async function({type:e,version:t,fields:n,properties:r,options:o,plugins:i,element:a,extendProperties:s,navigation:l,onRender:c,onError:u},d,p){let f={};const h=[],{modelStore:m,subscribe:g}=p;let y;try{const o=d.types.get({name:e,version:t});f=await o.initialProperties(r,s);const i=await o.supernova();n&&await Tx({sn:i,properties:f,fields:n,children:h},d),r&&i&&i.qae.properties.onChange&&i.qae.properties.onChange.call({},f)}catch(t){y=t,f={qInfo:{qType:e},visualization:e}}const b=await d.app.createSessionObject(f);h.length>0&&await b.setFullPropertyTree({qProperty:f,qChildren:h}),m.set(b.id,b);const v=g(b);return $C(b,{options:o,plugins:i,element:a,onRender:c,onError:u},d,l,y,async()=>{await d.app.destroySessionObject(b.id),v()})}(e,p,c);if(e.signal){const n=()=>{t.then(e=>e?.destroy()).catch(()=>{})};return e.signal.addEventListener("abort",n,{once:!0}),function(e,t){if(!t)return e;let n;"function"==typeof t.throwIfAborted&&t.throwIfAborted();const r=new Promise((e,t)=>{n=t}),o=()=>n?.(t.reason);return t.addEventListener("abort",o,{once:!0}),Promise.race([e,r]).finally(()=>{t.removeEventListener("abort",o)})}(t,e.signal).finally(()=>{e.signal.removeEventListener("abort",n)})}return t},destroy:async()=>{l.destroy()},create:async e=>zC(e,p,!1,c),generateProperties:async e=>zC(e,p,!0,c),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==s[n]&&(t||(t={}),t[n]=e[n])}),t&&(s={...s,...t,translator:n.translator},t.theme&&(await m,m=u.setTheme(t.theme),await m),t.language&&p.public.translator.language(t.language),l.context(s))},selections:async()=>(g||(g={mount(t){y?console.error("Already mounted"):(y=function({element:e,app:t}){return ba.createPortal((0,Jo.jsx)($S,{app:t}),e,AS())}({element:t,app:e}),l.add(y))},unmount(){y&&(l.remove(y),y=null)}}),g),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i,s={}){if(!i)throw new Error(`Element for ${r||n} not provided`);if(this._instance)throw new Error(`Field or object ${r||n} already mounted`);const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise(r=>{[this._instance,this._ref]=function({element:e,app:t,fieldIdentifier:n,qId:r,stateName:o="$",options:i={},renderedCallback:s,flags:l}){const c=a.createRef();return[ba.createPortal((0,Jo.jsx)(Sx,{ref:c,app:t,element:e,fieldIdentifier:n,qId:r,stateName:o,initialOptions:i,renderedCallback:s,flags:l}),e,AS()),c]}({element:i,app:e,fieldIdentifier:t,qId:n,options:vx({onSelectionActivated:c,onSelectionDeactivated:u,...s}),stateName:s.stateName||"$",renderedCallback:r,flags:p.public.galaxy.flags}),l.add(this._instance)})},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>o.emit("selectionActivated"),n=()=>o.emit("selectionDeactivated");if(o._ref?.current){const r=vx({onSelectionActivated:t,onSelectionDeactivated:n,...e});o._ref.current.setOptions(r)}}}};return ag(o),o},getRegisteredTypes:f.getList,__DO_NOT_USE__:{types:f,popover(t,n,r){b._popoverInstance&&(l.remove(b._popoverInstance),b._popoverInstance=null);const o=((e={})=>{const t={...xx};return G()(!0,t,e),t})({onPopoverClose:()=>b.emit("fieldPopoverClose"),...r});b._popoverInstance=a.createElement(wx,{element:t,key:AS(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(b._popoverInstance)}}};return p.public.nebbie=b,p.types=f,ag(b),b}return r.createConfiguration=n=>e(((e,t)=>({context:YC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:QC(e.types,t.types),themes:QC(e.themes,t.themes),flags:YC(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:YC(e.anything,t.anything)}))(t,n)),r.config=t,r}(ZC),tE=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},nE=globalThis.crypto||{getRandomValues:()=>123456},rE=function(e){return t=>{const n=G()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^nE.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const r=n._mock;let o=n;return r&&(delete n._mock,o=G()({},n,r)),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})}},oE=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,iE=(e,{defaultValue:t,async:n=!0,delay:r=0}={})=>(...o)=>{const i=oE(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(i),r)}):i},aE=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function sE(e){return!aE.includes(e)}function lE(e){const t=oE(e.getLayout);return t.qInfo&&t.qInfo.qId}function cE(e,t){let n=lE(e);const{delay:r}=t,{id:o,session:i,...a}=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 s={id:n,session:oE(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(a).reduce((e,[t,n])=>({...e,[t]:iE(n,{async:sE(t),delay:r})}),{}),genericType:e.type};return{[n]:s}}function uE(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!lE(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const dE=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(uE);const n=function(e,t){return e.reduce((e,n)=>({...e,...cE(n,t)}),{})}(e,t);return async e=>Promise.resolve(n[e])},pE=function(e){return()=>Promise.resolve({id:"app-layout",qLocaleInfo:e?.appLocaleInfo})},fE={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new tE,r=new rE(n),o=new dE(e,t),i=new pE(t),a={...t.appMethods||{},id:"app - "+ +Date.now(),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(a)}(e,t)},hE=fE,mE={generator:Mk,hook:Sw,theme:ye,locale:l};function gE(e){const i=async function(e){return await o(e),t?Promise.all([n.e(6567),n.e(2383)]).then(n.bind(n,12383)):(await r)("qix@v1",e)}(e.hostConfig).then(t=>t.openAppSession(e));return{getDoc:async()=>(await i).getDoc(),onWebSocketEvent(e){const t=i.then(t=>t.onWebSocketEvent(e));return()=>{t.then(e=>e())}},resume:async()=>(await i).resume(),close:async e=>(await i).close(e)}}n(62234);const yE=()=>{const e={};return window.location.search.substring(1).split("&").forEach(t=>{const n=t.indexOf("="),r=t.substr(0,n);let o=decodeURIComponent(t.substring(n+1));"cols"===r&&(o=o.split(",")),e[r]=o}),e},bE=/(wss?):\/\/([^/:?&]+)(?::(\d+))?/,vE=/\/app\/([^?&#:]+)/,SE=/(wss?):\/\/([^/:?&]+)(?::(\d+))?\/?([a-z0-9-._~]+)?/,xE=e=>{const t=bE.exec(e);if(!t)return{engineUrl:e,invalid:!0};let n;const r=e.trim();let o,i=r;const a=vE.exec(r);a&&([,n]=a,i=r.substring(0,a.index),o=r);const s=SE.exec(i);return s?{engine:{secure:"wss"===t[1],host:t[2],port:t[3]||void 0,prefix:s[4]||void 0,appId:n},engineUrl:i,appUrl:o}:{engineUrl:e,invalid:!0}},wE=()=>fetch("/info").then(e=>e.json()).then(async e=>{let t=e;const n=yE();if(n.engine_url?t={...t,...xE(n.engine_url)}:n.app&&(t={...t,engine:{...t.engine,appId:n.app}}),n["qlik-web-integration-id"]&&(t.webIntegrationId=n["qlik-web-integration-id"]),n["qlik-client-id"]&&(t.clientId=n["qlik-client-id"]),t.invalid)return t;const r=`${t.engine.secure?"https":"http"}://${t.engine.host}`;return{...t,rootPath:r}}),kE=new Map,CE=[],EE=CE.map,LE=CE.some,RE=CE.hasOwnProperty,PE=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,OE=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,TE=/(?:\.[^/]*|\/)$/;class IE extends Error{constructor(e){super(e)}}function qE(e){const t=PE.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function jE(e){const t=new Map,n=o(null);function r(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise((t,n)=>{const r=document.createElement("script");r.onload=()=>{try{t(CE.pop()(o(e)))}catch(e){n(new IE("invalid module"))}r.remove()},r.onerror=()=>{n(new IE("unable to load module")),r.remove()},r.async=!0,r.src=e,window.define=NE,document.head.appendChild(r)})),n}function o(t){return n=>Promise.resolve(e(n,t)).then(r)}function i(e){return arguments.length>1?Promise.all(EE.call(arguments,n)).then(ME):n(e)}return i.alias=function(t){return jE((n,r)=>n in t&&(r=null,"string"!=typeof(n=t[n]))?n:e(n,r))},i.resolve=e,i}function ME(e){const t={};for(const n of e)for(const e in n)RE.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:DE(n,e)}):t[e]=n[e]);return t}function DE(e,t){return()=>e[t]}function _E(e){return"exports"==(e+="")||"module"===e}function NE(e,t,n){const r=arguments.length;r<2?(n=e,t=[]):r<3&&(n=t,t="string"==typeof e?[]:e),CE.push(LE.call(t,_E)?e=>{const r={},o={exports:r};return Promise.all(EE.call(t,t=>"exports"==(t+="")?r:"module"===t?o:e(t))).then(e=>(n.apply(null,e),o.exports))}:e=>Promise.all(EE.call(t,e)).then(e=>"function"==typeof n?n.apply(null,e):n))}IE.prototype.name=IE.name,jE(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 r=kE.get(n);return r||kE.set(n,r=fetch(n).then(e=>{if(!e.ok)throw new IE("unable to load package.json");return e.redirected&&!kE.has(e.url)&&kE.set(e.url,r),e.json()})),r}return async function(r,o){if(r.startsWith(e)&&(r=r.substring(e.length)),/^(\w+:)|\/\//i.test(r))return r;if(/^[.]{0,2}\//i.test(r))return new URL(r,o??location).href;if(!r.length||/^[\s._]/.test(r)||/\s$/.test(r))throw new IE("illegal name");const i=qE(r);if(!i)return`${e}${r}`;if(!i.version&&null!=o&&o.startsWith(e)){const t=await n(qE(o.substring(e.length)));i.version=t.dependencies&&t.dependencies[i.name]||t.peerDependencies&&t.peerDependencies[i.name]}if(i.path&&!TE.test(i.path)&&(i.path+=".js"),i.path&&i.version&&OE.test(i.version))return`${e}${i.name}@${i.version}/${i.path}`;const a=await n(i);return`${e}${a.name}@${a.version}/${i.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),TE.test(t)?t:`${t}.js`}}(a)||"index.js"}`}}()),NE.amd={};const AE=(t,n)=>{const r=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=jE(async e=>r(e));return o.alias({"@nebula.js/stardust":e})(n||t)},$E={};function zE(e){const t=()=>{AE(e.supernova.name,e.supernova.url).then(t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,$E[n]&&$E[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=>AE(e.name,e.url).then(t=>{window[e.name]=t}));return Promise.all(t)}return Promise.resolve()}window.onHotChange=(e,t)=>($E[e]||($E[e]=[]),$E[e].push(t),window[e]&&t(),()=>{const n=$E[e].indexOf(t);$E[e].splice(n,1)});const FE=({type:e})=>({getLayout:{qInfo:{qId:+Date.now()},visualization:e}});const BE=e=>new Promise(t=>{const n=()=>{e.querySelector(".njs-viz")?requestAnimationFrame(n):t()};requestAnimationFrame(n)}),WE=(e,t)=>new Promise(n=>{const r=()=>{const o=e.querySelector(".njs-viz[data-render-count]");o&&parseInt(o.getAttribute("data-render-count"),10)>t?n():requestAnimationFrame(r)};requestAnimationFrame(r)}),HE=async e=>{const t=document.querySelector("#chart-container"),n=e.rerenders?parseInt(e.rerenders,10):0,r=await wE(),o=await async function(e){const t=window.serveFixtures.get(e);if(!t)throw new Error(`Unable to load fixture ${e}`);const n=t();return function({genericObjects:e}={}){if(!e||0===e.length)return;if(!e[0]||!e[0].getLayout)throw new Error("Invalid getLayout of generic object");const{getLayout:t}=e[0],n="function"==typeof t?t():t;if(!n.visualization)throw new Error('No "visualization" specified on generic object on path "getLayout"');if(!n.qInfo||!n.qInfo.qId)throw new Error('No "qId" specified on generic object on path "getLayout.qInfo')}(n),n}(e.fixture),{type:i,load:a,genericObjects:s,instanceConfig:l,snConfig:c,enigmaMockerOptions:u}=await async function({params:e,fixture:t,serverInfo:n}){const r=V(!0,{},(({themes:e=[],supernova:t={},flags:n,anything:r})=>{const o={instanceConfig:{themes:e.map(e=>({id:e,load:async()=>(await fetch(`/theme/${e}`)).json()})),context:{constraints:{}},flags:n,anything:r}};return t.name&&(o.type=t.name),(t.name||t.url)&&(o.load=async()=>AE(t.name,t.url)),o})(n),t,(e=>({instanceConfig:{context:{theme:e.theme,language:e.language,keyboardNavigation:e.keyboardNavigation}}}))(e));return r.genericObjects=r.genericObjects||[FE({type:r.type})],function(e){if(!e.type)throw new Error('No visualization type. Specify it either in fixture in the property "type" or as "--type" to Nebula serve.');if(!e.load)throw new Error('Unable to load the visualization. Specify it in option "--entry" to Nebula serve.')}(r),r}({fixture:o,params:e,serverInfo:r}),d=await hE.fromGenericObjects(s,u),p=function(e=[]){const{getLayout:t}=e[0];return("function"==typeof t?t():t).qInfo.qId}(s);let f=null;if(e.simulatedMemLeakKB){const n=parseFloat(e.simulatedMemLeakKB),r=Math.round(1024*n/48);f=await d.getObject(p);const o={};f.on=(e,t)=>{(o[e]=o[e]||[]).push(t)},f.once=(e,t)=>{const n=()=>{t(),f.removeListener(e,n)};f.on(e,n)},f.removeListener=(e,t)=>{o[e]&&(o[e]=o[e].filter(e=>e!==t))},f.emit=e=>{(o[e]||[]).forEach(e=>e())},t.leakStore=[];const i=f.getLayout.bind(f);f.getLayout=async()=>(t.leakStore.push(new Array(r).fill(null).map((e,t)=>({j:t,v:Math.random()}))),i())}const h=r&&r.types||[],m=eE(d,{types:[{name:i,load:a},...h.map(e=>({name:e.name,load:async()=>AE(e.name,e.url)}))],...l}),g=await m.render({type:i,element:t,id:p,...c});(c?.events||[]).forEach(e=>{g.addListener(e,e=>{document.querySelector("#events").innerHTML=e})});let y=g;n>0&&(await WE(t,0),await(async e=>{for(let n=0;n<e;n++){if(await y.destroy(),await BE(t),y=await m.render({type:i,element:t,id:p,...c}),await WE(t,0),f){const e=parseInt(t.querySelector(".njs-viz[data-render-count]").getAttribute("data-render-count"),10);f.emit("changed"),await WE(t,e)}t.setAttribute("data-render-count",String(n+1))}})(n))};window.addEventListener("load",function(){const e=yE();e.fixture?HE(e):e.snapshot?async function(){const e=await wE(),{themes:t,supernova:n}=e;await zE(e);const r=document.querySelector("#chart-container");r.classList.toggle("full",!0);const o=eE.createConfiguration({themes:t?t.map(e=>({key:e,load:async()=>(await fetch(`/theme/${e}`)).json()})):void 0,types:[{load:e=>Promise.resolve(window[e.name]),name:n.name}],context:{constraints:{passive:!0,active:!0}}});window.onHotChange(n.name,async()=>{const e=yE();!async function({embed:e,element:t,snapshot:n}){let r={};const o=e=>{t.innerHTML=`<p>${e.message}</p>`,t.setAttribute("data-njs-error",e.message)};try{r="string"==typeof n?await e.config.snapshot.get(n):n}catch(e){throw o(e),e}const{meta:{theme:i,language:a,appLayout:s},layout:l}=r,c=e=>({id:+new Date+"-object",getLayout:async()=>e,on(){},once(){}}),u={id:+new Date+"-app",createSessionObject:async e=>c(e),getObject:async e=>e===l.qInfo.qId?c(l):Promise.reject(new Error(`Could not find an object with id: ${e}`)),getAppLayout:async()=>s||{}},d=await e(u,{context:{theme:i,language:a}});try{await d.render(l.qInfo&&l.qInfo.qId?{id:l.qInfo.qId,element:t}:{type:l.visualization,element:t,properties:l})}catch(e){throw o(e||{message:"Failed to render visualization."}),e}}({embed:o,element:r,snapshot:e.snapshot})})}():async function(){const e=await wE();await zE(e),e.engine.appId||(location.href=location.origin);const t=yE(),n=await(async e=>{try{const{clientId:t,webIntegrationId:n,engine:r,engine:{host:o}}=await wE();return n?gE({appId:e,hostConfig:{authType:"cookie",webIntegrationId:n,host:o}}).getDoc():t?gE({appId:e,hostConfig:{authType:"oauth2",clientId:t,host:o,redirectUri:`${window.location.origin}/auth/login/callback`,accessTokenStorage:"session"}}).getDoc():gE({appId:e,hostConfig:{authType:"noauth",host:`${!1!==r.secure?"https":"http"}://${r.host}${r.port?`:${r.port}`:""}`}}).getDoc()}catch(e){throw new Error("Failed to open app!",{cause:e})}})(e.engine.appId),r=await(async({app:e,supernova:{name:t},themes:n,theme:r,language:o})=>{const i=eE.createConfiguration({themes:n?n.map(e=>({id:e,load:async()=>(await fetch(`/theme/${e}`)).json()})):void 0,context:{theme:r,language:o}});return i(e,{load:e=>Promise.resolve(window[e.name]),types:[{name:t}]})})({app:n,...e,theme:t.theme,language:t.language}),o=document.querySelector("#chart-container");let i,a;if(t["render-config"]){const n=await(await fetch(`/render-config/${t["render-config"]}`)).json();i={...n,...t.object?{id:t.object}:n.id?{id:n.id}:{},type:n.type?n.type:e.supernova.name,fields:t.cols?t.cols:n.fields,element:o}}else i=t.object?{id:t.object,element:o}:{type:e.supernova.name,fields:t.cols||[],element:o};window.onHotChange(e.supernova.name,async()=>{a&&(a.close(),r.__DO_NOT_USE__.types.clearFromCache(e.supernova.name),r.__DO_NOT_USE__.types.register(e.supernova)),a=await(async()=>{await r.render(i)})()})}()})})()})();
102
+ `:null,kl=Za("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Es(n.color)}`]]}})(Cs(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:xl||{animation:`${vl} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Cl=Za("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),El=Za("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Es(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Cs(({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:wl||{animation:`${Sl} 1.4s ease-in-out infinite`}}]}))),Ll=Za("circle",{name:"MuiCircularProgress",slot:"Track"})(Cs(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Rl=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:s,thickness:c,value:u,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Sa({root:["root",n,`color${Es(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Es(n)}`,o&&"circleDisableShrink"]},yl,t)})(f),m={},g={},y={};if("determinate"===d){const e=2*Math.PI*((bl-c)/2);m.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,Jo.jsx)(kl,{className:ti(h.root,r),style:{width:s,height:s,...g,...l},ownerState:f,ref:t,role:"progressbar",...y,...p,children:(0,Jo.jsxs)(Cl,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?(0,Jo.jsx)(Ll,{className:h.track,ownerState:f,cx:bl,cy:bl,r:(bl-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,(0,Jo.jsx)(El,{className:h.circle,style:m,ownerState:f,cx:bl,cy:bl,r:(bl-c)/2,fill:"none",strokeWidth:c})]})})}),Pl=Rl;function Ol(e){return ra("MuiIconButton",e)}const Tl=oa("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Il=Za(gl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Es(n.color)}`],n.edge&&t[`edge${Es(n.edge)}`],t[`size${Es(n.size)}`]]}})(Cs(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Cs(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Tl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Tl.loading}`]:{color:"transparent"}}))),ql=Za("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),jl=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...f}=n,h=Ms(u),m=p??(0,Jo.jsx)(Pl,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,loading:d,loadingIndicator:m,size:c},y=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Sa({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Es(r)}`,o&&`edge${Es(o)}`,`size${Es(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Ol,t)})(g);return(0,Jo.jsxs)(Il,{id:d?h:u,className:ti(y.root,i),centerRipple:!0,focusRipple:!l,disabled:s||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&(0,Jo.jsx)("span",{className:y.loadingWrapper,style:{display:"contents"},children:(0,Jo.jsx)(ql,{className:y.loadingIndicator,ownerState:g,children:d&&m})}),o]})}),Ml=jl,Dl=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"}}]}),_l=e=>vs(Dl(e));n.dn(_l);const Nl=function(e){return"string"==typeof e};function Al(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}const $l=Al;function zl(e){return e&&e.ownerDocument||document}const Fl=zl;function Bl(e){return zl(e).defaultView||window}const Wl=Bl;function Hl(e){return parseInt(a.version,10)>=19?e?.props?.ref||null:e?.ref||null}var Ul="unmounted",Vl="exited",Gl="entering",Kl="entered",Jl="exiting",Xl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Vl,r.appearStatus=Gl):o=Kl:o=t.unmountOnExit||t.mountOnEnter?Ul:Vl,r.state={status:o},r.nextCallback=null,r}Vs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ul?{status:Vl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Gl&&n!==Kl&&(t=Gl):n!==Gl&&n!==Kl||(t=Jl)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Gl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ba.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vl&&this.setState({status:Ul})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ba.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:Gl},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Kl},function(){t.props.onEntered(i,a)})})})):this.safeSetState({status:Kl},function(){t.props.onEntered(i)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ba.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Jl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Vl},function(){e.props.onExited(r)})})})):this.safeSetState({status:Vl},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ba.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ul)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ws(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(Gs.Provider,{value:null},"function"==typeof n?n(e,r):a.cloneElement(a.Children.only(n),r))},t}(a.Component);function Zl(){}Xl.contextType=Gs,Xl.propTypes={},Xl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zl,onEntering:Zl,onEntered:Zl,onExit:Zl,onExiting:Zl,onExited:Zl},Xl.UNMOUNTED=Ul,Xl.EXITED=Vl,Xl.ENTERING=Gl,Xl.ENTERED=Kl,Xl.EXITING=Jl;const Yl=Xl,Ql=e=>e.scrollTop;function ec(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function tc(e,t,n,r,o,i){const a="exited"!==e||t?n[e]||n.exited:r;return o||i?{...a,...o,...i}:a}function nc(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function rc(e){return`scale(${e}, ${e**2})`}const oc={entering:{opacity:1,transform:rc(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:rc(.75)},exited:{opacity:0,transform:rc(.75)}},ic={opacity:0,transform:rc(.75),visibility:"hidden"},ac=a.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",...g}=e,y=nl(),b=a.useRef(),v=Uo(),S=a.useRef(null),x=Ns(S,Hl(o),t),w=ec(S,u),k=ec(S,(e,t)=>{Ql(e);const{duration:n,delay:r,easing:o}=nc({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=v.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)}),C=ec(S,c),E=ec(S,f),L=ec(S,e=>{const{duration:t,delay:n,easing:r}=nc({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=v.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=rc(.75),d&&d(e)}),R=ec(S,e=>{e.style.transition="",p&&p(e)});return(0,Jo.jsx)(Yl,{appear:r,in:s,nodeRef:S,onEnter:k,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:E,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m,...g,children:(e,{ownerState:t,...n})=>{const r=tc(e,s,oc,ic,h,o.props.style);return a.cloneElement(o,{style:r,ref:x,...n})}})});ac&&(ac.muiSupportAuto=!0);const sc=ac,lc=function(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1},cc=function(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t},uc="data-mui-focusable",dc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pc(e){const t=[],n=[];return Array.from(e.querySelectorAll(dc)).forEach((e,r)=>{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:r,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 fc(){return!0}const hc=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=pc,isEnabled:s=fc,open:l}=e,c=a.useRef(!1),u=a.useRef(null),d=a.useRef(null),p=a.useRef(null),f=a.useRef(null),h=a.useRef(!1),m=a.useRef(null),g=_s(Hl(t),m),y=a.useRef(null);a.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),a.useEffect(()=>{if(c.current=!1,!l||!m.current)return;const e=zl(m.current),t=cc(e),n=((r=m.current)?r.hasAttribute(uc)?r:r.querySelector(`[${uc}]`):null)??m.current;var r;return lc(m.current,t)||(n.hasAttribute("tabIndex")||n.setAttribute("tabIndex","-1"),h.current&&n.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),a.useEffect(()=>{if(!l||!m.current)return;const e=zl(m.current),t=t=>{y.current=t,!r&&s()&&"Tab"===t.key&&cc(e)===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;const n=cc(e);if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(lc(t,n))return;if(r&&n!==u.current&&n!==d.current)return;if(n!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let o=[];if(n!==u.current&&n!==d.current||(o=i(m.current)),o.length>0){const e=Boolean(y.current?.shiftKey&&"Tab"===y.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{const t=cc(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,s,l,i]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return(0,Jo.jsxs)(a.Fragment,{children:[(0,Jo.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Jo.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})};function mc(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const gc=a.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=_s(a.isValidElement(n)?Hl(n):null,t);if(ii(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),ii(()=>{if(i&&!o)return mc(t,i),()=>{mc(t,null)}},[t,i,o]),o){if(a.isValidElement(n)){const e={ref:l};return a.cloneElement(n,e)}return n}return i?ba.createPortal(n,i):i}),yc=function(e,t,n){return void 0===e||Nl(e)?t:{...t,ownerState:{...t.ownerState,...n}}},bc=function(e,t,n){return"function"==typeof e?e(t,n):e},vc=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n},Sc=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},xc=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=ti(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=vc({...o,...r}),s=Sc(r),l=Sc(o),c=t(a),u=ti(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}};function wc(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=bc(d[e],o),{props:{component:m,...g},internalRef:y}=xc({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),b=_s(y,h?.ref,t.ref),v="root"===e?m||c:m;return[f,yc(f,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},o)]}const kc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Cc={opacity:0,visibility:"hidden"},Ec=a.forwardRef(function(e,t){const n=Uo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:y=r,...b}=e,v=a.useRef(null),S=Ns(v,Hl(s),t),x=ec(v,p),w=ec(v,(e,t)=>{Ql(e);const r=nc({style:g,timeout:y,easing:l},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),k=ec(v,d),C=ec(v,m),E=ec(v,e=>{const t=nc({style:g,timeout:y,easing:l},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),L=ec(v,e=>{e.style.transition="",h&&h(e)});return(0,Jo.jsx)(Yl,{appear:i,in:c,nodeRef:v,onEnter:w,onEntered:k,onEntering:x,onExit:E,onExited:L,onExiting:C,addEndListener:e=>{o&&o(v.current,e)},timeout:y,...b,children:(e,{ownerState:t,...n})=>{const r=tc(e,c,kc,Cc,g,s.props.style);return a.cloneElement(s,{style:r,ref:S,...n})}})}),Lc=Ec;function Rc(e){return ra("MuiBackdrop",e)}oa("MuiBackdrop",["root","invisible"]);const Pc=Za("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"}}]}),Oc=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Sa({root:["root",n&&"invisible"]},Rc,t)})(m),y={component:i,slots:{transition:p,root:l.Root,...d},slotProps:{...c,...u}},[b,v]=wc("root",{elementType:Pc,externalForwardedProps:y,className:ti(g.root,o),ownerState:m}),[S,x]=wc("transition",{elementType:Lc,externalForwardedProps:y,ownerState:m});return(0,Jo.jsx)(S,{in:s,timeout:f,...h,...x,children:(0,Jo.jsx)(b,{"aria-hidden":!0,...v,ref:t,children:r})})}),Tc=Oc;function Ic(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function qc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function jc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mc(e){return parseFloat(Bl(e).getComputedStyle(e).paddingRight)||0}function Dc(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.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&&jc(e,o)})}function _c(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}const Nc=()=>{},Ac=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&&jc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Dc(t,e.mount,e.modalRef,r,!0);const o=_c(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:r}),n)}mount(e,t){const n=_c(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=zl(e);return t.body===e?Bl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=qc(Bl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Mc(r)+e}px`;const t=zl(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Mc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=zl(r).body;else{const t=r.parentElement,n=Bl(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}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)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=_c(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&jc(e.modalRef,t),Dc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&jc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $c(e){return ra("MuiModal",e)}oa("MuiModal",["root","hidden","backdrop"]);const zc=Za("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Cs(({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"}}]}))),Fc=Za(Tc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Bc=a.forwardRef(function(e,t){const n=Ya({name:"MuiModal",props:e}),{BackdropComponent:r=Fc,BackdropProps:o,classes:i,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:f={},disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:x=!1,onClose:w,onTransitionEnter:k,onTransitionExited:C,open:E,slotProps:L={},slots:R={},theme:P,...O}=n,T={...n,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:y,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:S,keepMounted:x},{getRootProps:I,getBackdropProps:q,getTransitionProps:j,portalRef:M,isTopModal:D,exited:_,hasTransition:N}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=a.useRef({}),f=a.useRef(null),h=a.useRef(null),m=_s(h,d),[g,y]=a.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),x=()=>{Ac.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=As(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||zl(f.current).body;Ac.add(S(),e),h.current&&x()}),k=()=>Ac.isTopModal(S()),C=As(e=>{f.current=e,e&&(u&&k()?x():h.current&&jc(h.current,v))}),E=a.useCallback(()=>{Ac.remove(S(),v)},[v]);a.useEffect(()=>()=>{E()},[E]),a.useEffect(()=>{u?w():b&&o||E()},[u,E,b,o,w]);const L=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=vc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:L(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:u}},getTransitionProps:()=>({onEnter:Ic(()=>{y(!1),i&&i()},l?.props.onEnter??Nc),onExited:Ic(()=>{y(!0),s&&s(),o&&E()},l?.props.onExited??Nc)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:b}}({...T,rootRef:t}),A={...T,exited:_},$=(e=>{const{open:t,exited:n,classes:r}=e;return Sa({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$c,r)})(A),z={};if(void 0===c.props.tabIndex&&(z.tabIndex="-1"),N){const{onEnter:e,onExited:t}=j();z.onEnter=e,z.onExited=t}const F={slots:{root:p.Root,backdrop:p.Backdrop,...R},slotProps:{...f,...L}},[B,W]=wc("root",{ref:t,elementType:zc,externalForwardedProps:{...F,...O,component:d},getSlotProps:I,ownerState:A,className:ti(s,$?.root,!A.open&&A.exited&&$?.hidden)}),[H,U]=wc("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>q({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ti(o?.className,$?.backdrop),ownerState:A});return x||E||N&&!_?(0,Jo.jsx)(gc,{ref:M,container:u,disablePortal:y,children:(0,Jo.jsxs)(B,{...W,children:[!S&&r?(0,Jo.jsx)(H,{...U}):null,(0,Jo.jsx)(hc,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:b,isEnabled:D,open:E,children:a.cloneElement(c,z)})]})}):null}),Wc=Bc;function Hc(e){return ra("MuiPaper",e)}oa("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 Uc=Za("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}`]]}})(Cs(({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)"}}]}))),Vc=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiPaper"}),r=Uo(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,u={...n,component:i,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sa({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Hc,o)})(u);return(0,Jo.jsx)(Uc,{as:i,ownerState:u,className:ti(d.root,o),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${mr("#fff",Oo(a))}, ${mr("#fff",Oo(a))})`}},...c.style}})}),Gc=Vc;function Kc(e){return ra("MuiPopover",e)}function Jc(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=ti(r?.className,o?.className,i?.className),s=n(i,o);return{...o,...i,...s,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=ti(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Zc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Qc(e){return"function"==typeof e?e():e}oa("MuiPopover",["root","paper"]);const eu=Za(Wc,{name:"MuiPopover",slot:"Root"})({}),tu=Za(Gc,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nu=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},slots:g={},slotProps:y={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:S="auto",TransitionProps:x={},disableScrollLock:w=!1,...k}=n,C=a.useRef(),E={...n,anchorOrigin:i,anchorReference:l,elevation:p,marginThreshold:f,transformOrigin:b,TransitionComponent:v,transitionDuration:S,TransitionProps:x},L=(e=>{const{classes:t}=e;return Sa({root:["root"],paper:["paper"]},Kc,t)})(E),R=a.useCallback(()=>{if("anchorPosition"===l)return s;const e=Qc(o),t=(e&&1===e.nodeType?e:Fl(C.current).body).getBoundingClientRect();return{top:t.top+Xc(t,i.vertical),left:t.left+Zc(t,i.horizontal)}},[o,i.horizontal,i.vertical,s,l]),P=a.useCallback(e=>({vertical:Xc(e,b.vertical),horizontal:Zc(e,b.horizontal)}),[b.horizontal,b.vertical]),O=a.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===l)return{top:null,left:null,transformOrigin:Yc(n)};const r=R();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Wl(Qc(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&i<f){const e=i-f;i-=e,n.vertical+=e}else if(null!==f&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!==f&&a<f){const e=a-f;a-=e,n.horizontal+=e}else if(c>p){const e=c-p;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Yc(n)}},[o,l,R,P,f]),[T,I]=a.useState(h),q=a.useCallback(()=>{const e=C.current;if(!e)return;const t=O(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)},[O]);a.useEffect(()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q)),[o,w,q]),a.useEffect(()=>{h&&q()}),a.useImperativeHandle(r,()=>h?{updatePosition:()=>{q()}}:null,[h,q]),a.useEffect(()=>{if(!h)return;const e=$l(()=>{q()}),t=Wl(Qc(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,q]);let j=S;const M={slots:{transition:v,...g},slotProps:{transition:x,paper:m,...y}},[D,_]=wc("transition",{elementType:sc,externalForwardedProps:M,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),q()},onExited:t=>{e.onExited?.(t),I(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==S||D.muiSupportAuto||(j=void 0);const N=d||(o?Fl(Qc(o)).body:void 0),[A,{slots:$,slotProps:z,...F}]=wc("root",{ref:t,elementType:eu,externalForwardedProps:{...M,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Jc("function"==typeof y.backdrop?y.backdrop(E):y.backdrop,{invisible:!0})},container:N,open:h},ownerState:E,className:ti(L.root,u)}),[B,W]=wc("paper",{ref:C,className:L.paper,elementType:tu,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:T?void 0:{opacity:0}},ownerState:E});return(0,Jo.jsx)(A,{...F,...!Nl(A)&&{slots:$,slotProps:z,disableScrollLock:w},children:(0,Jo.jsx)(D,{..._,timeout:j,children:(0,Jo.jsx)(B,{...W,children:c})})})}),ru=nu;var ou=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),iu=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},au=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=iu(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},iu(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ou(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.stopIndex,i=[],a=null,s=null,l=e.startIndex;l<=o;l++)t(l)?null!==s&&(i.push(a,s),a=s=null):(s=l,null===a&&(a=l));if(null!==s){for(var c=Math.min(Math.max(s,a+r-1),n-1),u=s+1;u<=c&&!t(u);u++)s=u;i.push(a,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var d=i[0]-1;if(t(d))break;i[0]=d}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,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,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then(function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i}).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)r(o)}}]),t}(a.PureComponent);const su=au,lu=["S","XS"],cu=e=>e.reduce((e,t)=>e.concat(t));async function uu({selections:e,elemNumbers:t,toggle:n,isSingleSelect:r}){if(0===t.length)return!1;let o=!1;if(!t.some(e=>Number.isNaN(e))){const i=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",i,n]})}catch{o=!1}o||(r?e.cancel():e.clear())}return o}const du="RowColumn",pu={row:`${du}-row`,rowBorderBottom:`${du}-rowBorderBottom`,column:`${du}-column`,fieldRoot:`${du}-fieldRoot`,cell:`${du}-cell`,labelText:`${du}-labelText`,labelDense:`${du}-labelDense`,highlighted:`${du}-highlighted`,checkboxLabel:`${du}-checkboxLabel`,icon:`${du}-icon`,S:`${du}-S`,XS:`${du}-XS`,A:`${du}-A`,X:`${du}-X`,frequencyCount:`${du}-frequencyCount`,barContainer:`${du}-barContainer`,bar:`${du}-bar`,barSelected:`${du}-barSelected`,barWithCheckbox:`${du}-barWithCheckbox`,barSelectedWithCheckbox:`${du}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${du}-excludedTextWithCheckbox`},fu=`.${pu.fieldRoot}`,hu=e=>!(e?.metaKey||e?.ctrlKey);const mu=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),gu=e=>vs(mu(e));n.dn(gu);const yu=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,bu=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||yu(e))&&t,vu=e=>e.filter(e=>!!e).join(" ").trim(),Su=e=>e||"-",xu=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:r})=>"P"===t?`${e.freqMinWidth}px`:n&&!r?"max-content":"25%",wu=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,ku=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${pu.labelText}`]:{color:t.selections.selected}}:{};const r=t.selections,o=r[n],i=r[`${n}Contrast`];return{background:o,color:i,"& $cell":{paddingRight:0},[`& .${pu.labelText}`]:{color:i},[`& .${pu.icon}`]:{color:i}}},Cu={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Eu=Za("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:r,dense:o,direction:i,sizes:a,frequencyMode:s,freqHitsValue:l,styles:c})=>{const{backgroundColor:u,...d}=c.content,p=ku({theme:e,styles:c,checkboxes:t,selectionState:"selected"}),f=ku({theme:e,styles:c,checkboxes:t,selectionState:"excluded"}),h={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},m={opacity:"30%"};return{"& .value":{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder} !important`,borderRadius:"4px",outline:"none"}},[`& .${pu.row}`]:{flexWrap:"nowrap",...c.content},[`& .${pu.rowBorderBottom}`]:{borderBottom:r?"none":`1px solid ${e.palette.divider}`,borderLeft:r?`1px solid ${e.palette.divider}`:"none"},[`& .${pu.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,...c.content},[`& .${pu.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${pu.labelText}`]:{lineHeight:"24px",userSelect:"none",paddingRight:"1px",...Cu,...d},[`& .${pu.labelDense}`]:{lineHeight:"18px"},[`& .${pu.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${pu.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...Cu,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${pu.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:d.color},[`& .${pu.S}`]:{...p,"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder}, inset 0 0 0 4px ${e.palette.custom.whiteBorder} !important`,borderRadius:"4px",outline:"none"},border:n?"none":void 0},[`& .${pu.XS}`]:{...ku({theme:e,styles:c,checkboxes:t,selectionState:"selectedExcluded"}),border:n?"none":void 0},[`& .${pu.A}`]:{...ku({theme:e,styles:c,checkboxes:t,selectionState:"alternative"}),border:n?"none":void 0},[`& .${pu.X}`]:{...f,border:n?"none":void 0},[`& .${pu.X}, & .${pu.XS}`]:{border:n?"none":void 0,[`& .${pu.barSelected} .bar-filled`]:{...h}},[`& .${pu.frequencyCount}`]:{zIndex:3,justifyContent:"flex-end",...Cu,flex:`0 0 ${xu({sizes:a,frequencyMode:s,isGridMode:n,freqHitsValue:l})}`,minWidth:!n&&"P"!==s&&l?a.freqMinWidth:"max-content",maxWidth:wu({sizes:a,frequencyMode:s,isGridMode:n}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0},[`&.${pu.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${pu.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{...h}},[`& .${pu.barSelected}`]:{"& .bar-filled":{...m}},[`& .${pu.barWithCheckbox}`]:{left:"rtl"===i?4:29,width:"calc(100% - 33px)"},[`& .${pu.barSelectedWithCheckbox}`]:{"& .bar-filled":{...m,backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected}},[`& .${pu.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}}),Lu=a.memo(Eu),Ru=a.createContext(void 0);function Pu(){return a.useContext(Ru)}function Ou(e){return ra("MuiFormControlLabel",e)}const Tu=oa("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function Iu({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const qu=Za("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tu.label}`]:t.label},t.root,t[`labelPlacement${Es(n.labelPlacement)}`]]}})(Cs(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tu.disabled}`]:{cursor:"default"},[`& .${Tu.label}`]:{[`&.${Tu.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}}]}))),ju=Za("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Cs(({theme:e})=>({[`&.${Tu.error}`]:{color:(e.vars||e).palette.error.main}}))),Mu=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:p="end",name:f,onChange:h,required:m,slots:g={},slotProps:y={},value:b,...v}=n,S=Pu(),x=l??s.props.disabled??S?.disabled,w=m??s.props.required,k={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===s.props[e]&&void 0!==n[e]&&(k[e]=n[e])});const C=Iu({props:n,muiFormControl:S,states:["error"]}),E={...n,disabled:x,labelPlacement:p,required:w,error:C.error},L=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Sa({root:["root",n&&"disabled",`labelPlacement${Es(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Ou,t)})(E),R={slots:g,slotProps:{...i,...y}},[P,O]=wc("typography",{elementType:js,externalForwardedProps:R,ownerState:E});let T=d;return null==T||T.type===js||c||(T=(0,Jo.jsx)(P,{component:"span",...O,className:ti(L.label,O?.className),children:T})),(0,Jo.jsxs)(qu,{className:ti(L.root,o),ownerState:E,ref:t,...v,children:[a.cloneElement(s,k),w?(0,Jo.jsxs)("div",{children:[T,(0,Jo.jsxs)(ju,{ownerState:E,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):T]})}),Du=Mu,_u=function(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=a.useRef(void 0!==t),[s,l]=a.useState(n);return[i?t:s,a.useCallback(e=>{i||l(e)},[])]};function Nu(e){return ra("PrivateSwitchBase",e)}oa("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Au=Za(gl,{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}}]}),$u=Za("input",{name:"MuiSwitchBase",shouldForwardProp:Xa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zu=a.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:u,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:y,required:b=!1,tabIndex:v,type:S,value:x,slots:w={},slotProps:k={},...C}=e,[E,L]=_u({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=Pu();let P=a;R&&void 0===P&&(P=R.disabled);const O="checkbox"===S||"radio"===S,T={...e,checked:E,disabled:P,disableFocusRipple:s,edge:l},I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Sa({root:["root",n&&"checked",r&&"disabled",o&&`edge${Es(o)}`],input:["input"]},Nu,t)})(T),q={slots:w,slotProps:{input:d,...k}},[j,M]=wc("root",{ref:t,elementType:Au,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...q,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),R&&R.onFocus&&R.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),R&&R.onBlur&&R.onBlur(e)})(t)}}),ownerState:T,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null}}),[D,_]=wc("input",{ref:p,elementType:$u,className:I.input,externalForwardedProps:q,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||y)return;const t=e.target.checked;L(t),m&&m(e,t)})(t)}}),ownerState:T,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:P,id:O?u:void 0,name:f,readOnly:y,required:b,tabIndex:v,type:S,..."checkbox"===S&&void 0===x?{}:{value:x}}});return(0,Jo.jsxs)(j,{...M,children:[(0,Jo.jsx)(D,{..._}),E?o:c]})}),Fu=zu;function Bu(e){return ra("MuiSvgIcon",e)}oa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wu=Za("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Es(n.color)}`],t[`fontSize${Es(n.fontSize)}`]]}})(Cs(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{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}}]}))),Hu=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...f}=n,h=a.isValidElement(r)&&"svg"===r.type,m={...n,color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:h},g={};u||(g.viewBox=p);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sa({root:["root","inherit"!==t&&`color${Es(t)}`,`fontSize${Es(n)}`]},Bu,r)})(m);return(0,Jo.jsxs)(Wu,{as:s,className:ti(y.root,o),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...f,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?(0,Jo.jsx)("title",{children:d}):null]})});Hu.muiName="SvgIcon";const Uu=Hu;function Vu(e,t){function n(t,n){return(0,Jo.jsx)(Uu,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Uu.muiName,a.memo(a.forwardRef(n))}const Gu=Vu((0,Jo.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"})),Ku=Vu((0,Jo.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"})),Ju=Vu((0,Jo.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Xu(e){return ra("MuiCheckbox",e)}const Zu=oa("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Yu=Za(Fu,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Es(n.size)}`],"default"!==n.color&&t[`color${Es(n.color)}`]]}})(Cs(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{[`&.${Zu.checked}, &.${Zu.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Zu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Qu=(0,Jo.jsx)(Ku,{}),ed=(0,Jo.jsx)(Gu,{}),td=(0,Jo.jsx)(Ju,{}),nd=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Qu,color:o="primary",icon:i=ed,indeterminate:s=!1,indeterminateIcon:l=td,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:h={},...m}=n,g=s?l:i,y=s?l:r,b={...n,disableRipple:d,color:o,indeterminate:s,size:u},v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Sa({root:["root",n&&"indeterminate",`color${Es(r)}`,`size${Es(o)}`]},Xu,t);return{...t,...i}})(b),S=h.input??c,[x,w]=wc("root",{ref:t,elementType:Yu,className:ti(v.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...m},ownerState:b,additionalProps:{type:"checkbox",icon:a.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:a.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:f,slotProps:{input:Jc("function"==typeof S?S(b):S,{"data-indeterminate":s,"aria-checked":s?"mixed":void 0})}}});return(0,Jo.jsx)(x,{...w,classes:v})}),rd="ListBoxCheckbox",od={cbIcon:`${rd}-cbIcon`,cbIconChecked:`${rd}-cbIconChecked`,cbIconExcluded:`${rd}-cbIconExcluded`,cbIconAlternative:`${rd}-cbIconAlternative`,checkbox:`${rd}-checkbox`,dense:`${rd}-dense`},id=Za(nd,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${od.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"},[`& .${od.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:'""'}},[`& .${od.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${od.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${od.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${od.dense}`]:{padding:"4px 8px"}})),ad=(e,t=!0,n=!1)=>(0,Jo.jsx)("span",{className:e.cbIcon,children:n&&(0,Jo.jsx)("span",{className:t&&n?e.cbIconExcluded:""})});function sd({onChange:e,checked:t,label:n,dense:r,excluded:o,styles:i,showGray:a=!0,dataN:s}){return(0,Jo.jsx)(id,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[od.checkbox,r&&od.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":s},name:n,icon:ad(od,a,o),checkedIcon:(0,Jo.jsx)("span",{className:od.cbIconChecked}),styles:i})}const ld=Vu((0,Jo.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"})),cd=Vu((0,Jo.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"})),ud=Za("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Xa})({position:"relative",display:"flex"}),dd=Za(ld,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),pd=Za(cd,{name:"MuiRadioButtonIcon"})(Cs(({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})}}]}))),fd=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,Jo.jsxs)(ud,{className:n.root,ownerState:o,children:[(0,Jo.jsx)(dd,{fontSize:r,className:n.background,ownerState:o}),(0,Jo.jsx)(pd,{fontSize:r,className:n.dot,ownerState:o})]})},hd=Ic,md=a.createContext(void 0);function gd(e){return ra("MuiRadio",e)}const yd=oa("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),bd=Za(Fu,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Es(n.size)}`],t[`color${Es(n.color)}`]]}})(Cs(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${yd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${yd.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),vd=(0,Jo.jsx)(fd,{checked:!0}),Sd=(0,Jo.jsx)(fd,{}),xd=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=vd,color:i="primary",icon:s=Sd,name:l,onChange:c,size:u="medium",className:d,disabled:p,disableRipple:f=!1,slots:h={},slotProps:m={},inputProps:g,...y}=n,b=Pu();let v=p;b&&void 0===v&&(v=b.disabled),v??=!1;const S={...n,disabled:v,disableRipple:f,color:i,size:u},x=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Es(n)}`,"medium"!==r&&`size${Es(r)}`]};return{...t,...Sa(o,gd,t)}})(S),w=a.useContext(md);let k=r;const C=hd(c,w&&w.onChange);let E=l;var L,R;w&&(void 0===k&&(L=w.value,k="object"==typeof(R=n.value)&&null!==R?L===R:String(L)===String(R)),void 0===E&&(E=w.name));const P=m.input??g,[O,T]=wc("root",{ref:t,elementType:bd,className:ti(x.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:m,...y},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),C(t,...n)}}),ownerState:S,additionalProps:{type:"radio",icon:a.cloneElement(s,{fontSize:s.props.fontSize??u}),checkedIcon:a.cloneElement(o,{fontSize:o.props.fontSize??u}),disabled:v,name:E,checked:k,slots:h,slotProps:{input:"function"==typeof P?P(S):P}}});return(0,Jo.jsx)(O,{...T,classes:x})}),wd="ListBoxRadioButton-radioButton",kd=Za(xd,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${wd}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function Cd({onChange:e,checked:t,label:n,dense:r,dataN:o,styles:i}){return(0,Jo.jsx)(kd,{checked:t,onChange:e,value:n,name:n,className:wd,inputProps:{"data-n":o},disableRipple:!0,size:r?"small":"medium",dense:r,styles:i})}const Ed=function({label:e,dense:t,showGray:n=!0,checkboxes:r,cell:o,valueTextAlign:i}){return(0,Jo.jsx)(js,{component:"span",variant:"body2",className:vu([pu.labelText,t&&pu.labelDense,n&&bu({cell:o,checkboxes:r})&&pu.excludedTextWithCheckbox]),align:i,dir:"auto",children:(0,Jo.jsx)("span",{children:e})})},Ld=function({label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}){return"string"==typeof e?(0,Jo.jsx)(Ed,{label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}):e},Rd=function({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:s,isSingleSelect:l,checkboxes:c,valueTextAlign:u,styles:d}){const p=(0,Jo.jsx)(sd,{onChange:e,label:t,checked:r,dense:o,excluded:yu(i),isGridCol:a,showGray:s,dataN:n,styles:d}),f=(0,Jo.jsx)(Cd,{onChange:e,label:t,checked:r,dense:o,dataN:n,styles:d});return(0,Jo.jsx)(Du,{control:l?f:p,className:pu.checkboxLabel,label:(0,Jo.jsx)(Ld,{label:t,dense:o,showGray:s,checkboxes:c,cell:i,valueTextAlign:u})},n)};function Pd({labels:e,dense:t,showGray:n,checkboxes:r}){const o=e.map(([e,t],n)=>(0,Jo.jsx)("span",{id:n,className:t?pu.highlighted:"",children:e}));return(0,Jo.jsx)(Ed,{label:o,dense:t,showGray:n,checkboxes:r})}const Od=function({onChange:e,labels:t,checkboxes:n,dense:r,showGray:o,qElemNumber:i,isSelected:a,cell:s,isGridCol:l,isSingleSelect:c,valueTextAlign:u,styles:d}){const p=(0,Jo.jsx)(Pd,{labels:t,dense:r,showGray:o,checkboxes:n});return n?(0,Jo.jsx)(Rd,{onChange:e,label:p,qElemNumber:i,isSelected:a,dense:r,cell:s,isGridCol:l,showGray:o,isSingleSelect:c,checkboxes:n,valueTextAlign:u,styles:d}):p};function Td({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:s,isSingleSelect:l,checkboxes:c,valueTextAlign:u,styles:d}){return c?(0,Jo.jsx)(Rd,{onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:s,isSingleSelect:l,checkboxes:c,valueTextAlign:u,styles:d}):(0,Jo.jsx)(Ed,{label:t,dense:o,showGray:!0,checkboxes:c,cell:i,valueTextAlign:u})}const Id=a.memo(Td),qd=oa("MuiBox",["root"]),jd=Bo(),Md=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=yi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Pt);return a.forwardRef(function(e,a){const s=lr(n),{className:l,component:c="div",...u}=Ia(e);return(0,Jo.jsx)(i,{as:c,ref:a,className:ti(l,o?o(r):r),theme:t&&s[t]||s,...u})})}({themeId:Ho,defaultTheme:jd,defaultClassName:qd.root,generateClassName:ta.generate}),Dd=function({qFrequency:e,histogram:t,checkboxes:n,isSelected:r,frequencyMax:o}){if(!e||!t||"-"===Su(e))return;const i=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),r="%"===n.substring(n.length-1),o=parseFloat(r?n:e);return`${r?o:o/t*100}%`})({qFrequency:e,checkboxes:n,frequencyMax:o});return(0,Jo.jsx)(Md,{className:vu([pu.bar,n&&pu.barWithCheckbox,r&&(n?pu.barSelectedWithCheckbox:pu.barSelected)]),children:(0,Jo.jsx)(Md,{className:"bar-filled",width:i})})},_d=function({cell:e,checkboxes:t,dense:n,showGray:r}){const o=Su(e?.qFrequency);return(0,Jo.jsx)(es,{style:{display:"flex",alignItems:"center"},className:pu.frequencyCount,"aria-label":o,title:o,children:(0,Jo.jsx)(js,{noWrap:!0,color:"inherit",variant:"body2",className:vu([n&&pu.labelDense,pu.labelText,r&&bu({cell:e,checkboxes:t})&&pu.excludedTextWithCheckbox]),children:o})})};function Nd({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:r?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Ad=Za(es,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:r,direction:o,fillHeight:i})=>{const a="padding"+("rtl"===o?"Left":"Right");return{[`&.${pu.fieldRoot}`]:{...Nd({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i}),[a]:r?"8px":void 0}}}),$d=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===$d.ARROW_UP||e===$d.ARROW_DOWN||e===$d.ARROW_LEFT||e===$d.ARROW_RIGHT}),zd=$d;function Fd(e){e?.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function Bd(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")||e?.closest(".qv-gs-listbox")}function Wd({containerRef:e,enabled:t}){const[n,r]=(0,a.useState)(!1),o={enabled:t,active:n,innerTabStops:!t||n,blur(n){if(!t)return;r(!1);const o=Bd(e.current)||e.current?.parentElement;var i;i=e.current,i?.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),Fd(e.current),n&&o&&(o.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),o.focus())},focus(){if(!t)return;r(!0);const n=e.current,o=n?.querySelector(".search input"),i=n?.querySelector(".value.last-focused"),a=n?.querySelector(".value.selector, .value"),s=n?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=n?.querySelector("#listbox-unlock-button"),c=n?.querySelector(".listbox-cyclic-button"),u=c||o||i||a||l||s;u?.setAttribute("tabIndex",0),u?.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return n?.setAttribute("tabIndex",0),n?.focus(),n}};return o}const Hd=e=>+e.getAttribute("data-n"),Ud=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Vd=e=>{const t=e?.querySelector(".value.last-focused"),n=e?.querySelector(".value.selector"),r=e?.querySelector(".value"),o=t||n||r;return o?.setAttribute("tabIndex",0),o?.focus(),Fd(e),o},Gd=e=>{const t=e?.querySelector(".listbox-cyclic-button:not(:disabled)");return t?.setAttribute("tabIndex",0),t?.focus(),t},Kd=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Bd(i),s=1===a?.querySelectorAll(".listbox-container").length;if(o||s)t.blur(!0);else{Fd(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),e?.focus()}},Jd={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"},Xd=function({index:e,rowIndex:t,columnIndex:n,style:r,data:o}){const{onChange:i,onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,onTouchStart:d,onTouchEnd:p,pages:f,isLocked:h,column:m=!1,checkboxes:g=!1,textAlign:y,direction:b,layoutOptions:v={},freqIsAllowed:S,isSingleSelect:x,actions:w,frequencyMax:k="",histogram:C=!1,keyboard:E,showGray:L=!0,showTick:R=!0,columnCount:P=1,rowCount:O=1,dataOffset:T,deducedFrequencyMode:I,focusListItems:q,listCount:j,sizes:M,translator:D,showSearch:_,isModal:N,contentFontStyle:A,styles:$,fillHeight:z}=o,{dense:F=!1,dataLayout:B="singleColumn",layoutOrder:W}=v,{itemPadding:H}=M;let U,V;const G={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===W?(U=t*P+n,G.max=O,G.currentIndex=t):(U=n*O+t,G.max=P,G.currentIndex=n);const e=0;V={...r,height:z?"100%":r.height,left:e+(0===n?r.left:Number(r.left)+n*e),top:0===t?r.top:Number(r.top)+t*e}}else U=e,G.max=j,G.currentIndex=e,V={...r};U+=T;const[K,J]=(0,a.useState)(null);(0,a.useEffect)(()=>{null!==K&&(0===G.currentIndex&&q.first&&(K.focus(),q.setFirst(!1)),G.currentIndex===G.max-1&&q.last&&(K.focus(),q.setLast(!1)))},[K,q.first,q.last]);const X=(0,a.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:r,cancel:o,setScrollPosition:i,focusListItems:a,keyboard:s,isModal:l,rowCount:c,columnCount:u,rowIndex:d,columnIndex:p,layoutOrder:f}){const h=(e,t,n=!1)=>{if(e===zd.ARROW_LEFT||e===zd.ARROW_RIGHT||"number"!=typeof d||"number"!=typeof p){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const r=t?.parentElement.parentElement,o=r?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:r,layoutOrder:o,keyCode:i,numCells:a})=>{const s=e=>{let t;return"row"===o?(t=a%r,e<t?n:n-1):(t=a%n,e<r-1?n:t)};let l=e,c=t;if(i===zd.ARROW_DOWN)if(e>=s(t)-1){if(t===r-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=s(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*r+c;const u=a%n;return 0===u||l<u?l*r+c:(l-u)*(r-1)+c+u*r})({rowIndex:d,columnIndex:p,rowCount:c,columnCount:u,layoutOrder:f,keyCode:e,numCells:o}),r=t?.parentElement.parentElement.children[n];return r?.querySelector("[role]")}};let m=!1;const g=e=>{m=e};return c=>{let u;const{currentTarget:d,nativeEvent:p}=c,{keyCode:f,shiftKey:y=!1,ctrlKey:b=!1,metaKey:v=!1}=p;switch(f){case zd.TAB:{const e=d.closest(".listbox-container"),t=void 0!==l?l():void 0;if(d.classList.add("last-focused"),!s?.enabled){if(!t)return;return s.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(y){Ud(e)||Gd(e)||(t?s.focusSelection():Kd(c,s));break}s.focusSelection()||Gd(e)||Ud(e)||(d.blur(),Kd(c,s));break}case zd.SHIFT:g(!0);break;case zd.SPACE:e([Hd(d)],!1,c);break;case zd.ARROW_DOWN:case zd.ARROW_RIGHT:u=h(f,d,!0),y&&u&&(m&&(e([Hd(d)],!0),g(!1)),e([Hd(u)],!0));break;case zd.ARROW_UP:case zd.ARROW_LEFT:u=h(f,d,!1),y&&u&&(m&&(e([Hd(d)],!0),g(!1)),e([Hd(u)],!0));break;case zd.ENTER:if(r(),void 0===l)return;break;case zd.ESCAPE:if(void 0===l)return void o();if(!l())return;o();break;case zd.HOME:if(a.setFirst(!0),b){i?.("overflowStart");break}i?.("start");break;case zd.END:if(a.setLast(!0),b){i?.("overflowEnd");break}i?.("end");break;case zd.A:if(b||v){t();break}return;case zd.F:if(b||v){n();break}return;default:return}u&&u.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:q,keyboard:E,isModal:N,rowCount:O,columnCount:P,rowIndex:t,columnIndex:n,layoutOrder:W}),[w,E?.innerTabStops,O,P,t,n,W]),Z=(0,a.useMemo)(()=>function({pages:e,cellIndex:t}){let n;const r=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(r){const e=r.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=r.qMatrix[t-e.qTop])}return n}({pages:f,cellIndex:U}),[f,U]),Y="S"===Z?.qState||"XS"===Z?.qState||"L"===Z?.qState||"XL"===Z?.qState,Q=(0,a.useMemo)(()=>(({column:e,histogram:t,cell:n,showGray:r})=>{if(!n)return[];const o=[e?pu.column:pu.row];t||o.push(pu.rowBorderBottom);const i=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?pu.XS:pu.S;break;case"S":case"L":n=pu.S;break;case"A":n=!!t&&pu.A;break;case"X":case"XL":n=!!t&&pu.X;break;default:n=!1}return n}({cell:n,showGray:r});return i&&o.push(i),o})({column:m,histogram:C,cell:Z,showGray:L}),[Z?.qState,C,F]),ee=(0,a.useCallback)(e=>{e.preventDefault()},[g]),te=(0,a.useMemo)(()=>Z&&function({direction:e,cell:t,textAlign:n}){const r=!["NaN",void 0].includes(t?.qNum);let o;return o=!n||n.auto?r?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:n?.align||"left",["left","center","right"].includes(o)?o:"left"}({direction:b,cell:Z,textAlign:y}),[b,Z,y]);if(!Z)return null;const ne="grid"===B&&"column"===W,re=Z?.qText??"";let oe;if(Z.qHighlightRanges?.qRanges?.length){oe=function(e,t){if(!t.length)return[];const n=t.reduce((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n},[]);return n}(re,Z.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[])}const ie={alignItems:"center",display:"flex",fontSize:"8px"},ae="rtl"===b,se={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ae?8:g?0:void 0,paddingRight:g?0:ae?8:0,justifyContent:te,textAlign:te},le=0===e,ce=Y&&h,ue=!g&&Y&&!h,de=!g&&R,pe=g||!R,fe=function({translator:e,label:t,qState:n,isSelected:r,currentIndex:o,maxIndex:i,showSearch:a}){const s=Jd[n],l=e.get(s),c=[];if(r){const t=a?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const u=`${t} ${l}`,d=e.get("CurrentSelections.Of",[o+1,i+1]);return c.unshift(u,d),c.join(". ").trim()}({translator:D,label:re,qState:Z.qState,currentIndex:G.currentIndex,maxIndex:G.max,showSearch:_}),he=!ae&&"right"===te||ae&&"left"===te;return(0,Jo.jsx)(Lu,{className:pu.barContainer,checkboxes:g,style:V,styles:$,isGridCol:ne,isGridMode:"grid"===B,dense:F,direction:b,sizes:M,frequencyMode:I,freqHitsValue:he,contentFontStyle:A,"data-testid":"listbox.item",children:(0,Jo.jsxs)(Ad,{role:"row","aria-label":fe,"aria-selected":Y,"aria-setsize":G.max,"aria-rowindex":G.currentIndex,ref:J,container:!0,dataLayout:B,cellPaddingRight:pe,layoutOrder:W,itemPadding:H,gap:0,className:vu(["value",pu.fieldRoot,...Q]),onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,onKeyDown:X,onTouchStart:d,onTouchEnd:p,onContextMenu:ee,tabIndex:le&&E.innerTabStops?0:-1,"data-n":Z?.qElemNumber,direction:b,fillHeight:z,children:[Z?.qFrequency&&(0,Jo.jsx)(Dd,{qFrequency:Z?.qFrequency,histogram:C,checkboxes:g,isSelected:Y,frequencyMax:k}),(0,Jo.jsx)(es,{style:se,className:vu([pu.cell,pu.selectedCell]),title:`${re}`,children:oe?(0,Jo.jsx)(Od,{onChange:i,labels:oe,checkboxes:g,dense:F,showGray:L,qElemNumber:Z.qElemNumber,isSelected:Y,cell:Z,isGridCol:ne,isSingleSelect:x,valueTextAlign:te,styles:$}):(0,Jo.jsx)(Id,{onChange:i,label:re,qElemNumber:Z.qElemNumber,isSelected:Y,dense:F,cell:Z,isGridCol:ne,showGray:L,isSingleSelect:x,checkboxes:g,valueTextAlign:te,styles:$})}),S&&(0,Jo.jsx)(_d,{cell:Z,checkboxes:g,dense:F,showGray:L}),de&&(0,Jo.jsxs)(es,{className:pu.icon,children:[ce&&(0,Jo.jsx)(xs,{style:ie,size:"small"}),ue&&(0,Jo.jsx)(gu,{style:ie,size:"small"})]})]})})};var Zd=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Yd(e,t){return e===t||!(!Zd(e)||!Zd(t))}function Qd(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Yd(e[n],t[n]))return!1;return!0}const ep=function(e,t){var n;void 0===t&&(t=Qd);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var tp="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function np(e){cancelAnimationFrame(e.id)}function rp(e,t){var n=tp(),r={id:requestAnimationFrame(function o(){tp()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var op=-1;function ip(e){if(void 0===e&&(e=!1),-1===op||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),op=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return op}var ap=null;function sp(e){if(void 0===e&&(e=!1),null===ap||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ap="positive-descending":(t.scrollLeft=1,ap=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ap}return ap}var lp=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cp(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Hs(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Hs(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ep(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=ep(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,u=r._getItemStyleCache(g&&s,g&&l,g&&c),f=e+":"+t;if(u.hasOwnProperty(f))o=u[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;u[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=ep(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(sp()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&np(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=rp(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Vs(t,e),t.getDerivedStateFromProps=function(e,t){return up(e,t),y(e),null};var b=t.prototype;return b.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)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,y=ip();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=s(this.props,this._instanceProps),v=l(this.props,this._instanceProps)>f?y:0,S=b>d?y:0;this.scrollTo({scrollLeft:void 0!==r?c(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,v):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(sp()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&np(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,c=e.innerRef,u=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?lp:f,m=e.outerElementType,g=e.outerTagName,y=e.rowCount,b=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),k=w[0],C=w[1],E=this._getVerticalRangeToRender(),L=E[0],R=E[1],P=[];if(r>0&&y)for(var O=L;O<=R;O++)for(var T=k;T<=C;T++)P.push((0,a.createElement)(t,{columnIndex:T,data:p,isScrolling:v?x:void 0,key:h({columnIndex:T,data:p,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,T)}));var I=s(this.props,this._instanceProps),q=l(this.props,this._instanceProps);return(0,a.createElement)(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ci({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},(0,a.createElement)(u||d||"div",{children:P,ref:c,style:{height:I,pointerEvents:x?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,y=m.scrollLeft,b=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(y,b,g,S,v)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=h(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(a.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var up=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dp=function(e,t){return e};function pp(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,Hs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Hs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ep(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=ep(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=ep(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(sp()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&np(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=rp(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Vs(t,e),t.getDerivedStateFromProps=function(e,t){return fp(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?ip():0:l.scrollHeight>l.clientHeight?ip():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(sp()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&np(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?dp:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===h,w=x?this._onScrollHorizontal:this._onScrollVertical,k=this._getRangeToRender(),C=k[0],E=k[1],L=[];if(u>0)for(var R=C;R<=E;R++)L.push((0,a.createElement)(t,{data:d,key:f(R,d),index:R,isScrolling:b?S:void 0,style:this._getItemStyle(R)}));var P=r(this.props,this._instanceProps);return(0,a.createElement)(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ci({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},(0,a.createElement)(l||c||"div",{children:L,ref:s,style:{height:x?"100%":P,pointerEvents:S?"none":void 0,width:x?P:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(a.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var fp=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},hp=cp({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),mp=pp({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,f=Math.max(0,l*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const gp="#BBB",yp="#f1f1f1",bp="ListBox-styledScrollbars";function vp({renderProps:e,layoutOptions:t,maxCount:n,columnCount:r,rowCount:o,overflowDisclaimer:i,qCardinal:a,dataOffset:s}){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),u=l?n.column:n.row,d=(l?r:o)>=u,p=((e,t,n,r)=>e===t*n+r+n)(a,c,l?o:r,s),f=!!s&&((e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,l),h=d&&!p&&c>=u-1||f||i.state.show;i.set(h)}const{StyledFixedSizeList:Sp,StyledFixedSizeGrid:xp}=function(){const e=e=>({scrollbarColor:`${gp} ${yp}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:yp},"&::-webkit-scrollbar-thumb":{backgroundColor:gp,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:gi(mp,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${bp}`]:e(t)})),StyledFixedSizeGrid:gi(hp,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${bp}`]:e(t)}))}}(),wp=e=>{const t=(0,a.useMemo)(()=>"text"in e?e:{},[e]);return(0,a.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 r=n.measureText(e);return Math.ceil(r.width||0)})(t.text,t.font||"12px Source Sans Pro"),[t.text,t.font])};function kp(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Cp({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}const[Ep,Lp]=ga({});function Rp(e){const t=`${e.id}`,[n]=Ep();return{setStoreValue:(e,r)=>n.set(`${t}/${e}`,r),getStoreValue:e=>n.get(`${t}/${e}`)}}function Pp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Op(e){return e instanceof Pp(e).Element||e instanceof Element}function Tp(e){return e instanceof Pp(e).HTMLElement||e instanceof HTMLElement}function Ip(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Pp(e).ShadowRoot||e instanceof ShadowRoot)}var qp=Math.max,jp=Math.min,Mp=Math.round;function Dp(){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 _p(){return!/^((?!chrome|android).)*safari/i.test(Dp())}function Np(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Tp(e)&&(o=e.offsetWidth>0&&Mp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mp(r.height)/e.offsetHeight||1);var a=(Op(e)?Pp(e):window).visualViewport,s=!_p()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Ap(e){var t=Pp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $p(e){return e?(e.nodeName||"").toLowerCase():null}function zp(e){return((Op(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fp(e){return Np(zp(e)).left+Ap(e).scrollLeft}function Bp(e){return Pp(e).getComputedStyle(e)}function Wp(e){var t=Bp(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Hp(e,t,n){void 0===n&&(n=!1);var r=Tp(t),o=Tp(t)&&function(e){var t=e.getBoundingClientRect(),n=Mp(t.width)/e.offsetWidth||1,r=Mp(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=zp(t),a=Np(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==$p(t)||Wp(i))&&(s=function(e){return e!==Pp(e)&&Tp(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ap(e);var t}(t)),Tp(t)?((l=Np(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Fp(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Up(e){var t=Np(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Vp(e){return"html"===$p(e)?e:e.assignedSlot||e.parentNode||(Ip(e)?e.host:null)||zp(e)}function Gp(e){return["html","body","#document"].indexOf($p(e))>=0?e.ownerDocument.body:Tp(e)&&Wp(e)?e:Gp(Vp(e))}function Kp(e,t){var n;void 0===t&&(t=[]);var r=Gp(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Pp(r),a=o?[i].concat(i.visualViewport||[],Wp(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Kp(Vp(a)))}function Jp(e){return["table","td","th"].indexOf($p(e))>=0}function Xp(e){return Tp(e)&&"fixed"!==Bp(e).position?e.offsetParent:null}function Zp(e){for(var t=Pp(e),n=Xp(e);n&&Jp(n)&&"static"===Bp(n).position;)n=Xp(n);return n&&("html"===$p(n)||"body"===$p(n)&&"static"===Bp(n).position)?t:n||function(e){var t=/firefox/i.test(Dp());if(/Trident/i.test(Dp())&&Tp(e)&&"fixed"===Bp(e).position)return null;var n=Vp(e);for(Ip(n)&&(n=n.host);Tp(n)&&["html","body"].indexOf($p(n))<0;){var r=Bp(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Yp="top",Qp="bottom",ef="right",tf="left",nf="auto",rf=[Yp,Qp,ef,tf],of="start",af="end",sf="viewport",lf="popper",cf=rf.reduce(function(e,t){return e.concat([t+"-"+of,t+"-"+af])},[]),uf=[].concat(rf,[nf]).reduce(function(e,t){return e.concat([t,t+"-"+of,t+"-"+af])},[]),df=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pf(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function ff(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var hf={placement:"bottom",modifiers:[],strategy:"absolute"};function mf(){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 gf(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?hf:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},hf,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:Op(e)?Kp(e):e.contextElement?Kp(e.contextElement):[],popper:Kp(t)};var u,d,p=function(e){var t=pf(e);return df.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,o.options.modifiers),d=u.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(d).map(function(e){return d[e]})));return o.orderedModifiers=p.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r});a.push(s||function(){})}}),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(mf(t,n)){o.rects={reference:Hp(t,Zp(n),"fixed"===o.options.strategy),popper:Up(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 r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:ff(function(){return new Promise(function(e){l.forceUpdate(),e(o)})}),destroy:function(){c(),s=!0}};if(!mf(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),l}}var yf={passive:!0};function bf(e){return e.split("-")[0]}function vf(e){return e.split("-")[1]}function Sf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xf(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bf(o):null,a=o?vf(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Yp:t={x:s,y:n.y-r.height};break;case Qp:t={x:s,y:n.y+n.height};break;case ef:t={x:n.x+n.width,y:l};break;case tf:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Sf(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case of:t[c]=t[c]-(n[u]/2-r[u]/2);break;case af:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var wf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kf(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=tf,S=Yp,x=window;if(c){var w=Zp(n),k="clientHeight",C="clientWidth";w===Pp(n)&&"static"!==Bp(w=zp(n)).position&&"absolute"===s&&(k="scrollHeight",C="scrollWidth"),(o===Yp||(o===tf||o===ef)&&i===af)&&(S=Qp,m-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=l?1:-1),o!==tf&&(o!==Yp&&o!==Qp||i!==af)||(v=ef,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-r.width,f*=l?1:-1)}var E,L=Object.assign({position:s},c&&wf),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Mp(n*o)/o||0,y:Mp(r*o)/o||0}}({x:f,y:m},Pp(n)):{x:f,y:m};return f=R.x,m=R.y,l?Object.assign({},L,((E={})[S]=b?"0":"",E[v]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},L,((t={})[S]=b?m+"px":"",t[v]=y?f+"px":"",t.transform="",t))}const Cf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=uf.reduce(function(e,n){return e[n]=function(e,t,n){var r=bf(e),o=[tf,Yp].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[tf,ef].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Ef={left:"right",right:"left",bottom:"top",top:"bottom"};function Lf(e){return e.replace(/left|right|bottom|top/g,function(e){return Ef[e]})}var Rf={start:"end",end:"start"};function Pf(e){return e.replace(/start|end/g,function(e){return Rf[e]})}function Of(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ip(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Tf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function If(e,t,n){return t===sf?Tf(function(e,t){var n=Pp(e),r=zp(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=_p();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Fp(e),y:l}}(e,n)):Op(t)?function(e,t){var n=Np(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):Tf(function(e){var t,n=zp(e),r=Ap(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=qp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=qp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Fp(e),l=-r.scrollTop;return"rtl"===Bp(o||n).direction&&(s+=qp(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(zp(e)))}function qf(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function jf(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Mf(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?sf:c,d=n.elementContext,p=void 0===d?lf:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=qf("number"!=typeof g?g:jf(g,rf)),b=p===lf?"reference":lf,v=e.rects.popper,S=e.elements[h?b:p],x=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Kp(Vp(e)),n=["absolute","fixed"].indexOf(Bp(e).position)>=0&&Tp(e)?Zp(e):e;return Op(n)?t.filter(function(e){return Op(e)&&Of(e,n)&&"body"!==$p(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=If(e,n,r);return t.top=qp(o.top,t.top),t.right=jp(o.right,t.right),t.bottom=jp(o.bottom,t.bottom),t.left=qp(o.left,t.left),t},If(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Op(S)?S:S.contextElement||zp(e.elements.popper),l,u,a),w=Np(e.elements.reference),k=xf({reference:w,element:v,strategy:"absolute",placement:o}),C=Tf(Object.assign({},v,k)),E=p===lf?C:w,L={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},R=e.modifiersData.offset;if(p===lf&&R){var P=R[o];Object.keys(L).forEach(function(e){var t=[ef,Qp].indexOf(e)>=0?1:-1,n=[Yp,Qp].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t})}return L}const Df={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=bf(g),b=l||(y!==g&&h?function(e){if(bf(e)===nf)return[];var t=Lf(e);return[Pf(e),t,Pf(t)]}(g):[Lf(g)]),v=[g].concat(b).reduce(function(e,n){return e.concat(bf(n)===nf?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?uf:l,u=vf(r),d=u?s?cf:cf.filter(function(e){return vf(e)===u}):rf,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=Mf(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bf(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),S=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=v[0],E=0;E<v.length;E++){var L=v[E],R=bf(L),P=vf(L)===of,O=[Yp,Qp].indexOf(R)>=0,T=O?"width":"height",I=Mf(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),q=O?P?ef:tf:P?Qp:Yp;S[T]>x[T]&&(q=Lf(q));var j=Lf(q),M=[];if(i&&M.push(I[R]<=0),s&&M.push(I[q]<=0,I[j]<=0),M.every(function(e){return e})){C=L,k=!1;break}w.set(L,M)}if(k)for(var D=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 C=t,"break"},_=h?3:1;_>0&&"break"!==D(_);_--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _f(e,t,n){return qp(e,jp(t,n))}const Nf={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Mf(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=bf(t.placement),b=vf(t.placement),v=!b,S=Sf(y),x="x"===S?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var O,T="y"===S?Yp:tf,I="y"===S?Qp:ef,q="y"===S?"height":"width",j=w[S],M=j+g[T],D=j-g[I],_=f?-C[q]/2:0,N=b===of?k[q]:C[q],A=b===of?-C[q]:-k[q],$=t.elements.arrow,z=f&&$?Up($):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[T],W=F[I],H=_f(0,k[q],z[q]),U=v?k[q]/2-_-H-B-L.mainAxis:N-H-B-L.mainAxis,V=v?-k[q]/2+_+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&Zp(t.elements.arrow),K=G?"y"===S?G.clientTop||0:G.clientLeft||0:0,J=null!=(O=null==R?void 0:R[S])?O:0,X=j+V-J,Z=_f(f?jp(M,j+U-J-K):M,j,f?qp(D,X):D);w[S]=Z,P[S]=Z-j}if(s){var Y,Q="x"===S?Yp:tf,ee="x"===S?Qp:ef,te=w[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[Yp,tf].indexOf(y),ae=null!=(Y=null==R?void 0:R[x])?Y:0,se=ie?re:te-k[ne]-C[ne]-ae+L.altAxis,le=ie?te+k[ne]+C[ne]-ae-L.altAxis:oe,ce=f&&ie?function(e,t,n){var r=_f(e,t,n);return r>n?n:r}(se,te,le):_f(f?se:re,te,f?le:oe);w[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]},Af={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=bf(n.placement),l=Sf(s),c=[tf,ef].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return qf("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:jf(e,rf))}(o.padding,n),d=Up(i),p="y"===l?Yp:tf,f="y"===l?Qp:ef,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=Zp(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,v=u[p],S=y-d[c]-u[f],x=y/2-d[c]/2+b,w=_f(v,x,S),k=l;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Of(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $f(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 zf(e){return[Yp,ef,Qp,tf].some(function(t){return e[t]>=0})}var Ff=gf({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Pp(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,yf)}),s&&l.addEventListener("resize",n.update,yf),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,yf)}),s&&l.removeEventListener("resize",n.update,yf)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xf({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,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:bf(t.placement),variation:vf(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,kf(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kf(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]||{},r=t.attributes[e]||{},o=t.elements[e];Tp(o)&&$p(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[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 r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Tp(r)&&$p(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},Cf,Df,Nf,Af,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Mf(t,{elementContext:"reference"}),s=Mf(t,{altBoundary:!0}),l=$f(a,r),c=$f(s,o,i),u=zf(l),d=zf(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Bf(e){return ra("MuiPopper",e)}function Wf(e){return"function"==typeof e?e():e}oa("MuiPopper",["root"]);const Hf={},Uf=a.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h,ownerState:m,...g}=e,y=a.useRef(null),b=_s(y,t),v=a.useRef(null),S=_s(v,d),x=a.useRef(S);ii(()=>{x.current=S},[S]),a.useImperativeHandle(d,()=>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,o),[k,C]=a.useState(w),[E,L]=a.useState(Wf(n));a.useEffect(()=>{v.current&&v.current.forceUpdate()}),a.useEffect(()=>{n&&L(Wf(n))},[n]),ii(()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Ff(E,y.current,{placement:w,...u,modifiers:e});x.current(t);const n=y.current;return()=>{if(n){const{style:e}=n,r=e.position,o=e.top,i=e.left,a=e.transform;t.destroy(),e.position=r,e.top=o,e.left=i,e.transform=a}else t.destroy();x.current(null)}},[E,i,s,l,u,w]);const R={placement:k};null!==h&&(R.TransitionProps=h);const P=(e=>{const{classes:t}=e;return Sa({root:["root"]},Bf,t)})(e),O=f.root??"div",T=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:bc(n,r),{props:s,internalRef:l}=xc({...i,externalSlotProps:a}),c=_s(l,a?.ref,e.additionalProps?.ref);return yc(t,{...s,ref:c},r)}({elementType:O,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:P.root});return(0,Jo.jsx)(O,{...T,children:"function"==typeof r?r(R):r})}),Vf=Za(a.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=Hf,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:y={},...b}=e,[v,S]=a.useState(!0);if(!l&&!u&&(!m||v))return null;let x;if(o)x=o;else if(n){const e=Wf(n);x=e&&void 0!==e.nodeType?zl(e).body:zl(null).body}const w=u||!l||m&&!v?void 0:"none",k=m?{in:u,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,Jo.jsx)(gc,{disablePortal:s,container:x,children:(0,Jo.jsx)(Uf,{anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:t,open:m?!v:u,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:y,...b,style:{position:"fixed",top:0,left:0,display:w,...h},TransitionProps:k,children:r})})}),{name:"MuiPopper",slot:"Root"})({}),Gf=a.forwardRef(function(e,t){const n=Yo(),r=Ya({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:y,slotProps:b,...v}=r,S=y?.root??a?.Root,x={anchorEl:o,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...v};return(0,Jo.jsx)(Vf,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:b??s,...x,ref:t})});function Kf(e){return ra("MuiTooltip",e)}const Jf=oa("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Xf=Za(Gf,{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]}})(Cs(({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"] .${Jf.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jf.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jf.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Jf.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Jf.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Jf.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Jf.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Jf.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Zf=Za("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${Es(n.placement.split("-")[0])}`]]}})(Cs(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Jf.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Jf.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Jf.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:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Jf.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Jf.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Jf.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Jf.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),Yf=Za("span",{name:"MuiTooltip",slot:"Arrow"})(Cs(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Qf=!1;const eh=new tl;let th={x:0,y:0};function nh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:h=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:y=!1,id:b,leaveDelay:v=0,leaveTouchDelay:S=1500,onClose:x,onOpen:w,open:k,placement:C="bottom",PopperComponent:E,PopperProps:L={},slotProps:R={},slots:P={},title:O,TransitionComponent:T,TransitionProps:I,...q}=n,j=a.isValidElement(o)?o:(0,Jo.jsx)("span",{children:o}),M=Uo(),D=Yo(),[_,N]=a.useState(),[A,$]=a.useState(null),z=a.useRef(!1),F=p||y,B=nl(),W=nl(),H=nl(),U=nl(),[V,G]=_u({controlled:k,default:!1,name:"Tooltip",state:"open"});let K=V;const J=Ms(b),X=a.useRef(),Z=$s(()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),U.clear()});a.useEffect(()=>Z,[Z]);const Y=e=>{eh.clear(),Qf=!0,G(!0),w&&!K&&w(e)},Q=$s(e=>{eh.start(800+v,()=>{Qf=!1}),G(!1),x&&K&&x(e),B.start(M.transitions.duration.shortest,()=>{z.current=!1})}),ee=e=>{z.current&&"touchstart"!==e.type||(_&&_.removeAttribute("title"),W.clear(),H.clear(),h||Qf&&m?W.start(Qf?m:h,()=>{Y(e)}):Y(e))},te=e=>{W.clear(),H.start(v,()=>{Q(e)})},[,ne]=a.useState(!1),re=e=>{const t=e?.target??_;if(!t||!Ds(t)){ne(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),te(n)}},oe=e=>{_||N(e.currentTarget),Ds(e.target)&&(ne(!0),ee(e))},ie=e=>{z.current=!0;const t=j.props;t.onTouchStart&&t.onTouchStart(e)};a.useEffect(()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&Q(e)}},[Q,K]);const ae=Ns(Hl(j),N,t);O||0===O||(K=!1);const se=a.useRef(),le={},ce="string"==typeof O;c?(le.title=K||!ce||d?null:O,le["aria-describedby"]=K?J:null):(le["aria-label"]=ce?O:null,le["aria-labelledby"]=K&&!ce?J:null);const ue={...le,...q,...j.props,className:ti(q.className,j.props.className),onTouchStart:ie,ref:ae,...y?{onMouseMove:e=>{const t=j.props;t.onMouseMove&&t.onMouseMove(e),th={x:e.clientX,y:e.clientY},se.current&&se.current.update()}}:{}},de={};f||(ue.onTouchStart=e=>{ie(e),H.clear(),B.clear(),Z(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(g,()=>{document.body.style.WebkitUserSelect=X.current,ee(e)})},ue.onTouchEnd=e=>{j.props.onTouchEnd&&j.props.onTouchEnd(e),Z(),H.start(S,()=>{Q(e)})}),d||(ue.onMouseOver=nh(ee,ue.onMouseOver),ue.onMouseLeave=nh(te,ue.onMouseLeave),F||(de.onMouseOver=ee,de.onMouseLeave=te)),u||(ue.onFocus=nh(oe,ue.onFocus),ue.onBlur=nh(re,ue.onBlur),F||(de.onFocus=oe,de.onBlur=re));const pe={...n,isRtl:D,arrow:r,disableInteractive:F,placement:C,PopperComponentProp:E,touch:z.current},fe="function"==typeof R.popper?R.popper(pe):R.popper,he=a.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(A),options:{element:A,padding:4}}];return L.popperOptions?.modifiers&&(e=e.concat(L.popperOptions.modifiers)),fe?.popperOptions?.modifiers&&(e=e.concat(fe.popperOptions.modifiers)),{...L.popperOptions,...fe?.popperOptions,modifiers:e}},[A,L.popperOptions,fe?.popperOptions]),me=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Sa({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Es(i.split("-")[0])}`],arrow:["arrow"]},Kf,t)})(pe),ge="function"==typeof R.transition?R.transition(pe):R.transition,ye={slots:{popper:s.Popper,transition:s.Transition??T,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:R.arrow??l.arrow,popper:{...L,...fe??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...I,...ge??l.transition}}},[be,ve]=wc("popper",{elementType:Xf,externalForwardedProps:ye,ownerState:pe,className:ti(me.popper,L?.className)}),[Se,xe]=wc("transition",{elementType:sc,externalForwardedProps:ye,ownerState:pe}),[we,ke]=wc("tooltip",{elementType:Zf,className:me.tooltip,externalForwardedProps:ye,ownerState:pe}),[Ce,Ee]=wc("arrow",{elementType:Yf,className:me.arrow,externalForwardedProps:ye,ownerState:pe,ref:$});return(0,Jo.jsxs)(a.Fragment,{children:[a.cloneElement(j,ue),(0,Jo.jsx)(be,{as:E??Gf,placement:C,anchorEl:y?{getBoundingClientRect:()=>({top:th.y,left:th.x,right:th.x,bottom:th.y,width:0,height:0})}:_,popperRef:se,open:!!_&&K,id:J,transition:!0,...de,...ve,popperOptions:he,children:({TransitionProps:e})=>(0,Jo.jsx)(Se,{timeout:M.transitions.duration.shorter,...e,...xe,children:(0,Jo.jsxs)(we,{...ke,children:[O,r?(0,Jo.jsx)(Ce,{...Ee}):null]})})})]})}),oh=rh,ih=Za(js,{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 ah({width:e,text:t,dense:n,tooltip:r}){const{translator:o}=(0,a.useContext)(fa);return(0,Jo.jsx)(oh,{title:r?o.get(t):"",children:(0,Jo.jsx)(ih,{width:e,dense:n,component:"div",variant:"body1",py:"12px",children:o.get(t)})})}const sh=Vu((0,Jo.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"})),lh=Za(Gc)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),ch=Za("div")(()=>({paddingLeft:"6px",flexGrow:1})),uh=Za("div")(({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"})),dh=Za(sh)(()=>({fontSize:"14px"}));function ph({text:e,dismiss:t,dense:n,parentWidth:r=0}){const o="function"==typeof t,i=n?370:282,a=Math.max(r/2-i/2,0),s=Math.min(i,r)-42,l=n&&r<i;return(0,Jo.jsxs)(lh,{left:a,style:{maxWidth:i},children:[(0,Jo.jsx)(ch,{children:(0,Jo.jsx)(ah,{text:e,dense:n,width:s,tooltip:l})}),(0,Jo.jsx)(uh,{dense:n,children:o&&(0,Jo.jsx)(Ml,{"aria-label":"close",onClick:()=>t(),children:(0,Jo.jsx)(dh,{})})})]})}function fh({itemWidth:e,layout:t,frequencyMode:n}){const r=e>80,{frequencyEnabled:o=!1}=t?.qListObject||{},i=!["N",void 0].includes(n);return!(!r||!i&&!o)}const hh=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,mh=e=>{const t=hh(e);return`Max(AGGR(Count(${t}), ${t}))`},gh=Za("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function yh({model:e,app:t,constraints:n,layout:r,selections:o,selectionState:i,direction:s,checkboxes:l,height:c,width:u,frequencyMode:d,update:p,fetchStart:f,postProcessPages:h,calculatePagesHeight:m=!1,keyboard:g={},showGray:y=!0,scrollState:b,keyScroll:v={state:{},reset:()=>{}},currentScrollIndex:S={set:()=>{}},renderedCallback:x,onCtrlF:w,showSearch:k,isModal:C,styles:E}){const{translator:L}=(0,a.useContext)(fa),[R,P]=(0,a.useState)(!1),O=!(!r||!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:T=l,histogram:I}=r??{},q=(0,a.useRef)(null),j=(0,a.useRef)({queue:[],validPages:!1,dataOffset:0}),M=(0,a.useRef)({pages:[]}),{frequencyMax:D,awaitingFrequencyMax:_}=((e,t)=>{const n=(e=>"fetch"===e?.frequencyMax)(t),[r,o]=(0,a.useState)(),[i,s]=(0,a.useState)(n);return(0,a.useEffect)(()=>{n&&(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=mh(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),s(!1)})()},[n&&t]),{frequencyMax:n?r:t?.frequencyMax,awaitingFrequencyMax:i}})(t,r),{isLoadingData:N,...A}=function({local:e,loaderRef:t,model:n,fetchStart:r,scrollTimeout:o,postProcessPages:i,listData:s}){const[l,c]=(0,a.useState)(!1),[u,d]=(0,a.useState)([]);let[p]=(0,a.useState)(0);const f=(a,l)=>{const u=e.current.dataOffset;e.current.queue.push({start:a+u,stop:l+u});const f=!!t.current&&t.current._listRef&&t.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 o=e.current.queue.slice(-1)[0];if(!o)return c(!1),void t();const a=n.getListObjectData("/qListObjectDef",[{qTop:o.start>p?o.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:o.start,qHeight:p,qLeft:0,qWidth:1}]).then(n=>{const r=i?i(n):n;e.current.validPages=!0,s.current.pages=r,d(r),c(!1),t()});r&&r(a)},f?o:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(p=e),f)},pages:u,isLoading:l}}({local:j,loaderRef:q,model:e,fetchStart:f,scrollTimeout:0,postProcessPages:h,listData:M}),{getStoreValue:$,setStoreValue:z}=Rp(e),F=(0,a.useCallback)(A.loadMoreItems,[r]),[B,W]=(0,a.useState)({show:!1,dismissed:!1}),[H,U]=(0,a.useState)([]);A?.pages&&i.update({setPages:U,pages:A.pages,isSingleSelect:O,layout:r});const V=r?.qListObject.qDimensionInfo.qCardinal;(A?.pages.length&&!_||0===V)&&x?.();const G=(0,a.useCallback)(e=>{if(!H?.length||!j.current.validPages)return!1;j.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=H.filter(e=>t(e))[0];return n&&t(n)},[r,H]),{interactionEvents:K,select:J}=function({selectionState:e,selections:t,checkboxes:n=!1,doc:r=document,loaderRef:o}){const i=(0,a.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,a.useEffect)(()=>{if(!o.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=o.current._listRef._outerRef;return r.addEventListener("gesturestart",e),r.addEventListener("gesturechange",t),r.addEventListener("gestureend",n),()=>{r.removeEventListener("gesturestart",e),r.removeEventListener("gesturechange",t),r.removeEventListener("gestureend",n)}},[o.current?._listRef?._outerRef]);const s=async()=>!e.selectDisabled?.()&&(e.setSelectableValuesUpdating(),uu({selections:t,elemNumbers:i.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:i.current.toggle})),l=(t,n)=>{const r=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 cu(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r}),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([t,n],r)},c=t=>{const{startElemNumber:n}=i.current;if(n===t)return;const r=l(i.current.startElemNumber,t);e.updateItems(r,!0,i.current.elemNumbers)},u=(0,a.useCallback)(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),r=!e.isSingleSelect&&hu(t.nativeEvent);i.current.elemNumbers=[n],i.current.toggle=r,r||e.clearItemStates(!0),e.updateItem(n),i.current.active=!1,s()},[]),d=(0,a.useCallback)(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),r=!e.isSingleSelect&&hu(t);i.current.isRange=!1,i.current.startElemNumber=n,i.current.elemNumbers=[n],i.current.toggle=r,i.current.active=!0,r||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(i.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),p=(0,a.useCallback)(e=>{if(0===e.button&&i.current.active){if(i.current.active=!1,i.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}s()}},[]),f=(0,a.useCallback)(e=>{0===e.button&&i.current.active&&(i.current.active=!1,s())},[]),h=(0,a.useCallback)(t=>{if(!i.current.active)return;i.current.isRange||(i.current.isRange=!0,e.isSelected(i.current.startElemNumber)||(e.updateItem(i.current.startElemNumber,!0),i.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=(0,a.useCallback)(t=>{if(i.current.active||i.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void s();const n=Number(t.touches[0].target?.closest(fu)?.getAttribute("data-n")),r=Number(t.touches[1].target?.closest(fu)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?s():(i.current.active=!0,l(n,r).length<7&&(i.current.touchRangeSmall=!0),i.current.elemNumbers=[],i.current.touchElemNumbers=[n,r])},[]),g=(0,a.useCallback)(()=>{if(2!==i.current.touchElemNumbers.length)return;if(i.current.touchRangeSmall)return i.current.touchRangeSmall=!1,i.current.touchElemNumbers=[],void(i.current.active=!1);const[e,t]=i.current.touchElemNumbers;i.current.startElemNumber=e,c(t),i.current.touchElemNumbers=[],i.current.active=!1,i.current.toggle=!0,s()},[]);(0,a.useEffect)(()=>(r.addEventListener("mouseup",f),()=>{r.removeEventListener("mouseup",f)}),[f]),(0,a.useEffect)(()=>{const n=()=>{e.clearItemStates(!1)},r=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",n),t.on("deactivated",n),t.on("cleared",r),()=>{t.removeListener("clearItemStates",n),t.removeListener("deactivated",n),t.removeListener("cleared",r)}},[t]);const y={};return n?Object.assign(y,{onChange:u}):Object.assign(y,{onMouseUp:p,onMouseDown:d,onMouseEnter:h,onTouchStart:m,onTouchEnd:g}),{interactionEvents:y,select:async(n=[],r=!1,o=void 0)=>{if(e.selectDisabled?.())return!1;const i=!e.isSingleSelect&&hu(o?.nativeEvent);i||e.clearItemStates(!0);const a=[];return e.updateItems(n,r,a),e.setSelectableValuesUpdating(),uu({selections:t,elemNumbers:r?a:n,isSingleSelect:e.isSingleSelect,toggle:i})}}}({selectionState:i,selections:o,checkboxes:T,doc:document,loaderRef:q}),{layoutOptions:X={}}=r||{};let Z=!0;X.dataLayout&&(Z="singleColumn"===X.dataLayout||"row"===X?.layoutOrder);const Y="grid"===X?.dataLayout,Q=e=>{const t={...Z?{rowIndex:e}:{columnIndex:e}},n=Y?t:e;q.current._listRef.scrollToItem(n)},ee=()=>{if(j.current.queue=[],j.current.validPages=!1,q.current){q.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===v.state.scrollPosition;if(r&&r.qSelectionInfo.qInSelections||e)return void(e&&v.reset());j.current.dataOffset=0,Q(0)}};p&&p.call(null,ee),(0,a.useEffect)(()=>{b&&!R&&q.current&&(q.current._listRef.scrollToItem(b.initScrollPos),P(!0))},[q.current]),(0,a.useEffect)(()=>{ee()},[r,j.current.dataOffset]);let te=100;const ne="grid"!==X.dataLayout,re=r?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:r=!1}){const o=e?.length&&r?(({pages:e=[],minimumBatchSize:t,count:n})=>{const r=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return r?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}({pages:H,minimumBatchSize:te,count:re,calculatePagesHeight:m,layoutOptions:X,model:e});let ie=fh({itemWidth:u,layout:r,frequencyMode:d});const ae=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>!!e.qFrequency?.match("%")))?"P":"-"}(H),se=function({layout:e,width:t,height:n,listCount:r,count:o,freqIsAllowed:i,checkboxes:a,styles:s}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:u={},maxVisibleColumns:d,dense:p,dataLayout:f}=l,{fontSize:h="12px",fontFamily:m="Source sans pro"}=s?.content||{},g=`${h} ${m}`,y=wp({text:kp(e),font:g}),b=wp({text:kp(5),font:g}),v=wp({text:kp(8),font:g}),S=i?b:0,x=a?20:0;let w=56+S+x;!a&&w>=80&&(w+=20);let k,C,E,L,R=y+18+S+x;!a&&R>=80&&(R+=20),R=Math.min(150,Math.max(R,w));const P=Cp({isGridMode:"grid"===f,dense:p}),O=n??8*P;if(c){let e=t;"row"===c?(k={overflowX:"hidden"},e+=8,({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:r,itemMinWidth:o}){const i=e?.maxColumns||3,a=n-10;let s;const l=Math.min(t,Math.max(1,Math.round(a/Math.max(o,r))));s=!1!==e?.auto?l:Math.min(t,i,l),s=Math.max(s,1);const c=a/s;return{rowCount:Math.ceil(t/s),columnWidth:c,columnCount:s}}({maxVisibleColumns:d,listCount:r,containerWidth:e,columnAutoWidth:R,itemMinWidth:w}))):(k={overflowY:"hidden"},({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r,columnAutoWidth:o,containerWidth:i,itemMinWidth:a}){let s;const l=e?.maxRows||3,c=Math.floor(r/t);s=!1!==e.auto?c:Math.min(n,l,c),s=Math.max(s,1);const u=Math.ceil(n/s);return{columnWidth:Math.max(o,i/u,a),columnCount:u,rowCount:s}}({maxVisibleRows:u,itemHeight:P,listCount:r,listHeight:O,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}C=("singleColumn"===f?1:C)||1,L=("singleColumn"===f?o:L)||r;const T=l.dense?838e3:577e3;L=Math.min(L,T);const I=Math.floor(3355e4/E);C=Math.min(C,I)||1;const q=L*C;return{columnCount:C,columnWidth:E,rowCount:L,overflowStyling:k,itemHeight:P,listHeight:O,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(r,q),maxCount:{row:T,column:I},itemPadding:4,textWidth:y,freqMinWidth:b,freqMaxWidth:v}}({layout:r,width:u,height:c,listCount:oe,count:re,freqIsAllowed:ie,checkboxes:T,styles:E});se.columnWidth&&(ie=fh({itemWidth:se.columnWidth,layout:r,frequencyMode:d}));const{listCount:le}=se;z("listCount",le);const ce=$("inputText"),ue=function({layout:e,searchInputText:t,listCount:n}){const{translator:r}=(0,a.useContext)(fa),o=[];if(t?.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}(n),t=r.get(e,[n]);o.push(t)}const i=function({layout:e,translatorDynamic:t}){const{qStateCounts:n={}}=e?.qListObject?.qDimensionInfo||{},r=n.qSelected+n.qSelectedExcluded+n.qLocked+n.qLockedExcluded;let o;switch(r){case 0:o="ScreenReader.ZeroSelected";break;case 1:o="ScreenReader.OneSelected";break;default:o="ScreenReader.ManySelected"}return t.get(o,[r])}({layout:e,translatorDynamic:r});o.push(i);const s=o.filter(e=>!!e?.length).join(". ");return s}({layout:r,searchInputText:ce,listCount:le}),de=e=>{const{scrollIndex:t,offset:n,triggerRerender:o}=function({position:e,isRow:t,sizes:n,layout:r,offset:o}){let i,a=!1,s=o??0;switch(e){case"start":i=0;break;case"end":i=t?n.rowCount:n.columnCount;break;case"overflowStart":s=0,i=0,a=!0;break;case"overflowEnd":s=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(r,n.listCount),i=r.qListObject.qDimensionInfo.qCardinal,a=!0}return{scrollIndex:i,offset:s,triggerRerender:a}}({position:e,isRow:Z,sizes:se,layout:r,offset:j.current.dataOffset});j.current.dataOffset=n,o&&i.triggerStateChanged(),Q(t)};(0,a.useEffect)(()=>{const e=v.state;e.up?Q(S.state.start-e.up):e.down?Q(S.state.stop+e.down):e.scrollPosition&&de(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&v.reset()},[v.state.up,v.state.down,v.state.scrollPosition]);const{textAlign:pe}=r?.qListObject.qDimensionInfo||{},[fe,he]=(0,a.useState)({first:!1,last:!1}),{List:me,Grid:ge}=function({layout:e,width:t,checkboxes:n,local:r,isVertical:o,pages:i,selectionState:a,interactionEvents:s,deducedFrequencyMode:l,histogram:c,isSingleSelect:u,select:d,selectAll:p,onCtrlF:f,textAlign:h,selections:m,keyboard:g,showGray:y,scrollState:b,direction:v,sizes:S,listCount:x,overflowDisclaimer:w,setScrollPosition:k,focusListItems:C,setCurrentScrollIndex:E,constraints:L,frequencyMax:R,freqIsAllowed:P,translator:O,showSearch:T,isModal:I,styles:q}){const{layoutOptions:j={}}=e||{},{columnWidth:M,listHeight:D,itemHeight:_,rowCount:N,columnCount:A}=S||{},$=("grid"===j.dataLayout?M:t)>80,z={direction:"rtl"===v?"rtl":"ltr",useIsScrolling:!0,className:bp},F=e?.qListObject.qDimensionInfo.qLocked,B=D<=_,W={isLocked:F,column:!o,pages:i,...F||a.selectDisabled()?{}:s,checkboxes:n,layoutOptions:j,deducedFrequencyMode:l,freqIsAllowed:P,isSingleSelect:u,textAlign:h,sizes:S,actions:{select:d,confirm:()=>m?.confirm.call(m),cancel:()=>m?.cancel.call(m),setScrollPosition:k,selectAll:p,onCtrlF:f},frequencyMax:R,histogram:c,keyboard:g,showGray:y,showTick:$,dataOffset:r.current.dataOffset,focusListItems:C,direction:v,translator:O,showSearch:T,isModal:I,styles:q,fillHeight:B};return{List:({onItemsRendered:n,ref:o})=>(r.current.listRef=o,(0,Jo.jsx)(Sp,{...z,dataTestid:"fixed-size-list",scrollDisabled:L?.active,height:D,width:t,itemCount:x,itemData:{...W,listCount:x},itemSize:_,onItemsRendered:t=>{E({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),vp({renderProps:t,layoutOptions:j,maxCount:S.maxCount,columnCount:A,rowCount:N,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:r.current.dataOffset}),n({...t})},ref:o,children:Xd})),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:i,scrollBarWidth:a}=S,{layoutOrder:s}=j||{},l=Math.min(D,N*_+a);return r.current.listRef=o,(0,Jo.jsx)(xp,{...z,dataTestid:"fixed-size-grid",scrollDisabled:L?.active,height:l,width:t,columnCount:A,columnWidth:M,rowCount:N,rowHeight:_,style:{...i},itemData:{...W,column:void 0,columnCount:A,rowCount:N},onItemsRendered:t=>{const o="row"===s;E({start:o?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:o?t.visibleRowStopIndex:t.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,f=c*o,h=s):(d=l,p=a*i,f=c,h=s*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:t,scrollState:b,layoutOrder:s,rowCount:N,columnCount:A});vp({renderProps:t,layoutOptions:j,maxCount:S.maxCount,columnCount:A,rowCount:N,overflowDisclaimer:w,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:r.current.dataOffset}),n(i)},ref:o,children:Xd})}}}({direction:s,layout:r,height:c,width:u,checkboxes:T,deducedFrequencyMode:ae,histogram:I,keyboard:g,showGray:y,interactionEvents:K,select:J,selectAll:()=>{i.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:w,textAlign:pe,isVertical:ne,pages:H,selectionState:i,isSingleSelect:O,selections:o,scrollState:b,local:j,sizes:se,listCount:le,overflowDisclaimer:{state:B,set:e=>W(t=>({...t,show:e}))},setScrollPosition:de,focusListItems:{first:fe.first,setFirst:e=>he(t=>({...t,first:e})),last:fe.last,setLast:e=>he(t=>({...t,last:e}))},setCurrentScrollIndex:S.set,constraints:n,frequencyMax:D,freqIsAllowed:ie,translator:L,showSearch:k,isModal:C,styles:E}),{columnWidth:ye,listHeight:be,itemHeight:ve}=se||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:r}){return Math.ceil(e/t)*Math.ceil(n/r)*2}({width:u,columnWidth:ye,listHeight:be,itemHeight:ve})),(0,Jo.jsxs)(gh,{children:[(0,Jo.jsx)("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:ue}),!le&&V>0&&(0,Jo.jsx)(ah,{width:u,text:"Listbox.NoMatchesForYourTerms"}),(0,Jo.jsx)(su,{isItemLoaded:G,itemCount:le||1,loadMoreItems:F.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:q,role:"grid",children:ne?me:ge}),B.show&&!B.dismissed&&(0,Jo.jsx)(ph,{text:"Listbox.ItemsOverflow",dismiss:()=>W(e=>({...e,dismissed:!0})),parentWidth:q?.current?._listRef?.props?.width,dense:X?.dense})]})}const bh=e=>({...e,shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]});n.dn(e=>(void 0)(bh(e)));const vh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});n.dn(e=>(void 0)(vh(e)));const Sh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});n.dn(e=>(void 0)(Sh(e)));const xh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});n.dn(e=>(void 0)(xh(e)));const wh=({layout:e,model:t,translator:n,selectionState:r,isDirectQuery:o=!1,selections:i})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const a="/qListObjectDef",s=()=>{i.isActive()||i.begin(a)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:bh,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectAll(a)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:Sh,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectPossible(a)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:vh,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectAlternative(a)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:xh,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{s(),r.clearItemStates(!1),t.selectListObjectExcluded(a)}}].filter(Boolean)};function kh(e){return ra("MuiDivider",e)}n.dn(wh);const Ch=oa("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Eh=Za("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]}})(Cs(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Lh=Za("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Cs(({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)`}}]}))),Rh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:s=(o||"vertical"===a?"div":"hr"),flexItem:l=!1,light:c=!1,role:u=("hr"!==s?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:s,flexItem:l,light:c,orientation:a,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Sa({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},kh,r)})(h);return(0,Jo.jsx)(Eh,{as:s,className:ti(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===s&&"vertical"!==a?void 0:a,...f,children:o?(0,Jo.jsx)(Lh,{className:m.wrapper,ownerState:h,children:o}):null})});Rh&&(Rh.muiSkipListHighlight=!0);const Ph=Rh,Oh=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 Th(e){const t=Uo(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}n.dn(e=>(void 0)(Oh(e)));const Ih={className:"njs-cell-action"},qh=a.forwardRef(({item:e,addAnchor:t=!1},n)=>{const r=Uo(),{hidden:o,disabled:i,style:a,hasSvgIconShape:s}=Th(e);if(o)return null;const l=Number.parseInt(r.spacing(.5),10),c=e.keyboardAction||e.action,u=c?e=>["Enter"].includes(e.key)&&c():null,d=c?e=>[" ","Spacebar"].includes(e.key)&&c():null,p=`actions-toolbar-${e.key}`,f=e.ref||(t?null:n);return(0,Jo.jsxs)(Ml,{ref:f,title:e.label,onClick:e.action,onKeyDown:u,onKeyUp:d,disabled:i,style:a,className:[Ih.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":p,children:[s&&vs(e.getSvgIconShape()),t&&(0,Jo.jsx)("div",{ref:n,style:{bottom:-l,right:0,position:"absolute",width:"100%",height:0}})]})}),jh=qh,Mh=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"}}]}),Dh=e=>vs(Mh(e));n.dn(Dh);const _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 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"}}]}),Nh=e=>vs(_h(e));n.dn(Nh);const Ah=a.createContext({}),$h=ii;function zh(e){return ra("MuiListItemIcon",e)}const Fh=oa("MuiListItemIcon",["root","alignItemsFlexStart"]),Bh=oa("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Wh(e){return ra("MuiMenuItem",e)}const Hh=oa("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Uh=a.createContext(null);Uh.Provider;const Vh=Za(gl,{shouldForwardProp:e=>Xa(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]}})(Cs(({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"}},[`&.${Hh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Hh.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Hh.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ch.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ch.inset}`]:{marginLeft:52},[`& .${Bh.root}`]:{marginTop:0,marginBottom:0},[`& .${Bh.inset}`]:{paddingLeft:36},[`& .${Fh.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,[`& .${Fh.root} svg`]:{fontSize:"1.25rem"}}}]}))),Gh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...f}=n,h=a.useContext(Uh),m=a.useContext(Ah),g=a.useMemo(()=>({dense:i||m.dense||!1,disableGutters:l}),[m.dense,i,l]),y=a.useRef(null);$h(()=>{r&&y.current&&function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(y.current,h)},[r]);const b={...n,dense:g.dense,divider:s,disableGutters:l},v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=Sa({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Wh,a);return{...a,...s}})(n),S=Ns(y,t),{root:x,...w}=v;let k;return n.disabled||(k=void 0!==d?d:-1),(0,Jo.jsx)(Ah.Provider,{value:g,children:(0,Jo.jsx)(Vh,{ref:S,role:u,tabIndex:k,component:o,focusVisibleClassName:ti(v.focusVisible,c),className:ti(v.root,p),...f,ownerState:b,classes:w})})}),Kh=Gh,Jh=Za("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Cs(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Xh=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=a.useContext(Ah),s={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Sa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zh,n)})(s);return(0,Jo.jsx)(Jh,{className:ti(l.root,r),ownerState:s,ref:t,...o})}),Zh=Xh;function Yh(e){return ra("MuiList",e)}oa("MuiList",["root","padding","dense","subheader"]);const Qh=Za("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}}]}),em=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=n,d=a.useMemo(()=>({dense:s}),[s]),p={...n,component:i,dense:s,disablePadding:l},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sa({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Yh,t)})(p);return(0,Jo.jsx)(Ah.Provider,{value:d,children:(0,Jo.jsxs)(Qh,{as:i,className:ti(f.root,o),ref:t,ownerState:p,...u,children:[c,r]})})}),tm=em,nm=qc;function rm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function om(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function im(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 am(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&im(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const sm=a.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,f=a.useRef(null),h=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$h(()=>{r&&f.current.focus()},[r]),a.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${nm(Wl(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=Ns(f,t);let g=-1;a.Children.forEach(i,(e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const y=a.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e});return(0,Jo.jsx)(tm,{role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=cc(Fl(t));if("ArrowDown"===n)e.preventDefault(),am(t,r,c,l,rm);else if("ArrowUp"===n)e.preventDefault(),am(t,r,c,l,om);else if("Home"===n)e.preventDefault(),am(t,null,c,l,rm);else if("End"===n)e.preventDefault(),am(t,null,c,l,om);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&im(r,o);o.previousKeyMatched&&(s||am(t,r,!1,l,rm,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...p,children:y})}),lm="More-icon",cm=Za(ru)(({theme:e})=>({pointerEvents:"none",[`& .${lm} *`]:{color:e.palette.text.primary}}));function um({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:r,disabled:o,hasSvgIconShape:i}=Th(e);return r?null:(0,Jo.jsxs)(Kh,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[i&&(0,Jo.jsx)(Zh,{className:lm,children:vs(e.getSvgIconShape())}),(0,Jo.jsx)(js,{noWrap:!0,children:e.label})]})}const dm=a.forwardRef(({actions:e=[],show:t=!0,alignTo:n,popoverProps:r={},popoverPaperStyle:o={},onCloseOrActionClick:i=()=>{},disablePortal:a=!0},s)=>{const l=e.length>0,c=e.findIndex(e=>!e.disabled);return l&&(0,Jo.jsx)(cm,{...r,onClose:i,ref:s,open:t,anchorEl:n.current,getContentAnchorEl:a?null:void 0,container:a?n.current:void 0,disablePortal:a,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:{pointerEvents:"auto",maxWidth:"250px",...o}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,Jo.jsx)(sm,{id:"moreMenuList",children:e.map((e,t)=>(0,Jo.jsx)(um,{item:e,autoFocus:t===c,onActionClick:i},t))})})});const pm="ActionsToolbar",fm={item:`${pm}-item`,itemSpacing:`${pm}-itemSpacing`},hm=Za(ru)(({theme:e})=>({[`& .${fm.itemSpacing}`]:{padding:e.spacing(0,.25)}})),mm=a.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:r=!1},o)=>t.length>0?(0,Jo.jsx)(es,{container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>(0,Jo.jsx)(es,{className:`${fm.itemSpacing} ${fm.item}`,children:(0,Jo.jsx)(jh,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),gm={pointerEvents:"none"},ym=function({show:e=!0,actions:t=[],maxItems:n=3,selections:r={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:o,more:i={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:s={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:c=null,isRtl:u,autoConfirm:d=!1,layout:p}){const f=function({api:e,layout:t,onConfirm:n=()=>{},onCancel:r=()=>{},onKeyDeactivate:o=()=>{}}){const{translator:i}=(0,a.useContext)(fa);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:_h},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{r(),e.cancel()},keyboardAction:()=>{o(),r(),e.cancel()},getSvgIconShape:Mh},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{o(),n(),e.confirm()},getSvgIconShape:mu}]}({...r,layout:p}),{translator:h,keyboardNavigation:m}=(0,a.useContext)(fa),[g,y]=(0,a.useState)(!1),b={vertical:12,horizontal:u?0:(s.anchorEl?.clientWidth??0)-7},v={vertical:"bottom",horizontal:u?-7:"right"},S=(0,a.useRef)(),x=(0,a.useRef)(),w=Uo(),k=(0,a.useMemo)(()=>({margin:w.spacing(.5,0)})),C=e=>{const t=S.current||c;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=(0,a.useMemo)(()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:r,isRtl:o}){return i=>{const{target:a,nativeEvent:s}=i,{keyCode:l}=s;switch(l){case zd.ARROW_LEFT:case zd.ARROW_DOWN:case zd.ARROW_RIGHT:case zd.ARROW_UP:if(a.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)})(a);let t=[zd.ARROW_LEFT,zd.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)}i.stopPropagation(),i.preventDefault();break;case zd.SPACE:i.preventDefault();break;case zd.TAB:e&&t?.refocusContent&&(i.shiftKey&&n(!1)===i.target||!i.shiftKey&&n(!0)===i.target)&&(i.preventDefault(),i.stopPropagation(),t.refocusContent());break;case zd.ESCAPE:r&&(r.onCancel(),r.api.cancel(),i.preventDefault(),i.stopPropagation())}}}({keyboardNavigation:m,focusHandler:l,getEnabledButton:C,selections:r,isRtl:u}),[m,l,C,r,u]);if((0,a.useEffect)(()=>()=>{y(!1)},[s.show,e,r.show]),(0,a.useEffect)(()=>{l&&(l.on("focus_toolbar_first",()=>{const e=C(!1);e?.focus()}),l.on("focus_toolbar_last",()=>{const e=C(!0);e?.focus()}))},[]),d)return;let L=i.enabled,R=i.actions;const P=i.alignTo||x,O=t.filter(e=>!e.hidden);if(O.length>n){const e=O.splice(-(O.length-n)-1);L=!0,R=[...e,...i.actions]}if(!r.show&&0===O.length&&!L)return null;const T={key:"more",label:h.get("Menu.More"),getSvgIconShape:Oh,hidden:!1,active:g,enabled:()=>L,action:()=>y(!g)},I=O.length>0,q=R.length>0,j=I&&r.show||q&&r.show,M=(0,Jo.jsxs)(es,{ref:S,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:u?"row-reverse":"row"},children:[o?.length&&(0,Jo.jsx)(mm,{className:"actions-toolbar-extra-actions",actions:o,isRtl:u}),I&&(0,Jo.jsx)(mm,{actions:O}),q&&(0,Jo.jsx)(mm,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:x,actions:[T],addAnchor:!0}),j&&(0,Jo.jsx)(es,{className:fm.itemSpacing,style:k,children:(0,Jo.jsx)(Ph,{orientation:"vertical"})}),r.show&&(0,Jo.jsx)(mm,{className:"actions-toolbar-default-actions",actions:f,isRtl:u}),g&&(0,Jo.jsx)(dm,{show:g,actions:R,alignTo:P,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{y(!1)},disablePortal:i.disablePortal})]});return s.show?(0,Jo.jsx)(hm,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:b,transformOrigin:v,hideBackdrop:!0,style:gm,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:w.spacing(.5,.25)}}},children:M}):e&&M};var bm;const vm=Za("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Xa})({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%"}),Sm=Za("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Xa})(Cs(({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})}}]})));function xm(e){return ra("MuiInputBase",e)}const wm=oa("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function km(e){return ra("MuiOutlinedInput",e)}const Cm={...wm,...oa("MuiOutlinedInput",["root","notchedOutline","input"])};function Em(e){return parseInt(e,10)||0}const Lm={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rm(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pm=a.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:s,...l}=e,{current:c}=a.useRef(null!=s),u=a.useRef(null),d=_s(t,u),p=a.useRef(null),f=a.useRef(null),h=a.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const i=Bl(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 a=i.boxSizing,s=Em(i.paddingBottom)+Em(i.paddingTop),l=Em(i.borderBottomWidth)+Em(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;return o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),m=As(()=>{const e=u.current,t=h();if(!e||!t||Rm(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=a.useCallback(()=>{const e=u.current,t=h();if(!e||!t||Rm(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),y=a.useRef(-1);return ii(()=>{const e=Al(g),t=u?.current;if(!t)return;const n=Bl(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(y.current),g(),y.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(y.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),ii(()=>{g()}),(0,Jo.jsxs)(a.Fragment,{children:[(0,Jo.jsx)("textarea",{value:s,onChange:e=>{c||g();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:o,style:i,...l}),(0,Jo.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Lm,...i,paddingTop:0,paddingBottom:0}})]})}),Om=Pm;function Tm(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}var Im;const qm="mui-auto-fill",jm="mui-auto-fill-cancel",Mm=(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${Es(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dm=(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]},_m=Za("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mm})(Cs(({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",[`&.${wm.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%"}}]}))),Nm=Za("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dm})(Cs(({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})},r={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] + .${wm.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${wm.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:jm,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:qm}}},{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"}}]}})),Am=function(e){return function(t){return(0,Jo.jsx)(ws,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${qm}`]:{from:{animationName:qm}},[`@keyframes ${jm}`]:{from:{animationName:jm}}}),$m=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,error:m,fullWidth:g=!1,id:y,inputComponent:b="input",inputProps:v={},inputRef:S,margin:x,maxRows:w,minRows:k,multiline:C=!1,name:E,onBlur:L,onChange:R,onClick:P,onFocus:O,onKeyDown:T,onKeyUp:I,placeholder:q,readOnly:j,renderSuffix:M,rows:D,size:_,slotProps:N={},slots:A={},startAdornment:$,type:z="text",value:F,...B}=n,W=null!=v.value?v.value:F,{current:H}=a.useRef(null!=W),U=a.useRef(),V=a.useCallback(e=>{},[]),G=Ns(U,S,v.ref,V),[K,J]=a.useState(!1),X=Pu(),Z=Iu({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:K,a.useEffect(()=>{!X&&p&&K&&(J(!1),L&&L())},[X,p,K,L]);const Y=X&&X.onFilled,Q=X&&X.onEmpty,ee=a.useCallback(e=>{!function(e,t=!1){return e&&(Tm(e.value)&&""!==e.value||t&&Tm(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():Y&&Y()},[Y,Q]);$h(()=>{H&&ee({value:W})},[W,ee,H]),$h(()=>{if(!i)return;const e=U.current;if(!e)return;const t=Fl(e),n=cc(t),r=null==n||n===t.body||n===t.documentElement;e===n?X&&X.onFocus?X.onFocus():J(!0):r&&e.focus()},[i]),a.useEffect(()=>{ee(U.current)},[]);let te=b,ne=v;C&&"input"===te&&(ne=D?{type:void 0,minRows:D,maxRows:D,...ne}:{type:void 0,maxRows:w,minRows:k,...ne},te=Om),a.useEffect(()=>{X&&X.setAdornedStart(Boolean($))},[X,$]);const re={...n,color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:g,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:$,type:z},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sa({root:["root",`color${Es(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Es(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},xm,t)})(re),ie=A.root||c.Root||_m,ae=N.root||u.root||{},se=A.input||c.Input||Nm;return ne={...ne,...N.input??u.input},(0,Jo.jsxs)(a.Fragment,{children:[!f&&"function"==typeof Am&&(Im||(Im=(0,Jo.jsx)(Am,{}))),(0,Jo.jsxs)(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!Nl(ie)&&{ownerState:{...re,...ae.ownerState}},className:ti(oe.root,ae.className,s,j&&"MuiInputBase-readOnly"),children:[$,(0,Jo.jsx)(Ru.Provider,{value:null,children:(0,Jo.jsx)(se,{"aria-invalid":Z.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:d,disabled:Z.disabled,id:y,onAnimationStart:e=>{ee(e.animationName===jm?U.current:{value:"x"})},name:E,placeholder:q,readOnly:j,required:Z.required,rows:D,value:W,onKeyDown:T,onKeyUp:I,type:z,...ne,...!Nl(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:ti(oe.input,ne.className,j&&"MuiInputBase-readOnly"),onBlur:e=>{L&&L(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||U.current;if(null==t)throw new Error(qe(1));ee({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{O&&O(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):J(!0)}})}),h,M?M({...Z,startAdornment:$}):null]})]})}),zm=$m,Fm=Za(_m,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mm})(Cs(({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 .${Cm.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Cm.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Cm.focused} .${Cm.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ls()).map(([t])=>({props:{color:t},style:{[`&.${Cm.focused} .${Cm.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Cm.error} .${Cm.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Cm.disabled} .${Cm.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"}}]}})),Bm=Za(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=null!=o&&""!==o,l={...e,notched:i,withLabel:s};return(0,Jo.jsx)(vm,{"aria-hidden":!0,className:r,ownerState:l,...a,children:(0,Jo.jsx)(Sm,{ownerState:l,children:s?(0,Jo.jsx)("span",{children:o}):bm||(bm=(0,Jo.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Cs(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Wm=Za(Nm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dm})(Cs(({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}}]}))),Hm=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:s,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...f}=n,h=(e=>{const{classes:t}=e,n=Sa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},km,t);return{...t,...n}})(n),m=Pu(),g=Iu({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:p},b=u.root??r.Root??Fm,v=u.input??r.Input??Wm,[S,x]=wc("notchedOutline",{elementType:Bm,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:null!=s&&""!==s&&g.required?(0,Jo.jsxs)(a.Fragment,{children:[s," ","*"]}):s}});return(0,Jo.jsx)(zm,{slots:{root:b,input:v},slotProps:d,renderSuffix:e=>(0,Jo.jsx)(S,{...x,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:l,ref:t,type:p,...f,classes:{...h,notchedOutline:null}})});Hm.muiName="Input";const Um=Hm;function Vm(e){return ra("MuiInputAdornment",e)}const Gm=oa("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Km;const Jm=Za("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Es(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Cs(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Gm.positionStart}&:not(.${Gm.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Xm=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...d}=n,p=Pu()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const h={...n,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:f},m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Sa({root:["root",n&&"disablePointerEvents",o&&`position${Es(o)}`,a,r&&"hiddenLabel",i&&`size${Es(i)}`]},Vm,t)})(h);return(0,Jo.jsx)(Ru.Provider,{value:null,children:(0,Jo.jsx)(Jm,{as:i,ownerState:h,className:ti(m.root,o),ref:t,...d,children:"string"!=typeof r||l?(0,Jo.jsxs)(a.Fragment,{children:["start"===c?Km||(Km=(0,Jo.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]}):(0,Jo.jsx)(js,{color:"textSecondary",children:r})})})}),Zm=Xm,Ym=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));n.dn(Ym);const Qm="/qListObjectDef",eg=e=>e?.substring(0,64e3),tg=Za(Um,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let r={};return t&&(r={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"},...r}}),ng=Za(Ml)(()=>({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 rg({popoverOpen:e,selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:s=!0,autoFocus:l=!0,beginSelectionOnFocus:c=!0,wildCardSearch:u=!1,searchEnabled:d,direction:p,hide:f,styles:h},m){const{translator:g}=(0,a.useContext)(fa),[y,b]=(0,a.useState)(""),[v,S]=(0,a.useState)(!1),x=(0,a.useRef)(),w=(0,a.useRef)(),k=g.get("Listbox.Clear.Search"),{getStoreValue:C,setStoreValue:E}=Rp(r),L="rtl"===p,R=async()=>{try{await r.abortListObjectSearch(Qm)}finally{b("")}};(0,a.useEffect)(()=>s?()=>R():()=>{},[s]),(0,a.useEffect)(()=>(t.on("deactivated",R),()=>{t.removeListener&&t.removeListener("deactivated",R)}),[]),(0,a.useEffect)(()=>{if(v&&x.current){const e=y.length-1;x.current.setSelectionRange(e,e),S(!1)}},[v,x.current]),(0,a.useEffect)(()=>{E("inputText",y)},[y]);const P=()=>{x.current?.focus()},O=()=>{R(),P()};return(0,a.useImperativeHandle)(m,()=>({focus(){P()}})),s&&!1!==d?(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(tg,{styles:h,dense:i,isRtl:L,startAdornment:(0,Jo.jsx)(Zm,{position:"start",sx:{marginLeft:i?"8px":"9px"},children:(0,Jo.jsx)(Ym,{size:i?"small":"normal"})}),endAdornment:(0,Jo.jsx)(Zm,{position:"end",sx:{marginLeft:0},children:""!==y&&(0,Jo.jsx)(ng,{tabIndex:0,ref:w,title:k,"aria-label":k,onClick:O,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Tab":e.shiftKey?P():Vd(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:(0,Jo.jsx)(Dh,{size:i?"small":"normal"})})}),className:"search",inputRef:x,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:y,onFocus:()=>{u&&(b("**"),S(!0)),c&&!n.selectDisabled()&&!t.isModal()&&t.begin("/qListObjectDef")},onChange:async e=>{const t=eg(e.target.value);return b(t),t.length?r.searchListObjectFor(Qm,t):R()},onKeyDown:async i=>{const{currentTarget:a}=i,s=a.closest(".listbox-container");switch(i.key){case"Enter":(async()=>{let e;const o=eg(y),i=await r.searchListObjectFor(Qm,o);n.selectDisabled()||i&&o.length&&C("listCount")>0&&(e=r.acceptListObjectSearch(Qm,!0),t.selectionsMade=!0,n.clearItemStates(!1),b(""))})();break;case"Escape":if(Vd(s),t.cancel(),e)return;break;case"Tab":i.shiftKey?Gd(s)||o.focusSelection():w.current?w.current.focus():Vd(s);break;case"f":case"F":if(!i.ctrlKey&&!i.metaKey)return;f&&(f(),Vd(s));break;default:return}i.preventDefault(),i.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search"),"aria-describedby":"listbox-search-instructions"}}),(0,Jo.jsx)("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:g.get("Listbox.Search.ScreenReaderInstructions")})]}):null}const og=(0,a.forwardRef)(rg);function ig(e){if(!e.session)return[];const{selectionStore:t}=(0,a.useContext)(fa),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return(0,a.useEffect)(()=>{e&&!o&&(o=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:r,appModalStore:o}=t,i=async(e=!0)=>{const{model:t,objectSelections:o}=r.get(n)||{};t&&(await t.endSelections(e),r.clear(n),o.emit("deactivated"))},a={begin:async({model:t,paths:o,accept:a=!0,objectSelections:s})=>{if(s===r.get(n)?.objectSelections)return;i(a),r.set(n,{model:t,objectSelections:s});const l=Array.isArray(o)?o:[o],c=async o=>{try{await t.beginSelections(l),r.set(n,{model:t,objectSelections:s})}catch(t){6003!==t.code||o?r.clear(n):(await e.abortModal(a),c(!0))}};await c()},end:i};o.set(n,a);const s={model:e,isInModal:()=>!!r.get(n),isModal:e=>e?r.get(n)?.objectSelections===e:!!r.get(n),forward:()=>a.end().then(()=>e.forward()),back:()=>a.end().then(()=>e.back()),clear:()=>a.end().then(()=>e.clearAll()),clearField:(t,n="$")=>a.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))},[e]),[o]}function ag(e){return Object.keys(d().prototype).forEach(t=>{e[t]=d().prototype[t]}),d().init(e),e}n.dn(ag);const sg=({appSelections:e,appModal:t,model:n})=>{let r,o=!1,i=!1;const a={id:n.id,setLayout(e){r=e},begin(e){const r=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",r),r.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:a}))},clear(){return i=!1,this.emit("cleared"),r.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return i=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return i=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const r=this.begin([t.params[0]]);if(!e.isModal())return!1;await r;const o=await n[t.method](...t.params);return i="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked&&!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(r&&r.qListObject&&r.qListObject.qDimensionInfo&&r.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(a),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:a}),noModal:(e=!1)=>t.end(e)};return ag(a),a};function lg(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=ig(e),[s]=ss(t),{appModalStore:l}=(0,a.useContext)(fa).selectionStore,c=l.get(e.id),[u,d]=(0,a.useState)();return(0,a.useEffect)(()=>{i&&t&&!u&&d(sg({appSelections:i,appModal:c,model:t}))},[i,t]),(0,a.useEffect)(()=>{if(!u)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=(({elements:e,objectSelections:t,options:n={}})=>{const r=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const r=e.map(e=>"string"==typeof e?document.querySelector(e):e?.current).filter(e=>!!e&&!!document.contains(e));r.length&&!r.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",r),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",r),n?.onSelectionDeactivated?.()}}})({elements:o,objectSelections:u,options:r});return u.addListener("activated",e),u.addListener("deactivated",t),()=>{u.isActive()&&u.confirm(),u.removeListener("activated",e),u.removeListener("deactivated",t)}},[u]),(0,a.useEffect)(()=>{u&&u.setLayout(s)},[u,s]),[u]}function cg(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:r,selectDisabled:o,layout:i}){this.setPages=e;const a=this.lastRowCount===i.qListObject.qSize.qcy,s=this.lastApprMaxGlyphCount===i.qListObject.qDimensionInfo.qApprMaxGlyphCount;a&&s||(this.lastRowCount=i.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=i.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,!!lu.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return cu(t)}(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=r,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=i?.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:r}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(e,n,r){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(r?.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,r=t.getState(n);return[{...n,qState:r},...e.slice(1)]});return{...e,qMatrix:n}});return n},updateItem(e,n,r){t.updateItemNoEvents(e,n,r),t.triggerStateChanged()},updateItems(e,n,r){e.forEach(e=>{t.updateItemNoEvents(e,n,r)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}};return t}const ug=(e,t,n=void 0)=>e?.[t]??n;function dg(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return ug(t,"qSelected",0)+ug(t,"qSelectedExcluded",0)+ug(t,"qLocked",0)+ug(t,"qLockedExcluded",0)>0}function pg(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 fg(e){if("object"==typeof e&&pg(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=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),r=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),r=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),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const hg={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}},mg="qcm-color";function gg(...e){const t={type:mg,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===mg)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(pg(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in hg}(e)){const t=hg[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function yg(e){let t,n,r;if(pg(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?fg(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function bg(e){let t,n,r=0;const o="string"==typeof e?gg(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function vg(e){let t,n,r=0;const o="string"==typeof e?gg(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function Sg(e){if(pg(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?fg(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function xg(e,t){return pg(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${void 0!==t?t:e.a})`:xg(gg(e),t)}function wg(e){return pg(e)?1===e.a?Sg(e):xg(e):wg(gg(e))}const kg=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Cg(e){return.2126*kg(e.r)+.7152*kg(e.g)+.0722*kg(e.b)}function Eg(...e){const t=gg(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=bg(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};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=gg(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=gg(...e);return t.invalid||Cg(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Sg(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=xg(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=wg(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=yg(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?gg(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=bg(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=vg(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=vg(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)=>Eg(o(18*e)),getDarkenedColor:(e=1)=>Eg(o(18*-e))}}function Lg(e,t){if(!e||!t)return;const n=Cg(e),r=Cg(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const Rg="#FFFFFF";function Pg(e,t){const n=Eg(Rg),r=Eg(e),o=Eg(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Lg(n,r),a=Lg(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?Rg:"#000000"}function Og(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 Tg,Ig,qg,jg="top",Mg="top-right",Dg="right",_g="bottom-right",Ng="bottom",Ag="bottom-left",$g="left",zg="top-left";Og(Og(Og(Og(Og(Og(Og(Og(Og(Og(Tg={},"equal-equal",[jg,Ng]),"equal-higher",[Ng,_g]),"equal-lower",[jg,Mg]),"equal-void",[jg,Ng]),"higher-equal",[$g,Ag,jg,Mg]),"higher-higher-acute",[Ng,Ag,$g,Mg]),"higher-higher-obtuse",[Ng,jg]),"higher-lower-negative",[jg,Mg,Dg]),"higher-lower-positive",[Ng,Ag,$g]),"higher-void",[jg]),Og(Og(Og(Og(Og(Og(Og(Og(Og(Og(Tg,"lower-equal",[jg]),"lower-higher-negative",[jg,zg]),"lower-higher-positive",[_g]),"lower-lower-acute",[jg,zg,$g,Mg,Dg]),"lower-lower-obtuse",[jg,Ng]),"lower-void",[jg]),"void-equal",[jg]),"void-higher",[jg,Ng]),"void-lower",[jg,Ng,$g]),"void-void",[jg]),Og(Tg,"unclassified",[jg,Ng,Dg,$g,Mg,_g,Ag,zg]);var Fg=function(){if(qg)return Ig;qg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Ig=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Ig}();function Bg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Wg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Hg(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Fg);var Ug=.7,Vg=1/Ug,Gg="\\s*([+-]?\\d+)\\s*",Kg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xg=/^#([0-9a-f]{3,8})$/,Zg=new RegExp(`^rgb\\(${Gg},${Gg},${Gg}\\)$`),Yg=new RegExp(`^rgb\\(${Jg},${Jg},${Jg}\\)$`),Qg=new RegExp(`^rgba\\(${Gg},${Gg},${Gg},${Kg}\\)$`),ey=new RegExp(`^rgba\\(${Jg},${Jg},${Jg},${Kg}\\)$`),ty=new RegExp(`^hsl\\(${Kg},${Jg},${Jg}\\)$`),ny=new RegExp(`^hsla\\(${Kg},${Jg},${Jg},${Kg}\\)$`),ry={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 oy(){return this.rgb().formatHex()}function iy(){return this.rgb().formatRgb()}function ay(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?sy(t):3===n?new dy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ly(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ly(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=Zg.exec(e))?new dy(t[1],t[2],t[3],1):(t=Yg.exec(e))?new dy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qg.exec(e))?ly(t[1],t[2],t[3],t[4]):(t=ey.exec(e))?ly(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ty.exec(e))?yy(t[1],t[2]/100,t[3]/100,1):(t=ny.exec(e))?yy(t[1],t[2]/100,t[3]/100,t[4]):ry.hasOwnProperty(e)?sy(ry[e]):"transparent"===e?new dy(NaN,NaN,NaN,0):null}function sy(e){return new dy(e>>16&255,e>>8&255,255&e,1)}function ly(e,t,n,r){return r<=0&&(e=t=n=NaN),new dy(e,t,n,r)}function cy(e){return e instanceof Hg||(e=ay(e)),e?new dy((e=e.rgb()).r,e.g,e.b,e.opacity):new dy}function uy(e,t,n,r){return 1===arguments.length?cy(e):new dy(e,t,n,r??1)}function dy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function py(){return`#${gy(this.r)}${gy(this.g)}${gy(this.b)}`}function fy(){const e=hy(this.opacity);return`${1===e?"rgb(":"rgba("}${my(this.r)}, ${my(this.g)}, ${my(this.b)}${1===e?")":`, ${e})`}`}function hy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function my(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gy(e){return((e=my(e))<16?"0":"")+e.toString(16)}function yy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vy(e,t,n,r)}function by(e){if(e instanceof vy)return new vy(e.h,e.s,e.l,e.opacity);if(e instanceof Hg||(e=ay(e)),!e)return new vy;if(e instanceof vy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new vy(a,s,l,e.opacity)}function vy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sy(e){return(e=(e||0)%360)<0?e+360:e}function xy(e){return Math.max(0,Math.min(1,e||0))}function wy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bg(Hg,ay,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oy,formatHex:oy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return by(this).formatHsl()},formatRgb:iy,toString:iy}),Bg(dy,uy,Wg(Hg,{brighter(e){return e=null==e?Vg:Math.pow(Vg,e),new dy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ug:Math.pow(Ug,e),new dy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dy(my(this.r),my(this.g),my(this.b),hy(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:py,formatHex:py,formatHex8:function(){return`#${gy(this.r)}${gy(this.g)}${gy(this.b)}${gy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fy,toString:fy})),Bg(vy,function(e,t,n,r){return 1===arguments.length?by(e):new vy(e,t,n,r??1)},Wg(Hg,{brighter(e){return e=null==e?Vg:Math.pow(Vg,e),new vy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ug:Math.pow(Ug,e),new vy(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,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new dy(wy(e>=240?e-240:e+120,o,r),wy(e,o,r),wy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vy(Sy(this.h),xy(this.s),xy(this.l),hy(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=hy(this.opacity);return`${1===e?"hsl(":"hsla("}${Sy(this.h)}, ${100*xy(this.s)}%, ${100*xy(this.l)}%${1===e?")":`, ${e})`}`}}));const ky=Math.PI/180,Cy=180/Math.PI,Ey=.96422,Ly=.82521,Ry=4/29,Py=6/29,Oy=3*Py*Py,Ty=Py*Py*Py;function Iy(e){if(e instanceof qy)return new qy(e.l,e.a,e.b,e.opacity);if(e instanceof Ny)return Ay(e);e instanceof dy||(e=cy(e));var t,n,r=_y(e.r),o=_y(e.g),i=_y(e.b),a=jy((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=jy((.4360747*r+.3850649*o+.1430804*i)/Ey),n=jy((.0139322*r+.0971045*o+.7141733*i)/Ly)),new qy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function qy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function jy(e){return e>Ty?Math.pow(e,1/3):e/Oy+Ry}function My(e){return e>Py?e*e*e:Oy*(e-Ry)}function Dy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _y(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ny(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ay(e){if(isNaN(e.h))return new qy(e.l,0,0,e.opacity);var t=e.h*ky;return new qy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Bg(qy,function(e,t,n,r){return 1===arguments.length?Iy(e):new qy(e,t,n,r??1)},Wg(Hg,{brighter(e){return new qy(this.l+18*(e??1),this.a,this.b,this.opacity)},darker(e){return new qy(this.l-18*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new dy(Dy(3.1338561*(t=Ey*My(t))-1.6168667*(e=1*My(e))-.4906146*(n=Ly*My(n))),Dy(-.9787684*t+1.9161415*e+.033454*n),Dy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bg(Ny,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ny)return new Ny(e.h,e.c,e.l,e.opacity);if(e instanceof qy||(e=Iy(e)),0===e.a&&0===e.b)return new Ny(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Cy;return new Ny(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ny(e,t,n,r??1)},Wg(Hg,{brighter(e){return new Ny(this.h,this.c,this.l+18*(e??1),this.opacity)},darker(e){return new Ny(this.h,this.c,this.l-18*(e??1),this.opacity)},rgb(){return Ay(this).rgb()}}));var $y=e=>()=>e;function zy(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):$y(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?zy: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(r){return Math.pow(e+r*t,n)}}(t,n,e):$y(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=uy(e)).r,(t=uy(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=zy(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Fy="center",By="bottom";function Wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hy(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 Uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uy(Object(n),!0).forEach(function(t){Hy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}[{key:"NoDataExist",alignment:Fy,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:Fy,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:Fy,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:Fy},{key:"DataRangeIncludingZero",alignment:By},{key:"LimitedData",alignment:By},{key:"NegativeOrZeroValues",alignment:By}].reduce(function(e,t){return e[t.key]=t,e},{});var Gy=Object.prototype.hasOwnProperty,Ky=Object.prototype.toString,Jy=Object.defineProperty,Xy=Object.getOwnPropertyDescriptor,Zy=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ky.call(e)},Yy=function(e){if(!e||"[object Object]"!==Ky.call(e))return!1;var t,n=Gy.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Gy.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Gy.call(e,t)},Qy=function(e,t){Jy&&"__proto__"===t.name?Jy(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},eb=function(e,t){if("__proto__"===t){if(!Gy.call(e,t))return;if(Xy)return Xy(e,t).value}return e[t]},tb=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=eb(s,n),s!==(o=eb(t,n))&&(u&&o&&(Yy(o)||(i=Zy(o)))?(i?(i=!1,a=r&&Zy(r)?r:[]):a=r&&Yy(r)?r:{},Qy(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Qy(s,{name:n,newValue:o}));return s};function nb(e,t,n,r){if(!e)return-1;const o=n.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),s=o.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some((e,t)=>e!==t)){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function rb(e,t,n){let r=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function ob(e){let t=e.cache,n=e.f,r=e.mainCell,o=e.p,i=e.page,a=e.rowIdx,s=e.row,l=e.sourceKey,c=e.target,u=e.targetProp,d=e.columnOrder,p=r;if(o.field&&o.field!==n){const e=nb(o.field,i,{cache:t},d);if(-1===e)return;p=tb({qRow:a},e(s))}c[u]=rb(o,p,{key:l})}function ib(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),s=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),c=r.normalizeConfig(o[e],t),u=c.props,d=c.main,p=Object.keys(u),f=!!o[e].trackBy,h=typeof o[e].trackBy,m={},g=[],y=[];for(let t=0;t<a.qDataPages.length;t++){const i=nb(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==i)for(let c=0;c<a.qDataPages[t].qMatrix.length;c++){const b=a.qDataPages[t].qArea.qTop+c,v=tb({qRow:b},i(a.qDataPages[t].qMatrix[c])),S=rb(d,v,{key:s});if(!d.filter||d.filter(v)){for(let e=0;e<p.length;e++){const r=u[p[e]];let o=r.fields||[r];r.fields&&(S[p[e]]=[]);for(let i=0;i<o.length;i++)ob({cache:n,f:l,mainCell:v,p:o[i],prop:p[e],page:a.qDataPages[t],rowIdx:b,row:a.qDataPages[t].qMatrix[c],sourceKey:s,target:r.fields?S[p[e]]:S,targetProp:r.fields?i:p[e],columnOrder:a.qColumnOrder});if(r.fields){const t=S[p[e]].map(e=>e.value),n=S[p[e]].map(e=>e.label);S[p[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(S[p[e]].value)}}}f&&r.track({cfg:o[e],itemData:v,obj:S,target:g,tracker:m,trackType:h}),y.push(S)}}}const b=f?r.collect(g,{main:d,propsArr:p,props:u}):y;i=[...i,...b]}return i}function ab(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function sb(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=cb)):void 0===t&&(t=lb);for(var n,r,o,i,a,s=new pb(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new pb(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(db)}function lb(e){return e.children}function cb(e){return Array.isArray(e)?e[1]:null}function ub(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function db(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function pb(e){this.data=e,this.depth=this.height=0,this.parent=null}function fb(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}pb.prototype=sb.prototype={constructor:pb,count:function(){return this.eachAfter(ab)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[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(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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 sb(this).eachBefore(ub)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var hb={depth:-1},mb={},gb={};function yb(e){return e.id}function bb(e){return e.parentId}function vb(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Sb(e,t););return e.slice(0,t)}function Sb(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function xb(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=xb(r,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);r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=xb(r,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function wb(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(r=[...r,...wb(e[o].children,t-1,n)]);return r}function kb(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 r=Math.max(0,Math.min(100,t-e));return e=>wb(e.children,r-1,n)}return!1}const Cb=/^qDimensionInfo(?:\/(\d+))?/,Eb=/^\/?qMeasureInfo\/(\d+)/,Lb=/\/qAttrExprInfo\/(\d+)/,Rb=/\/qAttrDimInfo\/(\d+)/;function Pb(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function Ob(e,t){let n=t.cube;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const p=n.qEffectiveInterColumnSortOrder,f=Pb(n);return Cb.test(d)&&(o=!0,i=+Cb.exec(d)[1],d=r.replace(Cb,"")),Eb.test(d)&&("K"===n.qMode?c=+Eb.exec(d)[1]:p&&-1!==p.indexOf(-1)?(c=+Eb.exec(d)[1],u=0):u=+Eb.exec(d)[1],d=d.replace(Eb,"")),d&&(Rb.exec(d)?s=+Rb.exec(d)[1]:Lb.exec(d)&&(a=+Lb.exec(d)[1])),l=o?"S"===n.qMode?f[i]:p?p.indexOf(i):i:p&&-1!==p.indexOf(-1)?p.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function Tb(e,t){let n,r,o=kb(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:r,valueFn:n}}function Ib(e,t,n){let r=n.key;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function qb(e){let t=e.propsArr,n=e.props,r=e.item,o=e.itemData,i=e.ret,a=e.sourceKey;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let p,f,h,m,g,y;if("primitive"===d.type?(h=d.value,y=String(d.value)):("function"==typeof d.value&&(p=e=>d.value(e,r)),"function"==typeof d.label&&(f=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),p&&(h=g.map(p),p=null),f&&(y=g.map(f),f=null),h=d.reduce?d.reduce(h):h,y=d.reduceLabel?d.reduceLabel(y,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=h)):(h=o,y=o)),s.fields){const e=p?p(h):h;c.push(e),u.push(f&&null!=y?f(y):null!=y?y:String(e))}else{const n=p?p(h):h;i[t[e]]={value:n,label:f?f(y):null!=y?y:String(n)},d.field&&(i[t[e]].source={field:d.field.key(),key:a})}}c&&(i[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const jb=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=xb(r,e);return i&&i[0]?(t.tree=sb(i[0],n.children||(e=>e[o])),t.tree):null},Mb=e=>{let t=e.propsArr,n=e.props,r=e.cube;e.cache;let o=e.itemDepthObject,i=e.f;for(let e=0;e<t.length;e++){const a=n[t[e]],s=a.fields?a.fields:[a];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==i){const e=Tb(o,Ob(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function Db(){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,r=arguments.length>3?arguments[3]:void 0;const o=t.raw(),i=t.key(),a="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),r=e.fields(),o=e.fields().filter(e=>"dimension"===e.type()).map(e=>n.indexOf(r.indexOf(e))),i=e.fields().filter(e=>"measure"===e.type()).map(e=>n.indexOf(r.indexOf(e))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<o.length;e++){var s;const t=n[o[e]],i="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[i]||(a[i]=Vy({__id:i,__parent:r,qValues:[]},t),l=!0),r=i}if(l)for(let e=0;e<i.length;e++){const t=n[i[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map(e=>a[e]);return function(){var e,t=yb,n=bb;function r(r){var o,i,a,s,l,c,u,d,p=Array.from(r),f=t,h=n,m=new Map;if(null!=e){const t=p.map((t,n)=>function(e){let t=(e=`${e}`).length;return Sb(e,t-1)&&!Sb(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r))),n=t.map(vb),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(vb(e)),p.push(gb));f=(e,n)=>t[n],h=(e,t)=>n[t]}for(a=0,o=p.length;a<o;++a)i=p[a],c=p[a]=new pb(i),null!=(u=f(i,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?mb:c)),null!=(u=h(i,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<o;++a)if(u=(c=p[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===mb)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===gb&&1===s.children.length;)s=s.children[0],--o;for(let e=p.length-1;e>=0&&(c=p[e]).data===gb;--e)c.data=null}if(s.parent=hb,s.eachBefore(function(e){e.depth=e.parent.depth+1,--o}).eachBefore(db),s.parent=null,o>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=fb(e),r):t},r.parentId=function(e){return arguments.length?(n=fb(e),r):n},r.path=function(t){return arguments.length?(e=fb(t),r):e},r}().id(e=>e.__id).parentId(e=>e.__parent)(l)}(t):jb(o,n,e);if(!a)return null;const s=a.height,l=[];for(let i=0;i<=s;i++){let a=null;if(i>0)if("S"===o.qMode){let e=Pb(o)[i-1];a=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[i-1];i>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),a=n.fields[e]}const s=r.normalizeConfig(Vy(Vy({},e),{},{field:a?a.key():void 0}),t),c=s.props,u=s.main,d=Object.keys(c);l[i]={propsArr:d,props:c,main:u};const p=a?Ob(a,{cube:o}):{fieldDepth:0};Mb({propsArr:d,props:c,cube:o,cache:n,itemDepthObject:p,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,o=c[e],a=o.data,s=Ib(r,a,{key:i});qb({propsArr:t,props:n,item:o,itemData:a,ret:s,sourceKey:i}),u[e].data=s}return a}function _b(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const s=t.raw(),l=t.key();if(!jb(s,n,e))continue;const c="object"==typeof o[a].field?o[a].field:t.field(o[a].field),u=r.normalizeConfig(o[a],t),d=u.props,p=u.main,f=Object.keys(d),h=Ob(c,{cube:s}),m=Tb({fieldDepth:0},h),g=m.nodeFn,y=m.attrFn,b=m.valueFn;Mb({propsArr:f,props:d,cube:s,cache:n,itemDepthObject:h,f:c});const v=!!o[a].trackBy,S=typeof o[a].trackBy,x={},w=[],k=g(n.tree),C=[];for(let e=0;e<k.length;e++){const t=k[e],n=y?y(b(t)):b(t);if(p.filter&&!p.filter(n))continue;const i=Ib(p,n,{key:l});qb({propsArr:f,props:d,item:t,itemData:n,ret:i,sourceKey:l}),v&&r.track({cfg:o[a],itemData:n,obj:i,target:w,tracker:x,trackType:S}),C.push(i)}const E=v?r.collect(w,{main:p,propsArr:f,props:d}):C;i=[...i,...E]}return i}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var Nb,Ab,$b=(Nb=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=p-g,b=e.substring(y,y+1),v=y+("."===b||","===b?1:0),S=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-y+1)%l)&&v<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},Nb(Ab={exports:{}}),Ab.exports);function zb(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const Fb={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"},Bb=/%\)?$/,Wb=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Hb=/^\(oct\)/i,Ub=/^\(dec\)/i,Vb=/^\(hex\)/i,Gb=/^\(bin\)/i,Kb=/^\(rom\)/i,Jb=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Xb=/#|0/g;function Zb(e,t,n,r){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(".",r||".")}function Yb(e,t,n){const r=zb(e);return n?r:new RegExp(r||"",t)}function Qb(e,t,n,r){let o,i,a,s,l,c,u,d,p,f=e.pattern;var h,m;r&&(e.abbreviate=!0),h=t,(m=n)&&(m=zb(m)),h&&(h=zb(h)),p=new RegExp("(?:[#0]+".concat(h,")?[#0]+(?:").concat(m,"[#0]+)?")),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(Yb(c,"g"),t)),u=n,n=".",u&&(a=a.replace(Yb(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=f.split(u);let y;g[1]&&(y=g[1].match(Xb)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=y?y.length:2,e.percentage=Bb.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(Yb(t,null,!0),"|").concat(Yb(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class ev{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Fb;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 ev(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;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:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],Jb.test(e[0])&&(r.positive.isFunctional=!0),e[1]?Jb.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?Jb.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||Qb(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&Qb(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&Qb(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,s,l,c,u=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,i=u.d,a=u.t,u.isFunctional)e=function(e,t,n){let r;return Wb.test(t)?e=Zb(e,Number(/\d{2}/.exec(t)[0]),t,n):Hb.test(t)?e=Zb(e,8,t,n):Ub.test(t)?e=Zb(e,10,t,n):Vb.test(t)?e=Zb(e,16,t,n):Gb.test(t)?e=Zb(e,2,t,n):Kb.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=s[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,u.pattern,i);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let r,o,i=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&s<t.length;)s++,i=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=u.maxPrecision?o=i:r<=n&&!(i>0&&-n<=u.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.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(i)[0];if(n+=i,e=$b(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<n;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=$b(l,e)}e=e.replace(u.numericRegex,e=>e===a?u.groupTemp:e===i?u.decTemp:""),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+p+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function tv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.size,r=void 0===n?5e3:n,o=t.multipleArguments,i=void 0!==o&&o,a=t.toKey,s=void 0===a?e=>e:a;let l,c,u=Object.create(null),d=Object.create(null),p=0,f=0;return l=i?function(){return c=s(...arguments),l.has(c)?l.get(c):l.set(c,e(...arguments))}:t=>(c=s(t),l.has(c)?l.get(c):l.set(c,e(t))),l.set=(e,t)=>(p>=r&&(delete u[d[f]],delete d[f],p--,f++),u[e]=t,d[p]=e,p++,t),l.get=e=>u[e],l.has=e=>e in u,l.clear=()=>{u=Object.create(null),d=Object.create(null),p=0,f=0},l.size=()=>p,l}function nv(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ev(...t)}(o,e,t,n,r),a=tv(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const rv="D",ov="T",iv="TS",av=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sv=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lv=["January","February","March","April","May","June","July","August","September","October","November","December"],cv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uv(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function dv(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class pv{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:av,qDayNames:sv,qLongMonthNames:lv,qMonthNames:cv}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={[ov]:r.qTimeFmt||"hh:mm:ss",[rv]:r.qDateFmt||"YYYY-MM-DD",[iv]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new pv(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 r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,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)),r=function(e,t){let n,r=function(e){const t=e,n=24*dv(t),r=60*dv(n),o=60*dv(r),i=1e3*dv(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,s=r.s,l=r.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)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:i,m:a,s,f:l,t:u}}(e,t));const o=(i=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:uv("".concat(a.year).slice(-2),2),YYY:uv("".concat(a.year).slice(-3),3),def:e=>uv("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:uv("".concat(a.month+1),2),MMM:i.locale_months_abbr[a.month],def:i.locale_months[a.month]},"W+|w+":{W:a.day,WW:uv("".concat(a.day),2),WWW:i.locale_days_abbr[a.day],def:i.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>uv("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>uv("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>uv("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>uv("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.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=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var i,a;const s=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,e=>{let t,n,r;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){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r})}}function fv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new pv(...t)}function hv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=fv(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=tv(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 i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=fv(o,e,t),r=tv(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function mv(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.meta,r=t.id,o=t.key,i=t.localeInfo,a=t.fieldExtractor,s=t.value,l=t.type,c=t.sourceField;const u=s||("dimension"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===l?"first":"avg",p=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return hv(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),nv(n,r,o,i,t)}(n,i),f={id:()=>r,key:()=>o,raw:()=>n,title:()=>n.qFallbackTitle||n.label,type:()=>l,origin:()=>c,items:()=>(e||(e=a(f)),e),min:()=>n.qMin,max:()=>n.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:"dimension"===l?"first":(e,t)=>p(t),formatter:()=>p,tags:()=>n.qTags};return f}function gv(e,t,n,r,o){return(t[e]||[]).map((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),s={instance:mv(tb({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=gv("qAttrDimInfo",t,n,a,tb({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=gv("qAttrExprInfo",t,n,a,tb({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=gv("qMeasureInfo",t,n,a,tb({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s})}function yv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,r=e.config,o=void 0===r?{}:r;const i={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},a=n;if(!a)throw new Error('Missing "data" input');if(!a.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const s=yv.util,l={cache:i,cube:a,localeInfo:o.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:o.virtualFields},c={key:()=>t,raw:()=>a,field:e=>function(e,t){let n=t.cache;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,l),fields:()=>i.fields.slice(),extract:e=>l.extractor(e,c,i,s),hierarchy:e=>l.hierarchy(e,c,i,s),_cache:()=>i};"K"===a.qMode||"T"===a.qMode||!a.qMode&&a.qNodesOnDim?(l.extractor=_b,l.hierarchy=Db,l.pages="K"===a.qMode?a.qStackedDataPages:a.qTreeDataPages):"S"===a.qMode?(l.extractor=ib,l.pages=a.qDataPages,l.hierarchy=Db):l.extractor=()=>[],l.fieldExtractor=e=>l.extractor({field:e},c,i,s);const u="S"===a.qMode?e=>e.qElemNumber:void 0,d="S"===a.qMode?e=>e.qNum:void 0;i.wrappedFields.push(...gv("qDimensionInfo",a,t,"",tb({},l,{value:u,type:"dimension"}))),i.wrappedFields.push(...gv("qMeasureInfo",a,t,"",tb({},l,{value:d,type:"measure"}))),i.fields=i.wrappedFields.map(e=>e.instance);const p=e=>{e.forEach(e=>{i.allFields.push(e.instance),p(e.measures),p(e.attrDims),p(e.attrExps)})};return p(i.wrappedFields),(o.virtualFields||[]).forEach(e=>{const n=c.field(e.from),r=mv(Vy({meta:n.raw(),id:"".concat(t,"/").concat(e.key),sourceField:n,fieldExtractor:e=>l.extractor({field:e},c,i,s),key:e.key,type:n.type(),localeInfo:l.localeInfo,value:n.value},e.override||{}));i.virtualFields.push(r)}),i.allFields.push(...i.virtualFields),c}const bv=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],vv=/\/qDimensionInfo(?:\/(\d+))?/,Sv=/\/qMeasureInfo\/(\d+)/,xv=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,wv=/\/qAttrExprInfo\/(\d+)/,kv=/\/?qHyperCube/,Cv=/\/?qTreeData/,Ev=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),Lv=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function Rv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach(e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;kv.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=Ev):Cv.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=Lv);let s=!0;if(vv.test(e)&&(r=+vv.exec(e)[1]),Sv.test(e)&&(o=+Sv.exec(e)[1]),xv.test(e)){o=-1,r=0;const e=+xv.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(wv.test(e)){const e=o;if(t){o=0;const a=xb(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce((e,t)=>e+t.qAttrExprInfo.length,o),r=-1):(o=a.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,o),o=a.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,o)),o+=+wv.exec(n)[1]}else r>-1?(r=-1,o=+wv.exec(n)[1]):o+=+wv.exec(n)[1]+1}return bv.forEach(e=>{let t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,l=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e)||function(e){if(e){if("string"==typeof e)return Wy(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Wy(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),r=t[0],o=t[1];n=n.replace(r,o)}),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>a.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,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>a.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,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>a.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(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===i||s>=i)&&i>-1?n.forEach(e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})}):n.forEach(e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})}),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));l=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}}),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i);var c}function Pv(e){yv.util=e.data("matrix").util,e.data("q",yv),e.formatter("q-number",nv),e.formatter("q-time",hv)}Pv.qBrushHelper=Rv,Pv.selections=Rv;"#".concat("chart-modules-tooltip"),Number.MAX_VALUE,new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");const Ov=/,(?![^(]*\))/,Tv=/\s(?![^(]*\))/,Iv=/^[0-9]+[a-zA-Z%]+?$/,qv=["none","inset","initial","inherit"],jv=e=>{if(!e)return;const t=e.split(Tv).filter(e=>!qv.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||Iv.test(e))(t)||qv.includes(t.toLowerCase())?void 0:t;return n},Mv=e=>e?e.split(Ov).map(e=>e.trim()):[];function Dv(e,t,n,r){return n&&r?n.getStyle(`object.${r}`,e,t):n?n.getStyle("",e,t):void 0}function _v(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Dv(t,n,r,o)}const Nv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Av={"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 $v(e,t,n,r){const o=e?.bgImage;if(o){let i="";if("media"===o.mode||"media"===e.useImage){let e;const a=o?.mediaUrl,{qUrl:s}=a?.qStaticContentUrl||{};i=s?decodeURIComponent(s):void 0,i=function(e,t,n){if(t)return n?n+t:function(e){let t,n,r,o;if(e?.session?.config){t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,r=o?"https://":"http://";const i="/"===n.pathname?"":n.pathname.replace(/\/app\/.*$/,"");return r+n.host+i}return""}(e)+t}(t,i,r),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),i=`${i}?${e}`)}"expression"===o.mode&&(i=o.expressionUrl?decodeURIComponent(o.expressionUrl):void 0);const a=function(e){let t="center center";return e?.bgImage?.position&&(t=Av[e.bgImage.position]),t}(e),s=function(e){let t=Nv.originalSize;const n=e?.bgImage?.sizing;return n&&(t=Nv[n]),t}(e);return i?{url:i,pos:a,size:s}:void 0}}function zv(e,t,n){const r=e?.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):_v(r?.color,"","backgroundColor",t,n)}function Fv(e,t,n){const r=Dv("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&qv.includes(e.toLowerCase()))return e.toLowerCase();const r=Mv(e);if(1!==r.length)return e;let o=n;if(!o){const n=Mv(t);if(1!==n.length)return e;o=jv(n[0])}if(!o)return e;const i=jv(r[0]);return i?e.replace(i,o):`${e} ${o}`})(e?.shadow?.boxShadow||r,r,_v(e?.shadow?.boxShadowColor,"shadow","boxShadowColor",t,n))}function Bv(e,t,n,r){const o=e?.title?.[t]||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||n.getStyle(`object.${r}`,`title.${t}`,"fontFamily"),fontSize:o.fontSize||n.getStyle(`object.${r}`,`title.${t}`,"fontSize"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color):n.getStyle(`object.${r}`,`title.${t}`,"color"),backgroundColor:o.backgroundColor||n.getStyle(`object.${r}`,`title.${t}`,"backgroundColor"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const Wv={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Hv=["theme","selections"];function Uv({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a}){return function({app:e,themeApi:t,theme:n,queryParams:r,components:o=[],checkboxes:i=!1,hostConfig:a}){const s=function(e=[]){const t={};return e.forEach(e=>{const n=e?.key;Hv.includes(n)&&(t[n]=e)}),t}(o),l=(e,n)=>t.getStyle("object.listBox",e,n),c=e=>e?.index>0||e?.color?t.getColorPickerColor(e):void 0,u=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:r,checkboxes:o}){const i=r.theme?.content?.fontColor,a=e(i)||n("content","color")||t.palette?.text.primary,s=!o&&(r.theme?.content?.useContrastColor??!0),l=r.selections?.colors||{},c=r=>{const o="selected"===r?"main":r,i=`${r}Contrast`,c=e(l[r])||n("",`dataColors.${r}`)||"possible"===r&&n("","backgroundColor")||t.palette?.selected?.[o]||Wv[r],u=s?Pg(c,a):a||t.palette?.selected[`${i}Text}`];return{[r]:c,[i]:u}};return{...c("selected"),...c("alternative"),...c("excluded"),...c("selectedExcluded"),...c("possible")}}({getColorPickerColor:c,theme:n,getListboxStyle:l,overrides:s,checkboxes:i}),d=s.theme||{},p=c(d.header?.fontColor)||l("title.main","color"),f=function({themeApi:e,themeOverrides:t}){let n;const r=t?.background;return r?(n=r?.useExpression?zv({bgColor:r},e,"listBox"):e.getColorPickerColor(r?.color),n):n}({themeApi:t,themeOverrides:d}),h=d.background?.image?$v({bgImage:d.background.image},e,r,a?.host):void 0,m=f||l("","backgroundColor")||n.palette.background.default,g=function(e,t){const n=Eg(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(m,l),y=function(e){return Pg("#fff",e("content","color"))}(l),b=d.header?.fontStyle||{},v=d.content?.fontStyle||{},S=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:m,backgroundImage:h?.url&&!h?.url.startsWith("url(")?`url('${h.url}')`:void 0,backgroundRepeat:"no-repeat",backgroundSize:h?.size,backgroundPosition:h?.pos},header:{color:p,fontSize:d.header?.fontSize||l("title.main","fontSize"),fontFamily:d.header?.fontFamily||l("title.main","fontFamily"),fontWeight:S(b.bold,"bold","normal")||l("title.main","fontWeight")||"bold",textDecoration:b.underline?"underline":"initial",fontStyle:S(b.italic,"italic","normal")||l("title.main","fontStyle")||"initial"},content:{backgroundColor:i?void 0:u.possible,color:u.possibleContrast||l("content","color"),fontSize:d.content?.fontSize||l("content","fontSize"),fontFamily:d.content?.fontFamily||l("content","fontFamily"),fontWeight:S(v.bold,"bold","normal")||l("content","fontWeight")||"normal",textDecoration:v.underline?"underline":"initial",fontStyle:S(v.italic,"italic","normal")||l("content","fontStyle")||"initial"},search:{color:y,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:g,backdropFilter:"blur(8px)"},selections:u}}({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a})}function Vv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:r,close:o,app:i,fieldName:s,stateName:l="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=()=>!1,sortCriteria:f=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}){const m=Boolean(s?.qLibraryId),g=r&&Boolean(e.current),[y,b]=(0,a.useState)(0),v=Uo(),S=(0,a.useRef)(),[x]=ns({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:f,qFieldDefs:m?void 0:[s]},qLibraryId:m?s.qLibraryId:void 0}},i,s,l),w=(0,a.useCallback)(()=>{x.lock("/qListObjectDef")},[x]),k=(0,a.useCallback)(()=>{x.unlock("/qListObjectDef")},[x]),{translator:C,themeApi:E,keyboardNavigation:L,hostConfig:R}=(0,a.useContext)(fa),P=(0,a.useRef)(),O=(0,a.useRef)(),[T]=lg(i,x,O),[I]=ss(x),[q]=(0,a.useState)(()=>cg({selectDisabled:p})),j=Wd({containerRef:O,enabled:L}),{checkboxes:M=d}=I||{},D=Uv({themeApi:E,theme:v,hostConfig:R,components:u,checkboxes:M});if((0,a.useEffect)(()=>{T&&g&&(T.isModal(x)||T.goModal("/qListObjectDef"))},[T,g]),!(x&&I&&C&&D))return null;const _=!0===I.qListObject.qDimensionInfo.qLocked,N=(e,t)=>{const n="escapeKeyDown"!==t;T.noModal(n),o()},A=wh({layout:I,model:x,translator:C,selectionState:q,selections:T}),$=dg(I);return(0,Jo.jsx)(ru,{className:"listbox-container",open:g,onClose:N,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?N():void 0,direction:h,children:(0,Jo.jsxs)(es,{container:!0,direction:"column",gap:0,ref:O,children:[(0,Jo.jsxs)(es,{container:!0,style:{direction:h,padding:v.spacing(1)},children:[(0,Jo.jsx)(es,{children:_?(0,Jo.jsx)(Ml,{onClick:k,disabled:!_,size:"large","aria-label":C.get("Listbox.Unlock"),title:C.get("Listbox.Unlock"),children:(0,Jo.jsx)(xs,{})}):(0,Jo.jsx)(Ml,{onClick:w,disabled:!$,size:"large","aria-label":C.get("Listbox.Lock"),title:C.get("Listbox.Lock"),children:(0,Jo.jsx)(_l,{})})}),(0,Jo.jsx)(es,{size:"grow"}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(ym,{layout:I,more:{enabled:!_,actions:A,alignTo:P,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:T,onConfirm:N,onCancel:()=>N(0,"escapeKeyDown")}})})]}),(0,Jo.jsxs)(es,{size:"grow",role:"region","aria-label":C.get("Listbox.ResultFilterLabel"),children:[(0,Jo.jsx)("div",{ref:P}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(og,{ref:S,popoverOpen:g,styles:D,visible:!0,model:x,listCount:y,selections:T,selectionState:q,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:j.focusSelection},autoFocus:c??!0,direction:h})}),(0,Jo.jsx)(yh,{model:x,app:i,layout:I,selections:T,selectionState:q,direction:h,onSetListCount:e=>b(e),onCtrlF:()=>{S.current.focus()},styles:D,keyboard:j})]})]})})}const Gv=function({displayName:e}){return(0,Jo.jsx)(js,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600,marginTop:"8px"},children:e})};function Kv({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:r=!1,moreAlignTo:o=null,onClose:i=()=>{}}){const{translator:s}=(0,a.useContext)(fa),l=o||(0,a.useRef)(),c=Uo(),[u,d]=(0,a.useState)(!1);let p,f=null,h=null,m="";const g=!!e.isPinned,y=()=>{d(!1),i()};if(g)m=e.qName||e.qField,h=(0,Jo.jsx)(Gv,{displayName:m});else{p=e.selections[n],void 0===p.qTotal&&(p.qTotal=0);const r=p.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},i=(r.qSelected+r.qLocked)/p.qTotal,a=r.qAlternative/p.qTotal,l=(r.qExcluded+r.qLockedExcluded+r.qSelectedExcluded)/p.qTotal,u=r.qSelected+r.qSelectedExcluded+r.qLocked+r.qLockedExcluded,d=0===u&&0===p.qTotal;let f="";p.qTotal===u&&p.qTotal>1?f=s.get("CurrentSelections.All"):u>1&&p.qTotal?f=s.get("CurrentSelections.Of",[u,p.qTotal]):p.qSelectedFieldSelectionInfo&&(f=p.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[n]&&(f=`${e.states[n]}: ${f}`);const m=[{color:c.palette.selected.main,ratio:i},{color:c.palette.selected.alternative,ratio:a},{color:c.palette.selected.excluded,ratio:l}];m.forEach((e,t)=>{e.offset=t?m[t-1].offset+m[t-1].ratio:0});let g=null,y=null,b=null;o||(g=(0,Jo.jsxs)(es,{sx:{flex:1,minWidth:0,opacity:p.qLocked?"0.3":""},children:[(0,Jo.jsx)(js,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label}),(0,Jo.jsx)(js,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"},children:f})]}),p.qLocked?y=(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{size:"large",children:(0,Jo.jsx)(xs,{})})}):p.qOneAndOnlyOne||(y=(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{title:s.get("Selection.Clear"),onClick:r=>{r.stopPropagation(),t.clearField(p.qField,e.states[n])},size:"large",children:(0,Jo.jsx)(Ss,{})})})),b=(0,Jo.jsx)("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"},children:!1===d&&m.map(e=>(0,Jo.jsx)("div",{style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}},e.color))}),h=(0,Jo.jsxs)(Jo.Fragment,{children:[g,y,b]}))}return f=(0,Jo.jsxs)(es,{container:!0,gap:1,ref:l,"data-testid":g?`pin-item-${m}`:`selection-item-${p.qField}`,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px",height:"40px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===r&&(e=>{e.currentTarget.contains(e.target)&&d(!u)})||null,children:[h,u&&(0,Jo.jsx)(Vv,{alignTo:l,show:u,close:y,app:t.model,fieldName:g?e.qField:p.qField,stateName:g?void 0:e.states[n]})]}),o?(0,Jo.jsx)(Vv,{alignTo:l,show:!0,close:y,app:t.model,fieldName:g?e.qField:p.qField,stateName:g?void 0:e.states[n]}):f}const Jv=function(e){const t=a.useRef({});return a.useEffect(()=>{t.current=e}),t.current};function Xv(e){return ra("MuiBadge",e)}const Zv=oa("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"]),Yv=Za("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Qv=Za("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Es(n.anchorOrigin.vertical)}${Es(n.anchorOrigin.horizontal)}${Es(n.overlap)}`],"default"!==n.color&&t[`color${Es(n.color)}`],n.invisible&&t.invisible]}})(Cs(({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(Ls(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:t,horizontal:n}=e.anchorOrigin,r="circular"===e.overlap?"14%":0;return{"--Badge-translateX":"right"===n?"50%":"-50%","--Badge-translateY":"top"===t?"-50%":"50%",top:"top"===t?r:"initial",bottom:"bottom"===t?r:"initial",right:"right"===n?r:"initial",left:"left"===n?r:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${"right"===n?"100%":"0%"} ${"top"===t?"0%":"100%"}`,[`&.${Zv.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function eS(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const tS=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:i,component:a,components:s={},componentsProps:l={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:h,slots:m,slotProps:g,showZero:y=!1,variant:b="standard",...v}=n,{badgeContent:S,invisible:x,max:w,displayValue:k}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Jv({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:s,max:l=r}=a?i:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:f,invisible:p,badgeContent:h,showZero:y}),C=Jv({anchorOrigin:eS(r),color:d,overlap:u,variant:b,badgeContent:h}),E=x||null==S&&"dot"!==b,{color:L=d,overlap:R=u,anchorOrigin:P,variant:O=b}=E?C:n,T=eS(P),I="dot"!==O?k:void 0,q={...n,badgeContent:S,invisible:E,max:w,displayValue:I,showZero:y,anchorOrigin:T,color:L,overlap:R,variant:O},j=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Sa({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Es(n.vertical)}${Es(n.horizontal)}`,`anchorOrigin${Es(n.vertical)}${Es(n.horizontal)}${Es(o)}`,`overlap${Es(o)}`,"default"!==t&&`color${Es(t)}`]},Xv,a)})(q),M={slots:{root:m?.root??s.Root,badge:m?.badge??s.Badge},slotProps:{root:g?.root??l.root,badge:g?.badge??l.badge}},[D,_]=wc("root",{elementType:Yv,externalForwardedProps:{...M,...v},ownerState:q,className:ti(j.root,o),ref:t,additionalProps:{as:a}}),[N,A]=wc("badge",{elementType:Qv,externalForwardedProps:M,ownerState:q,className:j.badge});return(0,Jo.jsxs)(D,{..._,children:[c,(0,Jo.jsx)(N,{...A,children:I})]})}),nS=tS,rS=va;function oS(e){return ra("MuiListItem",e)}oa("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const iS=oa("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function aS(e){return ra("MuiListItemSecondaryAction",e)}oa("MuiListItemSecondaryAction",["root","disableGutters"]);const sS=Za("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}}]}),lS=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=a.useContext(Ah),s={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Sa({root:["root",t&&"disableGutters"]},aS,n)})(s);return(0,Jo.jsx)(sS,{className:ti(l.root,r),ownerState:s,ref:t,...o})});lS.muiName="ListItemSecondaryAction";const cS=lS,uS=Za("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]}})(Cs(({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:{[`& > .${iS.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}}]}))),dS=Za("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),pS=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:h=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:y,slotProps:b={},slots:v={},...S}=n,x=a.useContext(Ah),w=a.useMemo(()=>({dense:f||x.dense||!1,alignItems:r,disableGutters:h}),[r,x.dense,f,h]),k=a.useRef(null),C=a.Children.toArray(o),E=C.length&&rS(C[C.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:r,dense:w.dense,disableGutters:h,disablePadding:m,divider:g,hasSecondaryAction:E},R=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return Sa({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},oS,n)})(L),P=Ns(k,t),O={slots:v,slotProps:b},[T,I]=wc("secondaryAction",{elementType:cS,externalForwardedProps:O,ownerState:L,className:R.secondaryAction}),q=v.root||l.Root||uS,j=b.root||c.root||{},M={className:ti(R.root,j.className,i),...S};let D=s||"li";return E?(D=M.component||s?D:"div","li"===u&&("li"===D?D="div":"li"===M.component&&(M.component="div")),(0,Jo.jsx)(Ah.Provider,{value:w,children:(0,Jo.jsxs)(dS,{as:u,className:ti(R.container,d),ref:P,ownerState:L,...p,children:[(0,Jo.jsx)(q,{...j,...!Nl(q)&&{as:D,ownerState:{...L,...j.ownerState}},...M,children:C}),C.pop()]})})):(0,Jo.jsx)(Ah.Provider,{value:w,children:(0,Jo.jsxs)(q,{...j,as:D,ref:P,...!Nl(q)&&{ownerState:{...L,...j.ownerState}},...M,children:[C,y&&(0,Jo.jsx)(T,{...I,children:y})]})})}),fS=pS,hS=a.createContext({}),mS=a.createContext(void 0),gS=[{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}}}],yS=Za(gl,{shouldForwardProp:e=>Xa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Es(n.color)}`],t[`size${Es(n.size)}`],t[`${n.variant}Size${Es(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Cs(({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"},[`&.${aa.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&"start"===e.loadingPosition,style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${aa.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${aa.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)",[`&.${aa.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(Ls()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${aa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${aa.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}),[`&.${aa.loading}`]:{color:"transparent"}}}]}})),bS=Za("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Es(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}},...gS]})),vS=Za("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Es(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}},...gS]})),SS=Za("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xS=Za("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),wS=a.forwardRef(function(e,t){const n=a.useContext(hS),r=a.useContext(mS),o=Ya({props:ni(n,e),name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,id:g,loading:y=null,loadingIndicator:b,loadingPosition:v="center",size:S="medium",startIcon:x,type:w,variant:k="text",...C}=o,E=Ms(g),L=b??(0,Jo.jsx)(Pl,{"aria-labelledby":E,color:"inherit",size:16}),R={...o,color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,loading:y,loadingIndicator:L,loadingPosition:v,size:S,type:w,variant:k},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Sa({root:["root",a&&"loading",i,`${i}${Es(t)}`,`size${Es(o)}`,`${i}Size${Es(o)}`,`color${Es(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Es(s)}`],startIcon:["icon","startIcon",`iconSize${Es(o)}`],endIcon:["icon","endIcon",`iconSize${Es(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},ia,l);return{...l,...c}})(R),O=(x||y&&"start"===v)&&(0,Jo.jsx)(bS,{className:P.startIcon,ownerState:R,children:x||(0,Jo.jsx)(xS,{className:P.loadingIconPlaceholder,ownerState:R})}),T=(f||y&&"end"===v)&&(0,Jo.jsx)(vS,{className:P.endIcon,ownerState:R,children:f||(0,Jo.jsx)(xS,{className:P.loadingIconPlaceholder,ownerState:R})}),I=r||"",q="boolean"==typeof y?(0,Jo.jsx)("span",{className:P.loadingWrapper,style:{display:"contents"},children:y&&(0,Jo.jsx)(SS,{className:P.loadingIndicator,ownerState:R,children:L})}):null,{root:j,...M}=P;return(0,Jo.jsxs)(yS,{ownerState:R,className:ti(n.className,P.root,c,I),component:l,disabled:u||y,focusRipple:!p,focusVisibleClassName:ti(P.focusVisible,h),ref:t,type:w,id:y?E:g,...C,classes:M,children:[O,"end"!==v&&q,i,"end"===v&&q,T]})}),kS=wS,CS=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));n.dn(CS);const ES="MultiState-item",LS=Za(es)(({theme:e})=>({[`&.${ES}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function RS({field:e,api:t,moreAlignTo:n=null,onClose:r=()=>{}}){const[o,i]=(0,a.useState)(!!n),[s,l]=(0,a.useState)(-1),[c,u]=(0,a.useState)(n?n.current:null),d=n||(0,a.useRef)(),{translator:p}=(0,a.useContext)(fa),f=p.get("Selection.ClearAllStates"),h=()=>{l(-1),r()};let m=null;n||(m=(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(es,{sx:{minWidth:0,flexGrow:1},children:(0,Jo.jsx)(nS,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length,children:(0,Jo.jsx)(js,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)("div",{style:{width:"12px"}})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{size:"large",children:(0,Jo.jsx)(CS,{})})})]}));const g=(0,Jo.jsxs)(tm,{dense:!0,children:[(0,Jo.jsx)(fS,{title:f,onClick:()=>{e.states.forEach(n=>t.clearField(e.name,n))},children:(0,Jo.jsx)(kS,{variant:"contained",fullWidth:!0,children:f})}),e.states.map((n,r)=>(0,Jo.jsx)(fS,{title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,r),children:(0,Jo.jsx)(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:(0,Jo.jsx)(Kv,{field:e,api:t,stateIx:r,skipHandleShowListBoxPopover:!0})})},r))]}),y=(0,Jo.jsx)(ru,{open:o,onClose:()=>{i(!1),r()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:g}),b=n?y:(0,Jo.jsxs)(LS,{container:!0,gap:0,className:ES,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!o))},children:[m,o&&y,s>-1&&(0,Jo.jsx)(Vv,{alignTo:d,show:s>-1,close:h,app:t.model,fieldName:e.selections[s].qField,stateName:e.states[s]})]});return n&&s>-1?(0,Jo.jsx)(Vv,{alignTo:d,show:s>-1,close:h,app:t.model,fieldName:e.selections[s].qField,stateName:e.states[s]}):b}const PS="More",OS={item:`${PS}-item`,badge:`${PS}-badge`},TS=Za(es)(({theme:e})=>({[`&.${OS.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${OS.badge}`]:{padding:e.spacing(0,1)}}));function IS({items:e=[],api:t}){const n=Uo(),[r,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(-1),[l,c]=(0,a.useState)(null),u=(0,a.useRef)(),d=()=>{s(-1)};let p=null;return i>-1&&(p=e[i].states.length>1?(0,Jo.jsx)(RS,{field:e[i],api:t,moreAlignTo:u,onClose:d}):(0,Jo.jsx)(Kv,{field:e[i],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),(0,Jo.jsxs)(TS,{container:!0,gap:0,className:OS.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,o(!r))},children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Md,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText},children:(0,Jo.jsxs)(js,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit",children:["+",e.length]})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{size:"large",children:(0,Jo.jsx)(CS,{})})}),r&&(0,Jo.jsx)(ru,{open:r,onClose:()=>{o(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:(0,Jo.jsx)(tm,{dense:!0,children:e.map((e,n)=>(0,Jo.jsx)(fS,{title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),o(!1),s(t)})(e,n),children:(0,Jo.jsx)(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:e.states.length>1?(0,Jo.jsx)(RS,{field:e,api:t}):(0,Jo.jsx)(Kv,{field:e,api:t})})},n))})}),p]})}function qS({api:e,app:t}){const n=Uo(),[r]=os(t),[o]=ss(r),[i]=(e=>{const[t]=ps(e,"FieldList",fs),[n]=as(t,"getLayout"),r=(e=>{if(!e)return;const t=[];for(let n=0;n<e.length;++n){const r=e[n];if(t.push(r),r.qDerivedFieldData)for(let e=0;e<r.qDerivedFieldData.qDerivedFieldLists.length;++e){const n=r.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<n.qFieldDefs.length;++e){const o=n.qFieldDefs[e];t.push({qName:o.qName,qSrcTables:r.qSrcTables,qTags:o.qTags,isDerived:!0,sourceField:r.qName,derivedDefinitionName:n.qDerivedDefinitionName})}}}return t})(n?.qFieldList?.qItems);return[r]})(t),[s]=(e=>{const[t]=ps(e,"DimensionList",hs),[n]=as(t,"getLayout");return[n?.qDimensionList?.qItems]})(t),[l]=ds(t),{modalObjectStore:c}=(0,a.useContext)(fa).selectionStore,[u,d]=cs(),p=(0,a.useMemo)(()=>{const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const r=e.qField;let o=t[r];void 0===o&&(o={name:r,label:e.qDimensionReferences?.find(e=>e.qLabel)?.qLabel||e.qReadableName||r,states:[],selections:[]},t[r]=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))}(o).sort(ys);return((e,t,n,r)=>{if(!e||!r)return n;if(0===e.length||0===t.length&&0===n.length)return[];const o=((e,t,n)=>n.filter(n=>ms in n&&n[ms]?e.some(e=>e.qName===n[ms]):!(!(gs in n)||!n[gs])&&t.some(e=>e.qInfo?.qId===n[gs]&&"N"===e.qData?.grouping)))(e,r,t),i=[],a=[...n];for(let e=0;e<o.length;e++){const t=o[e],n=!(!(gs in t)||!t[gs]),s=n?r.find(e=>e.qInfo?.qId===t[gs]):null,l=n?s?.qData?.info[0]?.qName:t[ms],c=a.findIndex(e=>n&&e.selections[0].qDimensionReferences?.[0]?.qId===t[gs]||!n&&(e.selections[0].qField===l||e.selections[0].qReadableName===l));if(-1===i.findIndex(e=>e.selections?.[0]?.qField===l&&!e.isPinned))if(-1===c){const t={...o[e],isPinned:!0,states:["$"]};n&&s&&(t.qField=l,t.qName=s.qData.labelExpression||s.qData.title||l),i.push(t)}else i.push(a[c]),a.splice(c,1)}return[...i,...a]})(i,l,e,s)},[o,i,l,s]),f=(e=>{if(!e)return 0;const{width:t}=e,n=Math.floor(t)-72;return Math.floor(n/120)})(d),{items:h,more:m}=(({currentItems:e,containerRef:t,maxItems:n,isInListboxPopover:r})=>{if(!t)return{items:[],more:[]};const o=[...e],i=t.items??[];if(r()&&o.length+1===i.length){const e=i.filter(e=>!1===o.some(t=>e.name===t.name))[0];if(e&&!e.isPinned){const{qField:t}=e.selections[0];e.selections=[{qField:t}];const n=i.indexOf(e);o.splice(n,0,e)}}let a=[];return n<o.length&&(a=o.splice(0,o.length-n)),t.items=o,{items:o,more:a}})({currentItems:p,containerRef:u,maxItems:f,isInListboxPopover:()=>{const{model:e}=c.get(t.id)||{};return"njsListbox"===e?.genericType}});return(0,Jo.jsxs)(es,{ref:u,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"},children:[m.length>0&&(0,Jo.jsx)(es,{style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:(0,Jo.jsx)(IS,{items:m,api:e})}),h.map((t,r)=>(0,Jo.jsx)(es,{style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:t.states.length>1?(0,Jo.jsx)(RS,{field:t,api:e}):(0,Jo.jsx)(Kv,{field:t,api:e})},`${t.states.join("::")}::${t.qField??t.name}${r}`))]})}const jS=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));n.dn(jS);const MS=e=>vs((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 DS({api:e,app:t}){const{translator:n}=(0,a.useContext)(fa),[r]=function(e){const[t]=os(e),[n]=ss(t),[r]=ls(e),[o,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}));(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::")!==(n.qStateNames||[]).map(e=>e).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)},[r,t,n]),(0,a.useEffect)(()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach(n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),i({canGoBack:e,canGoForward:t,canClear:r})},[n]),[o,t,n]}(t);return(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"},children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{style:{marginRight:"8px"},disabled:!r||!r.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large",children:(0,Jo.jsx)(jS,{})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{style:{marginRight:"8px"},disabled:!r||!r.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large",children:(0,Jo.jsx)(MS,{})})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Ml,{disabled:!r||!r.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large",children:(0,Jo.jsx)(Nh,{})})})]})}n.dn(MS);const _S=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function NS([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function AS(){return _S.map(NS).join("")}function $S({app:e}){const t=Uo(),[n]=ig(e);return n?(0,Jo.jsxs)(es,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"},children:[(0,Jo.jsx)(es,{style:{borderRight:`1px solid ${t.palette.divider}`},children:(0,Jo.jsx)(DS,{api:n,app:e})}),(0,Jo.jsx)(es,{size:"grow",style:{backgroundColor:t.palette.background.darker,overflow:"hidden"},children:(0,Jo.jsx)(qS,{api:n,app:e})})]}):null}let zS;zS="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let FS=null,BS=null;const WS=zS.clearTimeout,HS=zS.setTimeout,US=zS.cancelAnimationFrame||zS.mozCancelAnimationFrame||zS.webkitCancelAnimationFrame,VS=zS.requestAnimationFrame||zS.mozRequestAnimationFrame||zS.webkitRequestAnimationFrame;null==US||null==VS?(FS=WS,BS=function(e){return HS(e,20)}):(FS=function([e,t]){US(e),WS(t)},BS=function(e){const t=VS(function(){WS(n),e()}),n=HS(function(){US(t),e()},20);return[t,n]});class GS extends a.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 r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},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,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=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;a(this),this.__resizeRAF__&&FS(this.__resizeRAF__),this.__resizeRAF__=BS(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{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"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=zS.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__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",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,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:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:p,scaledHeight:f,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},y={};let b=!1;return r||(0===p&&(b=!0),g.height=0,y.height=p,y.scaledHeight=f),o||(0===m&&(b=!0),g.width=0,y.width=m,y.scaledWidth=h),i&&(b=!1),(0,a.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!b&&e(y))}}function KS({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:r,isModal:o,constraints:i,selections:a}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:r=!1}=t.nativeEvent,i=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const s=t.currentTarget.closest(".listbox-container"),l=o();switch(n){case zd.TAB:if(document.activeElement===s||!l&&!s.contains(document.activeElement))return;if(r)Vd(s)||Ud(s)||Kd(t,e);else if(!(Gd(s)||Ud(s)||Vd(s)))break;i();break;case zd.ENTER:case zd.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),i();break;case zd.ESCAPE:Kd(t,e),a.isActive()&&a.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=i?.select||i?.active,t=o();return e||t})())return;const{keyCode:a,ctrlKey:s=!1,shiftKey:l=!1}=e;switch(a){case zd.ARROW_UP:n({up:1});break;case zd.ARROW_DOWN:n({down:1});break;case zd.PAGE_UP:n({up:r.stop-r.start});break;case zd.PAGE_DOWN:n({down:r.stop-r.start});break;case zd.HOME:n({scrollPosition:s&&l?"overflowStart":"start"});break;case zd.END:n({scrollPosition:s&&l?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const JS=Za("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function XS({text:e}){const{translator:t}=(0,a.useContext)(fa);return(0,Jo.jsx)(JS,{children:t.get(e)})}const ZS={fontSize:"12px"},YS=Za(gl)(({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"}})),QS=Za(es,{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=Za(js)(({styles:e})=>({...e.header,display:"block",alignItems:"center",paddingRight:"1px"})),tx=a.forwardRef(({translator:e,toggleLock:t,keyboard:n,isLoading:r},o)=>{const i=e.get("SelectionToolbar.ClickToUnlock");return(0,Jo.jsxs)(YS,{ref:o,title:i,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:r,children:[r?(0,Jo.jsx)(Pl,{size:16,variant:"indeterminate",color:"primary"}):(0,Jo.jsx)(xs,{disableRipple:!0,style:ZS}),!r&&(0,Jo.jsx)(js,{fontSize:"14px",children:i})]})}),nx=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));n.dn(nx);const rx=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));n.dn(rx);const ox=e=>vs((e=>({...e,shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));n.dn(ox);const ix=Za(kS)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})),ax=function({iconData:e,translator:t,iconStyle:n,disabled:r,keyboard:o}){if(!e)return;const{icon:i,tooltip:a,onClick:s,onKeyDown:l}=e,c=i,u=t.get(a);return s?(0,Jo.jsx)(ix,{variant:"outlined",onClick:s,tabIndex:o.innerTabStops?0:-1,title:u,size:"large",disableRipple:!0,disabled:r,onKeyDown:l,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button",children:(0,Jo.jsx)(c,{style:n})}):(0,Jo.jsx)(c,{title:u,size:"large",style:{...n,padding:"7px"}})};let sx=0;const lx=function({layout:e,translator:t,styles:n,isRtl:r,showLock:o,showSearchIcon:i,constraints:s,onShowSearch:l,classes:c,containerRect:u,isPopover:d,showToolbar:p,toolbarMode:f="auto",containerRef:h,model:m,selectionState:g,isDirectQuery:y,selections:b,keyboard:v,autoConfirm:S,app:x,title:w,disablePortal:k}){const C="detach"===f,E=!(C||"attach"===f),[L,R]=(0,a.useState)(C),[P,O]=(0,a.useState)(e?.qListObject?.qDimensionInfo?.qLocked),[T,I]=(0,a.useState)(!1);(0,a.useEffect)(()=>{O(e?.qListObject?.qDimensionInfo?.qLocked)},[e?.qListObject?.qDimensionInfo?.qLocked]);const q=(0,a.useRef)(null),j=(0,a.useRef)(null),M=(0,a.useRef)(null),D=(({dimInfo:e,app:t,selections:n,isPopover:r,active:o,keyboard:i})=>{switch(e.qGrouping){case"H":return{icon:rx,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const a=t&&o,s=()=>{r||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:a?ox:nx,tooltip:"Listbox.Cyclic",onClick:a?s:void 0,onKeyDown:a?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case zd.SPACE:case zd.ENTER:s();break;case zd.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():Ud(t)||Vd(t),n||Kd(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}})({dimInfo:e?.qListObject?.qDimensionInfo,app:x,selections:b,isPopover:d,active:!s?.active,keyboard:v}),_=o&&P,N=!o&&P,A=i||N||D,$=9-(A?7:0),z=r?9-(A?7:0):4,F=(i?28:0)+(N?28:0)+(D?28:0),B=function({isLocked:e,setLocked:t,settingLockedState:n,model:r,setSettingLockedState:o,unlockButtonRef:i,lockButtonRef:a}){return()=>{const s=new Date;if(s-sx<500)return Promise.resolve();if(n)return()=>{};o(!0),sx=s;const l=e?r.unlock:r.lock;return t(!e),l.call(r,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{o(!1),e?setTimeout(()=>{a.current?.focus()},0):i.current?.focus()},0)})}}({isLocked:P,setLocked:O,settingLockedState:T,setSettingLockedState:I,model:m,unlockButtonRef:j,lockButtonRef:M}),W=wh({layout:e,model:m,translator:t,selectionState:g,isDirectQuery:y,selections:b}),H=P||!o?void 0:[{key:"lock",type:void 0,label:t.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Dl,enabled:()=>!T&&!g.selectDisabled()&&dg(e),action:B,ref:M}],U=s?.active?(0,Jo.jsx)(Ym,{title:t.get("Listbox.Search"),size:"large",style:{...ZS,padding:"7px"}}):(0,Jo.jsx)(Ml,{onClick:l,tabIndex:-1,title:t.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn",children:(0,Jo.jsx)(Ym,{style:ZS})});(0,a.useEffect)(()=>{if(!E)return;if(!q.current||!u)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:r,paddingRight:o}){const i=r+o;return!!(e.width<(t?.current?.clientWidth??0)+n+i+2+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:u,titleRef:q,iconsWidth:F,paddingLeft:$,paddingRight:z});R(e)},[E,F,$,z,q.current,u?.width,u?.height]);const V=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:r,listboxSelectionToolbarItems:o,extraItems:i,selections:a,keyboard:s,autoConfirm:l,disablePortal:c}){return{autoConfirm:l,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:i,more:{enabled:!r,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:a,onConfirm:()=>{s?.focus()},onCancel:()=>{s?.focus()}}}}({isDetached:!d&&L,showToolbar:p,containerRef:h,isPopover:d,isLocked:P,extraItems:H,listboxSelectionToolbarItems:W,selections:b,keyboard:v,autoConfirm:S,disablePortal:k}),G=(0,Jo.jsx)(ym,{isRtl:r,layout:e,...V});if(C)return G;const K=N?(0,Jo.jsx)(xs,{size:"large",style:{...ZS,padding:"7px"}}):void 0;return(0,Jo.jsxs)(QS,{item:!0,container:!0,styles:n,isRtl:r,marginY:1,paddingLeft:`${$}px`,paddingRight:`${z}px`,className:"header-container",children:[_&&(0,Jo.jsx)(tx,{isLoading:T,translator:t,toggleLock:B,keyboard:v,ref:j}),A&&(0,Jo.jsxs)(es,{container:!0,alignItems:"center",width:F,className:"header-action-container",children:[K||i&&U,(0,Jo.jsx)(ax,{iconData:D,iconStyle:ZS,disabled:b.isActive()&&d,translator:t,keyboard:v})]}),(0,Jo.jsx)(es,{size:"grow",sx:{minWidth:0},justifyContent:r?"flex-end":"flex-start",className:c.listBoxHeader,children:(0,Jo.jsx)(ex,{variant:"h6",noWrap:!0,ref:q,title:w??e.title,styles:n,children:w??e.title})}),(0,Jo.jsx)(es,{display:"flex",children:G})]})},cx=Za("div")(({theme:e,width:t,height:n})=>({position:"absolute",pointerEvents:"none",zIndex:1,width:t,height:n,boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`}));function ux({width:e,height:t,disabled:n,childNode:r,containerNode:o}){const[i,s]=(0,a.useState)(!1),l=(0,a.useCallback)(()=>{const e=o&&o.contains(document.activeElement),t=r&&r.contains(document.activeElement);s(e&&!t)},[o,r]);return(0,a.useEffect)(()=>{if(o)return o.addEventListener("focusin",l),o.addEventListener("focusout",l),l(),()=>{o.removeEventListener("focusin",l),o.removeEventListener("focusout",l)}},[l,o]),!n&&i?(0,Jo.jsx)(cx,{"aria-hidden":"true",width:e,height:t}):null}const dx="ListBoxInline",px={listBoxHeader:`${dx}-listBoxHeader`,screenReaderOnly:`${dx}-screenReaderOnly`,listboxWrapper:`${dx}-listboxWrapper`},fx=Za(es,{shouldForwardProp:e=>!["containerPadding","styles"].includes(e)})(({containerPadding:e,styles:t})=>({...t.background,[`& .${px.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${px.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${px.listboxWrapper}`]:{padding:e},"&:focus-visible":{outline:"none"}}));function hx({options:e,layout:t}){const{app:n,direction:r,frequencyMode:o,checkboxes:i,search:s=!0,focusSearch:l=!1,rangeSelect:c=!0,model:u,selections:d,update:p,fetchStart:f,postProcessPages:h,calculatePagesHeight:m,showGray:g=!0,scrollState:y,renderedCallback:b,toolbar:v=!0,toolbarMode:S="auto",isPopover:x=!1,showLock:w=!1,components:k,selectDisabled:C=()=>!1,disablePortal:E=!0,flags:L}=e,R=Uo(),{translator:P,keyboardNavigation:O,themeApi:T,queryParams:I,constraints:q,hostConfig:j}=(0,a.useContext)(fa),{checkboxes:M=i}=t||{},D=Uv({app:n,themeApi:T,theme:R,queryParams:I,components:k,checkboxes:M,hostConfig:j}),_=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:n?.layout}),N=(0,a.useRef)(),A=(0,a.useRef)(),[$,z,F]=cs(),[B,W]=(0,a.useState)(!1),[H,U]=(0,a.useState)(!1),V=(0,a.useRef)(!1),[G,K]=(0,a.useState)({down:0,up:0,scrollPosition:""}),J=e=>K(t=>({...t,...e})),[X,Z]=(0,a.useState)({start:0,stop:0}),[Y]=ig(n),[Q]=(0,a.useState)(()=>cg({selectDisabled:C})),ee=Wd({containerRef:N,enabled:O}),te=(0,a.useCallback)(()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:n,appSelections:Y}),[n,Y]),ne=t?.qListObject.qDimensionInfo.qError,re=ne&&q.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[,oe]=(0,a.useState)(!1),[ie,ae]=(0,a.useState)(null),se=(0,a.useCallback)(e=>{ae(e)},[]),{handleKeyDown:le,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=(0,a.useMemo)(()=>KS({keyboard:ee,hovering:V,updateKeyScroll:J,containerRef:N,currentScrollIndex:X,app:n,appSelections:Y,constraints:q,isModal:te,selections:d}),[ee,V,J,N,X,n,Y,q,te]);(0,a.useEffect)(()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)}),[de]),(0,a.useEffect)(()=>{!0===s&&U(!0);const e=()=>{W(!0)},t=()=>{W(!1),"toggle"===s&&U(!1)};return x&&(d.isActive()||(d.on("activated",e),d.on("deactivated",t)),W(x)),v&&d&&(d.isModal()||(d.on("activated",e),d.on("deactivated",t)),W(x||d.isActive())),()=>{d&&d.removeListener&&(d.removeListener("activated",e),d.removeListener("deactivated",t))}},[v,d,x]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=t??{},ge=t?.qListObject?.qDimensionInfo?.qLocked,ye=!1!==fe&&"toggle"===s&&!ge,be=t?.qListObject?.qDimensionInfo,ve=L.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT")?t?.title??be?.qFallbackTitle:t?.title,Se=ve?.length&&!1!==t?.showTitle,xe=["attach","detach","auto"].includes(S)?S:"auto",we=v||x,ke=function({toolbarMode:e,canShowTitle:t,isPopover:n}){return"auto"!==e?e:t||n?"attach":"detach"}({toolbarMode:xe,canShowTitle:Se,isPopover:x}),Ce=we&&"detach"===ke,Ee="rtl"===r;if(!(u&&t&&P&&D))return null;const Le=!0===s||"toggle"===s&&H&&!1!==fe,Re=me.dense??!1,Pe=()=>{const e=!H;U(e),e&&N.current?.scrollIntoView&&N.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"instant"})},Oe=()=>{"toggle"===s?Pe():A.current.focus()},Te=Le&&("toggle"===s||l),Ie=function({isGridMode:e,dense:t,height:n,layoutOrder:r}){let o;if(e){let i;i=Cp({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===r?`${i} 4px`:`${i} 6px ${i} 4px`}else o=void 0;return o}({isGridMode:"grid"===me?.dataLayout,dense:Re,height:N.current?.clientHeight,layoutOrder:me.layoutOrder});ne&&b?.();const qe=we&&!Ce?30:0,je=(0,Jo.jsx)(lx,{app:n,showSearchIcon:ye,onShowSearch:Pe,isPopover:x,showToolbar:B,isDirectQuery:_,autoConfirm:he,toolbarMode:Ce?"detach":xe,title:ve,layout:t,translator:P,styles:D,isRtl:Ee,showLock:w,constraints:q,classes:px,containerRect:z,containerRef:N,model:u,selectionState:Q,selections:d,keyboard:ee,disablePortal:E});return(0,Jo.jsxs)(Jo.Fragment,{children:[Ce&&je,(0,Jo.jsxs)(fx,{className:"listbox-container",container:!0,tabIndex:ee.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Ie,styles:D,style:{height:"100%",width:"100%",flexFlow:"column nowrap"},onKeyDown:le,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{N.current=e,$?.(e)},"aria-label":ee.active?P.get("Listbox.ScreenReaderInstructions"):"",onFocus:()=>oe(!0),onBlur:()=>oe(!1),children:[(0,Jo.jsx)(ux,{width:z?.width,height:z?.height,disabled:te()||x,childNode:ie,containerNode:F}),we&&!Ce&&je,(0,Jo.jsxs)(es,{container:!0,direction:"column",height:"100%",minHeight:qe,role:"region","aria-label":P.get("Listbox.ResultFilterLabel"),ref:se,children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(og,{ref:A,selections:d,selectionState:Q,model:u,dense:Re,keyboard:ee,visible:Le,search:s,autoFocus:Te,beginSelectionOnFocus:!x,wildCardSearch:pe,searchEnabled:fe,direction:r,hide:ye&&Pe,styles:D})}),(0,Jo.jsx)(es,{size:"grow",className:px.listboxWrapper,children:ne?(0,Jo.jsx)(XS,{text:re}):(0,Jo.jsx)(GS,{children:({height:e,width:i})=>(0,Jo.jsx)(yh,{model:u,app:n,constraints:q,layout:t,selections:d,selectionState:Q,direction:r,frequencyMode:o,rangeSelect:c,checkboxes:M,height:e,width:i,update:p,fetchStart:f,postProcessPages:h,calculatePagesHeight:m,keyboard:ee,showGray:g,scrollState:y,keyScroll:{state:G,reset:()=>K({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:X,set:Z},renderedCallback:b,onCtrlF:Oe,isModal:te,styles:D})})})]})]})]})}const mx=a.memo(hx),gx=function({options:e={}}){const{model:t}=e,[n]=ss(t);return(0,Jo.jsx)(mx,{options:e,layout:n})};const yx={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 bx(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 vx=(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}},Sx=(0,a.forwardRef)(({app:e,fieldIdentifier:t,qId:n,stateName:r,element:o,initialOptions:i,renderedCallback:s,flags:l},c)=>{const[u,d]=(0,a.useState)(i),{isExistingObject:p,hasExternalSelectionsApi:f}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:u});p||Object.assign(u,{frequencyMode:bx(u.frequencyMode)});const[h,m]=(0,a.useState)(0);(0,a.useEffect)(()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)},[p,f]);const g=p?function({app:e,qId:t,options:n={}}){const[r,o]=(0,a.useState)(),[i]=ts(),{sessionModel:s}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(n).filter(e=>l.includes(e));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,a.useEffect)(()=>{let n=!1,r=()=>{};return async function(){const a=await Promise.resolve(s||async function(t){return i.get(t)||await e.getObject(t)}(t));if(!n){if(!i.get(a.id)){i.set(a.id,a);const e=()=>{i.clear(a.id)};a.once("closed",e),r=()=>{a.removeListener("closed",e)}}o(a)}}(),()=>{n=!0,r()}},[]),r}({app:e,qId:n,options:u}):function({app:e,fieldIdentifier:t,stateName:n,options:r={}}){const[o,i]=(0,a.useState)(""),[s,l]=(0,a.useState)(!0),[c,u]=(0,a.useState)(),[d,p]=(0,a.useState)(),f=r.title??d;let{histogram:h=!1,frequencyMode:m="N"}=r;o&&o.failedToFetchFieldDef&&(h=!1,m="N"),(0,a.useEffect)(()=>{const n=h||"N"!==m;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),r=await n.getLayout();p(r.qDim.title),"N"===r.qDim.qGrouping?i(r.qDim.qFieldDefs?r.qDim.qFieldDefs[0]:""):i({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),i({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),p(t))},[]);const{dense:g,checkboxes:y,listLayout:b,properties:v={}}=r,S={dense:g};"horizontal"===b&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const x=(0,a.useRef)();x.current||(x.current=AS());const w=G()(!0,{},yx,{qInfo:{qId:x.current},qListObjectDef:{qStateName:n,qFrequencyMode:h&&"N"===m?"V":m},histogram:h,checkboxes:y,layoutOptions:S,title:f});let k;if(G()(!0,w,v),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,k=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],k=t),"P"!==m&&h)if(o?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?o:k;w.frequencyMax={qValueExpression:mh(e)}}const[C]=ns(w,s?null:e,k,n);return(0,a.useEffect)(()=>{C&&u(C)},[C]),c}({app:e,fieldIdentifier:t,stateName:r,options:u}),y=(0,a.useRef)(o),b=f?u.selectionsApi:lg(e,g,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],v=(0,a.useMemo)(()=>({...u,selections:b,model:g,app:e,renderedCallback:s,flags:l}),[u,b,g,e]);return(0,a.useImperativeHandle)(c,()=>({setOptions:e=>d(e)}),[]),b&&g?(0,Jo.jsx)(gx,{options:v}):null}),xx={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function wx({app:e,fieldIdentifier:t,stateName:n,element:r,options:o={}}){const[i,s]=(0,a.useState)(!!o.show);return(0,Jo.jsx)(Vv,{show:i,app:e,alignTo:{current:r},anchorOrigin:o.anchorOrigin,transformOrigin:o.transformOrigin,close:()=>{s(!1),o.onPopoverClose&&o.onPopoverClose()},fieldName:t,stateName:n,autoFocus:o.autoFocus,components:o.components,sortCriteria:o.sortCriteria,direction:o.direction})}function kx(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Cx(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Ex({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 r=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||AS(),i.qDef.qSortCriterias=i.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],i.qOtherTotalSpec=i.qOtherTotalSpec||{},i.qAttributeExpressions=i.qAttributeExpressions||[],i.qAttributeDimensions=i.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(i),kx(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(i,r)):(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(i)),i},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return Cx(e.qInterColumnSortOrder,n),t.dimensions.removed(o,r,n),o},addMeasure(n){const i="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):{...n,qDef:n.qDef||{}};i.qDef.cId=i.qDef.cId||AS(),i.qSortBy=i.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},i.qAttributeDimensions=i.qAttributeDimensions||[],i.qAttributeExpressions=i.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(i),kx(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(i,r)):(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(i))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];Cx(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,r,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 Lx({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const r=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||AS(),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,r),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,r,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const Rx=e=>({qDef:{qFieldDefs:[e]}});function Px({children:e,halo:t}){const n={async addDimension(n){const r=(e=>{let t;return t="string"==typeof e?G()(!0,{},yx,{qListObjectDef:Rx(e)}):e.qListObjectDef?G()(!0,{},yx,e):G()(!0,{},yx,{qListObjectDef:e}),t})(n),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||AS(),!r.title)if(t.public.galaxy.flags.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT"))r.title=void 0;else if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:r.title=n.qDim.title}else r.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:r,qChildren:[]})},addMeasure(){}};return n}function Ox(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 Tx({sn:e,properties:t,fields:n,children:r},o){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:a}=i,s=a.split("/");let l=t;for(let e=0;e<s.length;e++){const t=s[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?Lx:e.match("/qChildListDef")?Px:Ex}(a),u=c({dc:l,def:i,properties:t,children:r,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===Ox(t)?await u.addMeasure(t):await u.addDimension(t)}}const Ix=e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e,qx={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];if(!Ix(t))return;void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}Ix(o)&&(void 0!==n?i[o]=n:delete i[o])},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},jx=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},Mx=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},Dx=function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},_x=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 r=e.at(t);e.splice(t,1),e.splice(n,0,r)},Nx=2**53-1;function Ax(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function $x(e,t){const n=G()(!0,{},t,e);return qx.getValue(n,"qOtherTotalSpec.qOtherCounted")||qx.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),qx.getValue(n,"qOtherTotalSpec.qOtherLimit")||qx.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function zx(e,t){return G()(!0,{},t,e)}function Fx(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const Bx={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===qx.getValue(e,t)&&qx.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:Ax,importCommonProperties:function(e,t,n){const r="masterobject"===qx.getValue(t,"properties.qInfo.qType")?"masterobject":qx.getValue(n,"qInfo.qType");qx.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:$x,createDefaultMeasure:zx,resolveValue:Fx,getHypercubePath:function(e){const t=qx.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],r=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==r)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==r;)o<r?(Mx(t.qInterColumnSortOrder,o),++o):(--o,Dx(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let r={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(r.qLayoutExclude.quarantine=G()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?qx.setValue(r,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||Ax(o)?r[o]=e.properties[o]:r.qLayoutExclude.disabled[o]=e.properties[o]}),r=G()(!0,{},t,r),null===r.components&&(r.components=[]),r},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],r=t.dimensions||{max:0},o=t.measures||{max:0},i=Fx(o.max,n.dimensions.length,Nx),a=Fx(o.min,n.dimensions.length,0);return{maxDimensions:Fx(r.max,i,Nx),minDimensions:Fx(r.min,a,0),maxMeasures:i,minMeasures:a}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:r,minMeasures:o}){const i=e.data[0];return i.dimensions.length>t&&t>0||i.measures.length>r&&r>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>n||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>o||!r&&i.measures.length>0||!t&&i.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:r,minMeasures:o,newHyperCubeDef:i}){const a=e.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(a.dimensions.length>t&&t>0||a.excludedDimensions&&a.excludedDimensions.length&&a.dimensions.length+a.excludedDimensions.length>n)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(a.measures.length>r&&r>0||a.excludedMeasures&&a.excludedMeasures.length&&a.measures.length+a.excludedMeasures.length>o)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&a.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&a.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:r,defaultDimension:o}){const i=e.data[0];let a;if(t>0)for(a=0;a<i.dimensions.length;++a)r.qDimensions.length<t?r.qDimensions.push($x(i.dimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push($x(i.dimensions[a],o));else if(i.dimensions.length)for(a=0;a<i.dimensions.length;++a)r.qLayoutExclude.qHyperCubeDef.qDimensions.push($x(i.dimensions[a],o));if(i.excludedDimensions.length)for(a=0;a<i.excludedDimensions.length;++a)r.qDimensions.length<n?r.qDimensions.push($x(i.excludedDimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push($x(i.excludedDimensions[a],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:r,defaultMeasure:o}){const i=e.data[0];let a;if(t>0)for(a=0;a<i.measures.length;++a)r.qMeasures.length<t?r.qMeasures.push(zx(i.measures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(zx(i.measures[a],o));else if(i.measures.length)for(a=0;a<i.measures.length;++a)r.qLayoutExclude.qHyperCubeDef.qMeasures.push(zx(i.measures[a],o));if(i.excludedMeasures.length)for(a=0;a<i.excludedMeasures.length;++a)r.qMeasures.length<n?r.qMeasures.push(zx(i.excludedMeasures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(zx(i.excludedMeasures[a],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const r=qx.getValue(e,n||"").qHyperCubeDef,o=[...r.qDimensions];r.qDimensions=[],o.forEach(n=>{r.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 r=qx.getValue(e,n||"").qHyperCubeDef,o=[...r.qMeasures];r.qMeasures=[],o.forEach(n=>{r.qMeasures.push(n),t.measures.added(n,e)})}}},Wx={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}(),r=e.qProperty,o=qx.getValue(r,t||""),i=o.qHyperCubeDef,a=n.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),a.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&a.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),a.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&a.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),a.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();jx(e,a.interColumnSortOrder)&&(a.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(r).forEach(e=>{n.properties[e]=r[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(Bx.restoreChangedProperties(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!qx.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:r={},hypercubePath:o}){const i={qChildren:[]},a=Bx.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),s=qx.getValue(t,o||"").qHyperCubeDef,l=qx.getValue(a,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p}=Bx.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:f=Bx.getDefaultDimension(),defaultMeasure:h=Bx.getDefaultMeasure()}=r;return l.qDimensions.length=0,l.qMeasures.length=0,Bx.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p})&&Bx.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p,newHyperCubeDef:l}),Bx.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:u,newHyperCubeDef:l,defaultDimension:f}),Bx.addDefaultMeasures({exportFormat:e,maxMeasures:d,minMeasures:p,newHyperCubeDef:l,defaultMeasure:h}),Bx.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),Bx.copyPropertyIfExist("qMaxStackedCells",s,l),Bx.copyPropertyIfExist("qNoOfLeftDims",s,l),Bx.copyPropertyOrSetDefault("qInitialDataFetch",s,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Bx.copyPropertyOrSetDefault("qMode",s,l,"S"),Bx.copyPropertyOrSetDefault("qReductionMode",s,l,"N"),Bx.copyPropertyOrSetDefault("qSortbyYValue",s,l),Bx.copyPropertyOrSetDefault("qIndentMode",s,l),Bx.copyPropertyOrSetDefault("qShowTotalsAbove",s,l),Bx.importCommonProperties(a,e,t),Bx.updateDimensionsOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),Bx.updateMeasuresOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),i.qProperty=a,i}(e)},Hx=e=>qx.getValue(e,"data.targets.0.propertyPath"),Ux=async({halo:e,model:t,cellRef:n,newType:r,properties:o,viewDataMode:i=!1})=>{const a=o?{qProperty:o}:await t.getFullPropertyTree(),s=n.current.getQae(),l=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Wx.exportProperties})(Hx(e)))(s);if(!l)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:r}=e;return await r.get({name:t,version:n}).supernova()})({halo:e,name:r}),u=c.qae,d=(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Wx.importProperties})(Hx(e)))(u);if(!d)throw new Error("Target chart does not support conversion");return d({exportFormat:l({propertyTree:a,hypercubePath:Bx.getHypercubePath(s),viewDataMode:i}),initialProperties:{qInfo:{qType:r},visualization:r,...qx.getValue(u,"properties.initial",{})},dataDefinition:qx.getValue(u,"data.targets.0.",{}),hypercubePath:Bx.getHypercubePath(u),viewDataMode:i})},Vx={hypercube:Wx},Gx=G().bind(null,!0),Kx={},{isArray:Jx}=Array;function Xx(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zx(e){return void 0===e}function Yx(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Qx(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function ew(e,t){let n;return t.substring(1).split("/").slice(0,-1).forEach(t=>{if(!Qx(t))throw new Error(`Unsafe key in path: ${t}`);n=+t;const r=isNaN(n)?{}:[];e[n||t]=Zx(e[n||t])?r:e[t],e=e[n||t]}),e}function tw(e,t){let n=!0;if(Xx(e)&&Xx(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{tw(e[r],t[r])||(n=!1)}),n);if(Jx(e)&&Jx(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!tw(e[n],t[n]))return!1;return!0}return e===t}Kx.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?Gx({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;tw(i,a)||Yx(t,o)||(Zx(a)?r.push({op:"add",path:s,value:i}):Xx(i)&&Xx(a)?r=r.concat(Kx.generate(a,i,s)):Jx(i)&&Jx(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Zx(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(tw(t,o))return r;if(!Zx(t[0])&&Zx(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Kx.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))}),Object.keys(e).forEach(o=>{Zx(t[o])&&!Yx(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},Kx.apply=function(e,t){t.forEach(t=>{let n=ew(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if(!Qx(r)||null!==i&&!Qx(i)){const e=Qx(r)?i:r;throw new Error(`Unsafe key in patch path: ${e}`)}if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Jx(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Jx(o)&&Jx(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Xx(o)&&Xx(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Yx(a,e)&&Qx(e)&&delete a[e]}),Gx(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=ew(e,t.from);Jx(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Jx(n)?n.splice(+r,1):delete n[r]);var a})},Kx.clone=function(e){return Gx({},e)},Kx.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Kx.updateObject=function(e,t){Object.keys(e).length?Kx.apply(e,Kx.generate(e,t)):Gx(e,t)};const nw=Kx;n.dn(ow);const rw=e=>t=>{const n=(r={...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(d().prototype).forEach(e=>{r[e]=d().prototype[e]}),d().init(r),r);var r;return n};function ow({sn:e,component:t}){const n={},r=[],o=rw(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,r.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:r,destroy(){r.length=0}}}let iw,aw;function sw(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 lw(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 cw(e){dw(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 uw(e){if(e.__hooks.obsolete)return Promise.resolve();aw=-1,iw=e;let t=-1;iw.__hooks.initiated&&(t=iw.__hooks.list.length);try{iw.fn.call(null)}catch(e){console.error(e)}iw.__hooks.initiated=!0,t>-1&&t!==iw.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=iw.__hooks;return mw(iw),aw=void 0,iw=void 0,n.chain.promise||(n.chain.promise=new Promise(e=>{n.chain.resolve=e})),function(e){dw(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame(()=>{!function(e){dw(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 dw(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 pw(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 fw(e,t,n,r){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,r)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function hw(e){return e.__hooks.imperativeHandle}function mw(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function gw(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,mw(e))}function yw(e){if(void 0===iw)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=iw.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function bw(e){return yw(++aw),iw.context[e]}function vw(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Sw(e){return{__hooked:!0,fn:e,initiate:lw,run:uw,teardown:cw,runSnaps:pw,runMenu:fw,focus:Yw,blur:Qw,observeActions:gw,getImperativeHandle:hw,updateRectOnNextRun:vw}}function xw(e){const t=yw(++aw);if(!t.value){t.component=iw;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 r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout(()=>{r.__hooks.micro=null,uw(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function ww(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yw(++aw);sw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===iw.__hooks.pendingEffects.indexOf(n)&&iw.__hooks.pendingEffects.push(n))}function kw(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=yw(++aw);sw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],iw.__hooks.pendingLayoutEffects.push(n))}function Cw(e,t){t||console.warn("useMemo called without dependencies.");const n=yw(++aw);return sw(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Ew(e){return Cw(()=>({current:e}),[])}function Lw(e,t){const[n,r]=xw(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=yw(++aw);return o.component||(o.component=iw),kw(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]}function Rw(){return bw("element")}function Pw(){const e=Rw(),t=iw.__hooks.resizer,[n,r]=xw(()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}});return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),kw(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}},[e]),n}function Ow(){return bw("layout")}function Tw(){const e=bw("layout"),[t]=xw({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Iw(){return bw("appLayout")}function qw(){const e=bw("model");return e&&e.session?e:void 0}function jw(){const e=bw("app");return e&&e.session?e:void 0}function Mw(){const e=bw("global");return e&&e.session?e:void 0}function Dw(){return bw("selections")}function _w(){return bw("theme")}function Nw(){return bw("nebbie")}function Aw(){return bw("translator")}function $w(){return bw("deviceType")}function zw(){return bw("navigation")}function Fw(){return bw("plugins")}function Bw(e,t){const[n]=xw({action(){n._config.action.call(null)}});return n.component||(n.component=iw,iw.__hooks.actions.list.push(n)),Cw(()=>{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 Ww(){return iw.__hooks.contraintsWarning&&(console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),iw.__hooks.contraintsWarning=!1),bw("constraints")}function Hw(){return bw("interactions")}function Uw(){return bw("options")}function Vw(e,t){const n=yw(++aw);if(!n.imperative){if(iw.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(sw(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],iw.__hooks.imperativeHandle=r}}function Gw(e){const t=yw(++aw);t.value||(t.value=1,iw.__hooks.snaps.push(t)),t.fn=e}function Kw(e){const t=yw(++aw);t.value||(t.value=1,iw.__hooks.menus.push(t)),t.fn=e}function Jw(){yw(++aw);const e=iw.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Xw(){return bw("emitter")}function Zw(){const e=bw("keyboardNavigation"),t=bw("focusHandler");if(!iw.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(Qw(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(iw);iw.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Yw(this))}.bind(iw);iw.__hooks.accessibility.focusFunction=n;const r=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(iw);iw.__hooks.accessibility.focusSelectionFunction=r}const n=iw.__hooks.accessibility.focusFunction,r=iw.__hooks.accessibility.exitFunction,o=iw.__hooks.accessibility.focusSelectionFunction,[i,a]=xw({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return iw.__hooks.accessibility.setter=a,iw.__hooks.accessibility.enabled=e,ww(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i}function Yw(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 Qw(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 ek={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},tk=Object.keys(ek);function nk(e,t,n){"function"==typeof e.component&&(e.component=Sw(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==uw&&console.warn("Detected multiple supernova modules, this might cause problems.");const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:s,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 r=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)}),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach(e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify({...r[e],...s})),"interactions"===e&&(t=JSON.stringify({...r[e],...l})),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(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,r){return e.component.runMenu(this,t,n,r)},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 a.forEach(e=>{i[e]=JSON.stringify(c.context[e])}),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):function(e,t){console.warn("Obsolete API - time to get hooked!");const n={...ek};var r;r=n,Object.keys(d().prototype).forEach(e=>{r[e]=d().prototype[e]}),d().init(r);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==tk.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const i=ow({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...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,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const i=nw.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));nw.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch{console.warn("Error in chart applyPatches interceptor onChange call ")}const s=nw.generate(i,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,s,r)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const rk=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],ok=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map(([e,t])=>e+(Math.random()*(t-e)|0).toString(32)).join(""),ik=(e,t)=>e&&e.find(e=>e.qDef?.cId===t)||null,ak=e=>({...e,qDef:{...e.qDef,cId:e.qDef?.cId??ok()}}),sk=e=>({...ak(e),qOtherTotalSpec:e.qOtherTotalSpec??{}}),lk=(e,t,n)=>{const r=t;e.forEach((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]})},ck=new Error("Not supported in this object, need to implement in subclass."),uk=e=>e?[...e].map(e=>e.qDef?.autoSort&&void 0!==e.autoSort?{...e,qDef:{...e.qDef,autoSort:e.autoSort},autoSort:void 0}:e):[],dk=(e,t)=>{if(e)return t&&qx.getValue(e,t)?qx.getValue(e,t).qHyperCube:e.qHyperCube};function pk(e,t){return e.filter((e,n)=>t.includes(n))}function fk(e,t,n=void 0){const r=e.getAlternativeDimensions(),o=n??r.length;return r.splice(o,0,t),Promise.resolve(t)}function hk(e,t,n){Mx(e.hcProperties.qInterColumnSortOrder,n??t.length-1)}function mk(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 gk(e,t){return e.getAlternativeDimensions().length+t.length>=1e3}function yk(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<1e3}async function bk(e,t,n,r,o,i){await e.autoSortDimension(t),Mx(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function vk(e,t,n=void 0){const r=e.getAlternativeMeasures(),o=n??r.length;return r.splice(o,0,t),Promise.resolve(t)}function Sk(e,t){Mx(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function xk(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<1e3}function wk(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}const kk=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 ik(t,e)??ik(n,e)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw ck}addDimensions(){throw ck}removeDimension(){throw ck}removeDimensions(){throw ck}autoSortDimension(){throw ck}replaceDimension(){throw ck}getSorting(){throw ck}createLibraryDimension(e,t){let n=G()(!0,{},this.dimensionProperties||{},t||{});return n=sk(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=rk,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let r=G()(!0,{},this.dimensionProperties||{},n||{});return r=sk(r),e||(r.qDef.qFieldDefs=[],r.qDef.qFieldLabels=[],r.qDef.qSortCriterias=[]),r.qDef.qFieldDefs=[e],r.qDef.qFieldLabels=t?[t]:[""],r.qDef.qSortCriterias=rk,r.qDef.autoSort=!0,r}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){const e=[t];return this.dimensionDefinition.max?.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasures(){return[]}getAlternativeMeasures(){throw new Error("Method not implemented.")}addMeasure(){throw ck}addMeasures(){throw ck}removeMeasure(){throw ck}removeMeasures(){throw ck}autoSortMeasure(){throw ck}replaceMeasure(){throw ck}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures();return ik(t,e)??ik(n,e)}createExpressionMeasure(e,t,n){const r=G()(!0,{},this.measureProperties||{},n||{});return r.qDef=r.qDef??{},r.qDef.qNumFormat=r.qDef.qNumFormat??{},r.qDef.qDef=e,r.qDef.qLabel=t,r.qDef.autoSort=!0,r}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t,!1)}createLibraryMeasure(e,t){const n=G()(!0,{},this.measureProperties||{},t||{});return n.qDef=n.qDef??{},n.qDef.qNumFormat=n.qDef.qNumFormat??{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(n.qDef),n.qLibraryId=e,n.qDef.autoSort=!0,delete n.qDef.qDef,delete n.qDef.qLabel,n}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!1)}addAltLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure({expression:e}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=[this.getDimensions().length-e];return this.measureDefinition.max.apply(null,t)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}},Ck=function(e,t,n){const r=e.getDimensions(),o=n??r.length;return r.length<e.maxDimensions()?function(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then(async()=>(hk(e,r,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)},Ek=async function(e,t){!function(e,t){Dx(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)},Lk=async function(e,t){!function(e,t){Dx(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)},Rk=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})},Pk=class extends kk{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?qx.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=uk(this.hcProperties.qDimensions),this.hcProperties.qMeasures=uk(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=dk(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=sk(e);return yk(this,t)?fk(this,r,n):Ck(this,r,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),r=n.length,o=[];let i=0;for await(const a of e){if(gk(this,n))return o;const e=sk(a);if(yk(this,t)){const t=await fk(this,e);o.push(t)}else n.length<this.maxDimensions()&&(await bk(this,e,r,n,o,i),i++)}return o}removeDimension(e,t){return t?Rk(this,e):Ek(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=pk(n,e);for await(const e of i)await Rk(this,e)}else if(r.length>0){o=pk(r,e);for await(const e of i)await Ek(this,e)}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i={...n,qDef:{...n.qDef,cId:ok()}};return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t))}reinsertDimension(e,t,n){const r=ak(e);return yk(this,t)?fk(this,r,n).then(()=>{mk(this,r)}):function(e,t,n){const r=e.getDimensions(),o=n??r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),hk(e,r),mk(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(_x(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(wk(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;_x(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const r=t?.qLibraryId&&(o=t.qLibraryId,(i=n)&&i.find(e=>e.qInfo.qId===o)||null);var o,i;return r&&lk(r.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{const r=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(r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),r=(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)(r,n)||null})(t.qDef.qFieldDefs[0],n);return r&&lk([r],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures??[]}getMeasureLayouts(){const e=dk(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const r=ak(e);return xk(this,t)?vk(this,r,n):function(e,t,n){const r=e.getMeasures(),o=n??r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then(()=>(Sk(e,r),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,r,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),r=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=1e3}(this,n))return!1;const i=ak(e);return xk(this,t||!1)?(vk(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a={...t};return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Mx(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0}),r}removeMeasure(e,t){return t?function(e,t){return e.getAlternativeMeasures().splice(t,1)}(this,e):Lk(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();let o=[];if(0===e.length)return o;if(t&&r.length>0)o=pk(r,e),function(e,t){const n=e,r=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=pk(n,e);const t=[...e].sort((e,t)=>t-e);for await(const e of t)await Lk(this,e)}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i={...n,qDef:{...n.qDef,cId:ok()}};return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t))}reinsertMeasure(e,t,n){const r=ak(e);return xk(this,t)?vk(this,r,n):function(e,t,n){const r=e.getMeasures(),o=n??r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),Sk(e,r),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,r,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(_x(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?wk(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;_x(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){qx.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){return this.hcProperties?.qDynamicScript||[]}},Ok=()=>{};function Tk(e,t){return void 0===e?()=>t:()=>e}function Ik(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Tk(t.min,0),max:"function"==typeof t.max?t.max:Tk(t.max,1e3),added:t.added||t.add||Ok,description:t.description||Ok,moved:t.moved||t.move||Ok,removed:t.removed||t.remove||Ok,replaced:t.replaced||t.replace||Ok,isDefined:()=>!!e}}function qk(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 r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:Ik(e.dimensions),measures:Ik(e.measures)}}function jk(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(qk)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function Mk(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:jk(n.qae),component:n.component||{},create:e=>nk(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:n?.dataHandler??(e=>new Pk(e))}:{}};return Object.keys(n).forEach(e=>{r[e]||(r.definition[e]=n[e])}),r}function Dk(e){return ra("MuiIcon",e)}oa("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _k=Za("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Es(n.color)}`],t[`fontSize${Es(n.fontSize)}`]]}})(Cs(({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(Ls()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Nk=a.forwardRef(function(e,t){const n=Ya({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:s="medium",...l}=n,c={...n,baseClassName:r,color:i,component:a,fontSize:s},u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sa({root:["root","inherit"!==t&&`color${Es(t)}`,`fontSize${Es(n)}`]},Dk,r)})(c);return(0,Jo.jsx)(_k,{as:a,className:ti(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...l})});Nk.muiName="Icon";const Ak=Nk,$k=e=>vs((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 zk({d:e}){const t=Uo();let n="inherit",r=t.palette.success.main;e.missing?r=t.palette.warning.main:e.error&&(n="error",r=t.palette.error.main);const o={color:r},i=(0,Jo.jsx)(js,{style:{lineHeight:"30px",paddingRight:t.spacing(1)},children:(0,Jo.jsx)(Ak,{children:e.missing||e.error?(0,Jo.jsx)($k,{style:o}):(0,Jo.jsx)(gu,{style:o})})});return(0,Jo.jsxs)(es,{container:!0,alignItems:"center",wrap:"nowrap",children:[(0,Jo.jsx)(es,{children:i}),(0,Jo.jsx)(es,{container:!0,sx:{minWidth:0},wrap:"nowrap",children:(0,Jo.jsxs)(js,{noWrap:!0,component:"p",children:[(0,Jo.jsx)(js,{component:"span",variant:"subtitle2",color:n,children:e.description}),(0,Jo.jsx)(js,{component:"span",children:" "}),(0,Jo.jsx)(js,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400},children:e.label})]})})]})}function Fk({data:e}){const t=Uo();return(0,Jo.jsx)(es,{container:!0,style:{maxWidth:"300px",overflow:"hidden"},children:e.map((e,n)=>{const r=e.descriptions.map((e,t)=>(0,Jo.jsx)(zk,{d:e},t));return r.length>0&&(0,Jo.jsxs)(es,{container:!0,direction:"column",style:{paddingBottom:t.spacing(2)},children:[(0,Jo.jsx)(js,{noWrap:!0,variant:"subtitle1",align:"left",color:"textSecondary",children:e.title},n),r]},n)})})}function Bk({title:e="Error",message:t="",data:n=[]}){const[r,o]=cs(),[i,a]=cs(),[s,l]=cs(),c=n.some(e=>e.descriptions&&e.descriptions.length>0),u=!!o&&!!a&&!!l&&a.height+l.height>o.height,d=!!o&&!!a&&!!l&&a.width+l.width<=o.width,p=c&&!!o&&!!a&&!!l&&(!u||d);return(0,Jo.jsxs)(es,{ref:r,container:!0,direction:"column",wrap:"wrap",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"},children:[(0,Jo.jsxs)(es,{ref:i,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)($k,{style:{fontSize:"38px"}})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"h6",align:"center","data-tid":"error-title",children:e})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"subtitle1",align:"center","data-tid":"error-message",children:t})})]}),p?(0,Jo.jsx)(Fk,{data:n}):null,c?(0,Jo.jsx)(es,{ref:s,"aria-hidden":!0,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,top:0},children:(0,Jo.jsx)(Fk,{data:n})}):null]})}n.dn($k);const Wk="Progress",Hk={root:`${Wk}-root`,front:`${Wk}-front`,back:`${Wk}-back`},Uk=Za("div")(({theme:e})=>({[`&.${Hk.root}`]:{position:"relative",display:"inline-block"},[`& .${Hk.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Hk.back}`]:{color:e.palette.divider}})),Vk={small:16,medium:32,large:64,xlarge:128};function Gk({size:e="medium",...t}){const n=Vk[e];return(0,Jo.jsxs)(Uk,{className:Hk.root,children:[(0,Jo.jsx)(Pl,{variant:"determinate",value:100,className:Hk.back,size:n,thickness:3,...t}),(0,Jo.jsx)(Pl,{variant:"indeterminate",disableShrink:!0,className:Hk.front,size:n,thickness:3,...t})]})}const Kk={stripes:"LongRunningQuery-stripes"},Jk=Za(es)(()=>({[`& .${Kk.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 Xk({cancel:e,translator:t,...n}){return(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsxs)(Jk,{container:!0,direction:"column",alignItems:"center",gap:2,children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)(Gk,{})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"h6",align:"center","data-tid":"update-active",children:t.get("Object.Update.Active")})})]}),(0,Jo.jsx)(es,{...n,children:(0,Jo.jsx)(kS,{variant:"contained",onClick:e,children:t.get("Cancel")})})]})}function Zk({retry:e,translator:t,...n}){return(0,Jo.jsxs)(Jo.Fragment,{children:[(0,Jo.jsx)(es,{children:(0,Jo.jsx)($k,{style:{fontSize:"38px"}})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(js,{variant:"h6",align:"center","data-tid":"update-cancelled",children:t.get("Object.Update.Cancelled")})}),(0,Jo.jsx)(es,{children:(0,Jo.jsx)(kS,{variant:"contained",onClick:e,...n,children:t.get("Retry")})})]})}function Yk({canCancel:e,canRetry:t,api:n}){const{translator:r}=(0,a.useContext)(fa);return(0,Jo.jsxs)(es,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Kk.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:[e&&(0,Jo.jsx)(Xk,{cancel:n.cancel,translator:r,className:Kk.cancel}),t&&(0,Jo.jsx)(Zk,{retry:n.retry,translator:r,className:Kk.retry})]})}function Qk(){return(0,Jo.jsx)(es,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:(0,Jo.jsx)(Gk,{size:"large"})})}const eC={width:0,height:0},tC="Header",nC={containerStyle:`${tC}-containerStyle`,containerTitleStyle:`${tC}-containerTitleStyle`},rC=Za(es)(({theme:e})=>({[`&.${nC.containerStyle}`]:{flexGrow:0},[`&.${nC.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),oC=function({id:e,layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:s={},isRtl:l,translator:c}){const u=t.showTitles&&!!t.title,d=t.showTitles&&!!t.subtitle,p=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[f,h]=(0,a.useState)([]);(0,a.useEffect)(()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions(e=>{h([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])})},[n]);const m=[nC.containerStyle,...u||d?[nC.containerTitleStyle]:[]],g=o||p,y=(0,Jo.jsx)(ym,{show:!1,selections:{show:p,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:f,popover:{show:g,anchorEl:r},focusHandler:i,layout:t,isRtl:l});return(0,Jo.jsxs)(rC,{container:!0,wrap:"nowrap",className:m.join(" "),children:[(0,Jo.jsx)(es,{size:"grow",sx:{minWidth:0},dir:l?"rtl":"ltr",children:(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",direction:"column",children:[u?(0,Jo.jsx)(oh,{title:t.title,children:(0,Jo.jsx)(js,{id:`${e}_title`,variant:"h6",noWrap:!0,className:"njs-cell-title",style:s.main,children:t.title})}):(0,Jo.jsx)("div",{id:`${e}_title`,style:eC,"aria-label":c.get("Accessibility.Object.NoTitle")}),d&&(0,Jo.jsx)(oh,{title:t.subtitle,children:(0,Jo.jsx)(js,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:s.subTitle,children:t.subtitle})})]})}),(0,Jo.jsx)(es,{children:y})]})},iC=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude");return e.filter(e=>!1!==e.showInFooter).map(e=>{let r="";switch(e.type){case"search":r+=(e=>{let t="",n="";const r=e.options?.mode;switch(r){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":r+=(e=>{const{options:t}=e,n="general"===t?.mode,r="fixed_value"===t?.modifier?.type,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${hh(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${hh(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${hh(t.firstValue?.field)})`):(i=`${hh(e.field)}`,a=`${t.firstValue?.aggregator}(total ${hh(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${hh(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${hh(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case"clear_selection":r+=t.get("Object.FilterLabel.All");break;default:r+=e.options?.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==r&&(r=r.replace(/^"|"$/g,""),e.exclude&&(r=`${n} ${r}`)),{field:e.field,label:r}}).filter(e=>""!==e.label)},aC=(e,t)=>iC(e,t).map(e=>`${e.field}: ${e.label}`).join("; "),sC=e=>vs((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 lC({styles:e,children:t}){return(0,Jo.jsx)(js,{noWrap:!0,variant:"body2",style:{...e,fontStyle:"italic"},children:t})}n.dn(sC);const cC=function({layout:e,translator:t,filtersFootnoteString:n,footerStyle:r,isRtl:o}){const i=iC(e?.filters??[],t),a={color:r?.color,fontFamily:r?.fontFamily,fontSize:r?.fontSize,fontWeight:r?.fontWeight};return(0,Jo.jsx)(oh,{title:n,children:(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",sx:{backgroundColor:r?.backgroundColor,padding:r?.padding,borderTop:r?.borderTop},"data-testid":"filters-footnote",justifyContent:o?"flex-end":"flex-start",children:[(0,Jo.jsxs)(es,{sx:{display:"flex"},children:[(0,Jo.jsx)(sC,{style:{fontSize:"12px",color:r.color,margin:"auto"}}),(0,Jo.jsxs)(lC,{styles:{...a,marginLeft:"2px"},children:[t.get("Object.FiltersApplied"),"  "]})]}),(0,Jo.jsx)(es,{sx:{display:"flex"},children:i.map(e=>(0,Jo.jsxs)(es,{container:!0,wrap:"nowrap",children:[(0,Jo.jsx)(lC,{styles:{...a,fontWeight:"bold"},children:`${e.field}:`}),(0,Jo.jsxs)(lC,{styles:a,children:["   ",e.label,"  "]})]},`${e.field}-${e.label}`))})]})})},uC="Footer-itemStyle",dC=Za(es)(()=>({[`& .${uC}`]:{minWidth:0,width:"100%"}})),pC="njs-cell-footer",fC=function({layout:e,titleStyles:t={},translator:n,flags:r,isCardTheme:o,isRtl:i}){const a=t.footer,s=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,l=aC(e?.filters??[],n),c=!e?.footnote&&s&&l,u=r?.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),d=o?"1px":"6px";return e&&e.showTitles&&(e.footnote||c)?(0,Jo.jsx)(dC,{container:!0,children:(0,Jo.jsxs)(es,{className:uC,"data-testid":pC,sx:{paddingTop:e=>u?d:e.spacing(1)},children:[e.footnote&&(0,Jo.jsx)(oh,{title:e.footnote,children:(0,Jo.jsx)(js,{noWrap:!0,variant:"body2",className:pC,style:a,align:i?"right":"left",children:e.footnote})}),c&&(0,Jo.jsx)(cC,{layout:e,translator:n,filtersFootnoteString:l,footerStyle:a,isRtl:i})]})}):null};class hC{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 mC=function({sn:e,snOptions:t,snPlugins:n,layout:r,appLayout:o,halo:i,cellId:s}){const{component:l}=e,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=(0,a.useContext)(fa),[h]=(0,a.useState)(()=>new hC),[m,g]=(0,a.useState)(!1),[y,b]=(0,a.useState)(0),[v,S,x]=cs(),[w,k]=(0,a.useState)(null),C=(0,a.useCallback)(e=>{e&&k(e)},[]);return(0,a.useEffect)(()=>{if(w)return l.created({options:t}),l.mounted(w),g(!0),()=>{h.stop(),l.willUnmount()}},[w,l]),(0,a.useEffect)(()=>{m&&w&&S&&(!l.isHooked&&r&&r.qSelectionInfo&&r.qSelectionInfo.qInSelections||h.schedule(()=>{const a=[];return d.passive||a.push("passive"),d.active||a.push("interact"),d.select||a.push("select"),d.edit||a.push("edit"),i.app&&i.app.session&&a.push("fetch"),Promise.resolve(l.render({layout:r,options:t,plugins:n,embed:i.public.nebbie,context:{constraints:d,interactions:p,theme:i.public.theme,appLayout:o,keyboardNavigation:f,...l.isHooked?{}:{logicalSize:e.logicalSize({layout:r}),localeInfo:(o||{}).qLocaleInfo,permissions:a}}})).then(e=>{!1!==e&&(0===y&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),b(y+1))})}))},[S,t,n,w,x,r,o,c,u,d,p,m,f]),(0,Jo.jsx)("div",{ref:v,"data-render-count":y,style:{position:"relative",height:"100%"},className:"njs-viz",children:(0,Jo.jsx)("div",{ref:C,id:`${s}_content`,style:{position:"absolute",width:"100%",height:"100%"}})})},gC={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart","sn-table":"straightTableV2",waterfallchart:"waterfallChart","sn-tabbed-container":"tabContainer","sn-slider":"slider"};class yC extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const bC=["action-button","sn-nav-menu","filterpane","sn-shape"],vC=[...bC,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],SC=e=>-1===bC.indexOf(e),xC=e=>SC(e)?"10px 10px 0":"10px 0 0",wC=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])=>{wC.set(e,t)});const kC=wC,CC=(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 EC({delay:e=750}){const[t,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{const t=setTimeout(()=>n(!0),e);return()=>clearTimeout(t)},[]),t?(0,Jo.jsx)(Qk,{}):null}const LC=e=>!e.qError||7005===e.qError.qErrorCode,RC=e=>e&&e.qError&&7005!==e.qError.qErrorCode,PC=(e,t,n,r,o)=>[...Array(Math.max(e,t.length)).keys()].map(e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c=`${s?r:a?l||o:i&&t[e].qFallbackTitle||""}`,u=n(e);return{description:u?`${u}${c.length?":":""}`:null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}}),OC=e=>e&&(Array.isArray(e)?e:[e])||[],TC=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),s=PC(o,OC(a.qDimensionInfo||a.qItems),e=>r.dimensions.description(n,e,{}),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),l=PC(i,OC(a.qMeasureInfo),e=>r.measures.description(n,e,{}),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:s,reqMeasErrors:l}};function IC(){return new(d())}const qC=(0,a.forwardRef)(({halo:e,model:t,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,currentId:s,emitter:l,navigation:c,onError:u},d)=>{const{app:p,types:f}=e,{nebbie:h}=e.public,{theme:m,translator:g,language:y,keyboardNavigation:b,externalFocusManagement:v,disableCellPadding:S=!1,navigation:x,queryParams:w}=(0,a.useContext)(fa),[k]=(0,a.useState)(l||IC),C=Uo(),[E,L,R]=cs(),[P,O]=(0,a.useReducer)(CC,{loading:!1,loaded:!1,longRunningQuery:!1,error:(T=o)?{title:T.message}:null,sn:null,visualization:null});var T;const[I,q]=(0,a.useState)(t),[j,{validating:M,canCancel:D,canRetry:_},N]=ss(I),[A]=ls(p),[$,z,F]=cs(),[B,W]=(0,a.useState)(n),[H,U]=(0,a.useState)(r),V=`njs-cell-${s}`,[G]=lg(p,I,[`#${V}`,".njs-action-toolbar-popover"]),[K,J]=(0,a.useState)(!1),X=(0,a.useRef)({enter:null,leave:null}),{titleStyles:Z,bgColor:Y,bgImage:Q,border:ee,borderRadius:te,boxShadow:ne}=(({layout:e,theme:t,app:n,themeName:r,disableThemeBorder:o,queryParams:i})=>{const{hostConfig:s}=(0,a.useContext)(fa),l=(0,a.useMemo)(()=>{if(e&&t){const a=e.components?e.components.find(e=>"general"===e.key):null,l=(r=e.visualization,gC[r.toLowerCase()]?gC[r.toLowerCase()]:r),c={main:Bv(a,"main",t,l),footer:Bv(a,"footer",t,l),subTitle:Bv(a,"subTitle",t,l)},u=zv(a,t,l),d=$v(a,n,i,s?.host),p=function(e,t,n,r){const o=_v(e?.borderColor,"","borderColor",t,n);let i=e?.borderWidth;return!i&&!r&&(i=Dv("","borderWidth",t,n)),i&&o?`${i} solid ${o}`:void 0}(a,t,l,o),f=function(e,t,n){return e?.borderRadius||Dv("","borderRadius",t,n)}(a,t,l);return{titleStyles:c,bgColor:u,bgImage:d,border:p,borderRadius:f,boxShadow:Fv(a,t,l)}}var r;return{}},[e,t,n,r,o]);return l})({layout:j,theme:e.public.theme,app:e.app,themeName:m,disableThemeBorder:B?.disableThemeBorder,queryParams:w}),re=!("rtl"!==B?.direction),oe=(0,a.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,a.useEffect)(()=>{ag(oe.current),oe.current.blurCallback=t=>{oe.current.onBlurHandler?oe.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&F&&F.focus())},oe.current.refocusContent=()=>{P.sn.component&&"function"==typeof P.sn.component.focus&&P.sn.component.focus()}},[]),(0,a.useEffect)(()=>{if(o)return void i();if(!A||!j)return;if(P.visualization===j.visualization&&P.sn)return void(async e=>{const[t,n]=await(async(e,t,{targets:n},r)=>{const{hasUnfulfilledErrors:o,aggMinD:i,aggMinM:a,hasLayoutErrors:s,layoutErrors:l}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=OC(f.qDimensionInfo||f.qItems),m=OC(f.qMeasureInfo),g=h.filter(LC),y=m.filter(LC);if(o+=d,i+=p,(g.length<d||y.length<p)&&(r=!0),r=r||h.some(RC)||m.some(RC),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,n,t),c=[],u=[];let d=null;for(let i=0;i<n.length;++i){const a=n[i];if(!s&&o){const n=d||await r.getProperties();d=n;const o=TC(e,t,n,a);c.push(...o.reqDimErrors),u.push(...o.reqMeasErrors)}}const p=c.filter(e=>!(e.missing||e.error)).length,f=e.get("Visualization.Incomplete.Dimensions",[p,i]),h=u.filter(e=>!(e.missing||e.error)).length,m=e.get("Visualization.Incomplete.Measures",[h,a]),g=[{title:f,descriptions:[...c]},{title:m,descriptions:[...u]}],y=s?l:g;return[s||o,{title:s?l[0].title:e.get("Visualization.Incomplete"),data:y}]})(g,j,e.generator.qae.data,I);O(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const r=e&&e.component&&e.component.selections;if(r&&r.id&&n.id&&r.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!r.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;r.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||r.isModal()&&r.noModal()}})({sn:P.sn,layout:j,model:I})})(P.sn);const e=f.getSupportedVersion(j.visualization,j.version);return(async(e,t)=>{O({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:r,model:o,app:i,selections:a,nebbie:s,focusHandler:l,emitter:c,onMount:u,navigation:d})=>{try{const p=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:r}),f=p.create({model:o,app:i,selections:a,nebbie:s,focusHandler:l,emitter:c,navigation:d});f&&(e({type:"LOADED",sn:f,visualization:n}),u())}catch(t){e(r?{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}?`}}),u()}})({dispatch:O,types:f,visualization:e,version:t,model:I,app:p,selections:G,nebbie:h,focusHandler:oe.current,emitter:k,onMount:i,navigation:c??x})})(j.visualization,e),()=>{}},[f,P.sn,I,G,j,A,y]),(0,a.useEffect)(()=>{if(!M)return;const e=setTimeout(()=>O({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[M]),(0,a.useImperativeHandle)(d,()=>({getQae:()=>P.sn.generator.qae,getExtensionDefinition:()=>P.sn.generator.definition.ext,support(e,t,n){if(j&&P.loaded&&!P.error){const r=t||P.sn.generator.definition.ext?.support;if(r)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,r,n||j)}return!1},toggleFocus(e){"function"==typeof P.sn.component.focus&&(e?P.sn.component.focus():P.sn.component.blur())},setOnBlurHandler(e){oe.current.onBlurHandler=e},setSnOptions:W,setSnPlugins:U,setModel:q,getImperativeHandle:()=>P.sn?.component&&"function"==typeof P.sn.component.getImperativeHandle?P.sn.component.getImperativeHandle():{},onContextMenu:(...e)=>P.sn?.component.onContextMenu(...e),async takeSnapshot(){const{width:e,height:t}=L;let n=JSON.parse(JSON.stringify(j));return"function"==typeof P.sn.component.setSnapshotData&&(n.snapshotData||(n.snapshotData={}),n=await P.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:g.language(),theme:C.name,appLayout:A,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)},getHypercubePath:()=>P.sn.generator.definition.ext?.options?.hypercubePath}),[P.sn,z,L,j,C.name,A]);let ie=null;P.loading&&!P.longRunningQuery?ie=(0,Jo.jsx)(EC,{}):P.error?(u&&u(P.error.errorObject?P.error.errorObject:new yC(P.error.title)),ie=(0,Jo.jsx)(Bk,{...P.error})):P.loaded&&(ie=(0,Jo.jsx)(mC,{sn:P.sn,halo:e,snOptions:B,snPlugins:H,layout:j,appLayout:A,cellId:s},j.visualization));const ae=!!e.public.theme?.getStyle("","","_cards"),se=e.public.galaxy?.flags;let le,ce;S?(le=!1,ce=void 0):se?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(le=!1,ce=(({layout:e,isError:t,isCardTheme:n,titleStyles:r,translator:o})=>{if(n){const n=e?.showTitles&&!!e?.title,i=e?.showTitles&&!!e?.subtitle,a=e?.filters?.length>0&&e?.qHyperCube?.qMeasureInfo?.length>0,s=e?.visualization,l=aC(e?.filters??[],o),c=!e?.footnote&&a&&l,u=e?.showTitles&&(!!e?.footnote||c);let d;return n&&(r.main.padding=xC(s)),i&&(r.subTitle.padding=((e,t)=>{const n=SC(e);return t?n?"0 10px":"0":xC(e)})(s,n)),u&&(-1===bC.indexOf(s)&&(r.footer.borderTop="1px solid #d9d9d9"),r.footer.padding="6px 10px"),(t||-1===vC.indexOf(s))&&(d=`${n||i?"0":"10px"} 10px ${u?"0":"5px"}`),d}})({layout:j,isError:P.error,isCardTheme:ae,titleStyles:Z,translator:g})):(le=!0,ce=void 0);const ue=kC.get(j?.visualization),de=g.get(ue);return(0,Jo.jsxs)(Gc,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Y||"unset",backgroundImage:Q&&Q.url?`url(${Q.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:Q&&Q.size,backgroundPosition:Q&&Q.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:E,id:V,onMouseEnter:()=>{X.current.leave&&clearTimeout(X.current.leave),X.enter||(X.current.enter=setTimeout(()=>{J(!0),X.current.enter=null},250))},onMouseLeave:()=>{X.current.enter&&clearTimeout(X.current.enter),X.current.leave||(X.current.leave=setTimeout(()=>{J(!1),X.current.leave=null},750))},children:[(0,Jo.jsxs)(es,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...le?{padding:C.spacing(1)}:{},...P.longRunningQuery?{opacity:"0.3"}:{}},"aria-labelledby":`${s}_title ${s}_type ${s}_content`,children:[j&&(0,Jo.jsx)("div",{id:`${s}_type`,style:eC,"aria-label":de??j.visualization}),R&&j&&P.sn&&(0,Jo.jsx)(oC,{layout:j,sn:P.sn,anchorEl:R,hovering:K,focusHandler:oe.current,titleStyles:Z,isRtl:re,id:s,translator:g,children:" "}),(0,Jo.jsx)(es,{tabIndex:b&&!v?0:-1,onKeyDown:b&&!v?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(s)}:null,size:"grow",className:"njs-cell-body",style:{height:"100%",...ce?{padding:ce}:{}},ref:$,children:ie}),R&&j&&P.sn&&(0,Jo.jsx)(fC,{layout:j,titleStyles:Z,translator:g,flags:se,isCardTheme:ae,isRtl:re})]}),P.longRunningQuery&&(0,Jo.jsx)(Yk,{canCancel:D,canRetry:_,api:N})]})}),jC=qC;function MC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function DC(e="/",t,n){const r=[];return Object.keys(t).forEach(o=>{const i=t[o];var a,s;"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?(a=i,s=n[o],(MC(a)&&MC(s)?JSON.stringify(a)===JSON.stringify(s):!Array.isArray(a)&&!Array.isArray(s)&&a===s)||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):r.push(...DC(`${e}${o}/`,t[o],n[o]))}),r}function _C(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 NC=(e,t,n)=>{if(!e)return Promise.resolve();let r=nw.generate(t,n);return G()(!0,t,n),r&&r.length?(r=r.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},AC=()=>{};async function $C(e,t,n,r,o,i=async()=>{}){const{onRender:s,onError:l}=t,c=function({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:s=()=>{}}={}){let l,c,u,p=AC,f=null,h=null,m=null,g=null,y=!1;const b=new Promise(e=>{m=e}),v=new Promise(e=>{g=e}),S=e=>()=>{e?.(),g(),i(),y=!0};let x={},w=[];const k=new(d());let C={};t.context?.enablePrivateExperimental&&(C={support:e=>!(!h||!y)&&f.current.support(e,c?.support,u),getPropertyPanelDefinition:()=>!(!h||!y)&&(c?c.definition:f.current.getExtensionDefinition().definition),async getHypercubePropertyHandler(){await v;const t=f.current.getExtensionDefinition(),n=t.data,r=await e.getEffectiveProperties();if(n){const o={app:e.app,dimensionDefinition:n.dimensions,measureDefinition:n.measures,dimensionProperties:r.qHyperCubeDef?.qDimensions?.[0]||Bx.getDefaultDimension(),measureProperties:r.qHyperCubeDef?.qMeasures?.[0]||Bx.getDefaultMeasure(),globalChangeListeners:void 0,path:f.current.getHypercubePath()};return"function"==typeof t.propertyHandler?t.propertyHandler(o):new Pk(o)}},toggleFocus(e){f.current.toggleFocus(e)},setOnBlurHandler(e){f.current.setOnBlurHandler(e)},onContextMenu:(...e)=>f.current.onContextMenu(...e)});const E={id:e.id,model:e,async destroy(){await o(),p(),p=AC},async convertTo(n,r=!0,o=!1){if(r){if((i=await e.getLayout())&&!i.qHasSoftPatches&&!i.qExtendsId&&(i.qMeta?.privileges||[]).indexOf("update")>-1&&!o){const r=await Ux({halo:t,model:e,cellRef:f,newType:n});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,r.qProperty),r}const r=await e.getEffectiveProperties(),a=await Ux({halo:t,model:e,cellRef:f,newType:n,properties:r}),s=a.qProperty;return await NC(e,r,s),a}var i;return await Ux({halo:t,model:e,cellRef:f,newType:n})},async toggleDataView(n){let r;if(l||!1===n)l&&!0!==n&&(r=e,await t.app.destroySessionObject(l),l=void 0,c=void 0,u=void 0);else{let n=t.context.dataViewType;const o=await e.getEffectiveProperties();if(!t.types.getSupportedVersion(n)){if(!t.types.getSupportedVersion("table"))throw new Error("No data view type registered");n="table"}const i=await Ux({halo:t,model:e,cellRef:f,newType:n,properties:o,viewDataMode:!0});r=await t.app.createSessionObject(i.qProperty),l=r.id,c=f.current.getExtensionDefinition(),u=await e.getLayout()}r&&f.current.setModel(r)},get viewDataToggled(){return void 0!==l},addListener(e,t){k.addListener(e,t)},removeListener(e,t){k.removeListener(e,t)},getImperativeHandle:async()=>(await v,f.current.getImperativeHandle()),takeSnapshot:async()=>(await v,f.current.takeSnapshot()),...C,__DO_NOT_USE__:{mount(o){if(h)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=o,[p,f]=function({halo:e,element:t,model:n,initialSnOptions:r,initialSnPlugins:o,onMount:i,emitter:s,initialError:l,navigation:c,onError:u}){const{root:d}=e,p=a.createRef(),f=AS(),h=ba.createPortal((0,Jo.jsx)(jC,{ref:p,halo:e,model:n,currentId:f,initialSnOptions:r,initialSnPlugins:o,initialError:l,onMount:i,emitter:s,navigation:c,onError:u}),t,f),m=()=>{d.remove(h),n.removeListener("closed",m)};return n.on("closed",m),d.addCell(f,p),(async()=>{try{await d.add(h,m)}catch(e){m(),i(),u(e)}})(),[m,p]}({halo:t,element:o,model:e,initialSnOptions:x,initialSnPlugins:w,initialError:r,onMount:m,emitter:k,navigation:n,onError:s}),b},async applyProperties(t){const n=DC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await b,f.current.setSnOptions({...x,...e,onInitialRender:S(t)})})():x={...x,...e,onInitialRender:S(t)}})(e)},plugins(e){(async e=>{_C(e),h?(async()=>{await b,f.current.setSnPlugins(e)})():w=e})(e)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>e,convert:{async toType(n){const r=await e.getEffectiveProperties(),o=await Ux({halo:t,model:e,cellRef:f,newType:n,properties:r}),i=o.qProperty;return await NC(e,r,i),o},async revert(){await e.clearSoftPatches()}}}};return E}({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:s,onError:l});return c.__DO_NOT_USE__.options(t.options||{}),t.plugins&&c.__DO_NOT_USE__.plugins(t.plugins),t.element&&await c.__DO_NOT_USE__.mount(t.element),c}async function zC({type:e,version:t,fields:n,properties:r,extendProperties:o},i,a,s){let l={};const c=[],{modelStore:u}=s;try{const a=i.types.get({name:e,version:t});l=await a.initialProperties(r,o);const s=await a.supernova();n&&await Tx({sn:s,properties:l,fields:n,children:c},i),r&&s&&s.qae.properties.onChange&&s.qae.properties.onChange.call({},l)}catch(t){l=a?null:{qInfo:{qType:e},visualization:e}}if(!a){const e=await i.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),u.set(e.id,e),e}return l}function FC(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 BC=(0,a.forwardRef)(({model:e,halo:t,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,unmount:s,navigation:l,onError:c},u)=>{const{root:d}=t,[p,f]=(0,a.useState)(e),[h]=ss(p),{theme:m,modelStore:g}=(0,a.useContext)(fa),[y,b]=(0,a.useState)([]),[v,S]=(0,a.useState)(void 0),[x,w]=(0,a.useState)(void 0),[k,C]=(0,a.useState)(""),E=(0,a.useRef)({cellCount:0,cellsRendered:0,initialRender:!1});l?.setCurrentSheetId?.(p.id),(0,a.useEffect)(()=>{if(h){const e=JSON.stringify(h.cells);if(e===k)return;C(e);const r=async()=>{y.forEach(e=>{d.removeCell(e.currentId)});const e=h.cells;E.cellCount=e.length,E.cellsRendered=0;const r=()=>{E.cellsRendered++,E.cellsRendered!==E.cellCount||E.initialRender||(E.initialRender=!0,n.onInitialRender())},{columns:o,rows:i}=h,s=await Promise.all(e.map(async e=>{let s;const l=new Promise(e=>{s=e}),c=y.find(t=>t.id===e.name);if(c)return c.bounds=FC(e,o,i),delete c.mountedPromise,c;const u=await async function({id:e,options:t,plugins:n,element:r},o,i){const{modelStore:a,rpcRequestModelStore:s}=i,l=`${e}`;let c=s.get(l);c||(c=o.app.getObject(e),s.set(l,c));const u=await c;return a.set(l,u),$C(u,{options:t,plugins:n,element:r},o)}({id:e.name},t,g);return{model:u.model,id:e.name,bounds:FC(e,o,i),cellRef:a.createRef(),currentId:AS(),mounted:s,mountedPromise:l,options:{...n,onInitialRender:r}}}));s.forEach(e=>d.addCell(e.currentId,e.cellRef)),b(s)};r()}},[h]),(0,a.useEffect)(()=>{const e=()=>{p.removeListener("closed",e),s()};return p.on("closed",e),()=>p.removeListener("closed",e)},[p]);const L=(0,a.useMemo)(()=>y?y.map(e=>function(e,t,n,r,o,i,a,s){const{x:l,y:c,width:u,height:d}=e.bounds,p={left:`${l}%`,top:`${c}%`,width:`${u}%`,height:`${d}%`,position:"absolute"},f=t.public.galaxy?.flags;return f?.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(p.boxSizing="border-box",p.padding="4px"),(0,Jo.jsx)("div",{style:p,children:(0,Jo.jsx)(jC,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:s})},e.model.id)}(e,t,e.options,r,o,e.mounted,l,c)):[],[y]);(0,a.useEffect)(()=>{const e=h?.components?h.components.find(e=>"general"===e.key):null;S(zv(e,t.public.theme)),w($v(e,t.app))},[h,t.public.theme,t.app,m]),(0,a.useImperativeHandle)(u,()=>({setModel:f}),[]);const R=!h||void 0===h.height||Number.isNaN(h.height)?"100%":`${Number(h.height)}%`,P=y.map(e=>e.mountedPromise),O=P.filter(e=>!!e);return O.length&&Promise.all(P).then(()=>{i()}),(0,Jo.jsx)("div",{className:"njs-sheet",style:{width:"100%",height:R,position:"relative",backgroundColor:v,backgroundImage:x&&x.url?`url(${x.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:x&&x.size,backgroundPosition:x&&x.pos},children:L})}),WC=BC,HC=()=>{};async function UC({id:e,options:t,plugins:n,element:r,onRender:o,onError:i,navigation:s},l,c){const{modelStore:u,rpcRequestModelStore:d}=c,p=`${e}`;let f=d.get(p);f||(f=l.app.getObject(e),d.set(p,f));const h=await f;u.set(p,h);const m=s||("sheet"===h.genericType?function(e,t,n){const{galaxy:r}=e.public;if(r.anything?.sense?.navigation)return r.anything?.sense?.navigation;const o={model:n},i={goToSheet:async n=>{if(!o.sheetRef)return;const{modelStore:r,rpcRequestModelStore:a}=t,s=`${n}`;let l,c=a.get(s);c||(c=e.app.getObject(n),a.set(s,c));try{if(l=await c,"sheet"!==l.genericType)return}catch(e){return}r.set(s,l),o.sheetRef?.current?.setModel?.(l),o.model=l,i.emit("sheetChanged")},setSheetRef:e=>{o.sheetRef=e},getCurrentSheetId:()=>!!o.model&&o.model.id};return ag(i),i}(l,c,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o,i=async()=>{}){const{onRender:s,onError:l}=t,c=function({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:s=()=>{}}={}){let l=HC,c=null,u=null,d=null,p=null;const f=new Promise(e=>{d=e}),h=new Promise(e=>{p=e}),m=e=>()=>{e?.(),p(),i()};let g={},y=[];const b={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,c.current.getImperativeHandle()),async destroy(){await o(),l(),l=HC},__DO_NOT_USE__:{mount(o){if(u)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return u=o,[l,c]=function({halo:e,element:t,model:n,initialSnOptions:r,initialSnPlugins:o,onMount:i,initialError:s,navigation:l,onError:c}){const{root:u}=e,d=a.createRef();let p;const f=()=>{u.remove(p)};return p=ba.createPortal((0,Jo.jsx)(WC,{ref:d,halo:e,model:n,initialSnOptions:r,initialSnPlugins:o,initialError:s,onMount:i,unmount:f,navigation:l,onError:c}),t,n.id),l.setSheetRef(d),u.add(p,f),[f,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:y,initialError:r,onMount:d,navigation:n,onError:s}),f},async applyProperties(t){const n=DC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await f,c.current.setSnOptions({...g,...e,onInitialRender:m(t)})})():g={...g,...e,onInitialRender:m(t)}})(e)},plugins(e){(async e=>{_C(e),u?(async()=>{await f,c.current.setSnPlugins(e)})():y=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return b}({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:s,onError:l});return t.options&&c.__DO_NOT_USE__.options(t.options),t.plugins&&c.__DO_NOT_USE__.plugins(t.plugins),t.element&&await c.__DO_NOT_USE__.mount(t.element),c}(h,{options:t,plugins:n,element:r,onRender:o,onError:i},l,m):$C(h,{options:t,plugins:n,element:r,onRender:o,onError:i},l,m)}function VC(e={}){return{isEnabled:t=>!0===e[t]}}n.dn(VC);var GC=n(77843),KC=n.n(GC);const JC={};function XC(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let r,o;const{meta:i}=n,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||KC()(e,i.deps.properties),supernova:()=>async function(e,t,{config:n},r){const o=`${e}__${t}`;if(!JC[o]){const i=`${e}${t&&` v${t}`||""}`;if(r&&"function"!=typeof r)throw new Error(`load of visualization '${i}' is not a fuction, wrap load promise in function`);const a=(r||n.load)({name:e,version:t}),s=Promise.resolve(a);JC[o]=s.then(e=>{if(!e)throw new Error(`load() of visualization '${i}' resolved to an invalid object`);return e}).catch(e=>{throw console.warn(e),new yC(`Failed to load visualization: '${i}'`,e)})}return JC[o]}(a.name,a.version,t,n.load).then(e=>(r=r||Mk(e,t.public.galaxy),o=JSON.stringify(r.qae.properties.initial),r)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n={qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0,...JSON.parse(o)};return t?(G()(!0,n,e),n):{...n,...e}})}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter(e=>"undefined"===e);return[...t,...e.filter(e=>"undefined"!==e).map(e=>e.split(".").map(e=>parseInt(e,10))).sort((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]).map(e=>e.join("."))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--)if(n[r[t]].supportsPropertiesVersion(e))return r[t];return null},versions:n}}const ZC={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())}};ZC.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};const YC=(e={},t={})=>({...e,...t}),QC=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t),eE=function e(t={}){const n=function(e){const t=l({initial:e});return Object.keys(c).forEach(e=>{t.translator.add(c[e])}),{translator:t.translator}}(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let s={...t.context,translator:n.translator,hostConfig:t.hostConfig};const[l,c]=function({app:e,context:t}){let n,r=!1;const o=new Promise(e=>{n=e}),i=a.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","7.4.0"),s.setAttribute("data-app-id",e.id),document.body.appendChild(s),t&&ma(t);const l=function(e){const[t,n]=ga({}),[r,o]=ga({}),[i,a]=ga({}),[s,l]=ga({}),[c,u]=ga({}),[,d]=ga({}),p=({type:e,value:t})=>{const r=d.get(t.id);d.set(t.id,{});const i=()=>{o.clear(t.id),u.set(t.id,{}),u.dispatch(!0)},s=()=>{t.removeListener("closed",s),t.removeListener("changed",i),n.clear(t.id),o.clear(t.id),a.clear(t.id),l.clear(t.id),u.clear(t.id),d.clear(t.id)};return"SET"===e&&(r||(t.on("changed",i),t.once("closed",s))),s},[f,h]=ga({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:s,rpcRequestModelStore:l,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(e.id),c=function(e){const[t,n]=ga({}),[r,o]=ga({}),[i,a]=ga({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(e.id),u=ve.createRoot(s);u.render((0,Jo.jsx)(ya,{ref:i,initialContext:t,renderCallback:n,modelStore:l,selectionStore:c}));const d={},p=[],f=[];return[{toggleFocusOfCells(e){Object.keys(d).forEach(t=>{d[t].current?.toggleFocus(t===e)})},cells:d,addCell(e,t){d[e]=t},removeCell(e){delete d[e]},add:(e,t)=>(async()=>{await o,f.push(e),p.push(t),i?.current?.setComps(f)})(),remove(e){r||(async()=>{await o;const t=f.indexOf(e);-1!==t&&(p[t]?.(),f.splice(t,1),p.splice(t,1)),i?.current?.setComps(f)})()},setMuiThemeName(e){(async()=>{await o,i?.current?.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&ma(e),i?.current?.setContext(e)})()},destroy(){r=!0,p.forEach(e=>{e&&e()}),l.destroy(),u.unmount(),document.body.removeChild(s)}},l,c,i,o]}({app:e,context:s}),u=function({themes:e=[],loadTheme:t,root:n}={}){const r=ye();return{setTheme:async o=>{let i=e.filter(e=>e.id===o)[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),be(5e3,{__timedOut:!0})]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){console.error(e)}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});s.themeApi=u.externalAPI;const d={galaxy:{translator:n.translator,theme:u.externalAPI,flags:VC(t.flags),deviceType:(h=t.context.deviceType,"auto"!==h?h: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:t.hostConfig,anything:t.anything},theme:u.externalAPI,translator:n.translator,nebbie:null},p={app:e,root:l,config:t,public:d,context:s,types:null},f=function({halo:e,parent:t}){const n={},r=t||{get:()=>{}};return{register:(t,r)=>{n[t.name]||(n[t.name]=XC(t.name,e)),n[t.name].register(t.version,r)},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)||r.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(JC).forEach(t=>{t.split("__")[0]===e&&(JC[t]=void 0)})}(e)}}}({halo:p});var h;t.types.forEach(e=>f.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let m=new Promise(e=>{(async()=>{if(await u.setTheme(t.context.theme),t.hostConfig&&i&&i.getWebResourceAuthParams){const{queryParams:e}=await i.getWebResourceAuthParams({hostConfig:t.hostConfig});s.queryParams=e,l.context(s)}})().then(e)}),g=null,y=null;const b={render:async e=>{await m,e.signal?.throwIfAborted();const t=e.id?UC(e,p,c):async function({type:e,version:t,fields:n,properties:r,options:o,plugins:i,element:a,extendProperties:s,navigation:l,onRender:c,onError:u},d,p){let f={};const h=[],{modelStore:m,subscribe:g}=p;let y;try{const o=d.types.get({name:e,version:t});f=await o.initialProperties(r,s);const i=await o.supernova();n&&await Tx({sn:i,properties:f,fields:n,children:h},d),r&&i&&i.qae.properties.onChange&&i.qae.properties.onChange.call({},f)}catch(t){y=t,f={qInfo:{qType:e},visualization:e}}const b=await d.app.createSessionObject(f);h.length>0&&await b.setFullPropertyTree({qProperty:f,qChildren:h}),m.set(b.id,b);const v=g(b);return $C(b,{options:o,plugins:i,element:a,onRender:c,onError:u},d,l,y,async()=>{await d.app.destroySessionObject(b.id),v()})}(e,p,c);if(e.signal){const n=()=>{t.then(e=>e?.destroy()).catch(()=>{})};return e.signal.addEventListener("abort",n,{once:!0}),function(e,t){if(!t)return e;let n;"function"==typeof t.throwIfAborted&&t.throwIfAborted();const r=new Promise((e,t)=>{n=t}),o=()=>n?.(t.reason);return t.addEventListener("abort",o,{once:!0}),Promise.race([e,r]).finally(()=>{t.removeEventListener("abort",o)})}(t,e.signal).finally(()=>{e.signal.removeEventListener("abort",n)})}return t},destroy:async()=>{l.destroy()},create:async e=>zC(e,p,!1,c),generateProperties:async e=>zC(e,p,!0,c),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==s[n]&&(t||(t={}),t[n]=e[n])}),t&&(s={...s,...t,translator:n.translator},t.theme&&(await m,m=u.setTheme(t.theme),await m),t.language&&p.public.translator.language(t.language),l.context(s))},selections:async()=>(g||(g={mount(t){y?console.error("Already mounted"):(y=function({element:e,app:t}){return ba.createPortal((0,Jo.jsx)($S,{app:t}),e,AS())}({element:t,app:e}),l.add(y))},unmount(){y&&(l.remove(y),y=null)}}),g),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i,s={}){if(!i)throw new Error(`Element for ${r||n} not provided`);if(this._instance)throw new Error(`Field or object ${r||n} already mounted`);const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise(r=>{[this._instance,this._ref]=function({element:e,app:t,fieldIdentifier:n,qId:r,stateName:o="$",options:i={},renderedCallback:s,flags:l}){const c=a.createRef();return[ba.createPortal((0,Jo.jsx)(Sx,{ref:c,app:t,element:e,fieldIdentifier:n,qId:r,stateName:o,initialOptions:i,renderedCallback:s,flags:l}),e,AS()),c]}({element:i,app:e,fieldIdentifier:t,qId:n,options:vx({onSelectionActivated:c,onSelectionDeactivated:u,...s}),stateName:s.stateName||"$",renderedCallback:r,flags:p.public.galaxy.flags}),l.add(this._instance)})},unmount(){this._instance&&(l.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){const t=()=>o.emit("selectionActivated"),n=()=>o.emit("selectionDeactivated");if(o._ref?.current){const r=vx({onSelectionActivated:t,onSelectionDeactivated:n,...e});o._ref.current.setOptions(r)}}}};return ag(o),o},getRegisteredTypes:f.getList,__DO_NOT_USE__:{types:f,popover(t,n,r){b._popoverInstance&&(l.remove(b._popoverInstance),b._popoverInstance=null);const o=((e={})=>{const t={...xx};return G()(!0,t,e),t})({onPopoverClose:()=>b.emit("fieldPopoverClose"),...r});b._popoverInstance=a.createElement(wx,{element:t,key:AS(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(b._popoverInstance)}}};return p.public.nebbie=b,p.types=f,ag(b),b}return r.createConfiguration=n=>e(((e,t)=>({context:YC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:QC(e.types,t.types),themes:QC(e.themes,t.themes),flags:YC(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:YC(e.anything,t.anything)}))(t,n)),r.config=t,r}(ZC),tE=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},nE=globalThis.crypto||{getRandomValues:()=>123456},rE=function(e){return t=>{const n=G()({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^nE.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const r=n._mock;let o=n;return r&&(delete n._mock,o=G()({},n,r)),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})}},oE=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,iE=(e,{defaultValue:t,async:n=!0,delay:r=0}={})=>(...o)=>{const i=oE(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(i),r)}):i},aE=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function sE(e){return!aE.includes(e)}function lE(e){const t=oE(e.getLayout);return t.qInfo&&t.qInfo.qId}function cE(e,t){let n=lE(e);const{delay:r}=t,{id:o,session:i,...a}=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 s={id:n,session:oE(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{},...Object.entries(a).reduce((e,[t,n])=>({...e,[t]:iE(n,{async:sE(t),delay:r})}),{}),genericType:e.type};return{[n]:s}}function uE(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!lE(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const dE=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(uE);const n=function(e,t){return e.reduce((e,n)=>({...e,...cE(n,t)}),{})}(e,t);return async e=>Promise.resolve(n[e])},pE=function(e){return()=>Promise.resolve({id:"app-layout",qLocaleInfo:e?.appLocaleInfo})},fE={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new tE,r=new rE(n),o=new dE(e,t),i=new pE(t),a={...t.appMethods||{},id:"app - "+ +Date.now(),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>o(e.qInfo?.qId)};return Promise.resolve(a)}(e,t)},hE=fE,mE={generator:Mk,hook:Sw,theme:ye,locale:l};function gE(e){const i=async function(e){return await o(e),t?Promise.all([n.e(6567),n.e(2383)]).then(n.bind(n,12383)):(await r)("qix@v1",e)}(e.hostConfig).then(t=>t.openAppSession(e));return{getDoc:async()=>(await i).getDoc(),onWebSocketEvent(e){const t=i.then(t=>t.onWebSocketEvent(e));return()=>{t.then(e=>e())}},resume:async()=>(await i).resume(),close:async e=>(await i).close(e)}}n(62234);const yE=()=>{const e={};return window.location.search.substring(1).split("&").forEach(t=>{const n=t.indexOf("="),r=t.substr(0,n);let o=decodeURIComponent(t.substring(n+1));"cols"===r&&(o=o.split(",")),e[r]=o}),e},bE=/(wss?):\/\/([^/:?&]+)(?::(\d+))?/,vE=/\/app\/([^?&#:]+)/,SE=/(wss?):\/\/([^/:?&]+)(?::(\d+))?\/?([a-z0-9-._~]+)?/,xE=e=>{const t=bE.exec(e);if(!t)return{engineUrl:e,invalid:!0};let n;const r=e.trim();let o,i=r;const a=vE.exec(r);a&&([,n]=a,i=r.substring(0,a.index),o=r);const s=SE.exec(i);return s?{engine:{secure:"wss"===t[1],host:t[2],port:t[3]||void 0,prefix:s[4]||void 0,appId:n},engineUrl:i,appUrl:o}:{engineUrl:e,invalid:!0}},wE=()=>fetch("/info").then(e=>e.json()).then(async e=>{let t=e;const n=yE();if(n.engine_url?t={...t,...xE(n.engine_url)}:n.app&&(t={...t,engine:{...t.engine,appId:n.app}}),n["qlik-web-integration-id"]&&(t.webIntegrationId=n["qlik-web-integration-id"]),n["qlik-client-id"]&&(t.clientId=n["qlik-client-id"]),t.invalid)return t;const r=`${t.engine.secure?"https":"http"}://${t.engine.host}`;return{...t,rootPath:r}}),kE=new Map,CE=[],EE=CE.map,LE=CE.some,RE=CE.hasOwnProperty,PE=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,OE=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,TE=/(?:\.[^/]*|\/)$/;class IE extends Error{constructor(e){super(e)}}function qE(e){const t=PE.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function jE(e){const t=new Map,n=o(null);function r(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise((t,n)=>{const r=document.createElement("script");r.onload=()=>{try{t(CE.pop()(o(e)))}catch(e){n(new IE("invalid module"))}r.remove()},r.onerror=()=>{n(new IE("unable to load module")),r.remove()},r.async=!0,r.src=e,window.define=NE,document.head.appendChild(r)})),n}function o(t){return n=>Promise.resolve(e(n,t)).then(r)}function i(e){return arguments.length>1?Promise.all(EE.call(arguments,n)).then(ME):n(e)}return i.alias=function(t){return jE((n,r)=>n in t&&(r=null,"string"!=typeof(n=t[n]))?n:e(n,r))},i.resolve=e,i}function ME(e){const t={};for(const n of e)for(const e in n)RE.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:DE(n,e)}):t[e]=n[e]);return t}function DE(e,t){return()=>e[t]}function _E(e){return"exports"==(e+="")||"module"===e}function NE(e,t,n){const r=arguments.length;r<2?(n=e,t=[]):r<3&&(n=t,t="string"==typeof e?[]:e),CE.push(LE.call(t,_E)?e=>{const r={},o={exports:r};return Promise.all(EE.call(t,t=>"exports"==(t+="")?r:"module"===t?o:e(t))).then(e=>(n.apply(null,e),o.exports))}:e=>Promise.all(EE.call(t,e)).then(e=>"function"==typeof n?n.apply(null,e):n))}IE.prototype.name=IE.name,jE(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 r=kE.get(n);return r||kE.set(n,r=fetch(n).then(e=>{if(!e.ok)throw new IE("unable to load package.json");return e.redirected&&!kE.has(e.url)&&kE.set(e.url,r),e.json()})),r}return async function(r,o){if(r.startsWith(e)&&(r=r.substring(e.length)),/^(\w+:)|\/\//i.test(r))return r;if(/^[.]{0,2}\//i.test(r))return new URL(r,o??location).href;if(!r.length||/^[\s._]/.test(r)||/\s$/.test(r))throw new IE("illegal name");const i=qE(r);if(!i)return`${e}${r}`;if(!i.version&&null!=o&&o.startsWith(e)){const t=await n(qE(o.substring(e.length)));i.version=t.dependencies&&t.dependencies[i.name]||t.peerDependencies&&t.peerDependencies[i.name]}if(i.path&&!TE.test(i.path)&&(i.path+=".js"),i.path&&i.version&&OE.test(i.version))return`${e}${i.name}@${i.version}/${i.path}`;const a=await n(i);return`${e}${a.name}@${a.version}/${i.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),TE.test(t)?t:`${t}.js`}}(a)||"index.js"}`}}()),NE.amd={};const AE=(t,n)=>{const r=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`,o=jE(async e=>r(e));return o.alias({"@nebula.js/stardust":e})(n||t)},$E={};function zE(e){const t=()=>{AE(e.supernova.name,e.supernova.url).then(t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,$E[n]&&$E[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=>AE(e.name,e.url).then(t=>{window[e.name]=t}));return Promise.all(t)}return Promise.resolve()}window.onHotChange=(e,t)=>($E[e]||($E[e]=[]),$E[e].push(t),window[e]&&t(),()=>{const n=$E[e].indexOf(t);$E[e].splice(n,1)});const FE=({type:e})=>({getLayout:{qInfo:{qId:+Date.now()},visualization:e}});const BE=e=>new Promise(t=>{const n=()=>{e.querySelector(".njs-viz")?requestAnimationFrame(n):t()};requestAnimationFrame(n)}),WE=(e,t)=>new Promise(n=>{const r=()=>{const o=e.querySelector(".njs-viz[data-render-count]");o&&parseInt(o.getAttribute("data-render-count"),10)>t?n():requestAnimationFrame(r)};requestAnimationFrame(r)}),HE=async e=>{const t=document.querySelector("#chart-container"),n=e.rerenders?parseInt(e.rerenders,10):0,r=await wE(),o=await async function(e){const t=window.serveFixtures.get(e);if(!t)throw new Error(`Unable to load fixture ${e}`);const n=t();return function({genericObjects:e}={}){if(!e||0===e.length)return;if(!e[0]||!e[0].getLayout)throw new Error("Invalid getLayout of generic object");const{getLayout:t}=e[0],n="function"==typeof t?t():t;if(!n.visualization)throw new Error('No "visualization" specified on generic object on path "getLayout"');if(!n.qInfo||!n.qInfo.qId)throw new Error('No "qId" specified on generic object on path "getLayout.qInfo')}(n),n}(e.fixture),{type:i,load:a,genericObjects:s,instanceConfig:l,snConfig:c,enigmaMockerOptions:u}=await async function({params:e,fixture:t,serverInfo:n}){const r=V(!0,{},(({themes:e=[],supernova:t={},flags:n,anything:r})=>{const o={instanceConfig:{themes:e.map(e=>({id:e,load:async()=>(await fetch(`/theme/${e}`)).json()})),context:{constraints:{}},flags:n,anything:r}};return t.name&&(o.type=t.name),(t.name||t.url)&&(o.load=async()=>AE(t.name,t.url)),o})(n),t,(e=>({instanceConfig:{context:{theme:e.theme,language:e.language,keyboardNavigation:e.keyboardNavigation}}}))(e));return r.genericObjects=r.genericObjects||[FE({type:r.type})],function(e){if(!e.type)throw new Error('No visualization type. Specify it either in fixture in the property "type" or as "--type" to Nebula serve.');if(!e.load)throw new Error('Unable to load the visualization. Specify it in option "--entry" to Nebula serve.')}(r),r}({fixture:o,params:e,serverInfo:r}),d=await hE.fromGenericObjects(s,u),p=function(e=[]){const{getLayout:t}=e[0];return("function"==typeof t?t():t).qInfo.qId}(s);let f=null;if(e.simulatedMemLeakKB){const n=parseFloat(e.simulatedMemLeakKB),r=Math.round(1024*n/48);f=await d.getObject(p);const o={};f.on=(e,t)=>{(o[e]=o[e]||[]).push(t)},f.once=(e,t)=>{const n=()=>{t(),f.removeListener(e,n)};f.on(e,n)},f.removeListener=(e,t)=>{o[e]&&(o[e]=o[e].filter(e=>e!==t))},f.emit=e=>{(o[e]||[]).forEach(e=>e())},t.leakStore=[];const i=f.getLayout.bind(f);f.getLayout=async()=>(t.leakStore.push(new Array(r).fill(null).map((e,t)=>({j:t,v:Math.random()}))),i())}const h=r&&r.types||[],m=eE(d,{types:[{name:i,load:a},...h.map(e=>({name:e.name,load:async()=>AE(e.name,e.url)}))],...l}),g=await m.render({type:i,element:t,id:p,...c});(c?.events||[]).forEach(e=>{g.addListener(e,e=>{document.querySelector("#events").innerHTML=e})});let y=g;n>0&&(await WE(t,0),await(async e=>{for(let n=0;n<e;n++){if(await y.destroy(),await BE(t),y=await m.render({type:i,element:t,id:p,...c}),await WE(t,0),f){const e=parseInt(t.querySelector(".njs-viz[data-render-count]").getAttribute("data-render-count"),10);f.emit("changed"),await WE(t,e)}t.setAttribute("data-render-count",String(n+1))}})(n))};window.addEventListener("load",function(){const e=yE();e.fixture?HE(e):e.snapshot?async function(){const e=await wE(),{themes:t,supernova:n}=e;await zE(e);const r=document.querySelector("#chart-container");r.classList.toggle("full",!0);const o=eE.createConfiguration({themes:t?t.map(e=>({key:e,load:async()=>(await fetch(`/theme/${e}`)).json()})):void 0,types:[{load:e=>Promise.resolve(window[e.name]),name:n.name}],context:{constraints:{passive:!0,active:!0}}});window.onHotChange(n.name,async()=>{const e=yE();!async function({embed:e,element:t,snapshot:n}){let r={};const o=e=>{t.innerHTML=`<p>${e.message}</p>`,t.setAttribute("data-njs-error",e.message)};try{r="string"==typeof n?await e.config.snapshot.get(n):n}catch(e){throw o(e),e}const{meta:{theme:i,language:a,appLayout:s},layout:l}=r,c=e=>({id:+new Date+"-object",getLayout:async()=>e,on(){},once(){}}),u={id:+new Date+"-app",createSessionObject:async e=>c(e),getObject:async e=>e===l.qInfo.qId?c(l):Promise.reject(new Error(`Could not find an object with id: ${e}`)),getAppLayout:async()=>s||{}},d=await e(u,{context:{theme:i,language:a}});try{await d.render(l.qInfo&&l.qInfo.qId?{id:l.qInfo.qId,element:t}:{type:l.visualization,element:t,properties:l})}catch(e){throw o(e||{message:"Failed to render visualization."}),e}}({embed:o,element:r,snapshot:e.snapshot})})}():async function(){const e=await wE();await zE(e),e.engine.appId||(location.href=location.origin);const t=yE(),n=await(async e=>{try{const{clientId:t,webIntegrationId:n,engine:r,engine:{host:o}}=await wE();return n?gE({appId:e,hostConfig:{authType:"cookie",webIntegrationId:n,host:o}}).getDoc():t?gE({appId:e,hostConfig:{authType:"oauth2",clientId:t,host:o,redirectUri:`${window.location.origin}/auth/login/callback`,accessTokenStorage:"session"}}).getDoc():gE({appId:e,hostConfig:{authType:"noauth",host:`${!1!==r.secure?"https":"http"}://${r.host}${r.port?`:${r.port}`:""}`}}).getDoc()}catch(e){throw new Error("Failed to open app!",{cause:e})}})(e.engine.appId),r=await(async({app:e,supernova:{name:t},themes:n,theme:r,language:o})=>{const i=eE.createConfiguration({themes:n?n.map(e=>({id:e,load:async()=>(await fetch(`/theme/${e}`)).json()})):void 0,context:{theme:r,language:o}});return i(e,{load:e=>Promise.resolve(window[e.name]),types:[{name:t}]})})({app:n,...e,theme:t.theme,language:t.language}),o=document.querySelector("#chart-container");let i,a;if(t["render-config"]){const n=await(await fetch(`/render-config/${t["render-config"]}`)).json();i={...n,...t.object?{id:t.object}:n.id?{id:n.id}:{},type:n.type?n.type:e.supernova.name,fields:t.cols?t.cols:n.fields,element:o}}else i=t.object?{id:t.object,element:o}:{type:e.supernova.name,fields:t.cols||[],element:o};window.onHotChange(e.supernova.name,async()=>{a&&(a.close(),r.__DO_NOT_USE__.types.clearFromCache(e.supernova.name),r.__DO_NOT_USE__.types.register(e.supernova)),a=await(async()=>{await r.render(i)})()})}()})})()})();
103
103
  //# sourceMappingURL=eRender.js.map