@nebula.js/sn-table 4.7.0 → 4.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-table v4.7.0
2
+ * @nebula.js/sn-table v4.7.2
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -98,7 +98,7 @@ function Bi(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldFo
98
98
  }
99
99
  `),$u.rippleVisible,Xu,550,(({theme:e})=>e.transitions.easing.easeInOut),$u.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$u.child,$u.childLeaving,Ju,550,(({theme:e})=>e.transitions.easing.easeInOut),$u.childPulsate,Zu,(({theme:e})=>e.transitions.easing.easeInOut)),tc=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Jr(r,Vu),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,rr.jsx(ec,{classes:{ripple:Xs(o.ripple,$u.ripple),rippleVisible:Xs(o.rippleVisible,$u.rippleVisible),ripplePulsate:Xs(o.ripplePulsate,$u.ripplePulsate),child:Xs(o.child,$u.child),childLeaving:Xs(o.childLeaving,$u.childLeaving),childPulsate:Xs(o.childPulsate,$u.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),rr.jsx(Qu,Xr({className:Xs($u.root,o.root,i),ref:m},a,{children:rr.jsx(Lu,{component:null,exit:!0,children:l})}))}));function rc(e){return xs("MuiButtonBase",e)}const nc=Ss("MuiButtonBase",["root","disabled","focusVisible"]),oc=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ic=Us("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ac=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:P=0,TouchRippleProps:D,touchRippleRef:M,type:L}=r,k=Jr(r,oc),O=y.useRef(null),T=y.useRef(null),_=as(T,M),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=hs(),[F,H]=y.useState(!1);s&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!s;function W(e,t,r=c){return is((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&B&&T.current.pulsate()}),[u,d,F,B]);const G=W("start",E),U=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",(e=>{j(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=is((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=is((e=>{d&&!ne.current&&F&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=is((e=>{d&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=as(t,z,O),ue=Xr({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ea({root:["root",t&&"disabled",r&&"focusVisible"]},rc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rr.jsxs(ic,Xr({as:ae,className:Xs(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:P,type:L},le,k,{children:[i,V?rr.jsx(tc,Xr({ref:_,center:o},D)):null]}))}));function lc(e){return xs("MuiTypography",e)}Ss("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uc=Us("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Jl(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Xr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),cc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pc=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiTypography"}),n=(e=>dc[e]||e)(r.color),o=Ll(Xr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cc}=o,f=Jr(o,sc),m=Xr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||cc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ea({root:["root",i,"inherit"!==e.align&&`align${Jl(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},lc,a)})(m);return rr.jsx(uc,Xr({as:h,ref:t,ownerState:m,className:Xs(g.root,a)},f))})),fc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mc(e){const t=[],r=[];return Array.from(e.querySelectorAll(fc)).forEach(((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hc(){return!0}function gc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=mc,isEnabled:a=hc,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=xa(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ha(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=ha(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return rr.jsxs(y.Fragment,{children:[rr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),rr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const bc=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=xa(y.isValidElement(r)?r.ref:null,t);if(va((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),va((()=>{if(i&&!o)return ba(t,i),()=>{ba(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return rr.jsx(y.Fragment,{children:r})}return rr.jsx(y.Fragment,{children:i?z.createPortal(r,i):i})}));function vc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yc(e){return parseInt(ga(e).getComputedStyle(e).paddingRight,10)||0}function xc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&vc(e,o)}))}function Sc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Ec(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ha(e);return t.body===e?ga(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ha(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${yc(n)+e}px`;const t=ha(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${yc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ha(n).body;else{const t=n.parentElement,r=ga(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const wc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&vc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);xc(t,e.mount,e.modalRef,n,!0);const o=Sc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Sc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Ec(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Sc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&vc(e.modalRef,t),xc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&vc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=wc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=xa(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},w=ya((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ha(f.current).body;o.add(S(),e),m.current&&E()})),C=y.useCallback((()=>o.isTopModal(S())),[o]),R=ya((e=>{f.current=e,e&&(c&&C()?E():m.current&&vc(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?w():v&&i||A()}),[c,A,v,i,w]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=zu(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=St({},r,t);return St({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>St({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:ma((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ma((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}const Rc=["onChange","maxRows","minRows","style","value"];function Ac(e){return parseInt(e,10)||0}const Ic={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Pc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Dc=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=Mt(e,Rc),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=xa(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=ga(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Ac(r.paddingBottom)+Ac(r.paddingTop),s=Ac(r.borderBottomWidth)+Ac(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=y.useCallback((()=>{const e=h();Pc(e)||m((t=>g(t,e)))}),[h]);va((()=>{const e=()=>{p.current=0,(()=>{const e=h();Pc(e)||z.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=ga(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),va((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return rr.jsxs(y.Fragment,{children:[rr.jsx("textarea",St({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:St({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),rr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:St({},Ic,i,{paddingTop:0,paddingBottom:0})})]})}));function Mc({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Lc=y.createContext(void 0);function kc(){return y.useContext(Lc)}function Oc(e){return rr.jsx(Dl,Xr({},e,{defaultTheme:Bs,themeId:Kr}))}function Tc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _c(e,t=!1){return e&&(Tc(e.value)&&""!==e.value||t&&Tc(e.defaultValue)&&""!==e.defaultValue)}function qc(e){return xs("MuiInputBase",e)}const Nc=Ss("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jc=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],zc=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Jl(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Fc=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Hc=Us("div",{name:"MuiInputBase",slot:"Root",overridesResolver:zc})((({theme:e,ownerState:t})=>Xr({},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",[`&.${Nc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Xr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Bc=Us("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Xr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Xr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Nc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),$c=rr.jsx(Oc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vc=y.forwardRef((function(e,t){var r;const n=Vs({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:w,onBlur:C,onChange:R,onClick:A,onFocus:I,onKeyDown:P,onKeyUp:D,placeholder:M,readOnly:L,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:j}=n,z=Jr(n,jc),F=null!=b.value?b.value:j,{current:H}=y.useRef(null!=F),B=y.useRef(),$=y.useCallback((e=>{}),[]),V=as(B,v,b.ref,$),[W,G]=y.useState(!1),U=kc(),Y=Mc({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:W,y.useEffect((()=>{!U&&d&&W&&(G(!1),C&&C())}),[U,d,W,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{_c(e)?K&&K():X&&X()}),[K,X]);es((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Xr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Dc);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=Xr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Ea({root:["root",`color${Jl(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Jl(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},qc,t)})(ee),re=_.root||s.Root||Hc,ne=T.root||u.root||{},oe=_.input||s.Input||Bc;return Q=Xr({},Q,null!=(r=T.input)?r:u.input),rr.jsxs(y.Fragment,{children:[!p&&$c,rr.jsxs(re,Xr({},ne,!ju(re)&&{ownerState:Xr({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Xs(te.root,ne.className,l,L&&"MuiInputBase-readOnly"),children:[q,rr.jsx(Lc.Provider,{value:null,children:rr.jsx(oe,Xr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:M,readOnly:L,required:Y.required,rows:O,value:F,onKeyDown:P,onKeyUp:D,type:N},Q,!ju(oe)&&{as:Z,ownerState:Xr({},ee,Q.ownerState)},{ref:V,className:Xs(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(Yr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,k?k(Xr({},Y,{startAdornment:q})):null]}))]})}));function Wc(e){return xs("MuiInput",e)}const Gc=Xr({},Nc,Ss("MuiInput",["root","underline","input"]));function Uc(e){return xs("MuiOutlinedInput",e)}const Yc=Xr({},Nc,Ss("MuiOutlinedInput",["root","notchedOutline","input"]));function Kc(e){return xs("MuiFilledInput",e)}const Xc=Xr({},Nc,Ss("MuiFilledInput",["root","underline","input"]));var Jc=function(e,t){function r(r,n){return rr.jsx(eu,Xr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=eu.muiName,y.memo(y.forwardRef(r))}(rr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qc={entering:{opacity:1},entered:{opacity:1}},ed=y.forwardRef((function(e,t){const r=$s(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Ru}=e,v=Jr(e,Zc),x=y.useRef(null),S=as(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=E(d),C=E(((e,t)=>{ku(e);const n=Ou({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=Ou({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),P=E(f);return rr.jsx(b,Xr({appear:i,in:s,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:I,onExited:P,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Xr({style:Xr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Qc[e],h,a.props.style),ref:S},t))}))}));function td(e){return xs("MuiBackdrop",e)}Ss("MuiBackdrop",["root","invisible"]);const rd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nd=Us("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Xr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),od=y.forwardRef((function(e,t){var r,n,o;const i=Vs({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=ed,transitionDuration:g}=i,b=Jr(i,rd),v=Xr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Ea({root:["root",r&&"invisible"]},td,t)})(v),x=null!=(r=f.root)?r:c.root;return rr.jsx(h,Xr({in:p,timeout:g},b,{children:rr.jsx(nd,Xr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:Xs(y.root,l,null==x?void 0:x.className),ownerState:Xr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),id=Ss("MuiBox",["root"]),ad=Hs(),ld=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Bi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(El);return y.forwardRef((function(e,a){const l=Pl(r),s=Ll(e),{className:u,component:c="div"}=s,d=Mt(s,kl);return rr.jsx(i,St({as:c,ref:a,className:Ca(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Kr,defaultTheme:ad,defaultClassName:id.root,generateClassName:vs.generate});function sd(e){return xs("MuiButton",e)}const ud=Ss("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),cd=y.createContext({}),dd=y.createContext(void 0),pd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fd=e=>Xr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),md=Us(ac,{shouldForwardProp:e=>Ws(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Jl(r.color)}`],t[`size${Jl(r.size)}`],t[`${r.variant}Size${Jl(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Xr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Xr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ul(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ul(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ul(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Xr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ud.focusVisible}`]:Xr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ud.disabled}`]:Xr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ul(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ud.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ud.disabled}`]:{boxShadow:"none"}})),hd=Us("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Jl(r.size)}`]]}})((({ownerState:e})=>Xr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},fd(e)))),gd=Us("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Jl(r.size)}`]]}})((({ownerState:e})=>Xr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},fd(e)))),bd=y.forwardRef((function(e,t){const r=y.useContext(cd),n=y.useContext(dd),o=Vs({props:gs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Jr(o,pd),S=Xr({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Xr({},a,Ea({root:["root",i,`${i}${Jl(t)}`,`size${Jl(o)}`,`${i}Size${Jl(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Jl(o)}`],endIcon:["endIcon",`iconSize${Jl(o)}`]},sd,a))})(S),w=g&&rr.jsx(hd,{className:E.startIcon,ownerState:S,children:g}),C=p&&rr.jsx(gd,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return rr.jsxs(md,Xr({ownerState:S,className:Xs(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Xs(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[w,i,C]}))}));function vd(e){return xs("MuiModal",e)}Ss("MuiModal",["root","hidden","backdrop"]);const yd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],xd=Us("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Xr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Sd=Us(od,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ed=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=Vs({name:"MuiModal",props:e}),{BackdropComponent:u=Sd,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:P,slotProps:D,slots:M}=s,L=Jr(s,yd),k=Xr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:j,hasTransition:z}=Cc(Xr({},k,{rootRef:t})),F=Xr({},k,{exited:j}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Ea({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vd,n)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:xd,V=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==D?void 0:D.root)?a:b.root,G=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,U=Bu({elementType:$,externalSlotProps:W,externalForwardedProps:L,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:F,className:Xs(d,null==W?void 0:W.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=Bu({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>T(Xr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Xs(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return A||P||z&&!j?rr.jsx(bc,{ref:q,container:m,disablePortal:E,children:rr.jsxs($,Xr({},U,{children:[!R&&u?rr.jsx(V,Xr({},Y)):null,rr.jsx(gc,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:N,open:P,children:y.cloneElement(f,B)})]}))}):null}));function wd(e){return xs("MuiDivider",e)}const Cd=Ss("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ad=Us("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Xr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ul(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Xr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Xr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Xr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Xr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Id=Us("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Xr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Pd=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Jr(r,Rd),m=Xr({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Ea({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},wd,n)})(m);return rr.jsx(Ad,Xr({as:a,className:Xs(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?rr.jsx(Id,{className:h.wrapper,ownerState:m,children:o}):null}))}));Pd.muiSkipListHighlight=!0;const Dd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Md=Us(Hc,{shouldForwardProp:e=>Ws(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...zc(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Xr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Xc.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Xc.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Xr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Ld=Us(Bc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fc})((({theme:e,ownerState:t})=>Xr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),kd=y.forwardRef((function(e,t){var r,n,o,i;const a=Vs({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Jr(a,Dd),g=Xr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Xr({},t,Ea({root:["root",!r&&"underline"],input:["input"]},Kc,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Xl(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Md,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Ld;return rr.jsx(Vc,Xr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));kd.muiName="Input";const Od=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Td(e){return`scale(${e}, ${e**2})`}const _d={entering:{opacity:1,transform:Td(1)},entered:{opacity:1,transform:"none"}},qd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Nd=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Ru}=e,g=Jr(e,Od),b=y.useRef(),v=y.useRef(),x=$s(),S=y.useRef(null),E=as(S,o.ref,t),w=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},C=w(u),R=w(((e,t)=>{ku(e);const{duration:r,delay:n,easing:o}=Ou({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:qd?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=w(s),I=w(p),P=w((e=>{const{duration:t,delay:r,easing:n}=Ou({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:qd?o:.666*o,delay:qd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Td(.75),c&&c(e)})),D=w(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),rr.jsx(h,Xr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:C,onExit:P,onExited:D,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Xr({style:Xr({opacity:0,transform:Td(.75),visibility:"exited"!==e||a?void 0:"hidden"},_d[e],f,o.props.style),ref:E},t))}))}));Nd.muiSupportAuto=!0;const jd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],zd=Us(Hc,{shouldForwardProp:e=>Ws(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...zc(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Xr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gc.disabled}, .${Gc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Gc.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Fd=Us(Bc,{name:"MuiInput",slot:"Input",overridesResolver:Fc})({}),Hd=y.forwardRef((function(e,t){var r,n,o,i;const a=Vs({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Jr(a,jd),b=(e=>{const{classes:t,disableUnderline:r}=e;return Xr({},t,Ea({root:["root",!r&&"underline"],input:["input"]},Wc,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Xl(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:zd,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Fd;return rr.jsx(Vc,Xr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Bd(e){return xs("MuiLink",e)}Hd.muiName="Input";const $d=Ss("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Vd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wd=({theme:e,ownerState:t})=>{const r=(e=>Vd[e]||e)(t.color),n=ka(e,`palette.${r}`,!1)||t.color,o=ka(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ul(n,.4)},Gd=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ud=Us(pc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Jl(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Xr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Xr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Wd({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$d.focusVisible}`]:{outline:"auto"}}))),Yd=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=Jr(r,Gd),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=hs(),[b,v]=y.useState(!1),x=as(t,g),S=Xr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Ea({root:["root",`underline${Jl(o)}`,"button"===r&&"button",n&&"focusVisible"]},Bd,t)})(S);return rr.jsx(Ud,Xr({color:o,className:Xs(E.root,n),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(Vd).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Kd=y.createContext({});function Xd(e){return xs("MuiList",e)}Ss("MuiList",["root","padding","dense","subheader"]);const Jd=["children","className","component","dense","disablePadding","subheader"],Zd=Us("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Xr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Qd=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=Jr(r,Jd),c=y.useMemo((()=>({dense:a})),[a]),d=Xr({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ea({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Xd,t)})(d);return rr.jsx(Kd.Provider,{value:c,children:rr.jsxs(Zd,Xr({as:i,className:Xs(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function ep(e){return xs("MuiListItemIcon",e)}const tp=Ss("MuiListItemIcon",["root","alignItemsFlexStart"]),rp=["className"],np=Us("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Xr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),op=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Jr(r,rp),i=Xr({},r,{alignItems:y.useContext(Kd).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ea({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ep,r)})(i);return rr.jsx(np,Xr({className:Xs(a.root,n),ownerState:i,ref:t},o))})),ip=Ss("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ap=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function sp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function up(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function cp(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&up(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const dp=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Jr(e,ap),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});es((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Zl(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=as(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return rr.jsx(Qd,Xr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Zl(t).activeElement;if("ArrowDown"===r)e.preventDefault(),cp(t,n,s,l,lp);else if("ArrowUp"===r)e.preventDefault(),cp(t,n,s,l,sp);else if("Home"===r)e.preventDefault(),cp(t,null,s,l,lp);else if("End"===r)e.preventDefault(),cp(t,null,s,l,sp);else if(1===r.length){const o=f.current,i=r.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=n&&!o.repeating&&up(n,o);o.previousKeyMatched&&(s||cp(t,n,!1,l,lp,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function pp(e){return xs("MuiPopover",e)}Ss("MuiPopover",["root","paper"]);const fp=["onEntering"],mp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hp=["slotProps"];function gp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function bp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function vp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yp(e){return"function"==typeof e?e():e}const xp=Us(Ed,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sp=Us(Nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ep=y.forwardRef((function(e,t){var r,n,o;const i=Vs({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Nd,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Jr(i.TransitionProps,fp),I=Jr(i,mp),P=null!=(r=null==x?void 0:x.paper)?r:b,D=y.useRef(),M=as(D,P.ref),L=Xr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:E,transitionDuration:w,TransitionProps:A}),k=(e=>{const{classes:t}=e;return Ea({root:["root"],paper:["paper"]},pp,t)})(L),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=yp(l),t=(e&&1===e.nodeType?e:Zl(D.current).body).getBoundingClientRect();return{top:t.top+gp(t,s.vertical),left:t.left+bp(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:gp(e,S.vertical),horizontal:bp(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:vp(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Ql(yp(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:vp(r)}}),[l,c,O,T,h]),[q,N]=y.useState(g),j=y.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[l,R,j]);y.useEffect((()=>{g&&j()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{j()})),t=Ql(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,j]);let z=w;"auto"!==w||E.muiSupportAuto||(z=void 0);const F=f||(l?Zl(yp(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:xp,B=null!=(o=null==v?void 0:v.paper)?o:Sp,$=Bu({elementType:B,externalSlotProps:Xr({},P,{style:q?P.style:Xr({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:L,className:Xs(k.paper,null==P?void 0:P.className)}),V=Bu({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:L,className:Xs(k.root,p)}),{slotProps:W}=V,G=Jr(V,hp);return rr.jsx(H,Xr({},G,!ju(H)&&{slotProps:W,disableScrollLock:R},{children:rr.jsx(E,Xr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),j()},onExited:()=>{N(!1)},timeout:z},A,{children:rr.jsx(B,Xr({},$,{children:d}))}))}))}));function wp(e){return xs("MuiMenu",e)}Ss("MuiMenu",["root","paper","list"]);const Cp=["onEntering"],Rp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ap={vertical:"top",horizontal:"right"},Ip={vertical:"top",horizontal:"left"},Pp=Us(Ep,{shouldForwardProp:e=>Ws(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dp=Us(Sp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mp=Us(dp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Lp=y.forwardRef((function(e,t){var r,n;const o=Vs({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Jr(o.TransitionProps,Cp),S=Jr(o,Rp),E=$s(),w="rtl"===E.direction,C=Xr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Ea({root:["root"],paper:["paper"],list:["list"]},wp,t)})(C),A=i&&!s&&d,I=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const D=null!=(r=b.paper)?r:Dp,M=null!=(n=v.paper)?n:p,L=Bu({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[R.root,l]}),k=Bu({elementType:D,externalSlotProps:M,ownerState:C,className:R.paper});return rr.jsx(Pp,Xr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Ap:Ip,slots:{paper:D,root:b.root},slotProps:{root:L,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:Xr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:rr.jsx(Mp,Xr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===P||s),autoFocusItem:A,variant:g},u,{className:Xs(R.list,u.className),children:a}))}))}));function kp(e){return xs("MuiMenuItem",e)}const Op=Ss("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_p=Us(ac,{shouldForwardProp:e=>Ws(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Xr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Op.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ul(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Op.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ul(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Op.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ul(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ul(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Op.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Op.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cd.inset}`]:{marginLeft:52},[`& .${ip.root}`]:{marginTop:0,marginBottom:0},[`& .${ip.inset}`]:{paddingLeft:36},[`& .${tp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Xr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tp.root} svg`]:{fontSize:"1.25rem"}})))),qp=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Jr(r,Tp),f=y.useContext(Kd),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);es((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Xr({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Xr({},a,Ea({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},kp,a))})(r),v=as(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),rr.jsx(Kd.Provider,{value:m,children:rr.jsx(_p,Xr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Xs(b.focusVisible,s),className:Xs(b.root,d)},p,{ownerState:g,classes:b}))})}));function Np(e){return xs("MuiNativeSelect",e)}const jp=Ss("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zp=["className","disabled","error","IconComponent","inputRef","variant"],Fp=({ownerState:e,theme:t})=>Xr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Xr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${jp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Hp=Us("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ws,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${jp.multiple}`]:t.multiple}]}})(Fp),Bp=({ownerState:e,theme:t})=>Xr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${jp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),$p=Us("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Jl(r.variant)}`],r.open&&t.iconOpen]}})(Bp),Vp=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Jr(e,zp),u=Xr({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ea({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Jl(r)}`,i&&"iconOpen",n&&"disabled"]},Np,t)})(u);return rr.jsxs(y.Fragment,{children:[rr.jsx(Hp,Xr({ownerState:u,className:Xs(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:rr.jsx($p,{as:i,ownerState:u,className:c.icon})]})}));var Wp;const Gp=["children","classes","className","label","notched"],Up=Us("fieldset",{shouldForwardProp:Ws})({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%"}),Yp=Us("legend",{shouldForwardProp:Ws})((({ownerState:e,theme:t})=>Xr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Xr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const Kp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Xp=Us(Hc,{shouldForwardProp:e=>Ws(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:zc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Xr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yc.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yc.focused} .${Yc.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yc.error} .${Yc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yc.disabled} .${Yc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Xr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Jp=Us((function(e){const{className:t,label:r,notched:n}=e,o=Jr(e,Gp),i=null!=r&&""!==r,a=Xr({},e,{notched:n,withLabel:i});return rr.jsx(Up,Xr({"aria-hidden":!0,className:t,ownerState:a},o,{children:rr.jsx(Yp,{ownerState:a,children:i?rr.jsx("span",{children:r}):Wp||(Wp=rr.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Zp=Us(Bc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fc})((({theme:e,ownerState:t})=>Xr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Qp=y.forwardRef((function(e,t){var r,n,o,i,a;const l=Vs({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Jr(l,Kp),b=(e=>{const{classes:t}=e;return Xr({},t,Ea({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Uc,t))})(l),v=kc(),x=Mc({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Xr({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(r=null!=(n=m.root)?n:s.Root)?r:Xp,w=null!=(o=null!=(i=m.input)?i:s.Input)?o:Zp;return rr.jsx(Vc,Xr({slots:{root:E,input:w},renderSuffix:e=>rr.jsx(Jp,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=rr.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Xr({},b,{notchedOutline:null})}))}));function ef(e){return xs("MuiSelect",e)}Qp.muiName="Input";const tf=Ss("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var rf;const nf=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],of=Us("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${tf.select}`]:t.select},{[`&.${tf.select}`]:t[r.variant]},{[`&.${tf.error}`]:t.error},{[`&.${tf.multiple}`]:t.multiple}]}})(Fp,{[`&.${tf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),af=Us("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Jl(r.variant)}`],r.open&&t.iconOpen]}})(Bp),lf=Us("input",{shouldForwardProp:e=>Gs(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function sf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uf(e){return null==e||"string"==typeof e&&!e.trim()}const cf=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:w,onFocus:C,onOpen:R,open:A,readOnly:I,renderValue:P,SelectDisplayProps:D={},tabIndex:M,value:L,variant:k="standard"}=e,O=Jr(e,nf),[T,_]=os({controlled:L,default:c,name:"Select"}),[q,N]=os({controlled:A,default:u,name:"Select"}),j=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:B}=y.useRef(null!=A),[$,V]=y.useState(),W=as(t,h),G=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),U=null==F?void 0:F.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:j.current,value:T})),[T]),y.useEffect((()=>{u&&q&&F&&!B&&(V(a?null:U.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Zl(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):w&&w(t),B||(V(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==F&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(_c({value:T})||p)&&(P?Z=P(T):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Yr(2));t=T.some((t=>sf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=sf(T,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!a&&B&&F&&(oe=U.clientWidth),ne=void 0!==M?M:d?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=Xr({},e,{variant:k,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ea({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Jl(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},ef,t)})(ae),se=Xr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=ns();return rr.jsxs(y.Fragment,{children:[rr.jsx(of,Xr({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:C},D,{ownerState:ae,className:Xs(D.className,le.select,s),id:ie,children:uf(Z)?rf||(rf=rr.jsx("span",{className:"notranslate",children:"​"})):Z})),rr.jsx(lf,Xr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),rr.jsx(af,{as:m,className:le.icon,ownerState:ae}),rr.jsx(Lp,Xr({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Xr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Xr({},b.slotProps,{paper:Xr({},se,{style:Xr({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})})),df=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],pf=["root"],ff={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ws(e)&&"variant"!==e,slot:"Root"},mf=Us(Hd,ff)(""),hf=Us(Qp,ff)(""),gf=Us(kd,ff)(""),bf=y.forwardRef((function(e,t){const r=Vs({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Jc,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:w,variant:C="outlined"}=r,R=Jr(r,df),A=b?Vp:cf,I=Mc({props:r,muiFormControl:kc(),states:["variant","error"]}),P=I.variant||C,D=Xr({},r,{variant:P,classes:i}),M=(e=>{const{classes:t}=e;return t})(D),L=Jr(M,pf),k=d||{standard:rr.jsx(mf,{ownerState:D}),outlined:rr.jsx(hf,{label:f,ownerState:D}),filled:rr.jsx(gf,{ownerState:D})}[P],O=as(t,k.ref);return rr.jsx(y.Fragment,{children:y.cloneElement(k,Xr({inputComponent:A,inputProps:Xr({children:o,error:I.error,IconComponent:u,variant:P,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Xr({id:c},w)},p,{classes:p?Xl(L,p.classes):L},d?d.props.inputProps:{})},g&&b&&"outlined"===P?{notched:!0}:{},{ref:O,className:Xs(k.props.className,a,M.root)},!d&&{variant:P},R))})}));function vf(e={}){return rr.jsx(sr,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("rect",{stroke:_t.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}bf.muiName="Select";const yf={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var xf=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:_t.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_t.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:rr.jsx(ir,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${_t.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_t.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_t.MISC_FOCUS_BORDER}`,borderRadius:Ft,backgroundColor:_t.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${_t.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_t.WHITE,color:_t.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ft},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_t.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_t.GREYSCALE_0_15,backgroundColor:_t.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_t.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_t.GREEN_PALE},"&:active":{backgroundColor:_t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_t.GREEN_PALE,boxShadow:`0 0 0 3px ${Ul(_t.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_t.BLUE_PALE},"&:active":{backgroundColor:_t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_t.BLUE_PALE,boxShadow:`0 0 0 3px ${Ul(_t.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_t.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_t.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:_t.GREYSCALE_0_15,backgroundColor:_t.GREYSCALE_100_60,"&:active":{backgroundColor:_t.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_t.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:_t.PURPLE,"&.Mui-focusVisible":{borderColor:_t.PURPLE,boxShadow:`0 0 0 3px ${Ul(_t.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:_t.GREEN,"&.Mui-focusVisible":{borderColor:_t.GREEN,boxShadow:`0 0 0 3px ${Ul(_t.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_t.BLUE,"&.Mui-focusVisible":{borderColor:_t.BLUE,boxShadow:`0 0 0 3px ${Ul(_t.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_t.ORANGE,"&.Mui-focusVisible":{borderColor:_t.ORANGE,boxShadow:`0 0 0 3px ${Ul(_t.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_t.RED,"&.Mui-focusVisible":{borderColor:_t.RED,boxShadow:`0 0 0 3px ${Ul(_t.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:_t.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:_t.PURPLE_PALE},"&:active":{backgroundColor:_t.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_t.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ul(_t.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:_t.GREEN_PALE},"&:active":{backgroundColor:_t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_t.GREEN_PALE,boxShadow:`0 0 0 3px ${Ul(_t.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_t.BLUE_PALE},"&:active":{backgroundColor:_t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_t.BLUE_PALE,boxShadow:`0 0 0 3px ${Ul(_t.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_t.ORANGE_PALE},"&:active":{backgroundColor:_t.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_t.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ul(_t.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_t.RED_PALE},"&:active":{backgroundColor:_t.RED_DARK},"&.Mui-focusVisible":{borderColor:_t.RED_PALE,boxShadow:`0 0 0 3px ${Ul(_t.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:_t.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_t.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ft,boxShadow:`inset 0 0 0 2px ${_t.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:rr.jsx(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:qt,borderRadius:Ft,color:_t.TEXT_PRIMARY,backgroundColor:_t.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_t.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:_t.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:_t.GREYSCALE_0_05,color:_t.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_t.GREEN,borderColor:_t.GREEN},"&.MuiChip-outlinedInfo":{color:_t.BLUE,borderColor:_t.BLUE},"&.MuiChip-outlinedWarning":{color:_t.ORANGE,borderColor:_t.ORANGE},"&.MuiChip-outlinedError":{color:_t.RED,borderColor:_t.RED}},outlined:{border:`solid 1px ${_t.GREYSCALE_0_15}`,backgroundColor:_t.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ft,boxShadow:"none",backgroundColor:_t.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_t.GREEN,borderColor:_t.GREEN},outlinedSecondary:{color:_t.BLUE,borderColor:_t.BLUE},label:{fontFamily:Wt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:rr.jsx(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:rr.jsx(ir,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Ft},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ft,fontSize:Nt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:_t.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${_t.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_t.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_t.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:_t.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ft,border:`solid 1px ${_t.GREYSCALE_0_15}`,color:_t.GREYSCALE_0_60,marginRight:0,width:zt,height:zt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_t.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ft,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_t.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Nt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:qt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_t.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_t.GREYSCALE_25,fontSize:qt,fontFamily:Wt.FONT_FAMILY,fontWeight:$t,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_t.TEXT_PRIMARY},"&.Mui-error":{color:_t.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_t.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Bt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_t.TEXT_SECONDARY,content:"'(required)'",fontWeight:Bt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",backgroundColor:_t.WHITE,borderRadius:Ft,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_t.GREYSCALE_0_05}`,borderColor:_t.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_t.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_t.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_t.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_t.RED}`,boxShadow:`0px 0px 0px 1px ${_t.RED}, inset 0 2px 0 0 ${_t.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_t.GREYSCALE_0_10}`,borderColor:_t.GREYSCALE_0_10,backgroundColor:_t.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_t.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_t.GREYSCALE_0_15,borderRadius:Ft,boxShadow:`inset 0 2px 0 0 ${_t.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>rr.jsx(ir,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:_t.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_t.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_t.GREYSCALE_0_03},"&:active":{backgroundColor:_t.GREYSCALE_0_10},"&:focus":{backgroundColor:_t.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_t.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_t.GREYSCALE_0_30,"&:hover":{backgroundColor:_t.GREYSCALE_0_0,borderColor:_t.GREYSCALE_0_15},"& ~svg":{color:_t.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_t.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ft}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_t.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_t.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Nt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:qt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:qt,fontWeight:$t,color:_t.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$t}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_t.GREYSCALE_0_15}, 0px 0px 0px 1px ${_t.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:rr.jsx(dr,{}),checkedIcon:rr.jsx(pr,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_t.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_t.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_t.GREEN_PALE,boxShadow:`0 0 0 3px ${Ul(_t.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_t.BLUE_PALE,boxShadow:`0 0 0 3px ${Ul(_t.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_t.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_t.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:rr.jsx(vf,{}),checkedIcon:rr.jsx(ur,{}),indeterminateIcon:rr.jsx(cr,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ft,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_t.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_t.GREYSCALE_0_55,color:_t.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:_t.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_t.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_t.GREYSCALE_0_55,"&:hover":{color:_t.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:_t.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_t.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Nt,color:_t.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$t},secondary:{fontSize:qt,color:_t.GREYSCALE_45,fontWeight:Bt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Nt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Nt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_t.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:qt,borderBottom:`solid 1px ${_t.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Nt,color:_t.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_t.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_t.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_t.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:_t.RED}}},"&.Mui-focusVisible":{backgroundColor:_t.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:_t.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:_t.GREEN,height:"24px","&.Mui-disabled":{color:_t.GREYSCALE_0_15}},rail:{backgroundColor:_t.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_t.GREYSCALE_0_05}`,borderRadius:Ft,boxShadow:`inset 0px 0px 0px 1px ${_t.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_t.GREYSCALE_0_05}`,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:_t.WHITE,boxShadow:`0px 1px 2px 0px ${_t.GREYSCALE_0_15}, 0px 0px 0px 1px ${_t.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ft,boxShadow:`0 2px 4px 0 ${_t.GREYSCALE_0_30}, 0 0 0 1px ${_t.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_t.GREYSCALE_0_15}, 0 0 0 1px ${_t.GREYSCALE_0_06}, 0 0 0 2px ${_t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_t.GREYSCALE_0_15}, 0 0 0 1px ${_t.GREYSCALE_0_06}, 0 0 0 2px ${_t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_t.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_t.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_t.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_t.GREYSCALE_0_15},markLabel:{color:_t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_t.WHITE,color:_t.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:_t.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_t.GREEN_PALE,boxShadow:`0 0 0 3px ${Ul(_t.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_t.BLUE_PALE,boxShadow:`0 0 0 3px ${Ul(_t.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_t.GREYSCALE_0_15,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:_t.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Nt,fontWeight:$t,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_t.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_t.MISC_FOCUS_BORDER}`,backgroundColor:_t.GREYSCALE_0_03,borderRadius:Ft},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_t.GREYSCALE_25,"&.Mui-selected":{color:_t.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Nt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ft,"&:hover":{backgroundColor:_t.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${_t.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${_t.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ft,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:_t.GREYSCALE_0_05},"&:hover":{backgroundColor:_t.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_t.GREYSCALE_85}`,borderRight:`1px solid ${_t.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$t,backgroundColor:_t.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:_t.GREYSCALE_98,borderBottom:`1px solid ${_t.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_t.GREYSCALE_85}`,borderTop:`1px solid ${_t.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_t.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_t.GREYSCALE_0_05,"&:hover":{backgroundColor:_t.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_t.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>rr.jsx(fr,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${_t.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Nt,borderRadius:Ft,padding:"7px 16px",border:`1px solid ${_t.GREYSCALE_0_15}`,backgroundColor:_t.GREYSCALE_100_60,color:_t.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_t.GREYSCALE_0_10,border:`1px solid ${_t.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_t.GREYSCALE_0_03,border:`1px solid ${_t.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_t.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_t.MISC_FOCUS_BORDER}`,border:`1px solid ${_t.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_t.GREYSCALE_25,backgroundColor:_t.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_t.GREYSCALE_0_10,border:`1px solid ${_t.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:qt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Nt,borderRadius:Ft}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:_t.GREYSCALE_20},tooltip:{backgroundColor:_t.GREYSCALE_20,fontSize:qt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...yf}:{}}))(t);const Sf=e=>({mode:"light",primary:{ultraLight:_t.GREEN_ULTRA_LIGHT,light:_t.GREEN_PALE,main:_t.GREEN,dark:_t.GREEN_DARK,extraDark:_t.GREEN_EXTRA_DARK,contrastText:_t.WHITE},secondary:{ultraLight:_t.BLUE_ULTRA_LIGHT,light:_t.BLUE_PALE,main:_t.BLUE,dark:_t.BLUE_DARK,extraDark:_t.BLUE_EXTRA_DARK,contrastText:_t.WHITE},error:{ultraLight:_t.RED_ULTRA_LIGHT,light:_t.RED_PALE,main:_t.RED,dark:_t.RED_DARK,extraDark:_t.RED_EXTRA_DARK,contrastText:_t.WHITE},warning:{ultraLight:_t.ORANGE_ULTRA_LIGHT,light:_t.ORANGE_PALE,main:_t.ORANGE,dark:_t.ORANGE_DARK,extraDark:_t.ORANGE_EXTRA_DARK,contrastText:_t.WHITE},success:{ultraLight:_t.GREEN_ULTRA_LIGHT,light:_t.GREEN_PALE,main:_t.GREEN,dark:_t.GREEN_DARK,extraDark:_t.GREEN_EXTRA_DARK,contrastText:_t.WHITE},info:{ultraLight:_t.BLUE_ULTRA_LIGHT,light:_t.BLUE_PALE,main:_t.BLUE,dark:_t.BLUE_DARK,extraDark:_t.BLUE_EXTRA_DARK,contrastText:_t.WHITE},text:{primary:_t.TEXT_PRIMARY,secondary:_t.TEXT_SECONDARY,disabled:_t.GREYSCALE_0_30},action:{hover:_t.GREYSCALE_0_03,hoverOpacity:.03,selected:_t.GREYSCALE_0_05,selectedOpacity:.05,focus:_t.MISC_FOCUS_BORDER},amethyst:{ultraLight:_t.WHITE,main:_t.PURPLE,light:_t.PURPLE_PALE,dark:_t.PURPLE_DARK,extraDark:_t.GREYSCALE_0_0,contrastText:_t.WHITE},background:{paper:_t.WHITE,default:_t.GREYSCALE_95},divider:_t.GREYSCALE_0_15}),Ef={...Tt},wf=((e="light",t=!1)=>((e,t=!1)=>({components:xf(0,t),palette:Sf(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Nt,fontWeightLight:Ht,fontWeightRegular:Bt,fontWeightMedium:$t,fontWeightBold:Vt,htmlFontSize:Nt,fontFamily:Wt.FONT_FAMILY,button:{fontWeight:$t,fontSize:Nt,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:Nt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:zt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:$t,lineHeight:"16px"},h6:{fontSize:Nt,fontWeight:$t,lineHeight:"16px"},caption:{color:_t.TEXT_SECONDARY},subtitle1:{fontSize:Nt,color:_t.TEXT_SECONDARY},subtitle2:{fontSize:qt,color:_t.TEXT_SECONDARY}},shape:{borderRadius:Ft}}))(0,t))().palette,Cf={TEXT:wf.text.primary,DISABLED:wf.text.disabled,HOVER:wf.action.hover,WHITE:Ef.GREYSCALE_100,BORDER_LIGHT:Ef.GREYSCALE_90,BORDER_MEDIUM:Ef.GREYSCALE_85,BORDER_HEAVY:Ef.GREYSCALE_50,DARK_MODE_TEXT:Ef.GREYSCALE_95,DARK_MODE_BORDER:Ef.GREYSCALE_95,DARK_MODE_DISABLED:Ef.GREYSCALE_70,DARK_MODE_BACKGROUND:Ef.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Ef.GREYSCALE_95,SELECTED:wf.primary.main},Rf=(e,t=Cf.TEXT,r=Cf.WHITE)=>{const n=ne(e),o=ne(t),i=ne(r);return n.isInvalid()?t:function(e,t,r){return oe(e,t)>oe(e,r)?t:r}(n,i,o).getRGB()},Af=e=>{const t=e.getStyle("","","dataColors.selected")||Cf.SELECTED,r=function(e,t){var r=ne("#FFFFFF"),n=ne(e),o=ne(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=oe(r,n),a=oe(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(t,Cf.TEXT);return{background:t,color:r}},If=(e,t)=>{const r=ne(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Pf=e=>!!e&&0===ne(e).a,Df=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Mf=e=>{const t=ne(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Lf=(e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},kf=e=>{e.stopPropagation(),e.preventDefault()},Of="#grid",Tf=(e,t,r,n=Cf.WHITE)=>e&&!Pf(e)?e:Pf(t)?r&&!Pf(r)?r:n:t,_f=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},qf=(e,t,r,n,o)=>{const i=_f(".qv-object .qv-inner-object",r),a=_f(".qv-panel-sheet",r),l=_f(Of,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Mf(s);if("none"===u)return"transparent";if(void 0===u)return;const c=ne(u);return c.setAlpha(null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Pf(p),m=!Pf(h=f?s:p)&&Rf(h,Cf.TEXT,Cf.DARK_MODE_TEXT)===Z(Cf.DARK_MODE_TEXT);var h;return{color:p,headerColor:Tf(u,p,s),isDark:m}},Nf=(t,r,a,l)=>{const s=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(r.closest(Of),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...s,background:qf(t,s,r,a,l)})),[s.name(),r,a,l,t,u])};function jf(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const zf=3;function Ff(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Hf({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=zf}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=w((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=ut(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=ut((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Ff(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Bf,$f=F;Bf=$f.createRoot,$f.hydrateRoot;const Vf="Source Sans Pro, sans-serif";function Wf(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var Gf={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Uf=({translator:e})=>(w((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Gf).forEach((t=>{e.add(Gf[t])}))}}(e)}),[e]),e),Yf="12px",Kf="nebula-table-utils-head-menu-button",Xf="nebula-table-utils-head-menu-wrapper",Jf="nebula-table-utils-head-menu",Zf="nebula-table-utils-head-menu-list-id",Qf="sn-copy-cell";let em=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const tm="nebula-table-utils-column-adjuster";let rm=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),nm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const om={darker:.15,brighter:.3,opacity:.03},im={darker:.3,brighter:.5,opacity:.05};let am=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const lm=document.createElement("textarea");function sm(e){lm.value=e,document.body.appendChild(lm),lm.select(),lm.setSelectionRange(0,lm.value.length),document.execCommand("copy"),document.body.removeChild(lm)}lm.style.position="absolute",lm.style.left="-9999px",lm.setAttribute("readonly","");const um=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{sm(r)})):sm(r))};var cm,dm;var pm=function(){if(dm)return cm;dm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return cm=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},cm}();function fm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function mm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hm(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(pm);var gm=1/.7,bm="\\s*([+-]?\\d+)\\s*",vm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ym="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xm=/^#([0-9a-f]{3,8})$/,Sm=new RegExp(`^rgb\\(${bm},${bm},${bm}\\)$`),Em=new RegExp(`^rgb\\(${ym},${ym},${ym}\\)$`),wm=new RegExp(`^rgba\\(${bm},${bm},${bm},${vm}\\)$`),Cm=new RegExp(`^rgba\\(${ym},${ym},${ym},${vm}\\)$`),Rm=new RegExp(`^hsl\\(${vm},${ym},${ym}\\)$`),Am=new RegExp(`^hsla\\(${vm},${ym},${ym},${vm}\\)$`),Im={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 Pm(){return this.rgb().formatHex()}function Dm(){return this.rgb().formatRgb()}function Mm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=xm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Lm(t):3===r?new _m(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?km(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?km(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=Sm.exec(e))?new _m(t[1],t[2],t[3],1):(t=Em.exec(e))?new _m(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wm.exec(e))?km(t[1],t[2],t[3],t[4]):(t=Cm.exec(e))?km(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rm.exec(e))?Hm(t[1],t[2]/100,t[3]/100,1):(t=Am.exec(e))?Hm(t[1],t[2]/100,t[3]/100,t[4]):Im.hasOwnProperty(e)?Lm(Im[e]):"transparent"===e?new _m(NaN,NaN,NaN,0):null}function Lm(e){return new _m(e>>16&255,e>>8&255,255&e,1)}function km(e,t,r,n){return n<=0&&(e=t=r=NaN),new _m(e,t,r,n)}function Om(e){return e instanceof hm||(e=Mm(e)),e?new _m((e=e.rgb()).r,e.g,e.b,e.opacity):new _m}function Tm(e,t,r,n){return 1===arguments.length?Om(e):new _m(e,t,r,null==n?1:n)}function _m(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function qm(){return`#${Fm(this.r)}${Fm(this.g)}${Fm(this.b)}`}function Nm(){const e=jm(this.opacity);return`${1===e?"rgb(":"rgba("}${zm(this.r)}, ${zm(this.g)}, ${zm(this.b)}${1===e?")":`, ${e})`}`}function jm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fm(e){return((e=zm(e))<16?"0":"")+e.toString(16)}function Hm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new $m(e,t,r,n)}function Bm(e){if(e instanceof $m)return new $m(e.h,e.s,e.l,e.opacity);if(e instanceof hm||(e=Mm(e)),!e)return new $m;if(e instanceof $m)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new $m(a,l,s,e.opacity)}function $m(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Vm(e){return(e=(e||0)%360)<0?e+360:e}function Wm(e){return Math.max(0,Math.min(1,e||0))}function Gm(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}fm(hm,Mm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pm,formatHex:Pm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Bm(this).formatHsl()},formatRgb:Dm,toString:Dm}),fm(_m,Tm,mm(hm,{brighter(e){return e=null==e?gm:Math.pow(gm,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _m(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _m(zm(this.r),zm(this.g),zm(this.b),jm(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:qm,formatHex:qm,formatHex8:function(){return`#${Fm(this.r)}${Fm(this.g)}${Fm(this.b)}${Fm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Nm,toString:Nm})),fm($m,(function(e,t,r,n){return 1===arguments.length?Bm(e):new $m(e,t,r,null==n?1:n)}),mm(hm,{brighter(e){return e=null==e?gm:Math.pow(gm,e),new $m(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $m(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new _m(Gm(e>=240?e-240:e+120,o,n),Gm(e,o,n),Gm(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new $m(Vm(this.h),Wm(this.s),Wm(this.l),jm(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=jm(this.opacity);return`${1===e?"hsl(":"hsla("}${Vm(this.h)}, ${100*Wm(this.s)}%, ${100*Wm(this.l)}%${1===e?")":`, ${e})`}`}}));const Um=Math.PI/180,Ym=180/Math.PI,Km=4/29,Xm=6/29,Jm=3*Xm*Xm;function Zm(e){if(e instanceof Qm)return new Qm(e.l,e.a,e.b,e.opacity);if(e instanceof oh)return ih(e);e instanceof _m||(e=Om(e));var t,r,n=nh(e.r),o=nh(e.g),i=nh(e.b),a=eh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=eh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=eh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Qm(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Qm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function eh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Jm+Km}function th(e){return e>Xm?e*e*e:Jm*(e-Km)}function rh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function oh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ih(e){if(isNaN(e.h))return new Qm(e.l,0,0,e.opacity);var t=e.h*Um;return new Qm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fm(Qm,(function(e,t,r,n){return 1===arguments.length?Zm(e):new Qm(e,t,r,null==n?1:n)}),mm(hm,{brighter(e){return new Qm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Qm(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new _m(rh(3.1338561*(t=.96422*th(t))-1.6168667*(e=1*th(e))-.4906146*(r=.82521*th(r))),rh(-.9787684*t+1.9161415*e+.033454*r),rh(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),fm(oh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof oh)return new oh(e.h,e.c,e.l,e.opacity);if(e instanceof Qm||(e=Zm(e)),0===e.a&&0===e.b)return new oh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ym;return new oh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new oh(e,t,r,null==n?1:n)}),mm(hm,{brighter(e){return new oh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new oh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ih(this).rgb()}}));var ah=e=>()=>e;function lh(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):ah(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?lh:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):ah(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Tm(e)).r,(t=Tm(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=lh(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var sh="center",uh="bottom";[{key:"NoDataExist",alignment:sh,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:sh,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:sh,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:sh},{key:"DataRangeIncludingZero",alignment:uh},{key:"LimitedData",alignment:uh},{key:"NegativeOrZeroValues",alignment:uh}].reduce((function(e,t){return e[t.key]=t,e}),{});var ch,dh=["__proto__","constructor"];function ph(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!dh.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function fh(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function mh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=gh)):void 0===t&&(t=hh);for(var r,n,o,i,a,l=new yh(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new yh(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(vh)}function hh(e){return e.children}function gh(e){return Array.isArray(e)?e[1]:null}function bh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function vh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function yh(e){this.data=e,this.depth=this.height=0,this.parent=null}yh.prototype=mh.prototype={constructor:yh,count:function(){return this.eachAfter(fh)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return mh(this).eachBefore(bh)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},ch=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},ch({exports:{}});var xh={exports:{}};self,xh.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=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(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=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(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Le});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||M(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):P(i)&&P(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!M(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=L(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,T=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,we,i(e,Se)),r(e,Ce,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,we)),r(e,Ee,i(e,Ce)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Pe=Ie;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Me={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Me,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Fe(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:je};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(r)||Pe.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Me[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Me[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Me[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:Fe(e),properties:r,layout:n})}))}function Ne(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Me[n.type]&&!n.disabled)return n}}function je(e){var t=Ne(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:Fe(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Fe(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function w(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function C(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?k():C,A=s.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:I}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),D(g,t,n),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:P}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:l,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ce(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Pe="measures",De="qDef.conditionalColoring";const Me={quarantine:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:Pe,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:De,arrayName:Pe,quarantineName:Ie})}};var Le="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ce({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:ke,itemPath:ze}),Ce({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:ke,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ce({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})}},Be={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var Sh=Et(xh.exports);const Eh="qHyperCubeDef.qMeasures",wh="measures",Ch="qHyperCubeDef.qDimensions",Rh="dimensions",Ah="qDef.representation",Ih="tableRepresentation",Ph="qDef.conditionalColoring",Dh="conditionalColoring",Mh="qMiniChartDef",Lh="miniChartDef",kh=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:rm.PixelsDefault:-1})(r,e,t)));return o},Oh=({propertyTree:e,hyperCubePath:t})=>{const r=Sh.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=kh(o,i,n);return ph(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),Sh.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Sh.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Sh.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Sh.quarantineArrayProp({properties:e,arrayPath:Ch,itemPath:Ah,arrayName:Rh,quarantineName:Ih}),Sh.quarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ah,arrayName:wh,quarantineName:Ih}),Sh.quarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ph,arrayName:wh,quarantineName:Dh}),Sh.quarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Mh,arrayName:wh,quarantineName:Lh})})(r.properties),r};const Th=/^q[A-Z]/,_h=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],qh=e=>"object"==typeof e&&null!==e,Nh=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!Th.test(e)&&!_h.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>qh(e)?Nh(e,`${o}.${t}`):e)):qh(n)&&(e[r]=Nh(n,o))})),e),jh=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:nm.Pixels,pixels:e}:{type:nm.FitToContent}}return i},zh=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i,env:a})=>{if(i&&a.flags.isEnabled("CLIENT_QCB_30812_SIMPLE_VIEW_DATA")){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}Nh(e.properties)}const l=Sh.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(Sh.conditionalShow.unquarantine(l.qProperty),i)ph(l,"qProperty.totals.show",!1),ph(l,"qProperty.usePagination",!0);else{Sh.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{Sh.unquarantineArrayProp({properties:e,arrayPath:Ch,itemPath:Ah,arrayName:Rh,quarantineName:Ih}),Sh.unquarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ah,arrayName:wh,quarantineName:Ih}),Sh.unquarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ph,arrayName:wh,quarantineName:Dh}),Sh.unquarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Mh,arrayName:wh,quarantineName:Lh})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=l.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>jh(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>jh(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(ph(l,"qProperty.qHyperCubeDef.qDimensions",o),ph(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};var Fh={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Hh(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Bh(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function $h(e){return e>0?0:1}function Vh(e){return e.translator.get("Visualizations.Descriptions.Column")}function Wh(e){return{measures:{min:$h,max:1e3,description:()=>Vh(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Hh(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Bh(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:$h,max:1e3,description:()=>Vh(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Hh(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Bh(o,n)}}}}let Gh=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e}({}),Uh=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const Yh=e=>{switch(null==e?void 0:e.type){case"url":return Gh.Link;case"image":return Gh.Image;case"indicator":return Gh.Indicator;case"miniChart":return Gh.MiniChart;default:return Gh.Text}},Kh=({args:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t,isImagesSupportedInIndentMode:r}={}})=>{var n;return null===(n=e.properties.qHyperCubeDef)||void 0===n||!n.qIndentMode||!(!t&&!r)},Xh=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,t,o)=>Kh({args:o,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}}),options(t,o,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!r||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&n)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Jh=e=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(t,r,n)=>Yh(t.qDef.representation)===Gh.Link&&Kh({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(t,r,n)=>{var o;return Yh(t.qDef.representation)===Gh.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===Uh.Dimension&&Kh({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(t,r,n)=>{var o;return Yh(t.qDef.representation)===Gh.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===Uh.Attribute&&Kh({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}}}),Zh=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>Yh(e.qDef.representation)===Gh.Image&&Kh({args:n,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:t}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:l,qIndentMode:s}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==l?void 0:l.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&s}}}}}}},Qh=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Xh({isImagesEnabled:l,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:i,isImagesSupportedInIndentMode:a}}),...Jh(i),...Zh(l,a)}},eg=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Gh.Image)),l=!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Gh.MiniChart)),s=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Gh.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Kh({args:r}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return!r&&a&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),l&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>Yh(e.qDef.representation)===Gh.Image&&Kh({args:r}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:l?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var tg,rg={};tg=rg,(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=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(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>_e});var o=r(909),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},l=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},s={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),m=g(1),h=x(c,f),b=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function E(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(r,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:f,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(h(t));if(!r.showExcludedValues)return a;var l=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:E,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return E(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=w({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=s.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?s.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(s.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[r]&&n.includes(s.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var I=i().bind(null,!0),P={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function L(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(L(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(P.generate(a,i,l)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(P.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return I({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):I(e,t)};const _=P,q=function(e,t,r){if(!e)return Promise.resolve();var n=_.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var N="accumulation";function j(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function z(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=C.getNumStepComp(r,s),p=C.getAboveComp(r,s,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var m=C.getDimComp(u,1),h=C.getDimComp(u,0),g=C.getAggrComp(f,m,h);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var B="movingAverage";function $(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function V(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=C.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),m=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",m);else{var h=C.getRangeComp("RangeSum",m),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:i})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=$(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function Y(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:s.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=Y(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=Y(t,e);return r&&!r.fullRange}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=Y(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=C.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),m=C.getDimComp(u,0),h=C.getAggrComp(p,f,m);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}(t,e);return i&&!i.disabled}}}},re=0,ne=1,oe=2,ie=0,ae=1,le=2;var se="normalization";function ue(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===se)return r[n]}function ce(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===se)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function de(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var pe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:oe};function fe(e){return 2===e?"{1}":""}function me(e,t,r){return 1===e?"{$<".concat(C.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function he(e,t){return 0===e&&t>1||2===e?"Total":""}function ge(e,t,r){return 0===e&&t>1?"<".concat(C.getDimDefWithWrapper(r),">"):""}const be={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=fe(t),s=me(t,r,n),u=""===l&&""===s?"":l||s,c=he(o,i),d=ge(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=C.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(pe).forEach((function(t){void 0===e[t]&&(e[t]=pe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ce(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:oe,options:function(r){return function(e,t,r){var n=[{value:re,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:ne,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:oe,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=de(t,0);t.splice(r,1)}return t}(ue(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ce(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return ue(t,e).selectionScope===ne}},value:{refFn:function(t){return"".concat(ce(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ue(t,e).selectionScope===ne}},dimensionalScope:{refFn:function(t){return"".concat(ce(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ie,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:ae,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=de(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=de(t,1);t.splice(r,1)}return t}(ue(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ce(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return(ue(t,e).dimensionalScope||0)===ie&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(se))return!1;var i=ue(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:fe,getFieldSelectionComp:me,getTotalComp:he,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ee="qDef.base.qLibraryId",we="qDef.qLabel",Ce="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",De="qDef.base";const Me={getExpression:function(e){var t=l(e,xe);return void 0!==t?t:l(e,ye)},getExpressionRef:function(e){return void 0!==l(e,xe)?xe:ye},getLibraryIdRef:function(e){return l(e,Ee)?Ee:Se},getLibraryId:function(e){return l(e,Ee)||l(e,Se)},getLabelRef:function(e){return l(e,De)?Re:we},getLabelExpressionRef:function(e){return l(e,De)?Ae:Ce}};var Le={initBase:function(e,t){(t||Le.isValid(e))&&(a(e,xe,l(e,ye)),a(e,Ee,l(e,Se)),a(e,Re,l(e,we)),a(e,Ae,l(e,Ce)))},restoreBase:function(e){Le.isValid(e)&&(a(e,ye,l(e,xe)),a(e,Se,l(e,Ee)),a(e,we,l(e,Re)),a(e,Ce,l(e,Ae)),l(e,Ie)&&l(e,Pe)&&a(e,Ie,l(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=l(e,xe),r=l(e,Ee);return void 0!==t||void 0!==r}};const ke=Le;function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}var Te={accumulation:H,movingAverage:G,difference:te,normalization:be,timeSeriesDecomposition:J};const _e={modifiers:Te,apply:Ne,applyModifiers:je,cleanUpMeasure:ze,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Fe,getActiveModifier:He,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:r,layout:n})}))},measureBase:Me,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ve(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Be};var qe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,s=!1;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Oe(r))return je({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Fe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:Ve(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);Ge(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;$e(t).forEach((function(e){return function(e){var t=e.measure;if(Xe({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(r++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),je({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Oe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return $e(r).forEach((function(e){return ze(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function je(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,s=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?i()(!0,{},n):n),Ge(n);var p=nt(n);return ot({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=$e(r)),!t.length)return Promise.resolve();if(!o&&!Fe({measures:t,properties:r}))return t.forEach((function(e){return ze(e)})),Promise.resolve();var s=o?void 0:nt(r);return Ze({model:n,dimensionAndFieldList:a}).then((function(e){return Qe({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Je({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;ke.isValid(t)||ke.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(a++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,n.qHyperCubeDef);var a=Me.getExpression(t),l=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Be(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Be(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ue(t)):ze(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?tt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function ze(e){!function(e){var t=Ve(e);return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&!Te[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(e)}function Fe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({modifiers:Ve(e),properties:r,layout:n})}))}function He(e){var t=Ve(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Te[n.type]&&!n.disabled)return n}}function Be(e){var t=He(e);return!t||Te[t.type].enableTotalsFunction(e)}function $e(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ve(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ge(e){$e(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&We(t)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=Ve(e);Array.isArray(t)&&t.forEach((function(t){"object"===Oe(t)&&(t.disabled||!Te[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ye(e){return e.base||e.qDef&&e.qDef.base}function Ke(e){var t=Ye(e);return e.qLibraryId||t&&t.qLibraryId}function Xe(e){var t=e.measure,r=e.properties,n=e.layout;return!Ke(t)&&Je({modifiers:Ve(t),properties:r,layout:n})}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Oe(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ze(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Qe(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a})).catch((function(){return null}))}function et(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function tt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),et)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function rt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=$e(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ve(t);if(Je({modifiers:n,properties:e})){var i=Ke(t);i&&r.push(i),o=o||rt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ot(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ve&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ve),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}tg.default=n.default,Object.defineProperty(tg,"__esModule",{value:!0})})();var ng=Et(rg);const og={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},ig={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},ag=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!ng.hasActiveModifiers({measures:[e],properties:t.properties})||ng.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!==(n=e.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},lg={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nm.Auto,translation:"Common.Auto"},{value:nm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nm.Pixels,translation:"Object.Table.Column.Pixels"},{value:nm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===nm.Pixels},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(rm.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===nm.Percentage},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(rm.PercentageMax,e.qDef.columnWidth.percentage)))}}},sg=()=>({...og,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...ig,...lg}),ug={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},cg=e=>{var t,r;const n=null===(t=e.anything.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:ag(e)}},dg=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:ug},presentation:{type:"items",translation:"properties.presentation",items:{...sg(),...Qh(e)}}}}}),pg=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:cg(e)},presentation:{type:"items",translation:"properties.presentation",items:{...sg(),...eg(e,[Gh.Image,Gh.Indicator,Gh.MiniChart])}}}}}),fg=e=>({...dg(e),...pg(e)}),mg=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...fg(e)}}),hg=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...fg(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),gg={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},bg=e=>e.flags.isEnabled("CLIENT_IM_7170_TABLE_HIDE_HEADER")?{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1}:void 0,vg=e=>{if(e.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP"))return{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}},yg=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show(e){var t;return!(null!==(t=e.totals)&&void 0!==t&&t.show)}},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},xg=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Sg=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Eg=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Sg(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ue(n).filter((e=>!s.includes(e))).map((e=>Sg(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),wg=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Cg=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Sg(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...wg.filter((e=>!a.includes(e))).map((e=>Sg(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Rg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Eg({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Cg({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:xg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:xg(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Cf.WHITE:Cf.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Ag=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:xg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:xg(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),Ig=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},Pg=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},Dg=e=>e.isEnabled("CLIENT_VNA_10_ZEBRA_STRIPES")?{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:Pg,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:Pg,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:Pg,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:Pg,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}:void 0,Mg={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==(null==e?void 0:e.content)&&(e.content.rowHeight=void 0)}},Lg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...Mg},border:xg("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Cf.BORDER_MEDIUM})),divider:xg("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Cf.BORDER_HEAVY}))}}}}),kg=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Og={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:kg,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:kg,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Tg=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,_g=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:Rg({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Ig,disableNoneCallback:Tg}),dimensionValueSection:Rg({section:"dimensionValues",translator:t,flags:e,getThemeValue:Ig}),measureValueSection:Rg({section:"measureValues",translator:t,flags:e,getThemeValue:Ig}),totalRowSection:Rg({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Ig,disableNoneCallback:Tg}),nullValues:Ag({section:"nullValues",fallbackBackground:Cf.NULL_VALUE_BACKGROUND,getThemeValue:Ig}),grid:Lg(e),hoverEffectSection:Og,zebraStripes:Dg(e)}}]}),qg=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[_g(e),yg(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},bg(e),vg(e)]},...gg}}),Ng={uses:"sorting"},jg={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},zg=e=>{var t;const{flags:r}=e;return{type:"items",component:"accordion",items:{data:(null===(t=r.isPreviewToggleEnabled)||void 0===t?void 0:t.call(r,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1?hg(e):mg(e),sorting:Ng,addOns:jg,settings:qg(e)}}};function Fg(e){var t,r;return{definition:zg(e),exploration:Fh,data:Wh(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,r,n,o,i){const a={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return zh({exportFormat:t,initialProperties:r,extension:n,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>Oh({propertyTree:e,hyperCubePath:t})}}const Hg=(t,r)=>e((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{var i;const a=n?o:o-e.qDimensionInfo.length,l=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,s=null===(i=e[n?"qDimensionInfo":"qMeasureInfo"].at(a))||void 0===i?void 0:i.columnWidth,u=s?{qPath:l,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:l,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)})(t,r)),[t,r]),Bg=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),$g=[];for(let e=0;e<256;++e)$g.push((e+256).toString(16).slice(1));let Vg;const Wg=new Uint8Array(16);function Gg(){if(!Vg){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Vg=crypto.getRandomValues.bind(crypto)}return Vg(Wg)}var Ug={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Yg(e,t,r){if(Ug.randomUUID&&!e)return Ug.randomUUID();const n=(e=e||{}).random||(e.rng||Gg)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return($g[e[t+0]]+$g[e[t+1]]+$g[e[t+2]]+$g[e[t+3]]+"-"+$g[e[t+4]]+$g[e[t+5]]+"-"+$g[e[t+6]]+$g[e[t+7]]+"-"+$g[e[t+8]]+$g[e[t+9]]+"-"+$g[e[t+10]]+$g[e[t+11]]+$g[e[t+12]]+$g[e[t+13]]+$g[e[t+14]]+$g[e[t+15]]).toLowerCase()}(n)}const Kg=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:Yg()},Xg=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:Kg()},Jg=e=>"number"==typeof e&&!Number.isNaN(+e),Zg=e=>Jg(e.qNum),Qg=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tb(e,t,r){return t=ib(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lb()?Reflect.construct(t,r||[],ib(e).constructor):t.apply(e,r))}function rb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cb(n.key),n)}}function ob(e,t,r){return t&&nb(e.prototype,t),r&&nb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ib(e){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ib(e)}function ab(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sb(e,t)}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lb=function(){return!!e})()}function sb(e,t){return sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sb(e,t)}function ub(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eb(e,t):void 0}}(e,t)||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.")}()}function cb(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function db(e){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(e)}var pb={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:fb(e),value:fb(t),useEqualSign:r}}(r,o,i))}})),t}};function fb(e){try{return decodeURIComponent(e)}catch(t){return e}}function mb(e){if(!(this instanceof mb))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return pb.fromSearchString(t.search)}}})}function hb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}mb.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},mb.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=hb((t=e[n]).key),t.value?r+="=".concat(hb(t.value)):r+=t.useEqualSign?"=":"";return r};var gb,bb=function(){return ob((function e(t){rb(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),vb=function(){return ob((function e(){rb(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new bb(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),yb=function(e){return e>=0&&e<=1114111},xb=function(e){return e.match(/[\s]/)},Sb=function(){function e(){return rb(this,e),tb(this,e,arguments)}return ab(e,vb),ob(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!xb(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return yb(a)?String.fromCharCode(a):"�"}}])}(),Eb=function(){function e(t,r){rb(this,e),this._key=t,this._value=r}return ob(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),wb=function(){function e(){rb(this,e)}return ob(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Eb.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Eb.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Eb.newInstanceIfNeeded(e,t,this._value)}}])}(),Cb=function(){return ob((function e(){rb(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new wb);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),Rb=function(){var e,t,r,n=[],o=[],i=new Cb;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Ab=function(){function e(){return rb(this,e),tb(this,e,arguments)}return ab(e,vb),ob(e,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,Rb.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=Rb.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&yb(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&yb(n)?String.fromCharCode(n):null}}])}(),Ib=function(){function e(){return rb(this,e),tb(this,e,arguments)}return ab(e,vb),ob(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),yb(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),Pb=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(gb=document.createElement("div"));var Db=Array.prototype.indexOf,Mb=[",",".","_"," "],Lb=[",",".","-","_"," "],kb={width:["%"],height:["%"]},Ob={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Tb={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Ob.image,"background-color":Ob.color,"border-color":Ob.color,"border-image":Ob.image,color:Ob.color,icon:Ob.image,"list-style-image":Ob.image,"outline-color":Ob.color},_b={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qb(e,t,r){var n;if(t){if(Db)return Db.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function Nb(e){if(null==e)return"";var t,r=document.createTextNode(e);return gb.appendChild(r),t=gb.innerHTML,gb.removeChild(r),t}function jb(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Fb(e).toLowerCase(),t=Fb(t),qb(e,_b.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<_b.attr_val;i++)if(t.toLowerCase().match(_b.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=kb[e])||(n=Lb),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&qb(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function zb(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Fb(e).toLowerCase(),t=Fb(t),qb(e,_b.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<_b.css_val.length;n++)if(t.toLowerCase().indexOf(_b.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Tb[e])||(o=Ob.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&qb(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Fb(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Ab,new Ib,new Sb];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Hb=[],Bb=0;Bb<255;Bb++)Hb[Bb]=Bb>=48&&Bb<=57||Bb>=65&&Bb<=90||Bb>=97&&Bb<=122?null:Bb.toString(16);var $b=function(e){return Nb(e.unsafe)},Vb=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=zb(t,r[t],!0),i+=zb(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Wb=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=jb(i,t[i],!0),o+=jb(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Gb(e,t){throw new Error(t)}var Ub={canonicalize:Fb,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===db(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?$b(e):"css"===e.context?(null!=e.map&&"object"!==db(e.map)&&Gb(this,"Invalid parameter type"),Vb(e)):"attr"===e.context?(null!=e.map&&"object"!==db(e.map)&&Gb(this,"Invalid parameter type"),Wb(e)):void Gb(this,"Invalid parameter type")},encodeForAttr:jb,encodeForAttr2:function(e){return jb("nonsens",e,!0)},encodeForCSS:zb,encodeForHref:function(e){Fb(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new mb(e),r=mb.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+mb.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Mb),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),qb(o,t)>=0||null==Hb[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Nb,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Fb(t).toLowerCase():Gb(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=ub(null!==(t=Pb.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const Yb=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Kb=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},Xb=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Ub.isSafeDataURL(t)?{type:Gh.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Kb(n,a),labelStructure:o,imageBox:i}:{type:Gh.Text,url:void 0,text:e,labelStructure:o},Jb=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Gh.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Gh.MiniChart,text:n,miniChart:a}},Zb=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Uh.Attribute||null==r?void 0:r.urlLabel},Qb=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Gh.Link,url:Ub.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Gh.Text,url:void 0,text:t,labelStructure:e}}},ev=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s})=>{var u,c,d,p,f,m;const h=Yh(t),g=l(e);return h!==Gh.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(u=n.anything.sense)&&void 0!==u&&null!==(c=u.isUnsupportedFeature)&&void 0!==c&&c.call(u,"tableImages")?h===Gh.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Uh.Attribute){var a;const i=Zb(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Qb({labelStructure:n,text:o||i||"",url:i})}if(i===Uh.Dimension){var l,s;const i=Zb(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Qb({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Gh.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,g):h!==Gh.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(d=n.anything.sense)&&void 0!==d&&null!==(p=d.isUnsupportedFeature)&&void 0!==p&&p.call(d,"tableIndicators")?h!==Gh.MiniChart||null!==(f=n.anything.sense)&&void 0!==f&&null!==(m=f.isUnsupportedFeature)&&void 0!==m&&m.call(f,"qMiniChartDef")?{type:Gh.Text,url:void 0,text:g,labelStructure:a}:Jb(e,t,i,g):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Gh.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,g):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===s){var d,p;const t=null===(d=Yb(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),Xb({text:n,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return Xb({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o});const s=null!==(f=null===(m=Yb(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return Xb({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}return{type:Gh.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,g,s,a)},tv=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,rv=(e,t,r,n)=>{var o,i,a;return null!==(o=null!==(i=!e&&n.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")?null===(a=r.nullValueRepresentation)||void 0===a?void 0:a.text:void 0)&&void 0!==i?i:t.qText)&&void 0!==o?o:"-"},nv=1e4;function ov(e,t){return[...t].reverse().find((t=>t*e<=nv))||Math.floor(nv/e)}function iv(e,t){var r;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[n,o,i,a,l]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(i&&(n&&o||!a&&!n)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if("bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function av(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow.at(n))||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function lv(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return Jg(null==r?void 0:r.qNum)}function sv(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const uv=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const cv=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,l=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:s,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(l,o,i);return s.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:l,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:l[t-u],p=c&&a[t].qGrouping===am.Cyclic,f=t===s[0];let m,h,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:E}=d;if(c){var w;const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=null!==(w=e.qLocked)&&void 0!==w&&w,v=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:C,textAlign:R,qAttrExprInfo:A,qSortIndicator:I,qReverseSort:P,qApprMaxGlyphCount:D,columnWidth:M,qLibraryId:L}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:L,pageColIdx:r,qApprMaxGlyphCount:D,qReverseSort:P,columnWidth:null!=M?M:{type:nm.Auto},selectionColIdx:v,isActivelySorted:f,id:Xg(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:Bg(d),sortDirection:I&&"N"!==I?I:"A",totalInfo:av(e,c,r,n),...!c&&{isTotalNumeric:lv(e,n)},...sv(R,m,c,o,i),representation:S,conditionalColoring:c?void 0:E,qMiniChart:h}}(e,n,o,u[n],t,r)))};const dv=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},pv=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||dv(e,t)};function fv(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var mv=Object.freeze({__proto__:null,default:fv}),hv="$$material";function gv(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function bv(e){if(y.isValidElement(e)||!gv(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=bv(e[r])})),t}function vv(e,t,r={clone:!0}){const n=r.clone?St({},e):e;return gv(e)&&gv(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:gv(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&gv(e[o])?n[o]=vv(e[o],t[o],r):r.clone?n[o]=gv(t[o])?bv(t[o]):t[o]:n[o]=t[o]})),n}var yv=Object.freeze({__proto__:null,default:vv,isPlainObject:gv});const xv=["values","unit","step"];function Sv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Mt(e,xv),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>St({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return St({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Ev={borderRadius:4};function wv(e,t){return t?vv(e,t,{clone:!1}):e}const Cv={xs:0,sm:600,md:900,lg:1200,xl:1536},Rv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cv[e]}px)`};function Av(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Rv;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Rv;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cv).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Iv(e){if("string"!=typeof e)throw new Error(fv(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Pv=Object.freeze({__proto__:null,default:Iv});function Dv(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Mv(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Dv(e,r)||n,t&&(o=t(o,n,e)),o}function Lv(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Dv(e.theme,n)||{};return Av(e,i,(e=>{let n=Mv(a,o,e);return e===n&&"string"==typeof e&&(n=Mv(a,o,`${t}${"default"===e?"":Iv(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const kv={m:"margin",p:"padding"},Ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_v=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Tv[e])return[e];e=Tv[e]}const[t,r]=e.split(""),n=kv[t],o=Ov[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),qv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function jv(e,t,r,n){var o;const i=null!=(o=Dv(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function zv(e){return jv(e,"spacing",8)}function Fv(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Hv(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Fv(t,r),e)),{})}(_v(r),n);return Av(e,e[r],o)}function Bv(e,t){const r=zv(e.theme);return Object.keys(e).map((n=>Hv(e,t,n,r))).reduce(wv,{})}function $v(e){return Bv(e,qv)}function Vv(e){return Bv(e,Nv)}function Wv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?wv(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Gv(e){return"number"!=typeof e?e:`${e}px solid`}function Uv(e,t){return Lv({prop:e,themeKey:"borders",transform:t})}$v.propTypes={},$v.filterProps=qv,Vv.propTypes={},Vv.filterProps=Nv;const Yv=Uv("border",Gv),Kv=Uv("borderTop",Gv),Xv=Uv("borderRight",Gv),Jv=Uv("borderBottom",Gv),Zv=Uv("borderLeft",Gv),Qv=Uv("borderColor"),ey=Uv("borderTopColor"),ty=Uv("borderRightColor"),ry=Uv("borderBottomColor"),ny=Uv("borderLeftColor"),oy=Uv("outline",Gv),iy=Uv("outlineColor"),ay=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jv(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Fv(t,e)});return Av(e,e.borderRadius,r)}return null};ay.propTypes={},ay.filterProps=["borderRadius"],Wv(Yv,Kv,Xv,Jv,Zv,Qv,ey,ty,ry,ny,ay,oy,iy);const ly=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jv(e.theme,"spacing",8),r=e=>({gap:Fv(t,e)});return Av(e,e.gap,r)}return null};ly.propTypes={},ly.filterProps=["gap"];const sy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jv(e.theme,"spacing",8),r=e=>({columnGap:Fv(t,e)});return Av(e,e.columnGap,r)}return null};sy.propTypes={},sy.filterProps=["columnGap"];const uy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jv(e.theme,"spacing",8),r=e=>({rowGap:Fv(t,e)});return Av(e,e.rowGap,r)}return null};uy.propTypes={},uy.filterProps=["rowGap"];function cy(e,t){return"grey"===t?t:e}Wv(ly,sy,uy,Lv({prop:"gridColumn"}),Lv({prop:"gridRow"}),Lv({prop:"gridAutoFlow"}),Lv({prop:"gridAutoColumns"}),Lv({prop:"gridAutoRows"}),Lv({prop:"gridTemplateColumns"}),Lv({prop:"gridTemplateRows"}),Lv({prop:"gridTemplateAreas"}),Lv({prop:"gridArea"}));function dy(e){return e<=1&&0!==e?100*e+"%":e}Wv(Lv({prop:"color",themeKey:"palette",transform:cy}),Lv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cy}),Lv({prop:"backgroundColor",themeKey:"palette",transform:cy}));const py=Lv({prop:"width",transform:dy}),fy=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Cv[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:dy(t)}};return Av(e,e.maxWidth,t)}return null};fy.filterProps=["maxWidth"];const my=Lv({prop:"minWidth",transform:dy}),hy=Lv({prop:"height",transform:dy}),gy=Lv({prop:"maxHeight",transform:dy}),by=Lv({prop:"minHeight",transform:dy});Lv({prop:"size",cssProperty:"width",transform:dy}),Lv({prop:"size",cssProperty:"height",transform:dy});Wv(py,fy,my,hy,gy,by,Lv({prop:"boxSizing"}));const vy={border:{themeKey:"borders",transform:Gv},borderTop:{themeKey:"borders",transform:Gv},borderRight:{themeKey:"borders",transform:Gv},borderBottom:{themeKey:"borders",transform:Gv},borderLeft:{themeKey:"borders",transform:Gv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ay},color:{themeKey:"palette",transform:cy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cy},backgroundColor:{themeKey:"palette",transform:cy},p:{style:Vv},pt:{style:Vv},pr:{style:Vv},pb:{style:Vv},pl:{style:Vv},px:{style:Vv},py:{style:Vv},padding:{style:Vv},paddingTop:{style:Vv},paddingRight:{style:Vv},paddingBottom:{style:Vv},paddingLeft:{style:Vv},paddingX:{style:Vv},paddingY:{style:Vv},paddingInline:{style:Vv},paddingInlineStart:{style:Vv},paddingInlineEnd:{style:Vv},paddingBlock:{style:Vv},paddingBlockStart:{style:Vv},paddingBlockEnd:{style:Vv},m:{style:$v},mt:{style:$v},mr:{style:$v},mb:{style:$v},ml:{style:$v},mx:{style:$v},my:{style:$v},margin:{style:$v},marginTop:{style:$v},marginRight:{style:$v},marginBottom:{style:$v},marginLeft:{style:$v},marginX:{style:$v},marginY:{style:$v},marginInline:{style:$v},marginInlineStart:{style:$v},marginInlineEnd:{style:$v},marginBlock:{style:$v},marginBlockStart:{style:$v},marginBlockEnd:{style:$v},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ly},rowGap:{style:uy},columnGap:{style:sy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dy},maxWidth:{style:fy},minWidth:{transform:dy},height:{transform:dy},maxHeight:{transform:dy},minHeight:{transform:dy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yy(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Dv(r,l)||{};if(u)return u(o);return Av(o,t,(t=>{let r=Mv(c,s,t);return t===r&&"string"==typeof t&&(r=Mv(c,s,`${e}${"default"===t?"":Iv(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:vy;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=wv(s,e(r,o,i,a));else{const e=Av({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=wv(s,e):s[r]=t({sx:o,theme:i})}else s=wv(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const xy=yy();function Sy(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}xy.filterProps=["sx"];const Ey=["breakpoints","palette","spacing","shape"];function wy(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Mt(e,Ey),l=Sv(r),s=function(e=8){if(e.mui)return e;const t=zv({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=vv({breakpoints:l,direction:"ltr",components:{},palette:St({mode:"light"},n),spacing:s,shape:St({},Ev,i)},a);return u.applyStyles=Sy,u=t.reduce(((e,t)=>vv(e,t)),u),u.unstable_sxConfig=St({},vy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xy({sx:e,theme:this})},u}var Cy=Object.freeze({__proto__:null,default:wy,private_createBreakpoints:Sv,unstable_applyStyles:Sy});function Ry(e=null){const t=y.useContext(Di);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ay=wy();const Iy=["sx"];function Py(e){const{sx:t}=e,r=Mt(e,Iy),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:vy;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return gv(r)?St({},n,r):n}:St({},n,t),St({},o,{sx:i})}var Dy=Object.freeze({__proto__:null,default:xy,extendSxProp:Py,unstable_createStyleFunctionSx:yy,unstable_defaultSxConfig:vy});const My=e=>e,Ly=(()=>{let e=My;return{configure(t){e=t},generate:t=>e(t),reset(){e=My}}})(),ky=["className","component"];const Oy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ty(e,t,r="Mui"){const n=Oy[t];return n?`${r}-${n}`:`${Ly.generate(e)}-${t}`}function _y(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ty(e,t,r)})),n}const qy=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ny(e){const t=`${e}`.match(qy);return t&&t[1]||""}function jy(e,t=""){return e.displayName||e.name||Ny(e)||t}function zy(e,t,r){const n=jy(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Fy=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return jy(e,"Component");if("object"==typeof e)switch(e.$$typeof){case pa.ForwardRef:return zy(e,e.render,"ForwardRef");case pa.Memo:return zy(e,e.type,"memo");default:return}}},getFunctionName:Ny});function Hy(e,t){const r=St({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=St({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=St({},i),Object.keys(o).forEach((e=>{r[n][e]=Hy(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const By="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function $y(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Vy=Object.freeze({__proto__:null,default:$y});function Wy(e){if(e.type)return e;if("#"===e.charAt(0))return Wy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(fv(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(fv(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Gy(e,t){return e=Wy(e),t=function(e,t=0,r=1){return $y(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Uy(e){const t=y.useRef(e);return By((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Yy(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const Ky={};const Xy=[];class Jy{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Jy}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Zy(){const e=function(e,t){const r=y.useRef(Ky);return r.current===Ky&&(r.current=e(t)),r}(Jy.create).current;return function(e){y.useEffect(e,Xy)}(e.disposeEffect),e}let Qy=!0,ex=!1;const tx=new Jy,rx={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function nx(e){e.metaKey||e.altKey||e.ctrlKey||(Qy=!0)}function ox(){Qy=!1}function ix(){"hidden"===this.visibilityState&&ex&&(Qy=!0)}function ax(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Qy||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!rx[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function lx(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",nx,!0),t.addEventListener("mousedown",ox,!0),t.addEventListener("pointerdown",ox,!0),t.addEventListener("touchstart",ox,!0),t.addEventListener("visibilitychange",ix,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ax(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ex=!0,tx.start(100,(()=>{ex=!1})),t.current=!1,!0)},ref:e}}function sx(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const ux=y.createContext(null);function cx(){return y.useContext(ux)}var dx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function px(e){const{children:t,theme:r}=e,n=cx(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return St({},e,t)}(n,r);return null!=e&&(e[dx]=null!==n),e}),[r,n]);return rr.jsx(ux.Provider,{value:o,children:t})}const fx=["value"],mx=y.createContext();function hx(e){let{value:t}=e,r=Mt(e,fx);return rr.jsx(mx.Provider,St({value:null==t||t},r))}const gx=y.createContext(void 0);function bx({value:e,children:t}){return rr.jsx(gx.Provider,{value:e,children:t})}function vx({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Hy(o.defaultProps,n):o.styleOverrides||o.variants?n:Hy(o,n)}({props:e,name:t,theme:{components:y.useContext(gx)}})}const yx={};function xx(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?St({},t,{[e]:i}):i;return n?()=>a:a}return St({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Sx(e){const{children:t,theme:r,themeId:n}=e,o=Ry(yx),i=cx()||yx,a=xx(n,o,r),l=xx(n,i,r,!0),s="rtl"===a.direction;return rr.jsx(px,{theme:l,children:rr.jsx(Di.Provider,{value:a,children:rr.jsx(hx,{value:s,children:rr.jsx(bx,{value:null==a?void 0:a.components,children:t})})})})}var Ex,wx={},Cx={exports:{}};(Ex=Cx).exports=function(e){return e&&e.__esModule?e:{default:e}},Ex.exports.__esModule=!0,Ex.exports.default=Ex.exports;var Rx=Cx.exports,Ax=wt(mv),Ix=wt(Vy),Px=Rx;Object.defineProperty(wx,"__esModule",{value:!0});var Dx=wx.alpha=Bx;wx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Nx(e),a=Nx(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return zx({type:"rgb",values:l})},wx.colorChannel=void 0;var Mx=wx.darken=$x;wx.decomposeColor=Nx,wx.emphasize=Wx;var Lx=wx.getContrastRatio=function(e,t){const r=Hx(e),n=Hx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};wx.getLuminance=Hx,wx.hexToRgb=qx,wx.hslToRgb=Fx;var kx=wx.lighten=Vx;wx.private_safeAlpha=function(e,t,r){try{return Bx(e,t)}catch(t){return e}},wx.private_safeColorChannel=void 0,wx.private_safeDarken=function(e,t,r){try{return $x(e,t)}catch(t){return e}},wx.private_safeEmphasize=function(e,t,r){try{return Wx(e,t)}catch(t){return e}},wx.private_safeLighten=function(e,t,r){try{return Vx(e,t)}catch(t){return e}},wx.recomposeColor=zx,wx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Nx(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Ox=Px(Ax),Tx=Px(Ix);function _x(e,t=0,r=1){return(0,Tx.default)(e,t,r)}function qx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Nx(e){if(e.type)return e;if("#"===e.charAt(0))return Nx(qx(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Ox.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Ox.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const jx=e=>{const t=Nx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};wx.colorChannel=jx;function zx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Fx(e){e=Nx(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),zx({type:l,values:s})}function Hx(e){let t="hsl"===(e=Nx(e)).type||"hsla"===e.type?Nx(Fx(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bx(e,t){return e=Nx(e),t=_x(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,zx(e)}function $x(e,t){if(e=Nx(e),t=_x(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return zx(e)}function Vx(e,t){if(e=Nx(e),t=_x(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return zx(e)}function Wx(e,t=.15){return Hx(e)>.5?$x(e,t):Vx(e,t)}wx.private_safeColorChannel=(e,t)=>{try{return jx(e)}catch(t){return e}};const Gx={black:"#000",white:"#fff"},Ux={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yx="#f3e5f5",Kx="#ce93d8",Xx="#ba68c8",Jx="#ab47bc",Zx="#9c27b0",Qx="#7b1fa2",eS="#e57373",tS="#ef5350",rS="#f44336",nS="#d32f2f",oS="#c62828",iS="#ffb74d",aS="#ffa726",lS="#ff9800",sS="#f57c00",uS="#e65100",cS="#e3f2fd",dS="#90caf9",pS="#42a5f5",fS="#1976d2",mS="#1565c0",hS="#4fc3f7",gS="#29b6f6",bS="#03a9f4",vS="#0288d1",yS="#01579b",xS="#81c784",SS="#66bb6a",ES="#4caf50",wS="#388e3c",CS="#2e7d32",RS="#1b5e20",AS=["mode","contrastThreshold","tonalOffset"],IS={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Gx.white,default:Gx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},PS={text:{primary:Gx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Gx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function DS(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=kx(e.main,o):"dark"===t&&(e.dark=Mx(e.main,i)))}function MS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Mt(e,AS),i=e.primary||function(e="light"){return"dark"===e?{main:dS,light:cS,dark:pS}:{main:fS,light:pS,dark:mS}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Kx,light:Yx,dark:Jx}:{main:Zx,light:Xx,dark:Qx}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rS,light:eS,dark:nS}:{main:nS,light:tS,dark:oS}}(t),s=e.info||function(e="light"){return"dark"===e?{main:gS,light:hS,dark:vS}:{main:vS,light:bS,dark:yS}}(t),u=e.success||function(e="light"){return"dark"===e?{main:SS,light:xS,dark:wS}:{main:CS,light:ES,dark:RS}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:aS,light:iS,dark:sS}:{main:"#ed6c02",light:lS,dark:uS}}(t);function d(e){return Lx(e,PS.text.primary)>=r?PS.text.primary:IS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=St({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(fv(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(fv(12,t?` (${t})`:"",JSON.stringify(e.main)));return DS(e,"light",o,n),DS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:PS,light:IS};return vv(St({common:St({},Gx),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Ux,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const LS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const kS={textTransform:"uppercase"},OS='"Roboto", "Helvetica", "Arial", sans-serif';function TS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=OS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Mt(r,LS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return St({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===OS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,kS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,kS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vv(St({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function _S(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const qS=["none",_S(0,2,1,-1,0,1,1,0,0,1,3,0),_S(0,3,1,-2,0,2,2,0,0,1,5,0),_S(0,3,3,-2,0,3,4,0,0,1,8,0),_S(0,2,4,-1,0,4,5,0,0,1,10,0),_S(0,3,5,-1,0,5,8,0,0,1,14,0),_S(0,3,5,-1,0,6,10,0,0,1,18,0),_S(0,4,5,-2,0,7,10,1,0,2,16,1),_S(0,5,5,-3,0,8,10,1,0,3,14,2),_S(0,5,6,-3,0,9,12,1,0,3,16,2),_S(0,6,6,-3,0,10,14,1,0,4,18,3),_S(0,6,7,-4,0,11,15,1,0,4,20,3),_S(0,7,8,-4,0,12,17,2,0,5,22,4),_S(0,7,8,-4,0,13,19,2,0,5,24,4),_S(0,7,9,-4,0,14,21,2,0,5,26,4),_S(0,8,9,-5,0,15,22,2,0,6,28,5),_S(0,8,10,-5,0,16,24,2,0,6,30,5),_S(0,8,11,-5,0,17,26,2,0,6,32,5),_S(0,9,11,-5,0,18,28,2,0,7,34,6),_S(0,9,12,-6,0,19,29,2,0,7,36,6),_S(0,10,13,-6,0,20,31,3,0,8,38,7),_S(0,10,13,-6,0,21,33,3,0,8,40,7),_S(0,10,14,-6,0,22,35,3,0,8,42,7),_S(0,11,14,-7,0,23,36,3,0,9,44,8),_S(0,11,15,-7,0,24,38,3,0,9,46,8)],NS=["duration","easing","delay"],jS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FS(e){return`${Math.round(e)}ms`}function HS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function BS(e){const t=St({},jS,e.easing),r=St({},zS,e.duration);return St({getAutoHeightDuration:HS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Mt(n,NS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:FS(o)} ${i} ${"string"==typeof a?a:FS(a)}`)).join(",")}},e,{easing:t,duration:r})}const $S={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},VS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function WS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Mt(e,VS);if(e.vars)throw new Error(fv(18));const l=MS(n),s=wy(e);let u=vv(s,{mixins:(c=s.breakpoints,d=r,St({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:qS.slice(),typography:TS(l,i),transitions:BS(o),zIndex:St({},$S)});var c,d;return u=vv(u,a),u=t.reduce(((e,t)=>vv(e,t)),u),u.unstable_sxConfig=St({},vy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xy({sx:e,theme:this})},u}const GS=WS();var US,YS={},KS={exports:{}};var XS,JS={exports:{}};var ZS=wt(Wi),QS=wt(yv),eE=wt(Pv),tE=wt(Fy),rE=wt(Cy),nE=wt(Dy),oE=Rx;Object.defineProperty(YS,"__esModule",{value:!0});var iE=YS.default=function(e={}){const{themeId:t,defaultTheme:r=bE,rootShouldForwardProp:n=gE,slotShouldForwardProp:o=gE}=e,i=e=>(0,dE.default)((0,aE.default)({},e,{theme:yE((0,aE.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,sE.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=xE(vE(s))}=a,p=(0,lE.default)(a,mE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=gE;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,sE.default)(e,(0,aE.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,uE.isPlainObject)(e)?n=>SE(e,(0,aE.default)({},n,{theme:yE({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=yE((0,aE.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=SE(r,(0,aE.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=yE((0,aE.default)({},e,{defaultTheme:r,themeId:t}));return SE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,aE.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};YS.shouldForwardProp=gE,YS.systemDefaultTheme=void 0;var aE=oE((US||(US=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(KS)),KS.exports)),lE=oE((XS||(XS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(JS)),JS.exports)),sE=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=hE(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ZS),uE=QS;oE(eE),oE(tE);var cE=oE(rE),dE=oE(nE);const pE=["ownerState"],fE=["variants"],mE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(hE=function(e){return e?r:t})(e)}function gE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const bE=YS.systemDefaultTheme=(0,cE.default)(),vE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function yE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function xE(e){return e?(t,r)=>r[e]:null}function SE(e,t){let{ownerState:r}=t,n=(0,lE.default)(t,pE);const o="function"==typeof e?e((0,aE.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>SE(e,(0,aE.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,lE.default)(o,fE);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,aE.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,aE.default)({ownerState:r},n,r)):e.style))})),t}return o}const EE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,wE=iE({themeId:hv,defaultTheme:GS,rootShouldForwardProp:EE}),CE=["theme"];function RE(e){let{theme:t}=e,r=Mt(e,CE);const n=t[hv];return rr.jsx(Sx,St({},r,{themeId:n?hv:void 0,theme:n||t}))}var AE={exports:{}};
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},ch({exports:{}});var xh={exports:{}};self,xh.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=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(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=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(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Le});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||M(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):P(i)&&P(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!M(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=L(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!M(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=L(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,T=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,we,i(e,Se)),r(e,Ce,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,we)),r(e,Ee,i(e,Ce)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Pe=Ie;function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var Me={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Me,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Fe(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:je};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===De(e)&&!e.disabled){if(r++,"object"!==De(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(r)||Pe.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Me[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Me[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Me[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:Fe(e),properties:r,layout:n})}))}function Ne(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Me[n.type]&&!n.disabled)return n}}function je(e){var t=Ne(e);return!t||Me[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:Fe(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Fe(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function w(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function C(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},M=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?k():C,A=s.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:I}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),M("qMaxStackedCells",b,v),M("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),D(g,t,n),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:P}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:l,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ce(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",Pe="measures",De="qDef.conditionalColoring";const Me={quarantine:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:Pe,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:De,arrayName:Pe,quarantineName:Ie})}};var Le="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ce({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:ke,itemPath:ze}),Ce({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:ke,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ce({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})}},Be={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var Sh=Et(xh.exports);const Eh="qHyperCubeDef.qMeasures",wh="measures",Ch="qHyperCubeDef.qDimensions",Rh="dimensions",Ah="qDef.representation",Ih="tableRepresentation",Ph="qDef.conditionalColoring",Dh="conditionalColoring",Mh="qMiniChartDef",Lh="miniChartDef",kh=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:rm.PixelsDefault:-1})(r,e,t)));return o},Oh=({propertyTree:e,hyperCubePath:t})=>{const r=Sh.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=kh(o,i,n);return ph(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),Sh.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Sh.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Sh.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Sh.quarantineArrayProp({properties:e,arrayPath:Ch,itemPath:Ah,arrayName:Rh,quarantineName:Ih}),Sh.quarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ah,arrayName:wh,quarantineName:Ih}),Sh.quarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ph,arrayName:wh,quarantineName:Dh}),Sh.quarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Mh,arrayName:wh,quarantineName:Lh})})(r.properties),r};const Th=/^q[A-Z]/,_h=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],qh=e=>"object"==typeof e&&null!==e,Nh=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!Th.test(e)&&!_h.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>qh(e)?Nh(e,`${o}.${t}`):e)):qh(n)&&(e[r]=Nh(n,o))})),e),jh=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:nm.Pixels,pixels:e}:{type:nm.FitToContent}}return i},zh=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i,env:a})=>{if(i&&a.flags.isEnabled("CLIENT_QCB_30812_SIMPLE_VIEW_DATA")){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}Nh(e.properties)}const l=Sh.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(Sh.conditionalShow.unquarantine(l.qProperty),i)ph(l,"qProperty.totals.show",!1),ph(l,"qProperty.usePagination",!0);else{Sh.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{Sh.unquarantineArrayProp({properties:e,arrayPath:Ch,itemPath:Ah,arrayName:Rh,quarantineName:Ih}),Sh.unquarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ah,arrayName:wh,quarantineName:Ih}),Sh.unquarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Ph,arrayName:wh,quarantineName:Dh}),Sh.unquarantineArrayProp({properties:e,arrayPath:Eh,itemPath:Mh,arrayName:wh,quarantineName:Lh})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=l.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>jh(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>jh(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(ph(l,"qProperty.qHyperCubeDef.qDimensions",o),ph(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};var Fh={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Hh(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Bh(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function $h(e){return e>0?0:1}function Vh(e){return e.translator.get("Visualizations.Descriptions.Column")}function Wh(e){return{measures:{min:$h,max:1e3,description:()=>Vh(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Hh(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Bh(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:$h,max:1e3,description:()=>Vh(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Hh(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Bh(o,n)}}}}let Gh=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e}({}),Uh=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const Yh=e=>{switch(null==e?void 0:e.type){case"url":return Gh.Link;case"image":return Gh.Image;case"indicator":return Gh.Indicator;case"miniChart":return Gh.MiniChart;default:return Gh.Text}},Kh=({args:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t,isImagesSupportedInIndentMode:r}={}})=>{var n;return null===(n=e.properties.qHyperCubeDef)||void 0===n||!n.qIndentMode||!(!t&&!r)},Xh=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,t,o)=>Kh({args:o,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}}),options(t,o,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!r||l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&n)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},Jh=e=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(t,r,n)=>Yh(t.qDef.representation)===Gh.Link&&Kh({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(t,r,n)=>{var o;return Yh(t.qDef.representation)===Gh.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===Uh.Dimension&&Kh({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(t,r,n)=>{var o;return Yh(t.qDef.representation)===Gh.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===Uh.Attribute&&Kh({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}}}),Zh=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>Yh(e.qDef.representation)===Gh.Image&&Kh({args:n,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:t}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:l,qIndentMode:s}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==l?void 0:l.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&s}}}}}}},Qh=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Xh({isImagesEnabled:l,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:i,isImagesSupportedInIndentMode:a}}),...Jh(i),...Zh(l,a)}},eg=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===Gh.Image)),l=!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===Gh.MiniChart)),s=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===Gh.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>Kh({args:r}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return!r&&a&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),l&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:a?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>Yh(e.qDef.representation)===Gh.Image&&Kh({args:r}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:l?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var tg,rg={};tg=rg,(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=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(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>_e});var o=r(909),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},l=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},s={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),m=g(1),h=x(c,f),b=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function E(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(r,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:f,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(h(t));if(!r.showExcludedValues)return a;var l=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:E,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return E(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=w({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=s.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?s.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(s.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[r]&&n.includes(s.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var I=i().bind(null,!0),P={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function L(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(L(a)?n.push({op:"add",path:l,value:i}):M(i)&&M(a)?n=n.concat(P.generate(a,i,l)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(P.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return I({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):I(e,t)};const _=P,q=function(e,t,r){if(!e)return Promise.resolve();var n=_.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var N="accumulation";function j(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function z(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=C.getNumStepComp(r,s),p=C.getAboveComp(r,s,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var m=C.getDimComp(u,1),h=C.getDimComp(u,0),g=C.getAggrComp(f,m,h);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var B="movingAverage";function $(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function V(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=C.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),m=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",m);else{var h=C.getRangeComp("RangeSum",m),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:i})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=$(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function Y(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:s.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=Y(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=Y(t,e);return r&&!r.fullRange}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=Y(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=C.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),m=C.getDimComp(u,0),h=C.getAggrComp(p,f,m);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}(t,e);return i&&!i.disabled}}}},re=0,ne=1,oe=2,ie=0,ae=1,le=2;var se="normalization";function ue(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===se)return r[n]}function ce(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===se)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function de(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var pe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:oe};function fe(e){return 2===e?"{1}":""}function me(e,t,r){return 1===e?"{$<".concat(C.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function he(e,t){return 0===e&&t>1||2===e?"Total":""}function ge(e,t,r){return 0===e&&t>1?"<".concat(C.getDimDefWithWrapper(r),">"):""}const be={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=fe(t),s=me(t,r,n),u=""===l&&""===s?"":l||s,c=he(o,i),d=ge(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=C.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(pe).forEach((function(t){void 0===e[t]&&(e[t]=pe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ce(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:oe,options:function(r){return function(e,t,r){var n=[{value:re,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:ne,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:oe,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=de(t,0);t.splice(r,1)}return t}(ue(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ce(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return ue(t,e).selectionScope===ne}},value:{refFn:function(t){return"".concat(ce(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ue(t,e).selectionScope===ne}},dimensionalScope:{refFn:function(t){return"".concat(ce(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ie,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:ae,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=de(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=de(t,1);t.splice(r,1)}return t}(ue(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ce(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return(ue(t,e).dimensionalScope||0)===ie&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(se))return!1;var i=ue(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:fe,getFieldSelectionComp:me,getTotalComp:he,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ee="qDef.base.qLibraryId",we="qDef.qLabel",Ce="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",De="qDef.base";const Me={getExpression:function(e){var t=l(e,xe);return void 0!==t?t:l(e,ye)},getExpressionRef:function(e){return void 0!==l(e,xe)?xe:ye},getLibraryIdRef:function(e){return l(e,Ee)?Ee:Se},getLibraryId:function(e){return l(e,Ee)||l(e,Se)},getLabelRef:function(e){return l(e,De)?Re:we},getLabelExpressionRef:function(e){return l(e,De)?Ae:Ce}};var Le={initBase:function(e,t){(t||Le.isValid(e))&&(a(e,xe,l(e,ye)),a(e,Ee,l(e,Se)),a(e,Re,l(e,we)),a(e,Ae,l(e,Ce)))},restoreBase:function(e){Le.isValid(e)&&(a(e,ye,l(e,xe)),a(e,Se,l(e,Ee)),a(e,we,l(e,Re)),a(e,Ce,l(e,Ae)),l(e,Ie)&&l(e,Pe)&&a(e,Ie,l(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=l(e,xe),r=l(e,Ee);return void 0!==t||void 0!==r}};const ke=Le;function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}var Te={accumulation:H,movingAverage:G,difference:te,normalization:be,timeSeriesDecomposition:J};const _e={modifiers:Te,apply:Ne,applyModifiers:je,cleanUpMeasure:ze,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Fe,getActiveModifier:He,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:r,layout:n})}))},measureBase:Me,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ve(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Be};var qe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,s=!1;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Oe(r))return je({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Fe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:Ve(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);Ge(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;$e(t).forEach((function(e){return function(e){var t=e.measure;if(Xe({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(r++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),je({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Oe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return $e(r).forEach((function(e){return ze(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function je(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,s=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?i()(!0,{},n):n),Ge(n);var p=nt(n);return ot({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=$e(r)),!t.length)return Promise.resolve();if(!o&&!Fe({measures:t,properties:r}))return t.forEach((function(e){return ze(e)})),Promise.resolve();var s=o?void 0:nt(r);return Ze({model:n,dimensionAndFieldList:a}).then((function(e){return Qe({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Je({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;ke.isValid(t)||ke.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(a++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,n.qHyperCubeDef);var a=Me.getExpression(t),l=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Be(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Be(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ue(t)):ze(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?tt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function ze(e){!function(e){var t=Ve(e);return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&!Te[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(e)}function Fe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({modifiers:Ve(e),properties:r,layout:n})}))}function He(e){var t=Ve(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Te[n.type]&&!n.disabled)return n}}function Be(e){var t=He(e);return!t||Te[t.type].enableTotalsFunction(e)}function $e(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ve(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ge(e){$e(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&We(t)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=Ve(e);Array.isArray(t)&&t.forEach((function(t){"object"===Oe(t)&&(t.disabled||!Te[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ye(e){return e.base||e.qDef&&e.qDef.base}function Ke(e){var t=Ye(e);return e.qLibraryId||t&&t.qLibraryId}function Xe(e){var t=e.measure,r=e.properties,n=e.layout;return!Ke(t)&&Je({modifiers:Ve(t),properties:r,layout:n})}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Oe(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ze(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Qe(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a})).catch((function(){return null}))}function et(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function tt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),et)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function rt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=$e(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ve(t);if(Je({modifiers:n,properties:e})){var i=Ke(t);i&&r.push(i),o=o||rt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ot(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ve&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ve),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}tg.default=n.default,Object.defineProperty(tg,"__esModule",{value:!0})})();var ng=Et(rg);const og={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},ig={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},ag=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!ng.hasActiveModifiers({measures:[e],properties:t.properties})||ng.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!==(n=e.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},lg={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nm.Auto,translation:"Common.Auto"},{value:nm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nm.Pixels,translation:"Object.Table.Column.Pixels"},{value:nm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===nm.Pixels},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(rm.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===nm.Percentage},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(rm.PercentageMax,e.qDef.columnWidth.percentage)))}}},sg=()=>({...og,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...ig,...lg}),ug={libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},cg=e=>{var t,r;const n=null===(t=e.anything.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:ag(e)}},dg=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:ug},presentation:{type:"items",translation:"properties.presentation",items:{...sg(),...Qh(e)}}}}}),pg=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:cg(e)},presentation:{type:"items",translation:"properties.presentation",items:{...sg(),...eg(e,[Gh.Image,Gh.Indicator,Gh.MiniChart])}}}}}),fg=e=>({...dg(e),...pg(e)}),mg=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...fg(e)}}),hg=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...fg(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),gg={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},bg=e=>e.flags.isEnabled("CLIENT_IM_7170_TABLE_HIDE_HEADER")?{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1}:void 0,vg=e=>{if(e.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP"))return{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}},yg=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show(e){var t;return!(null!==(t=e.totals)&&void 0!==t&&t.show)}},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},xg=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Sg=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Eg=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Sg(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ue(n).filter((e=>!s.includes(e))).map((e=>Sg(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),wg=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Cg=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Sg(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...wg.filter((e=>!a.includes(e))).map((e=>Sg(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Rg=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Eg({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Cg({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:xg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:xg(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Cf.WHITE:Cf.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),Ag=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:xg(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:xg(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),Ig=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},Pg=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},Dg=e=>e.isEnabled("CLIENT_VNA_10_ZEBRA_STRIPES")?{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:Pg,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:Pg,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:Pg,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:Pg,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}:void 0,Mg={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==(null==e?void 0:e.content)&&(e.content.rowHeight=void 0)}},Lg=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...Mg},border:xg("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Cf.BORDER_MEDIUM})),divider:xg("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:Cf.BORDER_HEAVY}))}}}}),kg=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Og={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:kg,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:kg,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Tg=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,_g=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:Rg({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Ig,disableNoneCallback:Tg}),dimensionValueSection:Rg({section:"dimensionValues",translator:t,flags:e,getThemeValue:Ig}),measureValueSection:Rg({section:"measureValues",translator:t,flags:e,getThemeValue:Ig}),totalRowSection:Rg({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Ig,disableNoneCallback:Tg}),nullValues:Ag({section:"nullValues",fallbackBackground:Cf.NULL_VALUE_BACKGROUND,getThemeValue:Ig}),grid:Lg(e),hoverEffectSection:Og,zebraStripes:Dg(e)}}]}),qg=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[_g(e),yg(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},bg(e),vg(e)]},...gg}}),Ng={uses:"sorting"},jg={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},zg=e=>{var t;const{flags:r}=e;return{type:"items",component:"accordion",items:{data:(null===(t=r.isPreviewToggleEnabled)||void 0===t?void 0:t.call(r,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1?hg(e):mg(e),sorting:Ng,addOns:jg,settings:qg(e)}}};function Fg(e){var t,r;return{definition:zg(e),exploration:Fh,data:Wh(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,r,n,o,i){const a={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return zh({exportFormat:t,initialProperties:r,extension:n,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>Oh({propertyTree:e,hyperCubePath:t})}}const Hg=(t,r)=>e((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{var i;const a=n?o:o-e.qDimensionInfo.length,l=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,s=null===(i=e[n?"qDimensionInfo":"qMeasureInfo"].at(a))||void 0===i?void 0:i.columnWidth,u=s?{qPath:l,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:l,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)})(t,r)),[t,r]),Bg=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),$g=[];for(let e=0;e<256;++e)$g.push((e+256).toString(16).slice(1));let Vg;const Wg=new Uint8Array(16);function Gg(){if(!Vg){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Vg=crypto.getRandomValues.bind(crypto)}return Vg(Wg)}var Ug={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Yg(e,t,r){if(Ug.randomUUID&&!e)return Ug.randomUUID();const n=(e=e||{}).random||(e.rng||Gg)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return($g[e[t+0]]+$g[e[t+1]]+$g[e[t+2]]+$g[e[t+3]]+"-"+$g[e[t+4]]+$g[e[t+5]]+"-"+$g[e[t+6]]+$g[e[t+7]]+"-"+$g[e[t+8]]+$g[e[t+9]]+"-"+$g[e[t+10]]+$g[e[t+11]]+$g[e[t+12]]+$g[e[t+13]]+$g[e[t+14]]+$g[e[t+15]]).toLowerCase()}(n)}const Kg=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:Yg()},Xg=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:Kg()},Jg=e=>"number"==typeof e&&!Number.isNaN(+e),Zg=e=>Jg(e.qNum),Qg=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tb(e,t,r){return t=ib(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lb()?Reflect.construct(t,r||[],ib(e).constructor):t.apply(e,r))}function rb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cb(n.key),n)}}function ob(e,t,r){return t&&nb(e.prototype,t),r&&nb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ib(e){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ib(e)}function ab(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sb(e,t)}function lb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lb=function(){return!!e})()}function sb(e,t){return sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sb(e,t)}function ub(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eb(e,t):void 0}}(e,t)||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.")}()}function cb(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function db(e){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(e)}var pb={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:fb(e),value:fb(t),useEqualSign:r}}(r,o,i))}})),t}};function fb(e){try{return decodeURIComponent(e)}catch(t){return e}}function mb(e){if(!(this instanceof mb))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return pb.fromSearchString(t.search)}}})}function hb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}mb.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},mb.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=hb((t=e[n]).key),t.value?r+="=".concat(hb(t.value)):r+=t.useEqualSign?"=":"";return r};var gb,bb=function(){return ob((function e(t){rb(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),vb=function(){return ob((function e(){rb(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new bb(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),yb=function(e){return e>=0&&e<=1114111},xb=function(e){return e.match(/[\s]/)},Sb=function(){function e(){return rb(this,e),tb(this,e,arguments)}return ab(e,vb),ob(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!xb(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return yb(a)?String.fromCharCode(a):"�"}}])}(),Eb=function(){function e(t,r){rb(this,e),this._key=t,this._value=r}return ob(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),wb=function(){function e(){rb(this,e)}return ob(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Eb.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Eb.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Eb.newInstanceIfNeeded(e,t,this._value)}}])}(),Cb=function(){return ob((function e(){rb(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new wb);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),Rb=function(){var e,t,r,n=[],o=[],i=new Cb;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Ab=function(){function e(){return rb(this,e),tb(this,e,arguments)}return ab(e,vb),ob(e,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,Rb.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=Rb.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&yb(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&yb(n)?String.fromCharCode(n):null}}])}(),Ib=function(){function e(){return rb(this,e),tb(this,e,arguments)}return ab(e,vb),ob(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),yb(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),Pb=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(gb=document.createElement("div"));var Db=Array.prototype.indexOf,Mb=[",",".","_"," "],Lb=[",",".","-","_"," "],kb={width:["%"],height:["%"]},Ob={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Tb={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Ob.image,"background-color":Ob.color,"border-color":Ob.color,"border-image":Ob.image,color:Ob.color,icon:Ob.image,"list-style-image":Ob.image,"outline-color":Ob.color},_b={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qb(e,t,r){var n;if(t){if(Db)return Db.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function Nb(e){if(null==e)return"";var t,r=document.createTextNode(e);return gb.appendChild(r),t=gb.innerHTML,gb.removeChild(r),t}function jb(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Fb(e).toLowerCase(),t=Fb(t),qb(e,_b.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<_b.attr_val;i++)if(t.toLowerCase().match(_b.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=kb[e])||(n=Lb),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&qb(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function zb(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Fb(e).toLowerCase(),t=Fb(t),qb(e,_b.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<_b.css_val.length;n++)if(t.toLowerCase().indexOf(_b.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Tb[e])||(o=Ob.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&qb(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Fb(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Ab,new Ib,new Sb];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Hb=[],Bb=0;Bb<255;Bb++)Hb[Bb]=Bb>=48&&Bb<=57||Bb>=65&&Bb<=90||Bb>=97&&Bb<=122?null:Bb.toString(16);var $b=function(e){return Nb(e.unsafe)},Vb=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=zb(t,r[t],!0),i+=zb(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Wb=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=jb(i,t[i],!0),o+=jb(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Gb(e,t){throw new Error(t)}var Ub={canonicalize:Fb,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===db(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?$b(e):"css"===e.context?(null!=e.map&&"object"!==db(e.map)&&Gb(this,"Invalid parameter type"),Vb(e)):"attr"===e.context?(null!=e.map&&"object"!==db(e.map)&&Gb(this,"Invalid parameter type"),Wb(e)):void Gb(this,"Invalid parameter type")},encodeForAttr:jb,encodeForAttr2:function(e){return jb("nonsens",e,!0)},encodeForCSS:zb,encodeForHref:function(e){Fb(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new mb(e),r=mb.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+mb.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Mb),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),qb(o,t)>=0||null==Hb[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Nb,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Fb(t).toLowerCase():Gb(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=ub(null!==(t=Pb.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const Yb=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Kb=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},Xb=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Ub.isSafeDataURL(t)?{type:Gh.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Kb(n,a),labelStructure:o,imageBox:i}:{type:Gh.Text,url:void 0,text:e,labelStructure:o},Jb=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Gh.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),l=i?r.qYMin:e.qMiniChart.qMin,s=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(l),Math.abs(s));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,l),maxY:Math.max(0,s)}:{minY:l,maxY:s}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Gh.MiniChart,text:n,miniChart:a}},Zb=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Uh.Attribute||null==r?void 0:r.urlLabel},Qb=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Gh.Link,url:Ub.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Gh.Text,url:void 0,text:t,labelStructure:e}}},ev=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:l=e=>e.qText,direction:s})=>{var u,c,d,p,f,m;const h=Yh(t),g=l(e);return h!==Gh.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(u=n.anything.sense)&&void 0!==u&&null!==(c=u.isUnsupportedFeature)&&void 0!==c&&c.call(u,"tableImages")?h===Gh.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===Uh.Attribute){var a;const i=Zb(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return Qb({labelStructure:n,text:o||i||"",url:i})}if(i===Uh.Dimension){var l,s;const i=Zb(null!==(l=r.urlLabel)&&void 0!==l?l:-1,e,t)||o;return n&&(n.maskedValue=i),Qb({text:i,labelStructure:n,url:null!==(s=null==n?void 0:n.originalValue)&&void 0!==s?s:o})}return{type:Gh.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,g):h!==Gh.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(d=n.anything.sense)&&void 0!==d&&null!==(p=d.isUnsupportedFeature)&&void 0!==p&&p.call(d,"tableIndicators")?h!==Gh.MiniChart||null!==(f=n.anything.sense)&&void 0!==f&&null!==(m=f.isUnsupportedFeature)&&void 0!==m&&m.call(f,"qMiniChartDef")?{type:Gh.Text,url:void 0,text:g,labelStructure:a}:Jb(e,t,i,g):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Gh.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,g):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:l,imageSetting:s,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===s){var d,p;const t=null===(d=Yb(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),Xb({text:n,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}if("label"===s){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return Xb({text:u||t||"",url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o});const s=null!==(f=null===(m=Yb(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return Xb({text:s,url:t,imageSize:a,imagePosition:l,labelStructure:i,imageBox:c,direction:o})}return{type:Gh.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,g,s,a)},tv=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,rv=(e,t,r,n)=>{var o,i,a;return null!==(o=null!==(i=!e&&n.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")?null===(a=r.nullValueRepresentation)||void 0===a?void 0:a.text:void 0)&&void 0!==i?i:t.qText)&&void 0!==o?o:"-"},nv=1e4;function ov(e,t){return[...t].reverse().find((t=>t*e<=nv))||Math.floor(nv/e)}function iv(e,t){var r;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[n,o,i,a,l]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(i&&(n&&o||!a&&!n)){if(a||"top"===l)return{atTop:!0,atBottom:!1};if("bottom"===l)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function av(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow.at(n))||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function lv(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return Jg(null==r?void 0:r.qNum)}function sv(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const uv=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const cv=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,l=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:s,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(l,o,i);return s.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:l,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:l[t-u],p=c&&a[t].qGrouping===am.Cyclic,f=t===s[0];let m,h,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:E}=d;if(c){var w;const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=null!==(w=e.qLocked)&&void 0!==w&&w,v=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:C,textAlign:R,qAttrExprInfo:A,qSortIndicator:I,qReverseSort:P,qApprMaxGlyphCount:D,columnWidth:M,qLibraryId:L}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:L,pageColIdx:r,qApprMaxGlyphCount:D,qReverseSort:P,columnWidth:null!=M?M:{type:nm.Auto},selectionColIdx:v,isActivelySorted:f,id:Xg(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:Bg(d),sortDirection:I&&"N"!==I?I:"A",totalInfo:av(e,c,r,n),...!c&&{isTotalNumeric:lv(e,n)},...sv(R,m,c,o,i),representation:S,conditionalColoring:c?void 0:E,qMiniChart:h}}(e,n,o,u[n],t,r)))};const dv=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},pv=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||dv(e,t)};function fv(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var mv=Object.freeze({__proto__:null,default:fv}),hv="$$material";function gv(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function bv(e){if(y.isValidElement(e)||!gv(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=bv(e[r])})),t}function vv(e,t,r={clone:!0}){const n=r.clone?St({},e):e;return gv(e)&&gv(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:gv(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&gv(e[o])?n[o]=vv(e[o],t[o],r):r.clone?n[o]=gv(t[o])?bv(t[o]):t[o]:n[o]=t[o]})),n}var yv=Object.freeze({__proto__:null,default:vv,isPlainObject:gv});const xv=["values","unit","step"];function Sv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Mt(e,xv),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>St({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return St({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Ev={borderRadius:4};function wv(e,t){return t?vv(e,t,{clone:!1}):e}const Cv={xs:0,sm:600,md:900,lg:1200,xl:1536},Rv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cv[e]}px)`};function Av(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Rv;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Rv;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cv).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Iv(e){if("string"!=typeof e)throw new Error(fv(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Pv=Object.freeze({__proto__:null,default:Iv});function Dv(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Mv(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Dv(e,r)||n,t&&(o=t(o,n,e)),o}function Lv(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Dv(e.theme,n)||{};return Av(e,i,(e=>{let n=Mv(a,o,e);return e===n&&"string"==typeof e&&(n=Mv(a,o,`${t}${"default"===e?"":Iv(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const kv={m:"margin",p:"padding"},Ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_v=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Tv[e])return[e];e=Tv[e]}const[t,r]=e.split(""),n=kv[t],o=Ov[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),qv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function jv(e,t,r,n){var o;const i=null!=(o=Dv(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function zv(e){return jv(e,"spacing",8)}function Fv(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Hv(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Fv(t,r),e)),{})}(_v(r),n);return Av(e,e[r],o)}function Bv(e,t){const r=zv(e.theme);return Object.keys(e).map((n=>Hv(e,t,n,r))).reduce(wv,{})}function $v(e){return Bv(e,qv)}function Vv(e){return Bv(e,Nv)}function Wv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?wv(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Gv(e){return"number"!=typeof e?e:`${e}px solid`}function Uv(e,t){return Lv({prop:e,themeKey:"borders",transform:t})}$v.propTypes={},$v.filterProps=qv,Vv.propTypes={},Vv.filterProps=Nv;const Yv=Uv("border",Gv),Kv=Uv("borderTop",Gv),Xv=Uv("borderRight",Gv),Jv=Uv("borderBottom",Gv),Zv=Uv("borderLeft",Gv),Qv=Uv("borderColor"),ey=Uv("borderTopColor"),ty=Uv("borderRightColor"),ry=Uv("borderBottomColor"),ny=Uv("borderLeftColor"),oy=Uv("outline",Gv),iy=Uv("outlineColor"),ay=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jv(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Fv(t,e)});return Av(e,e.borderRadius,r)}return null};ay.propTypes={},ay.filterProps=["borderRadius"],Wv(Yv,Kv,Xv,Jv,Zv,Qv,ey,ty,ry,ny,ay,oy,iy);const ly=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jv(e.theme,"spacing",8),r=e=>({gap:Fv(t,e)});return Av(e,e.gap,r)}return null};ly.propTypes={},ly.filterProps=["gap"];const sy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jv(e.theme,"spacing",8),r=e=>({columnGap:Fv(t,e)});return Av(e,e.columnGap,r)}return null};sy.propTypes={},sy.filterProps=["columnGap"];const uy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jv(e.theme,"spacing",8),r=e=>({rowGap:Fv(t,e)});return Av(e,e.rowGap,r)}return null};uy.propTypes={},uy.filterProps=["rowGap"];function cy(e,t){return"grey"===t?t:e}Wv(ly,sy,uy,Lv({prop:"gridColumn"}),Lv({prop:"gridRow"}),Lv({prop:"gridAutoFlow"}),Lv({prop:"gridAutoColumns"}),Lv({prop:"gridAutoRows"}),Lv({prop:"gridTemplateColumns"}),Lv({prop:"gridTemplateRows"}),Lv({prop:"gridTemplateAreas"}),Lv({prop:"gridArea"}));function dy(e){return e<=1&&0!==e?100*e+"%":e}Wv(Lv({prop:"color",themeKey:"palette",transform:cy}),Lv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cy}),Lv({prop:"backgroundColor",themeKey:"palette",transform:cy}));const py=Lv({prop:"width",transform:dy}),fy=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Cv[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:dy(t)}};return Av(e,e.maxWidth,t)}return null};fy.filterProps=["maxWidth"];const my=Lv({prop:"minWidth",transform:dy}),hy=Lv({prop:"height",transform:dy}),gy=Lv({prop:"maxHeight",transform:dy}),by=Lv({prop:"minHeight",transform:dy});Lv({prop:"size",cssProperty:"width",transform:dy}),Lv({prop:"size",cssProperty:"height",transform:dy});Wv(py,fy,my,hy,gy,by,Lv({prop:"boxSizing"}));const vy={border:{themeKey:"borders",transform:Gv},borderTop:{themeKey:"borders",transform:Gv},borderRight:{themeKey:"borders",transform:Gv},borderBottom:{themeKey:"borders",transform:Gv},borderLeft:{themeKey:"borders",transform:Gv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ay},color:{themeKey:"palette",transform:cy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cy},backgroundColor:{themeKey:"palette",transform:cy},p:{style:Vv},pt:{style:Vv},pr:{style:Vv},pb:{style:Vv},pl:{style:Vv},px:{style:Vv},py:{style:Vv},padding:{style:Vv},paddingTop:{style:Vv},paddingRight:{style:Vv},paddingBottom:{style:Vv},paddingLeft:{style:Vv},paddingX:{style:Vv},paddingY:{style:Vv},paddingInline:{style:Vv},paddingInlineStart:{style:Vv},paddingInlineEnd:{style:Vv},paddingBlock:{style:Vv},paddingBlockStart:{style:Vv},paddingBlockEnd:{style:Vv},m:{style:$v},mt:{style:$v},mr:{style:$v},mb:{style:$v},ml:{style:$v},mx:{style:$v},my:{style:$v},margin:{style:$v},marginTop:{style:$v},marginRight:{style:$v},marginBottom:{style:$v},marginLeft:{style:$v},marginX:{style:$v},marginY:{style:$v},marginInline:{style:$v},marginInlineStart:{style:$v},marginInlineEnd:{style:$v},marginBlock:{style:$v},marginBlockStart:{style:$v},marginBlockEnd:{style:$v},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ly},rowGap:{style:uy},columnGap:{style:sy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dy},maxWidth:{style:fy},minWidth:{transform:dy},height:{transform:dy},maxHeight:{transform:dy},minHeight:{transform:dy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yy(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Dv(r,l)||{};if(u)return u(o);return Av(o,t,(t=>{let r=Mv(c,s,t);return t===r&&"string"==typeof t&&(r=Mv(c,s,`${e}${"default"===t?"":Iv(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:vy;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=wv(s,e(r,o,i,a));else{const e=Av({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=wv(s,e):s[r]=t({sx:o,theme:i})}else s=wv(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const xy=yy();function Sy(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}xy.filterProps=["sx"];const Ey=["breakpoints","palette","spacing","shape"];function wy(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Mt(e,Ey),l=Sv(r),s=function(e=8){if(e.mui)return e;const t=zv({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=vv({breakpoints:l,direction:"ltr",components:{},palette:St({mode:"light"},n),spacing:s,shape:St({},Ev,i)},a);return u.applyStyles=Sy,u=t.reduce(((e,t)=>vv(e,t)),u),u.unstable_sxConfig=St({},vy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xy({sx:e,theme:this})},u}var Cy=Object.freeze({__proto__:null,default:wy,private_createBreakpoints:Sv,unstable_applyStyles:Sy});function Ry(e=null){const t=y.useContext(Di);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ay=wy();const Iy=["sx"];function Py(e){const{sx:t}=e,r=Mt(e,Iy),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:vy;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return gv(r)?St({},n,r):n}:St({},n,t),St({},o,{sx:i})}var Dy=Object.freeze({__proto__:null,default:xy,extendSxProp:Py,unstable_createStyleFunctionSx:yy,unstable_defaultSxConfig:vy});const My=e=>e,Ly=(()=>{let e=My;return{configure(t){e=t},generate:t=>e(t),reset(){e=My}}})(),ky=["className","component"];const Oy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ty(e,t,r="Mui"){const n=Oy[t];return n?`${r}-${n}`:`${Ly.generate(e)}-${t}`}function _y(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ty(e,t,r)})),n}const qy=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ny(e){const t=`${e}`.match(qy);return t&&t[1]||""}function jy(e,t=""){return e.displayName||e.name||Ny(e)||t}function zy(e,t,r){const n=jy(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Fy=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return jy(e,"Component");if("object"==typeof e)switch(e.$$typeof){case pa.ForwardRef:return zy(e,e.render,"ForwardRef");case pa.Memo:return zy(e,e.type,"memo");default:return}}},getFunctionName:Ny});function Hy(e,t){const r=St({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=St({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=St({},i),Object.keys(o).forEach((e=>{r[n][e]=Hy(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const By="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function $y(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Vy=Object.freeze({__proto__:null,default:$y});function Wy(e){if(e.type)return e;if("#"===e.charAt(0))return Wy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(fv(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(fv(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Gy(e,t){return e=Wy(e),t=function(e,t=0,r=1){return $y(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Uy(e){const t=y.useRef(e);return By((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Yy(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const Ky={};const Xy=[];class Jy{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Jy}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Zy(){const e=function(e,t){const r=y.useRef(Ky);return r.current===Ky&&(r.current=e(t)),r}(Jy.create).current;return function(e){y.useEffect(e,Xy)}(e.disposeEffect),e}let Qy=!0,ex=!1;const tx=new Jy,rx={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function nx(e){e.metaKey||e.altKey||e.ctrlKey||(Qy=!0)}function ox(){Qy=!1}function ix(){"hidden"===this.visibilityState&&ex&&(Qy=!0)}function ax(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Qy||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!rx[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function lx(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",nx,!0),t.addEventListener("mousedown",ox,!0),t.addEventListener("pointerdown",ox,!0),t.addEventListener("touchstart",ox,!0),t.addEventListener("visibilitychange",ix,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ax(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ex=!0,tx.start(100,(()=>{ex=!1})),t.current=!1,!0)},ref:e}}function sx(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const ux=y.createContext(null);function cx(){return y.useContext(ux)}var dx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function px(e){const{children:t,theme:r}=e,n=cx(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return St({},e,t)}(n,r);return null!=e&&(e[dx]=null!==n),e}),[r,n]);return rr.jsx(ux.Provider,{value:o,children:t})}const fx=["value"],mx=y.createContext();function hx(e){let{value:t}=e,r=Mt(e,fx);return rr.jsx(mx.Provider,St({value:null==t||t},r))}const gx=y.createContext(void 0);function bx({value:e,children:t}){return rr.jsx(gx.Provider,{value:e,children:t})}function vx({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Hy(o.defaultProps,n):o.styleOverrides||o.variants?n:Hy(o,n)}({props:e,name:t,theme:{components:y.useContext(gx)}})}const yx={};function xx(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?St({},t,{[e]:i}):i;return n?()=>a:a}return St({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Sx(e){const{children:t,theme:r,themeId:n}=e,o=Ry(yx),i=cx()||yx,a=xx(n,o,r),l=xx(n,i,r,!0),s="rtl"===a.direction;return rr.jsx(px,{theme:l,children:rr.jsx(Di.Provider,{value:a,children:rr.jsx(hx,{value:s,children:rr.jsx(bx,{value:null==a?void 0:a.components,children:t})})})})}var Ex,wx={},Cx={exports:{}};(Ex=Cx).exports=function(e){return e&&e.__esModule?e:{default:e}},Ex.exports.__esModule=!0,Ex.exports.default=Ex.exports;var Rx=Cx.exports,Ax=wt(mv),Ix=wt(Vy),Px=Rx;Object.defineProperty(wx,"__esModule",{value:!0});var Dx=wx.alpha=Bx;wx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Nx(e),a=Nx(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return zx({type:"rgb",values:l})},wx.colorChannel=void 0;var Mx=wx.darken=$x;wx.decomposeColor=Nx,wx.emphasize=Wx;var Lx=wx.getContrastRatio=function(e,t){const r=Hx(e),n=Hx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};wx.getLuminance=Hx,wx.hexToRgb=qx,wx.hslToRgb=Fx;var kx=wx.lighten=Vx;wx.private_safeAlpha=function(e,t,r){try{return Bx(e,t)}catch(t){return e}},wx.private_safeColorChannel=void 0,wx.private_safeDarken=function(e,t,r){try{return $x(e,t)}catch(t){return e}},wx.private_safeEmphasize=function(e,t,r){try{return Wx(e,t)}catch(t){return e}},wx.private_safeLighten=function(e,t,r){try{return Vx(e,t)}catch(t){return e}},wx.recomposeColor=zx,wx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Nx(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Ox=Px(Ax),Tx=Px(Ix);function _x(e,t=0,r=1){return(0,Tx.default)(e,t,r)}function qx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Nx(e){if(e.type)return e;if("#"===e.charAt(0))return Nx(qx(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Ox.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Ox.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const jx=e=>{const t=Nx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};wx.colorChannel=jx;function zx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Fx(e){e=Nx(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),zx({type:l,values:s})}function Hx(e){let t="hsl"===(e=Nx(e)).type||"hsla"===e.type?Nx(Fx(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bx(e,t){return e=Nx(e),t=_x(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,zx(e)}function $x(e,t){if(e=Nx(e),t=_x(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return zx(e)}function Vx(e,t){if(e=Nx(e),t=_x(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return zx(e)}function Wx(e,t=.15){return Hx(e)>.5?$x(e,t):Vx(e,t)}wx.private_safeColorChannel=(e,t)=>{try{return jx(e)}catch(t){return e}};const Gx={black:"#000",white:"#fff"},Ux={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yx="#f3e5f5",Kx="#ce93d8",Xx="#ba68c8",Jx="#ab47bc",Zx="#9c27b0",Qx="#7b1fa2",eS="#e57373",tS="#ef5350",rS="#f44336",nS="#d32f2f",oS="#c62828",iS="#ffb74d",aS="#ffa726",lS="#ff9800",sS="#f57c00",uS="#e65100",cS="#e3f2fd",dS="#90caf9",pS="#42a5f5",fS="#1976d2",mS="#1565c0",hS="#4fc3f7",gS="#29b6f6",bS="#03a9f4",vS="#0288d1",yS="#01579b",xS="#81c784",SS="#66bb6a",ES="#4caf50",wS="#388e3c",CS="#2e7d32",RS="#1b5e20",AS=["mode","contrastThreshold","tonalOffset"],IS={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Gx.white,default:Gx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},PS={text:{primary:Gx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Gx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function DS(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=kx(e.main,o):"dark"===t&&(e.dark=Mx(e.main,i)))}function MS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Mt(e,AS),i=e.primary||function(e="light"){return"dark"===e?{main:dS,light:cS,dark:pS}:{main:fS,light:pS,dark:mS}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Kx,light:Yx,dark:Jx}:{main:Zx,light:Xx,dark:Qx}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rS,light:eS,dark:nS}:{main:nS,light:tS,dark:oS}}(t),s=e.info||function(e="light"){return"dark"===e?{main:gS,light:hS,dark:vS}:{main:vS,light:bS,dark:yS}}(t),u=e.success||function(e="light"){return"dark"===e?{main:SS,light:xS,dark:wS}:{main:CS,light:ES,dark:RS}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:aS,light:iS,dark:sS}:{main:"#ed6c02",light:lS,dark:uS}}(t);function d(e){return Lx(e,PS.text.primary)>=r?PS.text.primary:IS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=St({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(fv(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(fv(12,t?` (${t})`:"",JSON.stringify(e.main)));return DS(e,"light",o,n),DS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:PS,light:IS};return vv(St({common:St({},Gx),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Ux,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const LS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const kS={textTransform:"uppercase"},OS='"Roboto", "Helvetica", "Arial", sans-serif';function TS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=OS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Mt(r,LS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return St({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===OS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,kS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,kS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vv(St({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function _S(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const qS=["none",_S(0,2,1,-1,0,1,1,0,0,1,3,0),_S(0,3,1,-2,0,2,2,0,0,1,5,0),_S(0,3,3,-2,0,3,4,0,0,1,8,0),_S(0,2,4,-1,0,4,5,0,0,1,10,0),_S(0,3,5,-1,0,5,8,0,0,1,14,0),_S(0,3,5,-1,0,6,10,0,0,1,18,0),_S(0,4,5,-2,0,7,10,1,0,2,16,1),_S(0,5,5,-3,0,8,10,1,0,3,14,2),_S(0,5,6,-3,0,9,12,1,0,3,16,2),_S(0,6,6,-3,0,10,14,1,0,4,18,3),_S(0,6,7,-4,0,11,15,1,0,4,20,3),_S(0,7,8,-4,0,12,17,2,0,5,22,4),_S(0,7,8,-4,0,13,19,2,0,5,24,4),_S(0,7,9,-4,0,14,21,2,0,5,26,4),_S(0,8,9,-5,0,15,22,2,0,6,28,5),_S(0,8,10,-5,0,16,24,2,0,6,30,5),_S(0,8,11,-5,0,17,26,2,0,6,32,5),_S(0,9,11,-5,0,18,28,2,0,7,34,6),_S(0,9,12,-6,0,19,29,2,0,7,36,6),_S(0,10,13,-6,0,20,31,3,0,8,38,7),_S(0,10,13,-6,0,21,33,3,0,8,40,7),_S(0,10,14,-6,0,22,35,3,0,8,42,7),_S(0,11,14,-7,0,23,36,3,0,9,44,8),_S(0,11,15,-7,0,24,38,3,0,9,46,8)],NS=["duration","easing","delay"],jS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},zS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FS(e){return`${Math.round(e)}ms`}function HS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function BS(e){const t=St({},jS,e.easing),r=St({},zS,e.duration);return St({getAutoHeightDuration:HS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Mt(n,NS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:FS(o)} ${i} ${"string"==typeof a?a:FS(a)}`)).join(",")}},e,{easing:t,duration:r})}const $S={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},VS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function WS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Mt(e,VS);if(e.vars&&void 0===e.generateCssVars)throw new Error(fv(18));const l=MS(n),s=wy(e);let u=vv(s,{mixins:(c=s.breakpoints,d=r,St({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:qS.slice(),typography:TS(l,i),transitions:BS(o),zIndex:St({},$S)});var c,d;return u=vv(u,a),u=t.reduce(((e,t)=>vv(e,t)),u),u.unstable_sxConfig=St({},vy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xy({sx:e,theme:this})},u}const GS=WS();var US,YS={},KS={exports:{}};var XS,JS={exports:{}};var ZS=wt(Wi),QS=wt(yv),eE=wt(Pv),tE=wt(Fy),rE=wt(Cy),nE=wt(Dy),oE=Rx;Object.defineProperty(YS,"__esModule",{value:!0});var iE=YS.default=function(e={}){const{themeId:t,defaultTheme:r=bE,rootShouldForwardProp:n=gE,slotShouldForwardProp:o=gE}=e,i=e=>(0,dE.default)((0,aE.default)({},e,{theme:yE((0,aE.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,sE.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=xE(vE(s))}=a,p=(0,lE.default)(a,mE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=gE;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,sE.default)(e,(0,aE.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,uE.isPlainObject)(e)?n=>SE(e,(0,aE.default)({},n,{theme:yE({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=yE((0,aE.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=SE(r,(0,aE.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=yE((0,aE.default)({},e,{defaultTheme:r,themeId:t}));return SE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,aE.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};YS.shouldForwardProp=gE,YS.systemDefaultTheme=void 0;var aE=oE((US||(US=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(KS)),KS.exports)),lE=oE((XS||(XS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(JS)),JS.exports)),sE=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=hE(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ZS),uE=QS;oE(eE),oE(tE);var cE=oE(rE),dE=oE(nE);const pE=["ownerState"],fE=["variants"],mE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(hE=function(e){return e?r:t})(e)}function gE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const bE=YS.systemDefaultTheme=(0,cE.default)(),vE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function yE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function xE(e){return e?(t,r)=>r[e]:null}function SE(e,t){let{ownerState:r}=t,n=(0,lE.default)(t,pE);const o="function"==typeof e?e((0,aE.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>SE(e,(0,aE.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,lE.default)(o,fE);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,aE.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,aE.default)({ownerState:r},n,r)):e.style))})),t}return o}const EE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,wE=iE({themeId:hv,defaultTheme:GS,rootShouldForwardProp:EE}),CE=["theme"];function RE(e){let{theme:t}=e,r=Mt(e,CE);const n=t[hv];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=St({},n,{vars:null}):t&&!t.vars&&(o=St({},t,{vars:null}))),rr.jsx(Sx,St({},r,{themeId:n?hv:void 0,theme:o}))}var AE={exports:{}};
102
102
  /*!
103
103
  * CSSJanus. https://github.com/cssjanus/cssjanus
104
104
  *
@@ -190,4 +190,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),Bw.rippleVisible,Kw,550,(({theme:e})=>e.transitions.easing.easeInOut),Bw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bw.child,Bw.childLeaving,Xw,550,(({theme:e})=>e.transitions.easing.easeInOut),Bw.childPulsate,Jw,(({theme:e})=>e.transitions.easing.easeInOut)),eC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Mt(r,$w),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=Zy(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,rr.jsx(Qw,{classes:{ripple:Ca(o.ripple,Bw.ripple),rippleVisible:Ca(o.rippleVisible,Bw.rippleVisible),ripplePulsate:Ca(o.ripplePulsate,Bw.ripplePulsate),child:Ca(o.child,Bw.child),childLeaving:Ca(o.childLeaving,Bw.childLeaving),childPulsate:Ca(o.childPulsate,Bw.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),rr.jsx(Zw,St({className:Ca(Bw.root,o.root,i),ref:m},a,{children:rr.jsx(Lu,{component:null,exit:!0,children:l})}))}));function tC(e){return Ty("MuiButtonBase",e)}const rC=_y("MuiButtonBase",["root","disabled","focusVisible"]),nC=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],oC=wE("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${rC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:P=0,TouchRippleProps:D,touchRippleRef:M,type:L}=r,k=Mt(r,nC),O=y.useRef(null),T=y.useRef(null),_=Yy(T,M),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=lx(),[F,H]=y.useState(!1);s&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!s;function W(e,t,r=c){return Uy((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&B&&T.current.pulsate()}),[u,d,F,B]);const G=W("start",E),U=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",(e=>{j(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Uy((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Uy((e=>{d&&!ne.current&&F&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Uy((e=>{d&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Yy(t,z,O),ue=St({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=sx({root:["root",t&&"disabled",r&&"focusVisible"]},tC,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rr.jsxs(oC,St({as:ae,className:Ca(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:P,type:L},le,k,{children:[i,V?rr.jsx(eC,St({ref:_,center:o},D)):null]}))})),aC=_y("MuiBox",["root"]),lC=WS(),sC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Bi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(xy),a=y.forwardRef((function(e,a){const l=function(e=Ay){return Ry(e)}(r),s=Py(e),{className:u,component:c="div"}=s,d=Mt(s,ky);return rr.jsx(i,St({as:c,ref:a,className:Ca(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:hv,defaultTheme:lC,defaultClassName:aC.root,generateClassName:Ly.generate}),uC=_y("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),cC=y.createContext({});function dC(e){return Ty("MuiListItemIcon",e)}const pC=_y("MuiListItemIcon",["root","alignItemsFlexStart"]),fC=["className"],mC=wE("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>St({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),hC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Mt(r,fC),i=St({},r,{alignItems:y.useContext(cC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return sx({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dC,r)})(i);return rr.jsx(mC,St({className:Ca(a.root,n),ownerState:i,ref:t},o))})),gC=_y("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function bC(e){return Ty("MuiMenuItem",e)}const vC=_y("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],xC=wE(iC,{shouldForwardProp:e=>EE(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>St({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${uC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${uC.inset}`]:{marginLeft:52},[`& .${gC.root}`]:{marginTop:0,marginBottom:0},[`& .${gC.inset}`]:{paddingLeft:36},[`& .${pC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&St({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pC.root} svg`]:{fontSize:"1.25rem"}})))),SC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Mt(r,yC),f=y.useContext(cC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);By((()=>{n&&h.current&&h.current.focus()}),[n]);const g=St({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return St({},a,sx({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},bC,a))})(r),v=Yy(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),rr.jsx(cC.Provider,{value:m,children:rr.jsx(xC,St({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Ca(b.focusVisible,s),className:Ca(b.root,d)},p,{ownerState:g,classes:b}))})})),EC=y.createContext();function wC(e){return Ty("MuiTable",e)}_y("MuiTable",["root","stickyHeader"]);const CC=["className","component","padding","size","stickyHeader"],RC=wE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>St({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":St({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),AC="table",IC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTable"}),{className:n,component:o=AC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=Mt(r,CC),u=St({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return sx({root:["root",r&&"stickyHeader"]},wC,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return rr.jsx(EC.Provider,{value:d,children:rr.jsx(RC,St({as:o,role:o===AC?null:"table",ref:t,className:Ca(c.root,n),ownerState:u},s))})})),PC=y.createContext();function DC(e){return Ty("MuiTableBody",e)}_y("MuiTableBody",["root"]);const MC=["className","component"],LC=wE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),kC={variant:"body"},OC="tbody",TC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableBody"}),{className:n,component:o=OC}=r,i=Mt(r,MC),a=St({},r,{component:o}),l=(e=>{const{classes:t}=e;return sx({root:["root"]},DC,t)})(a);return rr.jsx(PC.Provider,{value:kC,children:rr.jsx(LC,St({className:Ca(l.root,n),as:o,ref:t,role:o===OC?null:"rowgroup",ownerState:a},i))})}));function _C(e){return Ty("MuiTableCell",e)}const qC=_y("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),NC=["align","className","component","padding","scope","size","sortDirection","variant"],jC=wE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Iv(r.size)}`],"normal"!==r.padding&&t[`padding${Iv(r.padding)}`],"inherit"!==r.align&&t[`align${Iv(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>St({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?kx(Dx(e.palette.divider,1),.88):Mx(Dx(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${qC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),zC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=Mt(r,NC),p=y.useContext(EC),f=y.useContext(PC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=St({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return sx({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Iv(n)}`,"normal"!==o&&`padding${Iv(o)}`,`size${Iv(i)}`]},_C,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),rr.jsx(jC,St({as:h,ref:t,className:Ca(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function FC(e){return Ty("MuiTableContainer",e)}_y("MuiTableContainer",["root"]);const HC=["className","component"],BC=wE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),$C=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Mt(r,HC),a=St({},r,{component:o}),l=(e=>{const{classes:t}=e;return sx({root:["root"]},FC,t)})(a);return rr.jsx(BC,St({ref:t,as:o,className:Ca(l.root,n),ownerState:a},i))}));function VC(e){return Ty("MuiTableHead",e)}_y("MuiTableHead",["root"]);const WC=["className","component"],GC=wE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),UC={variant:"head"},YC="thead",KC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableHead"}),{className:n,component:o=YC}=r,i=Mt(r,WC),a=St({},r,{component:o}),l=(e=>{const{classes:t}=e;return sx({root:["root"]},VC,t)})(a);return rr.jsx(PC.Provider,{value:UC,children:rr.jsx(GC,St({as:o,className:Ca(l.root,n),ref:t,role:o===YC?null:"rowgroup",ownerState:a},i))})}));function XC(e){return Ty("MuiTableRow",e)}const JC=_y("MuiTableRow",["root","selected","hover","head","footer"]),ZC=["className","component","hover","selected"],QC=wE("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${JC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${JC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),eR="tr",tR=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableRow"}),{className:n,component:o=eR,hover:i=!1,selected:a=!1}=r,l=Mt(r,ZC),s=y.useContext(PC),u=St({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return sx({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},XC,t)})(u);return rr.jsx(QC,St({as:o,ref:t,className:Ca(c.root,n),role:o===eR?null:"row",ownerState:u},l))}));function rR(e={}){return rr.jsx(_w,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("rect",{stroke:vw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const nR={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ww,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var oR=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:vw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:vw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:rr.jsx(kw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${vw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`,borderRadius:ww,backgroundColor:vw.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${vw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:vw.WHITE,color:vw.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ww},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:vw.GREYSCALE_0_15,backgroundColor:vw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:vw.GREEN_PALE},"&:active":{backgroundColor:vw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:vw.BLUE_PALE},"&:active":{backgroundColor:vw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ww,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:vw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:vw.GREYSCALE_0_15,backgroundColor:vw.GREYSCALE_100_60,"&:active":{backgroundColor:vw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:vw.PURPLE,"&.Mui-focusVisible":{borderColor:vw.PURPLE,boxShadow:`0 0 0 3px ${Gy(vw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:vw.GREEN,"&.Mui-focusVisible":{borderColor:vw.GREEN,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:vw.BLUE,"&.Mui-focusVisible":{borderColor:vw.BLUE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:vw.ORANGE,"&.Mui-focusVisible":{borderColor:vw.ORANGE,boxShadow:`0 0 0 3px ${Gy(vw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:vw.RED,"&.Mui-focusVisible":{borderColor:vw.RED,boxShadow:`0 0 0 3px ${Gy(vw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:vw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:vw.PURPLE_PALE},"&:active":{backgroundColor:vw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:vw.PURPLE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:vw.GREEN_PALE},"&:active":{backgroundColor:vw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:vw.BLUE_PALE},"&:active":{backgroundColor:vw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:vw.ORANGE_PALE},"&:active":{backgroundColor:vw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:vw.ORANGE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:vw.RED_PALE},"&:active":{backgroundColor:vw.RED_DARK},"&.Mui-focusVisible":{borderColor:vw.RED_PALE,boxShadow:`0 0 0 3px ${Gy(vw.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:vw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:vw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ww,boxShadow:`inset 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:rr.jsx(Tw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:yw,borderRadius:ww,color:vw.TEXT_PRIMARY,backgroundColor:vw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:vw.GREYSCALE_0_05,color:vw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:vw.GREEN,borderColor:vw.GREEN},"&.MuiChip-outlinedInfo":{color:vw.BLUE,borderColor:vw.BLUE},"&.MuiChip-outlinedWarning":{color:vw.ORANGE,borderColor:vw.ORANGE},"&.MuiChip-outlinedError":{color:vw.RED,borderColor:vw.RED}},outlined:{border:`solid 1px ${vw.GREYSCALE_0_15}`,backgroundColor:vw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ww,boxShadow:"none",backgroundColor:vw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:vw.GREEN,borderColor:vw.GREEN},outlinedSecondary:{color:vw.BLUE,borderColor:vw.BLUE},label:{fontFamily:Pw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:rr.jsx(Tw,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:rr.jsx(kw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ww},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ww,fontSize:xw,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:vw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${vw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:vw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:vw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ww,border:`solid 1px ${vw.GREYSCALE_0_15}`,color:vw.GREYSCALE_0_60,marginRight:0,width:Ew,height:Ew},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${vw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ww,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:vw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:xw}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:yw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:vw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:vw.GREYSCALE_25,fontSize:yw,fontFamily:Pw.FONT_FAMILY,fontWeight:Aw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:vw.TEXT_PRIMARY},"&.Mui-error":{color:vw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:vw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:vw.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:xw,lineHeight:"16px",backgroundColor:vw.WHITE,borderRadius:ww,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.GREYSCALE_0_05}`,borderColor:vw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${vw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${vw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.RED}`,boxShadow:`0px 0px 0px 1px ${vw.RED}, inset 0 2px 0 0 ${vw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.GREYSCALE_0_10}`,borderColor:vw.GREYSCALE_0_10,backgroundColor:vw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:vw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:vw.GREYSCALE_0_15,borderRadius:ww,boxShadow:`inset 0 2px 0 0 ${vw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>rr.jsx(kw,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:vw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:vw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:vw.GREYSCALE_0_03},"&:active":{backgroundColor:vw.GREYSCALE_0_10},"&:focus":{backgroundColor:vw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${vw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:vw.GREYSCALE_0_30,"&:hover":{backgroundColor:vw.GREYSCALE_0_0,borderColor:vw.GREYSCALE_0_15},"& ~svg":{color:vw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${vw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ww}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:vw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:xw,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:yw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:yw,fontWeight:Aw,color:vw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Aw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${vw.GREYSCALE_0_15}, 0px 0px 0px 1px ${vw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:rr.jsx(jw,{}),checkedIcon:rr.jsx(zw,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:vw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:vw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:vw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:rr.jsx(rR,{}),checkedIcon:rr.jsx(qw,{}),indeterminateIcon:rr.jsx(Nw,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ww,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:vw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:vw.GREYSCALE_0_55,color:vw.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:vw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:vw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:vw.GREYSCALE_0_55,"&:hover":{color:vw.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:vw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:vw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:xw,color:vw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Aw},secondary:{fontSize:yw,color:vw.GREYSCALE_45,fontWeight:Rw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:xw,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:xw,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:vw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:yw,borderBottom:`solid 1px ${vw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:xw,color:vw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:vw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:vw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:vw.RED}}},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:vw.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:vw.GREEN,height:"24px","&.Mui-disabled":{color:vw.GREYSCALE_0_15}},rail:{backgroundColor:vw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${vw.GREYSCALE_0_05}`,borderRadius:ww,boxShadow:`inset 0px 0px 0px 1px ${vw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${vw.GREYSCALE_0_05}`,borderRadius:ww},thumb:{height:"16px",width:"16px",borderRadius:ww,backgroundColor:vw.WHITE,boxShadow:`0px 1px 2px 0px ${vw.GREYSCALE_0_15}, 0px 0px 0px 1px ${vw.GREYSCALE_0_05}`,"&:hover":{borderRadius:ww,boxShadow:`0 2px 4px 0 ${vw.GREYSCALE_0_30}, 0 0 0 1px ${vw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${vw.GREYSCALE_0_15}, 0 0 0 1px ${vw.GREYSCALE_0_06}, 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${vw.GREYSCALE_0_15}, 0 0 0 1px ${vw.GREYSCALE_0_06}, 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:vw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:vw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:vw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:vw.GREYSCALE_0_15},markLabel:{color:vw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:vw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:vw.WHITE,color:vw.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:vw.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:vw.GREYSCALE_0_15,borderRadius:ww},thumb:{height:"16px",width:"16px",borderRadius:ww,backgroundColor:vw.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:xw,fontWeight:Aw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${vw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`,backgroundColor:vw.GREYSCALE_0_03,borderRadius:ww},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:vw.GREYSCALE_25,"&.Mui-selected":{color:vw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:xw,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ww,"&:hover":{backgroundColor:vw.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${vw.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${vw.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ww,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:vw.GREYSCALE_0_05},"&:hover":{backgroundColor:vw.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${vw.GREYSCALE_85}`,borderRight:`1px solid ${vw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Aw,backgroundColor:vw.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:vw.GREYSCALE_98,borderBottom:`1px solid ${vw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${vw.GREYSCALE_85}`,borderTop:`1px solid ${vw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:vw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:vw.GREYSCALE_0_05,"&:hover":{backgroundColor:vw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:vw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>rr.jsx(Fw,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${vw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:xw,borderRadius:ww,padding:"7px 16px",border:`1px solid ${vw.GREYSCALE_0_15}`,backgroundColor:vw.GREYSCALE_100_60,color:vw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:vw.GREYSCALE_0_10,border:`1px solid ${vw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:vw.GREYSCALE_0_03,border:`1px solid ${vw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:vw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${vw.MISC_FOCUS_BORDER}`,border:`1px solid ${vw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:vw.GREYSCALE_25,backgroundColor:vw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:vw.GREYSCALE_0_10,border:`1px solid ${vw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:yw,height:24,width:24,padding:7},sizeLarge:{fontSize:Sw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:xw,borderRadius:ww}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:vw.GREYSCALE_20},tooltip:{backgroundColor:vw.GREYSCALE_20,fontSize:yw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...nR}:{}}))(t);const iR=e=>({mode:"light",primary:{ultraLight:vw.GREEN_ULTRA_LIGHT,light:vw.GREEN_PALE,main:vw.GREEN,dark:vw.GREEN_DARK,extraDark:vw.GREEN_EXTRA_DARK,contrastText:vw.WHITE},secondary:{ultraLight:vw.BLUE_ULTRA_LIGHT,light:vw.BLUE_PALE,main:vw.BLUE,dark:vw.BLUE_DARK,extraDark:vw.BLUE_EXTRA_DARK,contrastText:vw.WHITE},error:{ultraLight:vw.RED_ULTRA_LIGHT,light:vw.RED_PALE,main:vw.RED,dark:vw.RED_DARK,extraDark:vw.RED_EXTRA_DARK,contrastText:vw.WHITE},warning:{ultraLight:vw.ORANGE_ULTRA_LIGHT,light:vw.ORANGE_PALE,main:vw.ORANGE,dark:vw.ORANGE_DARK,extraDark:vw.ORANGE_EXTRA_DARK,contrastText:vw.WHITE},success:{ultraLight:vw.GREEN_ULTRA_LIGHT,light:vw.GREEN_PALE,main:vw.GREEN,dark:vw.GREEN_DARK,extraDark:vw.GREEN_EXTRA_DARK,contrastText:vw.WHITE},info:{ultraLight:vw.BLUE_ULTRA_LIGHT,light:vw.BLUE_PALE,main:vw.BLUE,dark:vw.BLUE_DARK,extraDark:vw.BLUE_EXTRA_DARK,contrastText:vw.WHITE},text:{primary:vw.TEXT_PRIMARY,secondary:vw.TEXT_SECONDARY,disabled:vw.GREYSCALE_0_30},action:{hover:vw.GREYSCALE_0_03,hoverOpacity:.03,selected:vw.GREYSCALE_0_05,selectedOpacity:.05,focus:vw.MISC_FOCUS_BORDER},amethyst:{ultraLight:vw.WHITE,main:vw.PURPLE,light:vw.PURPLE_PALE,dark:vw.PURPLE_DARK,extraDark:vw.GREYSCALE_0_0,contrastText:vw.WHITE},background:{paper:vw.WHITE,default:vw.GREYSCALE_95},divider:vw.GREYSCALE_0_15}),aR={...bw},lR=(e="light",t=!1)=>((e,t=!1)=>({components:oR(0,t),palette:iR(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:xw,fontWeightLight:Cw,fontWeightRegular:Rw,fontWeightMedium:Aw,fontWeightBold:Iw,htmlFontSize:xw,fontFamily:Pw.FONT_FAMILY,button:{fontWeight:Aw,fontSize:xw,textTransform:"none"},body1:{fontSize:Sw,lineHeight:"24px"},body2:{fontSize:xw,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ew,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Sw,fontWeight:Aw,lineHeight:"16px"},h6:{fontSize:xw,fontWeight:Aw,lineHeight:"16px"},caption:{color:vw.TEXT_SECONDARY},subtitle1:{fontSize:xw,color:vw.TEXT_SECONDARY},subtitle2:{fontSize:yw,color:vw.TEXT_SECONDARY}},shape:{borderRadius:ww}}))(0,t),sR=lR().palette,uR=(sR.primary.light,FE.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),cR=4/3,dR="12px",pR="600",fR="Source Sans Pro, sans-serif",mR={height:"auto",fontSize:dR,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},hR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:pR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},gR=25e4,bR=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(rm.PixelsMax,Math.max(rm.PixelsMin,m)),i-=n[a]};switch(s){case nm.Pixels:m=u||rm.PixelsDefault,h();break;case nm.Percentage:m=(c||rm.PercentageDefault)/100*t,h();break;case nm.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===Gh.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case nm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(rm.AutoMinTable,e)}))}return n},vR=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},yR=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},xR=e=>e.ctrlKey||e.metaKey,SR=e=>e.shiftKey&&xR(e),ER=e=>[em.Left,em.Right,em.Up,em.Down].includes(e),wR=e=>e.shiftKey&&ER(e.key),CR=e=>{return t=e.key,(ER(t)||[em.Home,em.End,em.PageUp,em.PageDown].includes(t))&&!SR(e);var t},RR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s=new Map;if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s=new Map(n)}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(s,i,l),vR(a,n,s),s.size?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(s.values()),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},AR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;if(!(l||"key"in c&&wR(c)))return e;-1===i&&(null==n||n.begin(["/qHyperCubeDef"]));const d=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&wR(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===em.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(a,o,s,c,l);return vR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}},IR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},PR=(e,t)=>{var r;switch(t.type){case HE.Select:return RR(e,t.payload);case HE.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case HE.SelectMouseUp:return((e,t)=>IR(e.isSelectMultiValues||e.firstCell!==t.cell?e:RR(e,t)))(e,t.payload);case HE.SelectMultiAdd:return AR(e,t.payload);case HE.SelectMultiEnd:return IR(e);case HE.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case HE.Clear:return e.rows.size?{...e,rows:new Map}:e;case HE.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},DR=4/3,MR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function LR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const kR=(e,t)=>e?{borderBottomColor:Cf.DARK_MODE_BORDER,borderRightColor:Cf.DARK_MODE_BORDER,borderLeftColor:Cf.DARK_MODE_BORDER,borderTopColor:Cf.DARK_MODE_BORDER}:{borderLeftColor:Cf.BORDER_MEDIUM,borderRightColor:Cf.BORDER_MEDIUM,borderTopColor:Cf.BORDER_HEAVY,borderBottomColor:t?Cf.BORDER_HEAVY:Cf.BORDER_LIGHT},OR=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*DR+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},TR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},_R=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:MR(null==r?void 0:r.fontColor)?LR(Cf.TEXT,t,null==r?void 0:r.fontColor):i||Cf.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...kR(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function qR(e,t,r){var n,o,i;const a=null===(n=TR(e))||void 0===n?void 0:n.header,l=_R("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=If(null!==(o=l.background)&&void 0!==o?o:Cf.WHITE,om),l.activeBackground=If(null!==(i=l.background)&&void 0!==i?i:Cf.WHITE,im),l}const NR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in hR&&Object.assign(t,hR[e]))),t};function jR(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&Mf(n);a&&"none"!==a&&(o[r[t]]=a),i=n?NR(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Rf(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const zR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},FR=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=zR(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},HR=(e,t,r,n=Cf.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=FR(e,t,r);return null!==(o=Tf(a,i,l,n))&&void 0!==o?o:n},BR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return dR}},$R=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",VR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?pR:"normal",WR=e=>!1===e?1:3,GR=e=>parseInt(null!=e?e:mR.fontSize,10)*cR,UR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",YR=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,A,I,P,D,M,L,k,O,T,_,q,N,j,z,F,H,B,$,V,W,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me,he,ge,be,ve,ye;const{header:xe,dimensionValues:Se,measureValues:Ee,totalValues:we,nullValues:Ce,grid:Re,content:Ae}=null!==(i=TR(t))&&void 0!==i?i:{},Ie=!0===t.usePagination?Cf.WHITE:Cf.TRANSPARENT,Pe=HR(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",Ie),De=null!==(a=null!==(l=null===(s=o.viewState)||void 0===s?void 0:s.maxLineCount)&&void 0!==l?l:null==Ae?void 0:Ae.rowHeight)&&void 0!==a?a:n.getStyle("object.straightTableV2","grid","lineClamp"),Me={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==xe?void 0:xe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:fR,fontSize:BR(null!==(p=null!==(f=null==xe?void 0:xe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:$R(null==xe?void 0:xe.fontStyle),fontWeight:VR(null==xe?void 0:xe.fontStyle,pR),textDecoration:UR(null==xe?void 0:xe.fontStyle),color:null!==(m=null!==(h=null!==(g=zR(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:Cf.TEXT,background:Pe},headerMenuHoverBackground:If(Pe,om),headerMenuActiveBackground:If(Pe,im),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==Se?void 0:Se.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:fR,fontSize:BR(null!==(x=null!==(S=null!==(E=null==Se?void 0:Se.fontSize)&&void 0!==E?E:null==Ae?void 0:Ae.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:$R(null==Se?void 0:Se.fontStyle),fontWeight:VR(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:UR(null==Se?void 0:Se.fontStyle),color:null!==(w=null!==(C=null!==(R=null!==(A=zR(n,null==Se?void 0:Se.fontColor))&&void 0!==A?A:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==C?C:r.body.color)&&void 0!==w?w:Cf.TEXT,background:null!==(I=null!==(P=FR(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==P?P:r.body.background)&&void 0!==I?I:Cf.TRANSPARENT}},measure:{values:{fontFamily:null!==(D=null!==(M=null!==(L=null==Ee?void 0:Ee.fontFamily)&&void 0!==L?L:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==M?M:r.body.fontFamily)&&void 0!==D?D:fR,fontSize:BR(null!==(k=null!==(O=null!==(T=null==Ee?void 0:Ee.fontSize)&&void 0!==T?T:null==Ae?void 0:Ae.fontSize)&&void 0!==O?O:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==k?k:r.body.fontSize),fontStyle:$R(null==Ee?void 0:Ee.fontStyle),fontWeight:VR(null==Ee?void 0:Ee.fontStyle,"normal"),textDecoration:UR(null==Ee?void 0:Ee.fontStyle),color:null!==(_=null!==(q=null!==(N=null!==(j=zR(n,null==Ee?void 0:Ee.fontColor))&&void 0!==j?j:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==q?q:r.body.color)&&void 0!==_?_:Cf.TEXT,background:null!==(z=null!==(F=FR(n,Ee,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==F?F:r.body.background)&&void 0!==z?z:Cf.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==we?void 0:we.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:fR,fontSize:BR(null!==(V=null!==(W=null!==(G=null==we?void 0:we.fontSize)&&void 0!==G?G:null==Ae?void 0:Ae.fontSize)&&void 0!==W?W:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==V?V:r.totals.fontSize),fontStyle:$R(null==we?void 0:we.fontStyle),fontWeight:VR(null==we?void 0:we.fontStyle,pR),textDecoration:UR(null==we?void 0:we.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=zR(n,null==we?void 0:we.fontColor))&&void 0!==X?X:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:Cf.TEXT,background:HR(n,we,"object.straightTableV2.total.label.value.backgroundColor",Ie)},nullValues:{fontStyle:$R(null==Ce?void 0:Ce.fontStyle),fontWeight:VR(null==Ce?void 0:Ce.fontStyle,"normal"),textDecoration:UR(null==Ce?void 0:Ce.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=zR(n,null==Ce?void 0:Ce.fontColor))&&void 0!==ee?ee:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:Cf.TEXT,background:null!==(te=null!==(re=zR(n,null==Ce?void 0:Ce.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:Cf.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=De?De:WR(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:WR(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=zR(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?Cf.DARK_MODE_BORDER:Cf.BORDER_MEDIUM,divider:null!==(le=null!==(se=zR(n,null==Re?void 0:Re.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:Cf.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=zR(n,null==Ae?void 0:Ae.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=zR(n,null==Ae?void 0:Ae.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},zebraStripes:{show:!!e.flags.isEnabled("CLIENT_VNA_10_ZEBRA_STRIPES")&&!(null==Re||null===(he=Re.zebraStripes)||void 0===he||!he.show),odd:{color:zR(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:zR(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.odd)},even:{color:zR(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.color)||void 0===ve?void 0:ve.even),background:zR(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===zR(n,null==Ce?void 0:Ce.background),overrideNullValueColor:void 0===zR(n,null==Ce?void 0:Ce.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Af(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:De},{headerMinRowHeight:Le,totalRowLineHeight:ke,totalRowMinHeight:Oe,contentLineHeight:Te,contentMinRowHeight:_e}=(e=>{const t=Math.max(GR(e.header.fontSize)+8,32),r=GR(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(GR(e.dimension.values.fontSize),GR(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(Me);return Me.headerMinRowHeight=Le,Me.totalRowLineHeight=ke,Me.totalRowMinHeight=Oe,Me.contentLineHeight=Te,Me.contentMinRowHeight=_e,Me},KR=(e,t,r,n)=>{const o=w((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=TR(e))||void 0===o?void 0:o.content,a=_R("content",t,i);a.background=t.background.color;const l=OR(a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=MR(u)||!!d,f=MR(s)||!!c,m=p||f;let h;h=MR(s)?LR(Cf.HOVER,t,s):c||(p?"":Cf.HOVER);const g=m?LR(Rf(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}(e,t,r.rows.length,n),a=qR(e,t,!o),l=function(e,t,r){var n;const o=null===(n=TR(e))||void 0===n?void 0:n.content,i=_R("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=qR(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},XR=new Map;const JR=M({}),ZR=function(e){const t=M([()=>{},new Set]);return XR.set(e,t),({children:r,value:n})=>{const o=L(n),i=L(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=k((()=>o.current),[o]),l=w((()=>[a,i.current]),[a]);return rr.jsx(e.Provider,{value:n,children:rr.jsx(t.Provider,{value:l,children:r})})}}(JR),QR={rows:[],columns:[],totalsPosition:{}},eA=({app:e,children:t,tableData:r=QR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:C})=>{const[R,A]=E(0),[I,P]=E(o||gw),[M,L]=((e,t)=>{const[r,n]=D(PR,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[k,O]=E(-1),T=KR(i,u,r,d),_=((e,t,r,n,o)=>w((()=>YR(e,t,r,n,o)),[t,r,e,n,o]))(S,i,T,u,y),[q,N,j,z]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Hf({...n.header,fontWeight:pR},{maxNbrLinesOfText:3}).measureText,a=Hf({...n.totalRow,fontWeight:pR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=Hf(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=Hf(n.measure.values,{maxNbrLinesOfText:3}),u=w((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=E(0),[p,f]=E((()=>bR(e,r,u)));Wf((()=>{f(bR(e,r-c,u))}),[e,r,c,u]);const m=w((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,_),F=w((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:_,direction:C,downloadService:x})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,_,C,x]);return rr.jsx(ZR,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:I,setFocusedCellCoord:P,selectionState:M,selectionDispatch:L,hoverIndex:k,setHoverIndex:O,columnWidths:q,setColumnWidths:N,baseProps:F,tableData:r,setYScrollbarWidth:j,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S},children:t})};function tA(e,t){const r=function(e){return XR.get(e)}(e),[n,o]=S(r),[,i]=D((e=>e+1),0),a=L(t),l=L(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=w((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{a.current(e)!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function rA(e){var t;const r=lR();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),WS({...r,direction:e})}const nA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},oA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},iA=Us("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...nA},"&::-moz-range-track":{...nA},"&::-ms-track":{...nA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...oA},"&::-moz-range-thumb":{...oA},"&::-ms-thumb":{...oA},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),aA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Uf({translator:c.translator}),f=L({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};Wf((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,rm.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:nm.Pixels,pixels:f.current.columnWidth};a(e)}else null==s||s(!1)},E=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{kf(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w),S()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},R=e=>{kf(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",R),S()},A=!n&&l?e=>{if(e.key===em.Left||e.key===em.Right){kf(e);const t=5,r=e.key===em.Left?t:-5,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===em.Space||e.key===em.Enter?(kf(e),l(e),S()):e.key===em.Esc&&(kf(e),l(e),y(f.current.initWidth))}:void 0,I=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(iA,{style:b,key:t,hoverColor:o,isLastColumn:r,className:tm,"data-testid":tm,onMouseDown:e=>{kf(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",w),null==s||s(!0),v(e.clientX)},onDoubleClick:()=>{a({type:nm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(kf(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",R),null==s||s(!0),v(e.touches[0].clientX))},onKeyDown:A,onBlur:l,onFocus:()=>{v()},type:"range",tabIndex:-1,max:rm.PixelsMax,"aria-label":I,"aria-valuemin":rm.PixelsMin,"aria-valuemax":rm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})};function lA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),uA=O(sA);function cA(){return cA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cA.apply(null,arguments)}const dA=Us(ld,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),pA=Us(uA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),fA=Us(Lp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),mA=Us(Pd)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),hA=Us(qp)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),gA=Us(qp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),bA=Us("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),vA=Us("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),yA=Us(pc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),xA=Us(op,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function SA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),wA=O(EA),CA=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?CA(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},RA=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?RA(t):t},AA=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===em.Down||r===em.Up){const t=e=>r===em.Down?CA(e):RA(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}};let IA={};const PA=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,direction:u,isPagination:c})=>{const[d,p]=E(!1),f=L(null),m=k((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(gA,{ref:a?f:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),IA={}),null!=a&&a.length&&(p(!0),IA[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:AA},s?x.createElement(bA,{direction:u,isPagination:c}):null,x.createElement(vA,null,x.createElement(xA,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(yA,{variant:"body2"},n)),null!=a&&a.length?x.createElement(wA,null):null),null!=a&&a.length?x.createElement(LA,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:(h=a,g=IA,h.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(g).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null);var h,g},DA=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(hA,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(PA,cA({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),MA={appear:0,enter:0,exit:0},LA=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:l,isPagination:s})=>n.length?x.createElement(fA,cA({className:Jf,open:t,anchorEl:e,onClose:r,transitionDuration:MA,MenuListProps:{id:Zf}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:l}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[DA({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(mA,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:l,isPagination:s})):null,kA=(e,t)=>e.some((e=>t[e]>0)),OA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},TA=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,l]=E(OA);return Wf((()=>{e||(l(OA),i(null))}),[e]),C((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:kA(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:kA(["qSelected"],e),canSelectPossible:kA(["qOption"],e),canSelectAlternative:kA(["qAlternative"],e),canSelectExcluded:kA(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function _A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_A(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),NA=O(qA);function jA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),FA=O(zA);function HA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),$A=O(BA);function VA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),GA=O(WA);function UA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),KA=O(YA);function XA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){XA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),ZA=O(JA);function QA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),tI=O(eI);function rI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{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-7"})),oI=O(nI);function iI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),lI=O(aI);function sI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),cI=O(uI);function dI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),fI=O(pI);function mI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),gI=O(hI);function bI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),yI=O(vI);function xI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),EI=O(SI);let wI=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const CI="/qListObjectDef",RI=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[wI.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:NA,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:GA,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:oI,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:KA,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[wI.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:lI,enabled:!0}]}]),r[wI.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:EI,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(CI))},icon:cI,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(CI))},icon:yI,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(CI))},icon:fI,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(CI))},icon:gI,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(CI))},icon:FA,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:tI,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:ZA,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[wI.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:$A,enabled:!0}]}]),f},AI=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:l=!0,sortRelatedArgs:s,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:m="ltr",isPagination:h})=>{var g;const b=Uf({translator:o}),{qLibraryId:v,fieldId:y,headTextAlign:S}=n,E=null==c?void 0:c.app,{fieldInstance:w,selectionActionsEnabledStatus:C}=TA({open:e,headerData:n,app:E,qStateName:null==c?void 0:c.qStateName});let R=null;if(f&&"setActiveField"in f&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;R=async t=>{try{await f.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const A=k((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(null!=u&&u.embed){const{embed:t,listboxRef:r}=u;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:m})}}),[v,y,u,null==c?void 0:c.qStateName,m]),I=k((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(dA,{rightAligned:"right"===S,shouldShowMenuIcon:l,className:Xf},l?x.createElement(pA,{height:Yf,className:Kf,"data-testid":Kf,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(uA,null)):null,x.createElement(LA,{open:e,anchorEl:r.current,onClose:I,menuGroups:RI({headerData:n,translator:b,menuAvailabilityFlags:a,setOpen:t,...s,embedListbox:A,interactions:i,fieldInstance:w,selectionActionsEnabledStatus:C,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:m,isPagination:h})):null},II=e=>e.isDark?{background:e.color,borderColor:Cf.DARK_MODE_BORDER,color:Cf.DARK_MODE_TEXT,disabledColor:Cf.DARK_MODE_DISABLED,iconColor:Cf.DARK_MODE_TEXT}:{background:e.color,borderColor:Cf.BORDER_MEDIUM,color:Cf.TEXT,disabledColor:Cf.DISABLED},PI=Us(ld,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),DI=Us(bf,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),MI=Us(bd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),LI=Us(pc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),kI=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=w((()=>II(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(PI,{footerStyle:i},e):null;return t?F.createPortal(e,t):a},OI=M({}),TI=()=>S(OI),_I=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=w((()=>II(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=Uf({translator:d}),S=w((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(OI.Provider,{value:S},e)};let qI=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),NI=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function jI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),FI=O(zI);function HI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),$I=O(BI);function VI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),GI=O(WI),UI={FirstPage:$I,PreviousPage:FI,NextPage:wA,LastPage:GI,FirstPageRTL:GI,PreviousPageRTL:wA,NextPageRTL:FI,LastPageRTL:$I},YI=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=TI(),u=r.concat("rtl"===n?"RTL":""),c=UI[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},KI=()=>{const{pageInfo:e,width:t}=TI(),r=0===e.page,{IconComponent:n,styledProps:o}=YI({type:qI.FirstPage,disabledCondition:r,pageNumber:0});return t<=NI.FirstPage?null:x.createElement(MI,o,x.createElement(n,{height:Yf}))},XI=(e,t,r=!1)=>{r&&e.key===em.Tab&&!e.shiftKey&&(kf(e),Lf(e.target,t,!1))},JI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=TI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=YI({type:qI.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>{XI(e,t,n)}:void 0;return o<=NI.LastPage?null:x.createElement(MI,cA({},l,{onKeyDown:s}),x.createElement(a,{height:Yf}))},ZI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=TI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=YI({type:qI.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>NI.FirstPage&&o>NI.LastPage)&&t.enabled?e=>{XI(e,t,n)}:void 0;return x.createElement(MI,cA({},l,{onKeyDown:s}),x.createElement(a,{height:Yf}))},QI=()=>{const{pageInfo:e}=TI(),t=0===e.page,{IconComponent:r,styledProps:n}=YI({type:qI.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(MI,n,x.createElement(r,{height:Yf}))},eP=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=TI(),{page:o,rowsPerPage:i}=r;if(t<=NI.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(LI,{variant:"caption",dir:"ltr"},a)},tP=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=TI(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(LI,{variant:"caption",id:d},u,":"),x.createElement(DI,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},rP=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=TI();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>NI.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(tP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},nP=1e3,oP="…",iP=({totalPages:e,page:t})=>{const r=Math.min(e,nP),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-nP):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:oP,disabled:!0},oP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:oP,disabled:!0},oP)),x.createElement(x.Fragment,null,a)},aP=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=TI(),{page:o}=e;if(t<=NI.SelectPage)return null;const i=x.createElement(iP,{totalPages:r,page:o});return x.createElement(tP,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var lP=T((e=>x.createElement(_I,e,x.createElement(rP,null),x.createElement(aP,null),x.createElement(eP,null),x.createElement(KI,null),x.createElement(QI,null),x.createElement(ZI,null),x.createElement(JI,null))));const sP=e=>x.createElement(kI,e,x.createElement(lP,e)),uP={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},cP=wE(sC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),dP=wE("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...uP,whiteSpace:"nowrap",display:r?"block":void 0}:{...uP,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function pP(e,t){const r=L(!1);C((()=>{r.current?e():r.current=!0}),t)}const fP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),mP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),hP=e=>e.atTop?2:1,gP=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},bP=e=>null==e?void 0:e.setAttribute("tabIndex","0"),vP=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),yP=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(vP)},xP=e=>{null==e||e.focus(),bP(e)},SP=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${tm}`);xP(r)}),0)},EP=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{yP(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,l=t.getElementsByClassName("sn-table-row").length-1-o.bottom,s=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case em.Down:u<l&&u++;break;case em.Up:u>a&&u--;break;case em.Right:if(i)break;[u,c]="rtl"===n?fP({colIdx:c,rowIdx:u,lastColIdx:s,firstColIdx:0}):mP({colIdx:c,rowIdx:u,lastColIdx:s,lastRowIdx:l,firstColIdx:0});break;case em.Left:if(i)break;[u,c]="rtl"===n?mP({colIdx:c,rowIdx:u,lastColIdx:s,lastRowIdx:l,firstColIdx:0}):fP({colIdx:c,rowIdx:u,lastColIdx:s,firstColIdx:0});break;case em.Home:(xR(e)||i)&&(u=a),i||(c=0);break;case em.End:(xR(e)||i)&&(u=l),i||(c=s);break;case em.PageDown:u=Math.min(l,u+10);break;case em.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),l=gP(t,a);return xP(l),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:l,nextCellCoord:a}},wP=(e,t,r,n)=>{var o;(yP(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):xP(gP(t,e))},CP=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${Jf}`);var l;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${$E.First}`),r=e.querySelector(`.${$E.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(l=r.blur)||void 0===l||l.call(r,!1))},RP=()=>{const{downloadService:e}=tA(JR,(e=>e.baseProps));C((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},AP=(e,t,r)=>{const{rootElement:n,keyboard:o}=tA(JR,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:l,totalsPosition:s}=tA(JR,(e=>e.tableData)),u=tA(JR,(e=>e.focusedCellCoord)),c=tA(JR,(e=>e.setFocusedCellCoord)),d=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));pP((()=>{const r=((e,t,r=!1)=>{const n=[hP(t),e[1]];return r?n:gw})(u,s,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(yP(t),o(e),!(e=>!e.enabled||e.active)(i))return;const l=gP(t,e);var s;r.current?(xP(l),r.current=!1):bP(l),n&&(a({keys:[null!==(s=null==l?void 0:l.textContent)&&void 0!==s?s:""]}),yR(a,l,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[l.length,a,i,r])},IP=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},PP=e=>{kf(e),xR(e)&&um(e.currentTarget)},DP=e=>{CR(e.evt)&&(kf(e.evt),EP(e))},MP=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!CR(t))return;kf(t);const i=((e,t)=>[e.pageRowIdx+hP(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?hP(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:l,nextCellCoord:s}=EP({...e,cellCoord:i,allowedRows:a});s[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:HE.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):yR(o,a,i)})({...e,nextCell:l})},LP=e=>{const{evt:t}=e;SR(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{kf(e);const a=Math.ceil(t/r)-1;e.key===em.Right&&n<a?(o(),i(n+1)):e.key===em.Left&&n>0&&(o(),i(n-1))})(e):t.key===em.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(kf(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):ER(t.key)&&kf(t)},kP=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(FE.Disabled))return void kf(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case em.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{kf(e),t.isSelectable&&r&&n({type:HE.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case em.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{kf(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case em.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(kf(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case em.C:PP(t);break;case em.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(kf(e),Lf(e.currentTarget,t,e.shiftKey))})(n);break;default:MP(n)}},OP=e=>{const{layout:t,rect:r,theme:n}=tA(JR,(e=>e.baseProps)),[o,i]=E(0),[a,l]=E(0);return _((()=>{if(e.current){const{offsetWidth:t=0,offsetHeight:r=0,clientWidth:n=0,clientHeight:o=0}=e.current,a=r-o;l(t-n),i(a)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},TP=wE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),_P=wE($C,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),qP=wE(IC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),NP=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(TP,{className:$E.First,"data-testid":$E.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(TP,{className:$E.Second,"data-testid":$E.Second,"aria-live":"polite","aria-atomic":"true"})]}),jP=e=>{const t=L(new Map),r=L(null);C((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{var n;null===(n=r.current)||void 0===n||n.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=k(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=k((e=>{var n;t.current.delete(e),null===(n=r.current)||void 0===n||n.unobserve(e)}),[r,t]);return w((()=>({addTask:n,removeTask:o})),[n,o])},zP=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),FP=()=>jP(zP),HP=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:HE.Reset})},a=()=>{t({type:HE.Clear})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},BP=e=>{e.stopPropagation()},$P=({href:e,text:t,interactions:r,color:n})=>x.createElement(Yd,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:BP,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}))({href:e,text:t,interactions:r,color:n}),t);var VP,WP;const GP=null!==(VP=window.requestIdleCallback)&&void 0!==VP?VP:e=>setTimeout((()=>{e({})}),0),UP=null!==(WP=window.cancelIdleCallback)&&void 0!==WP?WP:e=>{clearTimeout(e)},YP="qDimensionInfo/0",KP="qMeasureInfo/0",XP="x",JP="y",ZP=e=>({key:"bars",type:"box",data:{extract:{field:YP,props:{start:0,end:{field:KP}}}},settings:{major:{scale:XP},minor:{scale:JP},box:{maxWidthPx:8,fill:{fn:e}}}}),QP=e=>({key:"p",type:"point",data:{extract:{field:YP,props:{y:{field:KP}}}},settings:{x:{scale:XP},y:{scale:JP},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),eD=({qNum:e})=>void 0===e?0:Math.sign(e),tD=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Df(e,null==t?void 0:t.negative,r),a=Df(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:YP,props:{start:0,end:{field:KP,value:eD}}}},settings:{major:{scale:XP},minor:{scale:JP},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},rD=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),l=Df(e,null==t?void 0:t.main,o),s=Df(e,null==t?void 0:t.max,l),u=Df(e,null==t?void 0:t.min,l),c=Df(e,null==t?void 0:t.first,l),d=Df(e,null==t?void 0:t.last,l);return e=>{const t=JP in e.datum?JP:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?s:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:l}})(e,n,o,i);switch(t){case"bars":return[ZP(a)];case"dots":return[QP(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:YP,props:{v:{field:KP}}}},settings:{coordinates:{major:{scale:XP},minor:{scale:JP,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Df(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,QP(a)]:[t]}case"posNeg":return[tD(e,n)];default:return[]}},nD=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),oD=(e,t,r,n)=>({y:{data:{field:KP},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:YP}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),iD=B();iD.use(H),iD.renderer.prio(["canvas"]);const aD={resolve:()=>{},promise:{}},lD=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:l})=>{const{resolveChartPromise:s,addChartPromiseToQueue:u}=(e=>{const t=L(e.isDownloadedAsPDForImage?bt():aD);return{addChartPromiseToQueue:k((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(l);return{renderChartWithRequestIdleCallback:k((()=>{if(null===t.current||null!==e.current)return;u();r.current=GP((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:l,minY:s,maxY:u}=n;return iD.chart({element:e,data:{type:"q",key:"qHyperCube",data:nD(l)},settings:{scales:oD(a,s,u,i),components:rD(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:s}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,s]),safeCancelIdleCallback:k((()=>{null!==r.current&&UP(r.current),r.current=null,s()}),[r,s])}},sD=e=>{const t=L(null),r=L(!1);return k((n=>{var o,i;const a=null!==(o=null===(i=n.contentBoxSize.at(0))||void 0===i?void 0:i.inlineSize)&&void 0!==o?o:0;(e=>{e.current&&(UP(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=GP((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},uD=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const l=L(null),s=L(null),u=L(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=lD({element:l,chart:s,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=k((e=>{e.isIntersecting?n():r()}),[n,r]);C((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{var e;t.removeTask(n),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,t,r,i])})({element:l,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:s}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{C((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:s}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=sD(t);C((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:l,chart:s,resizeObserverTaskScheduler:t}),l},cD=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:l})=>{const s=uD({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:l});return x.createElement("div",{"data-testid":"picasso-container",ref:s,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},dD="cell-text",pD=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=tA(JR,(e=>e.baseProps));return o?rr.jsx(dP,{"data-testid":dD,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,children:e}):rr.jsx(dP,{"data-testid":dD,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,children:e})},fD=(e,t)=>{var r,n,o,i;return"rtl"===e&&"center"!==(null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.horizontal)?(null===(o=t.resolvedImagePosition)||void 0===o?void 0:o.horizontal)&&(e=>"flex-start"===e?"flex-end":"flex-start")(null===(i=t.resolvedImagePosition)||void 0===i?void 0:i.horizontal):null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.horizontal},mD=(e,t)=>e.representation.type===Gh.Image&&"fitHeight"===e.representation.imageSize?fD(t,e.representation):e.align,hD=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",gD=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},bD=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,vD=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",yD=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",xD=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},SD=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},ED=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=tA(JR,(e=>e.baseProps)),{url:i,text:a,imageSize:l,resolvedImagePosition:s}=e,u="fitHeight"===l,c=rr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:SD(l),objectPosition:xD(s),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?fD(o,e):void 0},children:c}):c},wD=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),CD=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},RD=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&ne(e.localPaletteColors[t].color).blend(ne(l.color),l.t)},AD=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:wD(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:CD(n,t,r)})))),n},ID=(e,t,r,n)=>{const o=AD(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=RD(e,a,t);break}n=i}return r})(o,t);return a},PD=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!Jg(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!Jg(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},DD=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=PD(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!Jg(t))return 0;let a=r&&Jg(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}};function MD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),kD=O(LD);function OD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),_D=O(TD);function qD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ND=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),x.createElement("use",{fillRule:"evenodd"})),jD=O(ND);function zD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})),HD=O(FD);function BD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $D=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){BD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})),VD=O($D);function WD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){WD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})),UD=O(GD);function YD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 7h12v2H2z"})),XD=O(KD);function JD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})),QD=O(ZD);function eM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),rM=O(tM);function nM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})),iM=O(oM);function aM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})),sM=O(lM);function uM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),dM=O(cM);function pM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})),mM=O(fM);function hM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})),bM=O(gM);function vM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})),xM=O(yM);function SM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"}));function wM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})),RM={m:dM,"ï":iM,R:O(EM),S:mM,T:bM,U:xM,P:rM,Q:UD,"è":O(CM),"¢":HD,"©":jD,"23F4":VD,2013:sM,"&":QD,add:kD,"minus-2":XD,dot:_D},AM=({size:e,iconKey:t,color:r})=>{var n;const o=null!==(n=t&&RM[t])&&void 0!==n?n:void 0;return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e},children:rr.jsx(o,{style:{height:e}})})},IM=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=e.indicatorConditionalColoring,{styleService:o,theme:i,direction:a}=tA(JR,(e=>e.baseProps));if(!n)return;const{text:l,indicator:s}=e,{showTextValues:u,applySegmentColors:c}=null!=s?s:{},d=(p=o.measure.values.fontSize,parseInt(p||dR,10));var p;const f=DD(n,t),m=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return CD(o,r.limitPaletteColorIndex,n);const a=wD(r.limitRange,t);return ID(o,a,r.limitRange,n)})(n,t,f,i),h=n.segments.paletteColors[(null==f?void 0:f.limitPaletteColorIndex)||0].icon;let g=(null==s?void 0:s.position)||"right";return"rtl"===a&&(g="right"===g?"left":"right"),u?rr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:null!=r?r:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?m:void 0},children:["left"===g&&AM({size:d,iconKey:h,color:m}),rr.jsx(pD,{isNumeric:!0,children:l}),"right"===g&&AM({size:d,iconKey:h,color:m})]}):AM({size:d,iconKey:h,color:m})},PM=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,DM=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:l})=>{const{interactions:s,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=tA(JR,(e=>e.baseProps)),m=tA(JR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),h=tA(JR,(e=>e.env));let g=t.representation.text;if(t.representation.type!==Gh.Link||m||(g=rr.jsx($P,{href:t.representation.url,text:t.representation.text,interactions:s,color:r.cellForegroundColor})),t.representation.type===Gh.Image)return rr.jsx(ED,{representation:t.representation,textStyle:r,maxImageHeight:PM(u,o),wrapInContainer:!n});const b="string"==typeof(v=h.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==Gh.Indicator||Number.isNaN(b)?t.representation.type===Gh.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(cD,{height:PM(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):rr.jsx(pD,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):rr.jsx(IM,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:l})},MM=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:HE.SelectMultiEnd})};r({type:HE.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:HE.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:HE.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),LM=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=tA(JR,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:l,direction:s}=tA(JR,(e=>e.baseProps)),u=tA(JR,(e=>e.setFocusedCellCoord)),c=tA(JR,(e=>e.selectionDispatch)),d=!!l.active&&!!l.select,p=l=>{kP({evt:l,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:s})},f=e=>{((e,t)=>{e.key===em.Shift&&t({type:HE.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;wP([l,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b}=MM(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},kM=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=FE.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?FE.Disabled:n.has(e.qElemNumber)?FE.Selected:FE.Possible),i},OM=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},TM=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},_M=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return TM(t,e,n?"even":"odd")}return e},qM=(e,t)=>{const{styleService:r}=tA(JR,(e=>e.baseProps)),n=tA(JR,(t=>kM(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=_M(o,r,e),o=OM(o,r,e);const i=jR(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===FE.Selected?{...e,...r}:t===FE.Disabled?{...e,background:`${uR}, ${e.background}`}:e}(w((()=>e.isNull?o:jR(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:a,representationStyle:i,cellSelectionState:n}},NM=wE(TC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),jM=wE(tR,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),zM=wE(zC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...mR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),FM=wE(zC,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...mR,...e,fontWeight:pR,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),HM=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:l}=tA(JR,(e=>e.baseProps)),{onKeyDown:s,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=LM(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=qM(e,r);return rr.jsx(zM,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Qf}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:rr.jsx(DM,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:bD(l,e.align)})})},BM=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),$M=()=>{const{columns:e,totalsPosition:t,rows:r}=tA(JR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l,direction:s}=tA(JR,(e=>e.baseProps)),u=tA(JR,(e=>e.headRowHeight)),c=tA(JR,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!l.active;return rr.jsx(tR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return rr.jsx(FM,{totalsStyle:{...a.totalRow,...BM(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Qf}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case em.C:PP(r);break;case em.Space:r.preventDefault();break;default:DP(e)}else kf(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:s})},onMouseDown:()=>{wP(f,n,c,i)},children:rr.jsx(pD,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var VM=T($M);const WM=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=tA(JR,(e=>e.tableData)),{selectionsAPI:l,keyboard:s,layout:u,styleService:c}=tA(JR,(e=>e.baseProps)),d=tA(JR,(e=>e.selectionDispatch)),p=!(null===(n=TR(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);HP({keyboard:s,selectionDispatch:d,selectionsAPI:l,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=k((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return jP(t)})(t),m=FP();return rr.jsxs(NM,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?rr.jsx(VM,{}):void 0,o.map(((e,t)=>rr.jsx(jM,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n];return rr.jsx(HM,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:m},o)}))},`row-${t}`))),a.atBottom?rr.jsx(VM,{}):void 0]})};var GM=T(WM);const UM=(e,t,r)=>{var n;return!(null===(n=e.viewState)||void 0===n||!n.skipHeader)||!!r.flags.isEnabled("CLIENT_IM_7170_TABLE_HIDE_HEADER")&&!!t.hideHeader},YM=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>e.columnWidths)),d=tA(JR,(e=>e.setColumnWidths));if(!l.active)return null;return rr.jsx(aA,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{vP(e);const t=e.closest(".sn-table-cell");xP(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i},direction:u})};function KM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XM(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const JM=(e,t)=>rr.jsx("svg",XM(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){KM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:rr.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),ZM=O(JM);function QM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const tL=(e,t)=>rr.jsx("svg",eL(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:rr.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),rL=O(tL);function nL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const iL=(e,t)=>rr.jsxs("svg",oL(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:[rr.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),rr.jsx("use",{fillRule:"evenodd"})]})),aL=O(iL),lL=wE("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),sL=wE(sC,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?hD(e,n):void 0})));wE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const uL=wE(sC,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${Xf}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Xf}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),cL=wE(sC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));wE(sC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),wE(SC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),wE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),wE(hC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),wE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const dL=wE(zC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...mR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));wE("div")({display:"flex",alignItems:"center"});const pL=wE("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:dR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),fL=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f,direction:m}=tA(JR,(e=>e.baseProps)),h=tA(JR,(t=>t.columnWidths[e.pageColIdx])),g=tA(JR,(e=>e.baseProps.model)),b=L(null),v=L(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=Hf({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:pR});return k((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:h}),x=y(),{StartIcon:S,EndIcon:E,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(ZM,{height:dR,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(rL,{height:dR,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(pL,{align:t,dir:o,children:i}):void 0,l=n?rr.jsx(cL,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(aL,{height:dR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:l}:{EndIcon:a,LockIcon:l}})(e,x,m);o&&(o.current[e.pageColIdx]=x);return rr.jsxs(uL,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:gD(e,i,m),children:[w,rr.jsxs(sL,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:m,isPagination:i,children:[S,rr.jsx(pD,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),E]}),t?rr.jsxs(rr.Fragment,{children:[rr.jsx(AI,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:l,anchorRef:b,menuAvailabilityFlags:{[wI.Sorting]:!0,[wI.Searching]:!0,[wI.Selections]:!0,[wI.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:v},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:SP},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:m,isPagination:i}),rr.jsx(lL,{ref:v,direction:m,isPagination:i}),rr.jsx(lL,{ref:b,direction:m})]}):null]})},mL=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return Wf((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(tm)})(t)||o||n(!0)},setIsAdjustingWidth:i}},hL=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:l}=tA(JR,(e=>e.baseProps)),{columns:s,totalsPosition:u}=tA(JR,(e=>e.tableData)),c=tA(JR,(e=>e.columnWidths[t])),d=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=tA(JR,(e=>e.setFocusedCellCoord)),f=tA(JR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=mL({isInteractionEnabled:m,columnsData:s}),y=e.isActivelySorted?BE[e.sortDirection]:void 0,x=h?Zf:void 0,S=h?"true":void 0,E=t===r-1,w=[0,e.pageColIdx],C={width:c-(E?8:9),zIndex:s.length-t},R=f&&0===t&&!i.enabled&&m?0:-1;return rr.jsxs(dL,{headerStyle:{...a.header,...BM(a,u,!0)},background:h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Qf}`,tabIndex:R,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case em.C:PP(r);break;case em.Enter:case em.Space:null==n||n(r);break;default:DP(e)}else kf(r)})({evt:e,rootElement:o,cellCoord:w,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:b,direction:l})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&wP(r,t,n,o)})({evt:e,rootElement:o,cellCoord:w,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:b,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[rr.jsx(fL,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),rr.jsx(YM,{column:e,isLastColumn:E,setIsAdjustingWidth:v})]},e.id)},gL=()=>{const{columns:e}=tA(JR,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=tA(JR,(e=>e.baseProps)),o=tA(JR,(e=>e.setHeadRowHeight)),i=tA(JR,(e=>e.columnWidths)),a=tA(JR,(e=>e.env)),l=L(null),s=UM(r,n,a);return C((()=>{l.current&&o(l.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(KC,{style:{visibility:s?"collapse":void 0},children:rr.jsx(tR,{ref:l,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>rr.jsx(hL,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var bL=T(gL);const vL=e=>{var t,r;const{pageInfo:n,setPageInfo:o,footerContainer:i,announce:a}=e,{page:l,rowsPerPage:s}=n,{totalColumnCount:u,totalRowCount:c,totalPages:d,paginationNeeded:p,rows:f,columns:m}=tA(JR,(e=>e.tableData)),{rootElement:h,keyboard:g,translator:b,theme:v,interactions:y,styleService:x,viewService:S,layout:E,rect:w,direction:R}=tA(JR,(e=>e.baseProps)),A=tA(JR,(e=>e.setYScrollbarWidth)),I=tA(JR,(e=>e.showRightBorder)),P=tA(JR,(e=>e.selectionDispatch)),D=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),M=L(!1),O=L(null),T=L(null),{yScrollbarWidth:_}=OP(O),q=`${b.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(m.length)])} ${b.get("SNTable.Accessibility.NavigationInstructions")}`,N=dv(E,S),j=N&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,z=N&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,F=k((()=>{M.current=h.getElementsByTagName("table")[0].contains(document.activeElement)}),[h]),H=k((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),B=k((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return IP(O,R,S),((e,t)=>{const{keyboard:r}=tA(JR,(e=>e.baseProps));C((()=>{const n=e.current;if(!n)return;const o=e=>{CP(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(T,M),(()=>{const{rootElement:e,keyboard:t}=tA(JR,(e=>e.baseProps)),r=tA(JR,(e=>e.focusedCellCoord));Wf((()=>{const n=gP(e,r);t.active?xP(n):(null==n||n.blur(),yP(e))}),[t.active,e])})(),AP(M,a,l),C((()=>{const e=O.current;e&&(e.scrollLeft=j,e.scrollTop=z)}),[n,c,j,z]),pP((()=>{A(_)}),[_]),pP((()=>{P({type:HE.UpdatePageRows,payload:{pageRows:f}})}),[f]),RP(),rr.jsxs(cP,{ref:T,background:v.background,dir:R,onKeyDown:e=>{LP({evt:e,totalRowCount:c,page:l,rowsPerPage:s,handleChangePage:H,updateShouldRefocus:F,keyboard:g,isSelectionMode:D})},"data-testid":"sn-table",children:[rr.jsx(NP,{}),rr.jsx(_P,{ref:O,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:rr.jsxs(qP,{stickyHeader:!0,"aria-label":q,borderRight:I?`1px solid ${x.grid.border}`:void 0,children:[rr.jsx(bL,{}),rr.jsx(GM,{...e,updateShouldRefocus:F,tableWrapperRef:T})]})}),rr.jsx(sP,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:v,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:b,interactions:y,rect:w,layout:E,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:D,direction:R})]})};var yL=T(vL),xL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function SL(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||xL(n)&&xL(o)))return!1;var n,o;return!0}function EL(e,t){var r;void 0===t&&(t=SL);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var wL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function CL(e){cancelAnimationFrame(e.id)}function RL(e,t){var r=wL();var n={id:requestAnimationFrame((function o(){wL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var AL=-1;function IL(e){if(void 0===e&&(e=!1),-1===AL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),AL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return AL}var PL=null;function DL(e){if(void 0===e&&(e=!1),null===PL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?PL="positive-descending":(t.scrollLeft=1,PL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PL}return PL}var ML=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function LL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Ot(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Ot(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=EL((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=EL((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=EL((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(DL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&CL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return kL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=IL();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(DL()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ML:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),A=C[0],I=C[1],P=[];if(n>0&&g)for(var D=A;D<=I;D++)for(var M=E;M<=w;M++)P.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,M)}));var L=a(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:St({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:P,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var kL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},TL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},_L=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},qL=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?NL(e,t,r,i,0,n):jL(e,t,r,Math.max(0,i),n)},NL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=_L(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},jL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&_L(e,t,n,r).offset<o;)n+=a,a*=2;return NL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},zL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=_L(e,t,r,i),u="column"===e?TL(t,i):OL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},FL=LL({getColumnOffset:function(e,t,r){return _L("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return qL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=_L("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_L("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:OL,getEstimatedTotalWidth:TL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return zL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return zL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return _L("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return qL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=_L("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_L("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),HL=function(e,t){return e};function BL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Ot(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Ot(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=EL((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=EL((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=EL((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(DL()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&CL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return $L(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?IL():0:s.scrollHeight>s.clientHeight?IL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(DL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?HL:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],A=[];if(u>0)for(var I=w;I<=C;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var P=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:St({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var $L=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},VL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},WL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=VL(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},GL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&VL(e,r,t).offset<n;)r+=i,i*=2;return WL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},UL=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},YL=BL({getItemOffset:function(e,t,r){return VL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:UL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=VL(e,t,o),p=UL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?WL(e,t,o,0,r):GL(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=VL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=VL(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KL(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var XL=["style"],JL=["style"];function ZL(e,t){var r=e.style,n=Mt(e,XL),o=t.style,i=Mt(t,JL);return!KL(r,o)&&!KL(n,i)}const QL=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var ek=x.memo(QL,ZL);const tk=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},rk=(e,t,r)=>{C((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},nk=()=>{},ok=e=>{e.preventDefault()};const ik=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c,resizeObserverTaskScheduler:d}=n,p=tA(JR,(e=>e.hoverIndex===t)),f=tA(JR,(e=>e.setHoverIndex)),{interactions:m,styleService:h,direction:g}=tA(JR,(e=>e.baseProps)),b=tA(JR,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:E}=function(e){const{interactions:t}=tA(JR,(e=>e.baseProps)),r=tA(JR,(e=>e.selectionDispatch)),n="object"==typeof e,o=tA(JR,(t=>n?kM(e,t.selectionState):FE.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=MM(ok,e,r,nk);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),w=((e,t,r,n)=>{const o=L(null),i=r&&!r.isNumeric,a=k((r=>{const o=tk(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return rk(o,a),o})(t,e,v,u),C=null!==(i=l[e])&&void 0!==i&&i.isDim?h.dimension.values:h.measure.values;if("object"==typeof v){const n=((e,t,r,n,o,i)=>{let a=_M(o,i,e);a=OM(a,i,e);const l=!e.isNull&&t.qAttrExprInfoIDs.length?jR(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===FE.Selected?{...l,...i.selectedColors}:n===FE.Disabled?{...l,color:r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.color:l.color,background:`${uR}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:l.background}`}:r?{...l,...i.grid.hoverColors}:l;var s,u})(v,l[e],s&&p,E,C,h),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${E} ${Qf}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:vD(g,v.isLastColumn,b),borderLeftWidth:yD(g,v.isLastColumn,b),justifyContent:mD(v,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:v.align},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:s?()=>{f(t)}:void 0,onMouseLeave:s?()=>{f(-1)}:void 0,title:m.passive?v.representation.text:void 0,...o,children:rr.jsx(DM,{forwardRef:h.contentStaticLineCount||1===c?void 0:w,cell:v,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return rr.jsx(ek,{style:{...r,...C,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var ak=T(ik,ZL);const lk=e=>{const t=L(e);return t.current=e,t},sk=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,uk=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},ck=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},dk=(e,t,r,n,o,i,a,l)=>{e.forEach((e=>{e.qMatrix.forEach(((s,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,l,s,u)=>{var c;const{qSize:d}=a.qHyperCube,p=n.qTop+r,f=o+r,m=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(m.at(r))return;const{colIdx:o,isDim:c,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],E=rv(c,e,a,l),w=l.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&!c&&e.qIsNull,C=w?Qg(E):Zg(e);m[r]={id:Kg(),...e,align:uv(C,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!h,pageRowIdx:f,pageColIdx:r,selectionColIdx:b,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:C,isNull:(!w||!C)&&tv(e,c),representation:ev({cell:e,representationProperties:y,attrExprInfoIndex:v,env:l,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>w?E:e.qText,direction:u})},s(m[r],p,r)})),{row:m,pageRowIdx:f}})(r,s,u,e.qArea,c,n,o,i,a,l);r[p]=d}))}))},pk=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=tA(JR,(e=>e.env)),{direction:p}=tA(JR,(e=>e.baseProps)),f=L([]),m=k(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return dk(t,o,n,s,e,d,c,p),f.current=n,n}),[i,o,s,e,d,c,p]),[h,g]=E((()=>m(null!=n?n:[])));Wf((()=>{g(m(null!=n?n:[]))}),[n,p]);const b=((e,t)=>{const r=L(new Set),n=L(new Set),o=L(new Set),i=lk(e),a=lk(t),l=w((()=>({enqueue:e=>{const t=sk(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(sk(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),v=k(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ck(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=k(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(uk(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},fk=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},mk=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,hk=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=tA(JR,(e=>e.baseProps.styleService)),i=tA(JR,(e=>e.columnWidths)),{estimateLineCount:a}=Hf(o.dimension.values),l=GR(o.dimension.values.fontSize),s=e||t||1===r;return k(((e,t,o)=>{if(s||e.representation.type===Gh.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},gk=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>w((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),bk=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=tA(JR,(e=>e.baseProps)),[a,l]=E({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n,o;const{layout:i}=tA(JR,(e=>e.baseProps)),a=tA(JR,(e=>e.columnWidths)),{flags:l}=tA(JR,(e=>e.env)),s=null===(n=i.multiline)||void 0===n?void 0:n.wrapTextInCells,u=l.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")?null===(o=i.nullValueRepresentation)||void 0===o?void 0:o.text:void 0;Wf((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[i.qHyperCube.qSize.qcx,i.qHyperCube.qSize.qcy,r.page,s,u]),Wf((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[a])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>k(((o,i,a)=>{N((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!mk(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,fk(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>k(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:hk({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:k((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:gk({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},vk=(e,t)=>{_((()=>()=>{t(0)}),[e,t]);const r=k((e=>{const r=tk(e);void 0!==r&&t(r)}),[t]);rk(e,r)};var yk;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(yk||(yk={}));const xk=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>k((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=yk.None,i=yk.None;return o=n>t?yk.Down:n<t?yk.Up:yk.None,i=r>e?yk.Right:r<e?yk.Left:yk.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===yk.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===yk.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===yk.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===yk.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),Sk={enabled:!1},Ek=()=>{},wk={current:null};const Ck=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=w((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},Rk=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},Ak={overflow:"hidden",willChange:"auto"};var Ik=T(O(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a,setInnerBodyHeight:l}=e,{layout:s,model:u,theme:c,viewService:d,styleService:p,direction:f}=tA(JR,(e=>e.baseProps)),m=tA(JR,(e=>e.columnWidths)),h=tA(JR,(e=>e.initialDataPages)),g=L(null),b=L(null),v=L({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=L(0),x=!(null===(r=TR(s))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:E,visibleColumnCount:R}=Ck(s,i,n,m,p.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:I,getRowHeight:P,lineClamp:D,totalRowHeight:M}=bk({rowCount:S,isSnapshot:!!s.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:k,loadRows:O,loadColumns:T}=pk({layout:s,model:u,theme:c,initialDataPages:h,pageInfo:i,rowCount:S,visibleRowCount:E,visibleColumnCount:R,columns:o,gridState:v,setEstimatedCellHeight:I}),q=xk({layout:s,loadRows:O,loadColumns:T,rowCount:S,pageInfo:i,gridState:v,viewService:d}),N=FP(),z=w((()=>({rowsInPage:k,columns:o,isHoverEnabled:x,lineClamp:D,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[k,o,x,D,A,N]),F=((e,t,r)=>Math.min(e.height-t,r))(n,a,M);return _((()=>{var e;1===y.current&&(null===(e=g.current)||void 0===e||e.scrollToItem({rowIndex:S-1,align:"start"}))})),function(e){const{selectionsAPI:t}=tA(JR,(e=>e.baseProps)),r=tA(JR,(e=>e.selectionDispatch));C((()=>{r({type:HE.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),HP({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:Ek,keyboard:Sk,tableWrapperRef:wk})}(k),j(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=b.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:F)-F,i=Math.round(o*e);var a,l,s;(y.current=e,1===y.current)?(null===(a=g.current)||void 0===a||a.scrollToItem({rowIndex:S-1,align:"start"}),null===(l=g.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=g.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})}})),[b,F,S]),vk(b,l),rr.jsx(FL,{"data-key":"body",ref:g,innerRef:b,style:Ak,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>m[e],height:F,rowCount:S,rowHeight:P,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:z,onItemsRendered:q,itemKey:Rk,className:"sn-table-body",direction:f,children:ak})})));const Pk=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Dk=(e,t)=>{const r=L(null),n=tA(JR,(e=>e.columnWidths));_((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=k((r=>{const n=tk(r);n&&t(n+9,e)}),[e,t]);return rk(r,o),r},Mk=wE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),Lk=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=tA(JR,(e=>e.showRightBorder)),p=tA(JR,(e=>e.tableData.totalsPosition)),f=!!l.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=mL({isInteractionEnabled:f,columnsData:n}),v=Dk(e,a),y=n[e],x=n.length-1===e;return rr.jsxs(Mk,{className:`sn-table-cell ${Qf}`,title:l.passive?y.label:void 0,onClick:g,applicableStyle:{...s.header,...BM(s,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:vD(u,x,d),borderLeftWidth:yD(u,x,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===y.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:m?s.headerMenuActiveBackground:s.header.background,children:[rr.jsx(fL,{forwardRef:v,column:y,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:i}),rr.jsx(YM,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:b})]})},kk=e=>{const[t,r]=E(new Map);Wf((()=>{r(new Map)}),[e.length]);const n=k(((e,t)=>{r((r=>mk(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:w((()=>fk(t)),[t]),setMeasuredCellHeight:n}},Ok=(e,t)=>{j(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},Tk=(e,t,r,n,o)=>{Wf((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},_k={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},qk=O(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:l}=e,s=L(null),u=L(null),{layout:c,theme:d,styleService:p,direction:f,viewService:m}=tA(JR,(e=>e.baseProps)),h=tA(JR,(e=>e.columnWidths)),g=tA(JR,(e=>e.env)),{rowHeight:b,setMeasuredCellHeight:v}=kk(n),y=UM(m,c,g);return Ok(t,s),Tk(s,c,o,h,d),vk(u,l),rr.jsx(YL,{ref:s,outerRef:u,layout:"horizontal",style:{..._k,...y?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(b+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:v},direction:f,children:Lk})}));var Nk=T(qk);const jk=O(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:l}=tA(JR,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:l,children:r})})),zk=({children:e,rect:t})=>{const{direction:r}=tA(JR,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},Fk=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>e.showRightBorder)),d=Dk(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return rr.jsx("div",{className:`sn-table-cell ${Qf}`,title:l.passive?p:void 0,style:{...t,...s.totalRow,...BM(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:vD(u,h,c),borderLeftWidth:yD(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:rr.jsx(pD,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},Hk=O(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,l=L(null),s=L(null),{layout:u,theme:c,styleService:d,direction:p}=tA(JR,(e=>e.baseProps)),f=tA(JR,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=kk(i);return Ok(t,l),Tk(l,u,n,f,c),vk(s,a),rr.jsx(YL,{ref:l,outerRef:s,layout:"horizontal",style:_k,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:Fk})}));var Bk=T(Hk);const $k=(e,t,r,n,o)=>k((i=>{var a,l,s;const{scrollHeight:u,clientHeight:c,scrollTop:d}=i.currentTarget,p=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(a=r.current)||void 0===a||a.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(l=e.current)||void 0===l||l.scrollTo(p),null===(s=t.current)||void 0===s||s.scrollTo(p)}),[n,r,e,t,o]),Vk=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=tA(JR,(e=>e.tableData)),{layout:i,theme:a,rect:l,viewService:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>e.columnWidths)),d=tA(JR,(e=>e.setYScrollbarWidth)),p=L(null),f=L(null),m=L(null),h=L(null),{xScrollbarWidth:g,yScrollbarWidth:b}=OP(p),v=L([]),y=w((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(l,o)),[l,o]),x=w((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=Ck(i,t,x,c,0),{headerAndTotalsHeight:C,innerBodyHeight:R,setHeaderRowHeight:A,setTotalsRowHeight:I,setInnerBodyHeight:P}=(()=>{const[e,t]=E(0),[r,n]=E(0),[o,i]=E(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:D,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=tA(JR,(e=>e.baseProps)),a=e+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:R,headerAndTotalsHeight:C,rowCount:S,stickyContainerRect:x,columnWidths:c}),O=$k(f,m,h,s,u),T=k((()=>{p.current&&(p.current.scrollTop=0)}),[p]);RP(),_((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),_((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),pP((()=>{d(b)}),[b]);const q=rr.jsx(Bk,{rect:x,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:I},"totals");return rr.jsx(jk,{ref:p,width:y.width,height:y.height,onScroll:O,children:rr.jsx(Pk,{width:D,height:M,children:rr.jsxs(zk,{rect:x,children:[rr.jsx(Nk,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:T,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:A}),r.atTop?q:null,rr.jsx(Ik,{ref:h,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:C,setInnerBodyHeight:P}),r.atBottom?q:null]})})})};var Wk=T(Vk);const Gk=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=tA(JR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=tA(JR,(e=>e.tableData)),c=tA(JR,(e=>e.pageInfo)),d=tA(JR,(e=>e.setPage));return rr.jsxs(cP,{"data-testid":"sn-table",background:e.background,children:[rr.jsx(Wk,{pageInfo:c}),rr.jsx(sP,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var Uk=T(Gk);var Yk={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const Kk=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(Yk).forEach((t=>{e.add(Yk[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${$E.First}`),l=e.querySelector(`.${$E.Second}`);if(!a||!l)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let s;r===$E.First?(s=l,r=$E.Second):(s=a,r=$E.First),s.innerHTML=s.innerHTML.endsWith(" ­")?i:`${i} ­`,s.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),Xk={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},Jk=e=>{const{app:r,model:i,rootElement:a,layout:l,translator:s,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=t(),h=pv(l,d),g=Kk(a,s),[b,v]=n(((e,t)=>dv(e,t)?{page:t.page||Xk.page,rowsPerPage:t.rowsPerPage||Xk.rowsPerPage,rowsPerPageOptions:Xk.rowsPerPageOptions}:Xk)(l,d)),[y,x]=n(!0);y||x(!0);const[S,E]=jf((async()=>h?async function(e,t,r,n,o,i,a,l){var s,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:m}=r,h=t.qHyperCube.qSize.qcx,g=t.qHyperCube.qSize.qcy,b=Math.ceil(g/f),v=null!==(s=o.visibleTop)&&void 0!==s?s:p*f,y=null!==(u=o.visibleHeight)&&void 0!==u?u:Math.min(f,g-v);if(p>0&&v>=g)return n({...r,page:0}),null;if(y*h>nv)return n({...r,rowsPerPage:ov(h,m),page:0}),null;const x=g>10,S=iv(t,o),E=cv(t,a,l),w=!!t.snapshotData,C=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=null==n?void 0:n.qArea;return n&&(null==o?void 0:o.qLeft)===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:v,qHeight:y,qWidth:h});w||(o.qTop=v,o.qHeight=y,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const R=null!==(c=null===(d=C.at(0))||void 0===d?void 0:d.qMatrix.map(((e,r)=>{const n=[];return E.forEach(((o,s)=>{const u=e[s],c=rv(o.isDim,u,t,i),d=i.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&!o.isDim&&u.qIsNull,p=d?Qg(c):Zg(u);n[s]={id:Kg(),...u,align:uv(p,o.bodyTextAlign,l,a),rowIdx:r+v,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===y-1,isNumeric:p,isNull:(!d||!p)&&tv(u,o.isDim),representation:ev({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:l})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:h,totalRowCount:g,totalPages:b,paginationNeeded:x,totalsPosition:S,columns:E,rows:R}}(i,l,b,v,d,p,y,f):null),[l,b,i,h,f]);o((()=>{h&&e.model&&e.changeSortOrder&&S&&c&&!E&&function(e,t){const{direction:r,...n}=e,o=rA(r);t.render(rr.jsx(yi,{stylisPlugins:"rtl"===r?[hw]:void 0,children:rr.jsx(RE,{theme:o,children:rr.jsx(eA,{...e,children:rr.jsx(yL,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,r,f,m,c,b,u,e,h,S,E])},Zk=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==l||s;if(!o){var m;const e=null===(m=c.qHyperCubeDef.qMeasures.at(u))||void 0===m?void 0:m.qSortBy;void 0===(null==e?void 0:e.qSortByNumeric)&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===l?1:-1})})}s||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const Qk=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=jf((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(gR,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return n})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},eO=t=>{const{layout:r,model:i,keyboard:a,interactions:l,reactRoot:s,isFontLoaded:u,viewService:c,direction:d}=t,p=!pv(r,c),[f,m]=n(!1);f&&m(!1);const h=e((()=>function(e,t,r,n,o){const i=cv(e,o,n),a=iv(e,r),l=e.qHyperCube.qSize.qcy,s=Math.min(gR,l),u=l>gR&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:l,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/s),paginationNeeded:u}}(r,l,c,d,f)),[r,l,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(gR,t.qHyperCube.qSize.qcy),l=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/gR);e<o&&i(e)}return{pageInfo:l,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=Qk({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{var e;p&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=rA(r);t.render(rr.jsx(x.StrictMode,{children:rr.jsx(RE,{theme:n,children:rr.jsx(eA,{...e,children:rr.jsx(Uk,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},s)}),[v,u,y,g,s,t,b,p,h])},tO={version:JSON.stringify("4.7.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var rO=e=>({properties:{initial:tO},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>zh({...t,env:e}),exportProperties:Oh,exploration:Fh});function nO(e,t){var r,n;const o=e.getElementsByClassName("sn-table-container")[0];if(!o)return{};const i=o.getBoundingClientRect(),a=e.getElementsByClassName("sn-table-head-row")[0],l=null!==(r=null==a?void 0:a.getBoundingClientRect())&&void 0!==r?r:{height:0},s=e.getElementsByClassName("sn-table-totals-row")[0],u=null!==(n=null==s?void 0:s.getBoundingClientRect())&&void 0!==n?n:{height:0},c=e.getElementsByClassName("sn-table-data-row"),d={top:i.y+l.height+(t.atTop?u.height:0),bottom:i.y+i.height-(t.atBottom?u.height:0)},p=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(c,d),f=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(c,d),m=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(c,d,p);return{visibleRowStartIndex:p,visibleRowEndIndex:f,rowPartialHeight:m}}const oO=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},iO=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const aO=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||Xk.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},lO=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=iv(e,t);if(pv(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=nO(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:aO(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=oO(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(iO(m,h,g)?d:d+1)+c;let v=p+c;const y=oO(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(iO(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:aO(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},sO=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),uO=e=>e.getStyle("object","straightTableV2","backgroundColor");function cO(r){return{qae:rO(r),ext:Fg(r),component(){var n;const i=c(),y=(t=>{const r=e((()=>Bf(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d(),S=p(),E=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData),C=m(),R=h(),A=g(),I=t(),{freeResize:P}=I,D=b(),M=e((()=>{var e;return null!==(e=x.snapshotData)&&void 0!==e&&e.content&&!P?{...D,...x.snapshotData.content.size}:D}),[D,P,null===(n=x.snapshotData)||void 0===n?void 0:n.content]),L=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),k=v(),O=Nf(x,i,sO,uO),T=r.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?I.direction:"ltr",_=Zk(x.qHyperCube,E),q=Hg(x.qHyperCube,E),N=((e,t,r)=>{const[,n,o]=jf((async()=>{var t;const n=ue(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,Vf].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(O,x,r),j=xt(),z={app:S,layout:x,model:E,rect:M,theme:O,keyboard:A,translator:C,interactions:w,selectionsAPI:R,changeSortOrder:_,rootElement:i,embed:k,reactRoot:y,applyColumnWidths:q,isFontLoaded:N,downloadService:j,viewService:L,direction:T,env:r};null==l||l(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Qf}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{um(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=lO(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>lO(e,t,n)})),[e,t,n])})({layout:x,viewService:L,model:E,rootElement:i,contentRect:D}),eO(z),Jk(z)}}}export{cO as default};
193
+ `),Bw.rippleVisible,Kw,550,(({theme:e})=>e.transitions.easing.easeInOut),Bw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bw.child,Bw.childLeaving,Xw,550,(({theme:e})=>e.transitions.easing.easeInOut),Bw.childPulsate,Jw,(({theme:e})=>e.transitions.easing.easeInOut)),eC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Mt(r,$w),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=Zy(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,rr.jsx(Qw,{classes:{ripple:Ca(o.ripple,Bw.ripple),rippleVisible:Ca(o.rippleVisible,Bw.rippleVisible),ripplePulsate:Ca(o.ripplePulsate,Bw.ripplePulsate),child:Ca(o.child,Bw.child),childLeaving:Ca(o.childLeaving,Bw.childLeaving),childPulsate:Ca(o.childPulsate,Bw.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),rr.jsx(Zw,St({className:Ca(Bw.root,o.root,i),ref:m},a,{children:rr.jsx(Lu,{component:null,exit:!0,children:l})}))}));function tC(e){return Ty("MuiButtonBase",e)}const rC=_y("MuiButtonBase",["root","disabled","focusVisible"]),nC=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],oC=wE("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${rC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:P=0,TouchRippleProps:D,touchRippleRef:M,type:L}=r,k=Mt(r,nC),O=y.useRef(null),T=y.useRef(null),_=Yy(T,M),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=lx(),[F,H]=y.useState(!1);s&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[B,$]=y.useState(!1);y.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!s;function W(e,t,r=c){return Uy((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&B&&T.current.pulsate()}),[u,d,F,B]);const G=W("start",E),U=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",(e=>{j(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Uy((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Uy((e=>{d&&!ne.current&&F&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Uy((e=>{d&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Yy(t,z,O),ue=St({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=sx({root:["root",t&&"disabled",r&&"focusVisible"]},tC,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rr.jsxs(oC,St({as:ae,className:Ca(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:P,type:L},le,k,{children:[i,V?rr.jsx(eC,St({ref:_,center:o},D)):null]}))})),aC=_y("MuiBox",["root"]),lC=WS(),sC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Bi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(xy),a=y.forwardRef((function(e,a){const l=function(e=Ay){return Ry(e)}(r),s=Py(e),{className:u,component:c="div"}=s,d=Mt(s,ky);return rr.jsx(i,St({as:c,ref:a,className:Ca(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:hv,defaultTheme:lC,defaultClassName:aC.root,generateClassName:Ly.generate}),uC=_y("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),cC=y.createContext({});function dC(e){return Ty("MuiListItemIcon",e)}const pC=_y("MuiListItemIcon",["root","alignItemsFlexStart"]),fC=["className"],mC=wE("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>St({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),hC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Mt(r,fC),i=St({},r,{alignItems:y.useContext(cC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return sx({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dC,r)})(i);return rr.jsx(mC,St({className:Ca(a.root,n),ownerState:i,ref:t},o))})),gC=_y("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function bC(e){return Ty("MuiMenuItem",e)}const vC=_y("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],xC=wE(iC,{shouldForwardProp:e=>EE(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>St({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${uC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${uC.inset}`]:{marginLeft:52},[`& .${gC.root}`]:{marginTop:0,marginBottom:0},[`& .${gC.inset}`]:{paddingLeft:36},[`& .${pC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&St({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pC.root} svg`]:{fontSize:"1.25rem"}})))),SC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Mt(r,yC),f=y.useContext(cC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);By((()=>{n&&h.current&&h.current.focus()}),[n]);const g=St({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return St({},a,sx({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},bC,a))})(r),v=Yy(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),rr.jsx(cC.Provider,{value:m,children:rr.jsx(xC,St({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Ca(b.focusVisible,s),className:Ca(b.root,d)},p,{ownerState:g,classes:b}))})})),EC=y.createContext();function wC(e){return Ty("MuiTable",e)}_y("MuiTable",["root","stickyHeader"]);const CC=["className","component","padding","size","stickyHeader"],RC=wE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>St({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":St({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),AC="table",IC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTable"}),{className:n,component:o=AC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=Mt(r,CC),u=St({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return sx({root:["root",r&&"stickyHeader"]},wC,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return rr.jsx(EC.Provider,{value:d,children:rr.jsx(RC,St({as:o,role:o===AC?null:"table",ref:t,className:Ca(c.root,n),ownerState:u},s))})})),PC=y.createContext();function DC(e){return Ty("MuiTableBody",e)}_y("MuiTableBody",["root"]);const MC=["className","component"],LC=wE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),kC={variant:"body"},OC="tbody",TC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableBody"}),{className:n,component:o=OC}=r,i=Mt(r,MC),a=St({},r,{component:o}),l=(e=>{const{classes:t}=e;return sx({root:["root"]},DC,t)})(a);return rr.jsx(PC.Provider,{value:kC,children:rr.jsx(LC,St({className:Ca(l.root,n),as:o,ref:t,role:o===OC?null:"rowgroup",ownerState:a},i))})}));function _C(e){return Ty("MuiTableCell",e)}const qC=_y("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),NC=["align","className","component","padding","scope","size","sortDirection","variant"],jC=wE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Iv(r.size)}`],"normal"!==r.padding&&t[`padding${Iv(r.padding)}`],"inherit"!==r.align&&t[`align${Iv(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>St({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?kx(Dx(e.palette.divider,1),.88):Mx(Dx(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${qC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),zC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=Mt(r,NC),p=y.useContext(EC),f=y.useContext(PC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=St({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return sx({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Iv(n)}`,"normal"!==o&&`padding${Iv(o)}`,`size${Iv(i)}`]},_C,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),rr.jsx(jC,St({as:h,ref:t,className:Ca(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function FC(e){return Ty("MuiTableContainer",e)}_y("MuiTableContainer",["root"]);const HC=["className","component"],BC=wE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),$C=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Mt(r,HC),a=St({},r,{component:o}),l=(e=>{const{classes:t}=e;return sx({root:["root"]},FC,t)})(a);return rr.jsx(BC,St({ref:t,as:o,className:Ca(l.root,n),ownerState:a},i))}));function VC(e){return Ty("MuiTableHead",e)}_y("MuiTableHead",["root"]);const WC=["className","component"],GC=wE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),UC={variant:"head"},YC="thead",KC=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableHead"}),{className:n,component:o=YC}=r,i=Mt(r,WC),a=St({},r,{component:o}),l=(e=>{const{classes:t}=e;return sx({root:["root"]},VC,t)})(a);return rr.jsx(PC.Provider,{value:UC,children:rr.jsx(GC,St({as:o,className:Ca(l.root,n),ref:t,role:o===YC?null:"rowgroup",ownerState:a},i))})}));function XC(e){return Ty("MuiTableRow",e)}const JC=_y("MuiTableRow",["root","selected","hover","head","footer"]),ZC=["className","component","hover","selected"],QC=wE("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${JC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${JC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),eR="tr",tR=y.forwardRef((function(e,t){const r=Hw({props:e,name:"MuiTableRow"}),{className:n,component:o=eR,hover:i=!1,selected:a=!1}=r,l=Mt(r,ZC),s=y.useContext(PC),u=St({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return sx({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},XC,t)})(u);return rr.jsx(QC,St({as:o,ref:t,className:Ca(c.root,n),role:o===eR?null:"row",ownerState:u},l))}));function rR(e={}){return rr.jsx(_w,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("rect",{stroke:vw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const nR={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ww,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var oR=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:vw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:vw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:rr.jsx(kw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${vw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`,borderRadius:ww,backgroundColor:vw.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${vw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:vw.WHITE,color:vw.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ww},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:vw.GREYSCALE_0_15,backgroundColor:vw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:vw.GREEN_PALE},"&:active":{backgroundColor:vw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:vw.BLUE_PALE},"&:active":{backgroundColor:vw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ww,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:vw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:vw.GREYSCALE_0_15,backgroundColor:vw.GREYSCALE_100_60,"&:active":{backgroundColor:vw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${vw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:vw.PURPLE,"&.Mui-focusVisible":{borderColor:vw.PURPLE,boxShadow:`0 0 0 3px ${Gy(vw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:vw.GREEN,"&.Mui-focusVisible":{borderColor:vw.GREEN,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:vw.BLUE,"&.Mui-focusVisible":{borderColor:vw.BLUE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:vw.ORANGE,"&.Mui-focusVisible":{borderColor:vw.ORANGE,boxShadow:`0 0 0 3px ${Gy(vw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:vw.RED,"&.Mui-focusVisible":{borderColor:vw.RED,boxShadow:`0 0 0 3px ${Gy(vw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:vw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:vw.PURPLE_PALE},"&:active":{backgroundColor:vw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:vw.PURPLE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:vw.GREEN_PALE},"&:active":{backgroundColor:vw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:vw.BLUE_PALE},"&:active":{backgroundColor:vw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:vw.ORANGE_PALE},"&:active":{backgroundColor:vw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:vw.ORANGE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:vw.RED_PALE},"&:active":{backgroundColor:vw.RED_DARK},"&.Mui-focusVisible":{borderColor:vw.RED_PALE,boxShadow:`0 0 0 3px ${Gy(vw.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:vw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:vw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ww,boxShadow:`inset 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:rr.jsx(Tw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:yw,borderRadius:ww,color:vw.TEXT_PRIMARY,backgroundColor:vw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:vw.GREYSCALE_0_05,color:vw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:vw.GREEN,borderColor:vw.GREEN},"&.MuiChip-outlinedInfo":{color:vw.BLUE,borderColor:vw.BLUE},"&.MuiChip-outlinedWarning":{color:vw.ORANGE,borderColor:vw.ORANGE},"&.MuiChip-outlinedError":{color:vw.RED,borderColor:vw.RED}},outlined:{border:`solid 1px ${vw.GREYSCALE_0_15}`,backgroundColor:vw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ww,boxShadow:"none",backgroundColor:vw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:vw.GREEN,borderColor:vw.GREEN},outlinedSecondary:{color:vw.BLUE,borderColor:vw.BLUE},label:{fontFamily:Pw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:rr.jsx(Tw,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:rr.jsx(kw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ww},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ww,fontSize:xw,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:vw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${vw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:vw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:vw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ww,border:`solid 1px ${vw.GREYSCALE_0_15}`,color:vw.GREYSCALE_0_60,marginRight:0,width:Ew,height:Ew},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${vw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ww,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:vw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:xw}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:yw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:vw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:vw.GREYSCALE_25,fontSize:yw,fontFamily:Pw.FONT_FAMILY,fontWeight:Aw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:vw.TEXT_PRIMARY},"&.Mui-error":{color:vw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:vw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:vw.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:xw,lineHeight:"16px",backgroundColor:vw.WHITE,borderRadius:ww,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.GREYSCALE_0_05}`,borderColor:vw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${vw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${vw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.RED}`,boxShadow:`0px 0px 0px 1px ${vw.RED}, inset 0 2px 0 0 ${vw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${vw.GREYSCALE_0_10}`,borderColor:vw.GREYSCALE_0_10,backgroundColor:vw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:vw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:vw.GREYSCALE_0_15,borderRadius:ww,boxShadow:`inset 0 2px 0 0 ${vw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>rr.jsx(kw,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:vw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:vw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:vw.GREYSCALE_0_03},"&:active":{backgroundColor:vw.GREYSCALE_0_10},"&:focus":{backgroundColor:vw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${vw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:vw.GREYSCALE_0_30,"&:hover":{backgroundColor:vw.GREYSCALE_0_0,borderColor:vw.GREYSCALE_0_15},"& ~svg":{color:vw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${vw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ww}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:vw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:vw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:xw,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:yw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:yw,fontWeight:Aw,color:vw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Aw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${vw.GREYSCALE_0_15}, 0px 0px 0px 1px ${vw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:rr.jsx(jw,{}),checkedIcon:rr.jsx(zw,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:vw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:vw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:vw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:rr.jsx(rR,{}),checkedIcon:rr.jsx(qw,{}),indeterminateIcon:rr.jsx(Nw,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ww,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:vw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:vw.GREYSCALE_0_55,color:vw.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:vw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:vw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:vw.GREYSCALE_0_55,"&:hover":{color:vw.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:vw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:vw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:xw,color:vw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Aw},secondary:{fontSize:yw,color:vw.GREYSCALE_45,fontWeight:Rw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:xw,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:xw,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:vw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:yw,borderBottom:`solid 1px ${vw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:xw,color:vw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:vw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:vw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:vw.RED}}},"&.Mui-focusVisible":{backgroundColor:vw.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:vw.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:vw.GREEN,height:"24px","&.Mui-disabled":{color:vw.GREYSCALE_0_15}},rail:{backgroundColor:vw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${vw.GREYSCALE_0_05}`,borderRadius:ww,boxShadow:`inset 0px 0px 0px 1px ${vw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${vw.GREYSCALE_0_05}`,borderRadius:ww},thumb:{height:"16px",width:"16px",borderRadius:ww,backgroundColor:vw.WHITE,boxShadow:`0px 1px 2px 0px ${vw.GREYSCALE_0_15}, 0px 0px 0px 1px ${vw.GREYSCALE_0_05}`,"&:hover":{borderRadius:ww,boxShadow:`0 2px 4px 0 ${vw.GREYSCALE_0_30}, 0 0 0 1px ${vw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${vw.GREYSCALE_0_15}, 0 0 0 1px ${vw.GREYSCALE_0_06}, 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${vw.GREYSCALE_0_15}, 0 0 0 1px ${vw.GREYSCALE_0_06}, 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:vw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:vw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:vw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:vw.GREYSCALE_0_15},markLabel:{color:vw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:vw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:vw.WHITE,color:vw.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:vw.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:vw.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(vw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:vw.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(vw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:vw.GREYSCALE_0_15,borderRadius:ww},thumb:{height:"16px",width:"16px",borderRadius:ww,backgroundColor:vw.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:xw,fontWeight:Aw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${vw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${vw.MISC_FOCUS_BORDER}`,backgroundColor:vw.GREYSCALE_0_03,borderRadius:ww},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:vw.GREYSCALE_25,"&.Mui-selected":{color:vw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:xw,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ww,"&:hover":{backgroundColor:vw.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${vw.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${vw.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ww,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:vw.GREYSCALE_0_05},"&:hover":{backgroundColor:vw.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${vw.GREYSCALE_85}`,borderRight:`1px solid ${vw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Aw,backgroundColor:vw.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:vw.GREYSCALE_98,borderBottom:`1px solid ${vw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${vw.GREYSCALE_85}`,borderTop:`1px solid ${vw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:vw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:vw.GREYSCALE_0_05,"&:hover":{backgroundColor:vw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:vw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>rr.jsx(Fw,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${vw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:xw,borderRadius:ww,padding:"7px 16px",border:`1px solid ${vw.GREYSCALE_0_15}`,backgroundColor:vw.GREYSCALE_100_60,color:vw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:vw.GREYSCALE_0_10,border:`1px solid ${vw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:vw.GREYSCALE_0_03,border:`1px solid ${vw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:vw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${vw.MISC_FOCUS_BORDER}`,border:`1px solid ${vw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:vw.GREYSCALE_25,backgroundColor:vw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:vw.GREYSCALE_0_10,border:`1px solid ${vw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:yw,height:24,width:24,padding:7},sizeLarge:{fontSize:Sw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:xw,borderRadius:ww}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:vw.GREYSCALE_20},tooltip:{backgroundColor:vw.GREYSCALE_20,fontSize:yw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...nR}:{}}))(t);const iR=e=>({mode:"light",primary:{ultraLight:vw.GREEN_ULTRA_LIGHT,light:vw.GREEN_PALE,main:vw.GREEN,dark:vw.GREEN_DARK,extraDark:vw.GREEN_EXTRA_DARK,contrastText:vw.WHITE},secondary:{ultraLight:vw.BLUE_ULTRA_LIGHT,light:vw.BLUE_PALE,main:vw.BLUE,dark:vw.BLUE_DARK,extraDark:vw.BLUE_EXTRA_DARK,contrastText:vw.WHITE},error:{ultraLight:vw.RED_ULTRA_LIGHT,light:vw.RED_PALE,main:vw.RED,dark:vw.RED_DARK,extraDark:vw.RED_EXTRA_DARK,contrastText:vw.WHITE},warning:{ultraLight:vw.ORANGE_ULTRA_LIGHT,light:vw.ORANGE_PALE,main:vw.ORANGE,dark:vw.ORANGE_DARK,extraDark:vw.ORANGE_EXTRA_DARK,contrastText:vw.WHITE},success:{ultraLight:vw.GREEN_ULTRA_LIGHT,light:vw.GREEN_PALE,main:vw.GREEN,dark:vw.GREEN_DARK,extraDark:vw.GREEN_EXTRA_DARK,contrastText:vw.WHITE},info:{ultraLight:vw.BLUE_ULTRA_LIGHT,light:vw.BLUE_PALE,main:vw.BLUE,dark:vw.BLUE_DARK,extraDark:vw.BLUE_EXTRA_DARK,contrastText:vw.WHITE},text:{primary:vw.TEXT_PRIMARY,secondary:vw.TEXT_SECONDARY,disabled:vw.GREYSCALE_0_30},action:{hover:vw.GREYSCALE_0_03,hoverOpacity:.03,selected:vw.GREYSCALE_0_05,selectedOpacity:.05,focus:vw.MISC_FOCUS_BORDER},amethyst:{ultraLight:vw.WHITE,main:vw.PURPLE,light:vw.PURPLE_PALE,dark:vw.PURPLE_DARK,extraDark:vw.GREYSCALE_0_0,contrastText:vw.WHITE},background:{paper:vw.WHITE,default:vw.GREYSCALE_95},divider:vw.GREYSCALE_0_15}),aR={...bw},lR=(e="light",t=!1)=>((e,t=!1)=>({components:oR(0,t),palette:iR(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:xw,fontWeightLight:Cw,fontWeightRegular:Rw,fontWeightMedium:Aw,fontWeightBold:Iw,htmlFontSize:xw,fontFamily:Pw.FONT_FAMILY,button:{fontWeight:Aw,fontSize:xw,textTransform:"none"},body1:{fontSize:Sw,lineHeight:"24px"},body2:{fontSize:xw,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ew,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Sw,fontWeight:Aw,lineHeight:"16px"},h6:{fontSize:xw,fontWeight:Aw,lineHeight:"16px"},caption:{color:vw.TEXT_SECONDARY},subtitle1:{fontSize:xw,color:vw.TEXT_SECONDARY},subtitle2:{fontSize:yw,color:vw.TEXT_SECONDARY}},shape:{borderRadius:ww}}))(0,t),sR=lR().palette,uR=(sR.primary.light,FE.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),cR=4/3,dR="12px",pR="600",fR="Source Sans Pro, sans-serif",mR={height:"auto",fontSize:dR,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},hR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:pR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},gR=25e4,bR=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(rm.PixelsMax,Math.max(rm.PixelsMin,m)),i-=n[a]};switch(s){case nm.Pixels:m=u||rm.PixelsDefault,h();break;case nm.Percentage:m=(c||rm.PercentageDefault)/100*t,h();break;case nm.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===Gh.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case nm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(rm.AutoMinTable,e)}))}return n},vR=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},yR=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},xR=e=>e.ctrlKey||e.metaKey,SR=e=>e.shiftKey&&xR(e),ER=e=>[em.Left,em.Right,em.Up,em.Down].includes(e),wR=e=>e.shiftKey&&ER(e.key),CR=e=>{return t=e.key,(ER(t)||[em.Home,em.End,em.PageUp,em.PageDown].includes(t))&&!SR(e);var t},RR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s=new Map;if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s=new Map(n)}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(s,i,l),vR(a,n,s),s.size?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(s.values()),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},AR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;if(!(l||"key"in c&&wR(c)))return e;-1===i&&(null==n||n.begin(["/qHyperCubeDef"]));const d=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&wR(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===em.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(a,o,s,c,l);return vR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}},IR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},PR=(e,t)=>{var r;switch(t.type){case HE.Select:return RR(e,t.payload);case HE.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case HE.SelectMouseUp:return((e,t)=>IR(e.isSelectMultiValues||e.firstCell!==t.cell?e:RR(e,t)))(e,t.payload);case HE.SelectMultiAdd:return AR(e,t.payload);case HE.SelectMultiEnd:return IR(e);case HE.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case HE.Clear:return e.rows.size?{...e,rows:new Map}:e;case HE.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},DR=4/3,MR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function LR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const kR=(e,t)=>e?{borderBottomColor:Cf.DARK_MODE_BORDER,borderRightColor:Cf.DARK_MODE_BORDER,borderLeftColor:Cf.DARK_MODE_BORDER,borderTopColor:Cf.DARK_MODE_BORDER}:{borderLeftColor:Cf.BORDER_MEDIUM,borderRightColor:Cf.BORDER_MEDIUM,borderTopColor:Cf.BORDER_HEAVY,borderBottomColor:t?Cf.BORDER_HEAVY:Cf.BORDER_LIGHT},OR=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*DR+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},TR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},_R=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:MR(null==r?void 0:r.fontColor)?LR(Cf.TEXT,t,null==r?void 0:r.fontColor):i||Cf.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...kR(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function qR(e,t,r){var n,o,i;const a=null===(n=TR(e))||void 0===n?void 0:n.header,l=_R("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=If(null!==(o=l.background)&&void 0!==o?o:Cf.WHITE,om),l.activeBackground=If(null!==(i=l.background)&&void 0!==i?i:Cf.WHITE,im),l}const NR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in hR&&Object.assign(t,hR[e]))),t};function jR(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&Mf(n);a&&"none"!==a&&(o[r[t]]=a),i=n?NR(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Rf(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const zR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},FR=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=zR(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},HR=(e,t,r,n=Cf.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=FR(e,t,r);return null!==(o=Tf(a,i,l,n))&&void 0!==o?o:n},BR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return dR}},$R=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",VR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?pR:"normal",WR=e=>!1===e?1:3,GR=e=>parseInt(null!=e?e:mR.fontSize,10)*cR,UR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",YR=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,A,I,P,D,M,L,k,O,T,_,q,N,j,z,F,H,B,$,V,W,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me,he,ge,be,ve,ye;const{header:xe,dimensionValues:Se,measureValues:Ee,totalValues:we,nullValues:Ce,grid:Re,content:Ae}=null!==(i=TR(t))&&void 0!==i?i:{},Ie=!0===t.usePagination?Cf.WHITE:Cf.TRANSPARENT,Pe=HR(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",Ie),De=null!==(a=null!==(l=null===(s=o.viewState)||void 0===s?void 0:s.maxLineCount)&&void 0!==l?l:null==Ae?void 0:Ae.rowHeight)&&void 0!==a?a:n.getStyle("object.straightTableV2","grid","lineClamp"),Me={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==xe?void 0:xe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:fR,fontSize:BR(null!==(p=null!==(f=null==xe?void 0:xe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:$R(null==xe?void 0:xe.fontStyle),fontWeight:VR(null==xe?void 0:xe.fontStyle,pR),textDecoration:UR(null==xe?void 0:xe.fontStyle),color:null!==(m=null!==(h=null!==(g=zR(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:Cf.TEXT,background:Pe},headerMenuHoverBackground:If(Pe,om),headerMenuActiveBackground:If(Pe,im),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==Se?void 0:Se.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:fR,fontSize:BR(null!==(x=null!==(S=null!==(E=null==Se?void 0:Se.fontSize)&&void 0!==E?E:null==Ae?void 0:Ae.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:$R(null==Se?void 0:Se.fontStyle),fontWeight:VR(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:UR(null==Se?void 0:Se.fontStyle),color:null!==(w=null!==(C=null!==(R=null!==(A=zR(n,null==Se?void 0:Se.fontColor))&&void 0!==A?A:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==C?C:r.body.color)&&void 0!==w?w:Cf.TEXT,background:null!==(I=null!==(P=FR(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==P?P:r.body.background)&&void 0!==I?I:Cf.TRANSPARENT}},measure:{values:{fontFamily:null!==(D=null!==(M=null!==(L=null==Ee?void 0:Ee.fontFamily)&&void 0!==L?L:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==M?M:r.body.fontFamily)&&void 0!==D?D:fR,fontSize:BR(null!==(k=null!==(O=null!==(T=null==Ee?void 0:Ee.fontSize)&&void 0!==T?T:null==Ae?void 0:Ae.fontSize)&&void 0!==O?O:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==k?k:r.body.fontSize),fontStyle:$R(null==Ee?void 0:Ee.fontStyle),fontWeight:VR(null==Ee?void 0:Ee.fontStyle,"normal"),textDecoration:UR(null==Ee?void 0:Ee.fontStyle),color:null!==(_=null!==(q=null!==(N=null!==(j=zR(n,null==Ee?void 0:Ee.fontColor))&&void 0!==j?j:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==q?q:r.body.color)&&void 0!==_?_:Cf.TEXT,background:null!==(z=null!==(F=FR(n,Ee,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==F?F:r.body.background)&&void 0!==z?z:Cf.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==we?void 0:we.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:fR,fontSize:BR(null!==(V=null!==(W=null!==(G=null==we?void 0:we.fontSize)&&void 0!==G?G:null==Ae?void 0:Ae.fontSize)&&void 0!==W?W:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==V?V:r.totals.fontSize),fontStyle:$R(null==we?void 0:we.fontStyle),fontWeight:VR(null==we?void 0:we.fontStyle,pR),textDecoration:UR(null==we?void 0:we.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=zR(n,null==we?void 0:we.fontColor))&&void 0!==X?X:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:Cf.TEXT,background:HR(n,we,"object.straightTableV2.total.label.value.backgroundColor",Ie)},nullValues:{fontStyle:$R(null==Ce?void 0:Ce.fontStyle),fontWeight:VR(null==Ce?void 0:Ce.fontStyle,"normal"),textDecoration:UR(null==Ce?void 0:Ce.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=zR(n,null==Ce?void 0:Ce.fontColor))&&void 0!==ee?ee:zR(n,null==Ae?void 0:Ae.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:Cf.TEXT,background:null!==(te=null!==(re=zR(n,null==Ce?void 0:Ce.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:Cf.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=De?De:WR(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:WR(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=zR(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?Cf.DARK_MODE_BORDER:Cf.BORDER_MEDIUM,divider:null!==(le=null!==(se=zR(n,null==Re?void 0:Re.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:Cf.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=zR(n,null==Ae?void 0:Ae.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=zR(n,null==Ae?void 0:Ae.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},zebraStripes:{show:!!e.flags.isEnabled("CLIENT_VNA_10_ZEBRA_STRIPES")&&!(null==Re||null===(he=Re.zebraStripes)||void 0===he||!he.show),odd:{color:zR(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:zR(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.odd)},even:{color:zR(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.color)||void 0===ve?void 0:ve.even),background:zR(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===zR(n,null==Ce?void 0:Ce.background),overrideNullValueColor:void 0===zR(n,null==Ce?void 0:Ce.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Af(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:De},{headerMinRowHeight:Le,totalRowLineHeight:ke,totalRowMinHeight:Oe,contentLineHeight:Te,contentMinRowHeight:_e}=(e=>{const t=Math.max(GR(e.header.fontSize)+8,32),r=GR(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(GR(e.dimension.values.fontSize),GR(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(Me);return Me.headerMinRowHeight=Le,Me.totalRowLineHeight=ke,Me.totalRowMinHeight=Oe,Me.contentLineHeight=Te,Me.contentMinRowHeight=_e,Me},KR=(e,t,r,n)=>{const o=w((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=TR(e))||void 0===o?void 0:o.content,a=_R("content",t,i);a.background=t.background.color;const l=OR(a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=MR(u)||!!d,f=MR(s)||!!c,m=p||f;let h;h=MR(s)?LR(Cf.HOVER,t,s):c||(p?"":Cf.HOVER);const g=m?LR(Rf(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}(e,t,r.rows.length,n),a=qR(e,t,!o),l=function(e,t,r){var n;const o=null===(n=TR(e))||void 0===n?void 0:n.content,i=_R("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=qR(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},XR=new Map;const JR=M({}),ZR=function(e){const t=M([()=>{},new Set]);return XR.set(e,t),({children:r,value:n})=>{const o=L(n),i=L(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=k((()=>o.current),[o]),l=w((()=>[a,i.current]),[a]);return rr.jsx(e.Provider,{value:n,children:rr.jsx(t.Provider,{value:l,children:r})})}}(JR),QR={rows:[],columns:[],totalsPosition:{}},eA=({app:e,children:t,tableData:r=QR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:C})=>{const[R,A]=E(0),[I,P]=E(o||gw),[M,L]=((e,t)=>{const[r,n]=D(PR,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[k,O]=E(-1),T=KR(i,u,r,d),_=((e,t,r,n,o)=>w((()=>YR(e,t,r,n,o)),[t,r,e,n,o]))(S,i,T,u,y),[q,N,j,z]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Hf({...n.header,fontWeight:pR},{maxNbrLinesOfText:3}).measureText,a=Hf({...n.totalRow,fontWeight:pR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=Hf(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=Hf(n.measure.values,{maxNbrLinesOfText:3}),u=w((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=E(0),[p,f]=E((()=>bR(e,r,u)));Wf((()=>{f(bR(e,r-c,u))}),[e,r,c,u]);const m=w((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,_),F=w((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:_,direction:C,downloadService:x})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,_,C,x]);return rr.jsx(ZR,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:I,setFocusedCellCoord:P,selectionState:M,selectionDispatch:L,hoverIndex:k,setHoverIndex:O,columnWidths:q,setColumnWidths:N,baseProps:F,tableData:r,setYScrollbarWidth:j,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S},children:t})};function tA(e,t){const r=function(e){return XR.get(e)}(e),[n,o]=S(r),[,i]=D((e=>e+1),0),a=L(t),l=L(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=w((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{a.current(e)!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function rA(e){var t;const r=lR();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),WS({...r,direction:e})}const nA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},oA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},iA=Us("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...nA},"&::-moz-range-track":{...nA},"&::-ms-track":{...nA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...oA},"&::-moz-range-thumb":{...oA},"&::-ms-thumb":{...oA},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),aA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Uf({translator:c.translator}),f=L({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};Wf((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,rm.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:nm.Pixels,pixels:f.current.columnWidth};a(e)}else null==s||s(!1)},E=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{kf(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w),S()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},R=e=>{kf(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",R),S()},A=!n&&l?e=>{if(e.key===em.Left||e.key===em.Right){kf(e);const t=5,r=e.key===em.Left?t:-5,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===em.Space||e.key===em.Enter?(kf(e),l(e),S()):e.key===em.Esc&&(kf(e),l(e),y(f.current.initWidth))}:void 0,I=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(iA,{style:b,key:t,hoverColor:o,isLastColumn:r,className:tm,"data-testid":tm,onMouseDown:e=>{kf(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",w),null==s||s(!0),v(e.clientX)},onDoubleClick:()=>{a({type:nm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(kf(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",R),null==s||s(!0),v(e.touches[0].clientX))},onKeyDown:A,onBlur:l,onFocus:()=>{v()},type:"range",tabIndex:-1,max:rm.PixelsMax,"aria-label":I,"aria-valuemin":rm.PixelsMin,"aria-valuemax":rm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})};function lA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),uA=O(sA);function cA(){return cA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cA.apply(null,arguments)}const dA=Us(ld,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),pA=Us(uA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),fA=Us(Lp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),mA=Us(Pd)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),hA=Us(qp)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),gA=Us(qp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),bA=Us("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),vA=Us("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),yA=Us(pc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),xA=Us(op,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function SA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),wA=O(EA),CA=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?CA(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},RA=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?RA(t):t},AA=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===em.Down||r===em.Up){const t=e=>r===em.Down?CA(e):RA(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}};let IA={};const PA=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,direction:u,isPagination:c})=>{const[d,p]=E(!1),f=L(null),m=k((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(gA,{ref:a?f:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),IA={}),null!=a&&a.length&&(p(!0),IA[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:AA},s?x.createElement(bA,{direction:u,isPagination:c}):null,x.createElement(vA,null,x.createElement(xA,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(yA,{variant:"body2"},n)),null!=a&&a.length?x.createElement(wA,null):null),null!=a&&a.length?x.createElement(LA,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:(h=a,g=IA,h.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(g).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null);var h,g},DA=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(hA,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(PA,cA({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),MA={appear:0,enter:0,exit:0},LA=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:l,isPagination:s})=>n.length?x.createElement(fA,cA({className:Jf,open:t,anchorEl:e,onClose:r,transitionDuration:MA,MenuListProps:{id:Zf}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:l}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[DA({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(mA,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:l,isPagination:s})):null,kA=(e,t)=>e.some((e=>t[e]>0)),OA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},TA=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,l]=E(OA);return Wf((()=>{e||(l(OA),i(null))}),[e]),C((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?s():(i(p),m&&l((e=>({canSelectAll:kA(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:kA(["qSelected"],e),canSelectPossible:kA(["qOption"],e),canSelectAlternative:kA(["qAlternative"],e),canSelectExcluded:kA(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function _A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_A(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),NA=O(qA);function jA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),FA=O(zA);function HA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),$A=O(BA);function VA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),GA=O(WA);function UA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),KA=O(YA);function XA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JA=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){XA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),ZA=O(JA);function QA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),tI=O(eI);function rI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{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-7"})),oI=O(nI);function iI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),lI=O(aI);function sI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),cI=O(uI);function dI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),fI=O(pI);function mI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),gI=O(hI);function bI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),yI=O(vI);function xI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){xI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),EI=O(SI);let wI=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const CI="/qListObjectDef",RI=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[wI.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:NA,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:GA,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:oI,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:KA,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[wI.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:lI,enabled:!0}]}]),r[wI.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:EI,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(CI))},icon:cI,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(CI))},icon:yI,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(CI))},icon:fI,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(CI))},icon:gI,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clearSelections(CI))},icon:FA,enabled:s.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:tI,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:ZA,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[wI.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:$A,enabled:!0}]}]),f},AI=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:l=!0,sortRelatedArgs:s,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:m="ltr",isPagination:h})=>{var g;const b=Uf({translator:o}),{qLibraryId:v,fieldId:y,headTextAlign:S}=n,E=null==c?void 0:c.app,{fieldInstance:w,selectionActionsEnabledStatus:C}=TA({open:e,headerData:n,app:E,qStateName:null==c?void 0:c.qStateName});let R=null;if(f&&"setActiveField"in f&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;R=async t=>{try{await f.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const A=k((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(null!=u&&u.embed){const{embed:t,listboxRef:r}=u;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:m})}}),[v,y,u,null==c?void 0:c.qStateName,m]),I=k((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(dA,{rightAligned:"right"===S,shouldShowMenuIcon:l,className:Xf},l?x.createElement(pA,{height:Yf,className:Kf,"data-testid":Kf,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(uA,null)):null,x.createElement(LA,{open:e,anchorEl:r.current,onClose:I,menuGroups:RI({headerData:n,translator:b,menuAvailabilityFlags:a,setOpen:t,...s,embedListbox:A,interactions:i,fieldInstance:w,selectionActionsEnabledStatus:C,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:m,isPagination:h})):null},II=e=>e.isDark?{background:e.color,borderColor:Cf.DARK_MODE_BORDER,color:Cf.DARK_MODE_TEXT,disabledColor:Cf.DARK_MODE_DISABLED,iconColor:Cf.DARK_MODE_TEXT}:{background:e.color,borderColor:Cf.BORDER_MEDIUM,color:Cf.TEXT,disabledColor:Cf.DISABLED},PI=Us(ld,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),DI=Us(bf,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),MI=Us(bd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),LI=Us(pc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),kI=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=w((()=>II(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(PI,{footerStyle:i},e):null;return t?F.createPortal(e,t):a},OI=M({}),TI=()=>S(OI),_I=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=w((()=>II(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=Uf({translator:d}),S=w((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(OI.Provider,{value:S},e)};let qI=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),NI=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function jI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),FI=O(zI);function HI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),$I=O(BI);function VI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WI=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),GI=O(WI),UI={FirstPage:$I,PreviousPage:FI,NextPage:wA,LastPage:GI,FirstPageRTL:GI,PreviousPageRTL:wA,NextPageRTL:FI,LastPageRTL:$I},YI=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=TI(),u=r.concat("rtl"===n?"RTL":""),c=UI[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},KI=()=>{const{pageInfo:e,width:t}=TI(),r=0===e.page,{IconComponent:n,styledProps:o}=YI({type:qI.FirstPage,disabledCondition:r,pageNumber:0});return t<=NI.FirstPage?null:x.createElement(MI,o,x.createElement(n,{height:Yf}))},XI=(e,t,r=!1)=>{r&&e.key===em.Tab&&!e.shiftKey&&(kf(e),Lf(e.target,t,!1))},JI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=TI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=YI({type:qI.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>{XI(e,t,n)}:void 0;return o<=NI.LastPage?null:x.createElement(MI,cA({},l,{onKeyDown:s}),x.createElement(a,{height:Yf}))},ZI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=TI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=YI({type:qI.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>NI.FirstPage&&o>NI.LastPage)&&t.enabled?e=>{XI(e,t,n)}:void 0;return x.createElement(MI,cA({},l,{onKeyDown:s}),x.createElement(a,{height:Yf}))},QI=()=>{const{pageInfo:e}=TI(),t=0===e.page,{IconComponent:r,styledProps:n}=YI({type:qI.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(MI,n,x.createElement(r,{height:Yf}))},eP=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=TI(),{page:o,rowsPerPage:i}=r;if(t<=NI.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(LI,{variant:"caption",dir:"ltr"},a)},tP=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=TI(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(LI,{variant:"caption",id:d},u,":"),x.createElement(DI,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},rP=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=TI();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>NI.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(tP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},nP=1e3,oP="…",iP=({totalPages:e,page:t})=>{const r=Math.min(e,nP),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-nP):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:oP,disabled:!0},oP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:oP,disabled:!0},oP)),x.createElement(x.Fragment,null,a)},aP=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=TI(),{page:o}=e;if(t<=NI.SelectPage)return null;const i=x.createElement(iP,{totalPages:r,page:o});return x.createElement(tP,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var lP=T((e=>x.createElement(_I,e,x.createElement(rP,null),x.createElement(aP,null),x.createElement(eP,null),x.createElement(KI,null),x.createElement(QI,null),x.createElement(ZI,null),x.createElement(JI,null))));const sP=e=>x.createElement(kI,e,x.createElement(lP,e)),uP={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},cP=wE(sC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),dP=wE("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...uP,whiteSpace:"nowrap",display:r?"block":void 0}:{...uP,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function pP(e,t){const r=L(!1);C((()=>{r.current?e():r.current=!0}),t)}const fP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),mP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),hP=e=>e.atTop?2:1,gP=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},bP=e=>null==e?void 0:e.setAttribute("tabIndex","0"),vP=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),yP=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(vP)},xP=e=>{null==e||e.focus(),bP(e)},SP=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${tm}`);xP(r)}),0)},EP=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{yP(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,l=t.getElementsByClassName("sn-table-row").length-1-o.bottom,s=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case em.Down:u<l&&u++;break;case em.Up:u>a&&u--;break;case em.Right:if(i)break;[u,c]="rtl"===n?fP({colIdx:c,rowIdx:u,lastColIdx:s,firstColIdx:0}):mP({colIdx:c,rowIdx:u,lastColIdx:s,lastRowIdx:l,firstColIdx:0});break;case em.Left:if(i)break;[u,c]="rtl"===n?mP({colIdx:c,rowIdx:u,lastColIdx:s,lastRowIdx:l,firstColIdx:0}):fP({colIdx:c,rowIdx:u,lastColIdx:s,firstColIdx:0});break;case em.Home:(xR(e)||i)&&(u=a),i||(c=0);break;case em.End:(xR(e)||i)&&(u=l),i||(c=s);break;case em.PageDown:u=Math.min(l,u+10);break;case em.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),l=gP(t,a);return xP(l),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:l,nextCellCoord:a}},wP=(e,t,r,n)=>{var o;(yP(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):xP(gP(t,e))},CP=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${Jf}`);var l;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${$E.First}`),r=e.querySelector(`.${$E.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(l=r.blur)||void 0===l||l.call(r,!1))},RP=()=>{const{downloadService:e}=tA(JR,(e=>e.baseProps));C((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},AP=(e,t,r)=>{const{rootElement:n,keyboard:o}=tA(JR,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:l,totalsPosition:s}=tA(JR,(e=>e.tableData)),u=tA(JR,(e=>e.focusedCellCoord)),c=tA(JR,(e=>e.setFocusedCellCoord)),d=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));pP((()=>{const r=((e,t,r=!1)=>{const n=[hP(t),e[1]];return r?n:gw})(u,s,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(yP(t),o(e),!(e=>!e.enabled||e.active)(i))return;const l=gP(t,e);var s;r.current?(xP(l),r.current=!1):bP(l),n&&(a({keys:[null!==(s=null==l?void 0:l.textContent)&&void 0!==s?s:""]}),yR(a,l,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[l.length,a,i,r])},IP=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},PP=e=>{kf(e),xR(e)&&um(e.currentTarget)},DP=e=>{CR(e.evt)&&(kf(e.evt),EP(e))},MP=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!CR(t))return;kf(t);const i=((e,t)=>[e.pageRowIdx+hP(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?hP(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:l,nextCellCoord:s}=EP({...e,cellCoord:i,allowedRows:a});s[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:HE.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):yR(o,a,i)})({...e,nextCell:l})},LP=e=>{const{evt:t}=e;SR(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{kf(e);const a=Math.ceil(t/r)-1;e.key===em.Right&&n<a?(o(),i(n+1)):e.key===em.Left&&n>0&&(o(),i(n-1))})(e):t.key===em.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(kf(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):ER(t.key)&&kf(t)},kP=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(FE.Disabled))return void kf(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case em.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{kf(e),t.isSelectable&&r&&n({type:HE.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case em.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{kf(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case em.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(kf(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case em.C:PP(t);break;case em.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(kf(e),Lf(e.currentTarget,t,e.shiftKey))})(n);break;default:MP(n)}},OP=e=>{const{layout:t,rect:r,theme:n}=tA(JR,(e=>e.baseProps)),[o,i]=E(0),[a,l]=E(0);return _((()=>{if(e.current){const{offsetWidth:t=0,offsetHeight:r=0,clientWidth:n=0,clientHeight:o=0}=e.current,a=r-o;l(t-n),i(a)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},TP=wE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),_P=wE($C,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),qP=wE(IC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),NP=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(TP,{className:$E.First,"data-testid":$E.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(TP,{className:$E.Second,"data-testid":$E.Second,"aria-live":"polite","aria-atomic":"true"})]}),jP=e=>{const t=L(new Map),r=L(null);C((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{var n;null===(n=r.current)||void 0===n||n.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=k(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=k((e=>{var n;t.current.delete(e),null===(n=r.current)||void 0===n||n.unobserve(e)}),[r,t]);return w((()=>({addTask:n,removeTask:o})),[n,o])},zP=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),FP=()=>jP(zP),HP=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:HE.Reset})},a=()=>{t({type:HE.Clear})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},BP=e=>{e.stopPropagation()},$P=({href:e,text:t,interactions:r,color:n})=>x.createElement(Yd,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:BP,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}))({href:e,text:t,interactions:r,color:n}),t);var VP,WP;const GP=null!==(VP=window.requestIdleCallback)&&void 0!==VP?VP:e=>setTimeout((()=>{e({})}),0),UP=null!==(WP=window.cancelIdleCallback)&&void 0!==WP?WP:e=>{clearTimeout(e)},YP="qDimensionInfo/0",KP="qMeasureInfo/0",XP="x",JP="y",ZP=e=>({key:"bars",type:"box",data:{extract:{field:YP,props:{start:0,end:{field:KP}}}},settings:{major:{scale:XP},minor:{scale:JP},box:{maxWidthPx:8,fill:{fn:e}}}}),QP=e=>({key:"p",type:"point",data:{extract:{field:YP,props:{y:{field:KP}}}},settings:{x:{scale:XP},y:{scale:JP},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),eD=({qNum:e})=>void 0===e?0:Math.sign(e),tD=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Df(e,null==t?void 0:t.negative,r),a=Df(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:YP,props:{start:0,end:{field:KP,value:eD}}}},settings:{major:{scale:XP},minor:{scale:JP},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},rD=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),l=Df(e,null==t?void 0:t.main,o),s=Df(e,null==t?void 0:t.max,l),u=Df(e,null==t?void 0:t.min,l),c=Df(e,null==t?void 0:t.first,l),d=Df(e,null==t?void 0:t.last,l);return e=>{const t=JP in e.datum?JP:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?s:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:l}})(e,n,o,i);switch(t){case"bars":return[ZP(a)];case"dots":return[QP(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:YP,props:{v:{field:KP}}}},settings:{coordinates:{major:{scale:XP},minor:{scale:JP,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Df(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,QP(a)]:[t]}case"posNeg":return[tD(e,n)];default:return[]}},nD=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),oD=(e,t,r,n)=>({y:{data:{field:KP},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:YP}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),iD=B();iD.use(H),iD.renderer.prio(["canvas"]);const aD={resolve:()=>{},promise:{}},lD=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:l})=>{const{resolveChartPromise:s,addChartPromiseToQueue:u}=(e=>{const t=L(e.isDownloadedAsPDForImage?bt():aD);return{addChartPromiseToQueue:k((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(l);return{renderChartWithRequestIdleCallback:k((()=>{if(null===t.current||null!==e.current)return;u();r.current=GP((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:l,minY:s,maxY:u}=n;return iD.chart({element:e,data:{type:"q",key:"qHyperCube",data:nD(l)},settings:{scales:oD(a,s,u,i),components:rD(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:s}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,s]),safeCancelIdleCallback:k((()=>{null!==r.current&&UP(r.current),r.current=null,s()}),[r,s])}},sD=e=>{const t=L(null),r=L(!1);return k((n=>{var o,i;const a=null!==(o=null===(i=n.contentBoxSize.at(0))||void 0===i?void 0:i.inlineSize)&&void 0!==o?o:0;(e=>{e.current&&(UP(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=GP((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},uD=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const l=L(null),s=L(null),u=L(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=lD({element:l,chart:s,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=k((e=>{e.isIntersecting?n():r()}),[n,r]);C((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{var e;t.removeTask(n),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,t,r,i])})({element:l,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:s}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{C((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:s}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=sD(t);C((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:l,chart:s,resizeObserverTaskScheduler:t}),l},cD=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:l})=>{const s=uD({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:l});return x.createElement("div",{"data-testid":"picasso-container",ref:s,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},dD="cell-text",pD=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=tA(JR,(e=>e.baseProps));return o?rr.jsx(dP,{"data-testid":dD,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):rr.jsx(dP,{"data-testid":dD,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},fD=(e,t)=>{var r,n,o,i;return"rtl"===e&&"center"!==(null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.horizontal)?(null===(o=t.resolvedImagePosition)||void 0===o?void 0:o.horizontal)&&(e=>"flex-start"===e?"flex-end":"flex-start")(null===(i=t.resolvedImagePosition)||void 0===i?void 0:i.horizontal):null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.horizontal},mD=(e,t)=>e.representation.type===Gh.Image&&"fitHeight"===e.representation.imageSize?fD(t,e.representation):e.align,hD=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",gD=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},bD=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,vD=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",yD=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",xD=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},SD=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},ED=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=tA(JR,(e=>e.baseProps)),{url:i,text:a,imageSize:l,resolvedImagePosition:s}=e,u="fitHeight"===l,c=rr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:SD(l),objectPosition:xD(s),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?fD(o,e):void 0},children:c}):c},wD=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),CD=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},RD=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&ne(e.localPaletteColors[t].color).blend(ne(l.color),l.t)},AD=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:wD(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:CD(n,t,r)})))),n},ID=(e,t,r,n)=>{const o=AD(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=RD(e,a,t);break}n=i}return r})(o,t);return a},PD=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!Jg(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!Jg(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},DD=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=PD(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!Jg(t))return 0;let a=r&&Jg(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}};function MD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),kD=O(LD);function OD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),_D=O(TD);function qD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ND=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),x.createElement("use",{fillRule:"evenodd"})),jD=O(ND);function zD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})),HD=O(FD);function BD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $D=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){BD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})),VD=O($D);function WD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){WD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})),UD=O(GD);function YD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 7h12v2H2z"})),XD=O(KD);function JD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZD=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})),QD=O(ZD);function eM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),rM=O(tM);function nM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})),iM=O(oM);function aM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})),sM=O(lM);function uM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),dM=O(cM);function pM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})),mM=O(fM);function hM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})),bM=O(gM);function vM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})),xM=O(yM);function SM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"}));function wM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CM=(e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})),RM={m:dM,"ï":iM,R:O(EM),S:mM,T:bM,U:xM,P:rM,Q:UD,"è":O(CM),"¢":HD,"©":jD,"23F4":VD,2013:sM,"&":QD,add:kD,"minus-2":XD,dot:_D},AM=({size:e,iconKey:t,color:r})=>{var n;const o=null!==(n=t&&RM[t])&&void 0!==n?n:void 0;return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e},children:rr.jsx(o,{style:{height:e}})})},IM=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=e.indicatorConditionalColoring,{styleService:o,theme:i,direction:a}=tA(JR,(e=>e.baseProps));if(!n)return;const{text:l,indicator:s}=e,{showTextValues:u,applySegmentColors:c}=null!=s?s:{},d=(p=o.measure.values.fontSize,parseInt(p||dR,10));var p;const f=DD(n,t),m=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return CD(o,r.limitPaletteColorIndex,n);const a=wD(r.limitRange,t);return ID(o,a,r.limitRange,n)})(n,t,f,i),h=n.segments.paletteColors[(null==f?void 0:f.limitPaletteColorIndex)||0].icon;let g=(null==s?void 0:s.position)||"right";return"rtl"===a&&(g="right"===g?"left":"right"),u?rr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:null!=r?r:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?m:void 0},children:["left"===g&&AM({size:d,iconKey:h,color:m}),rr.jsx(pD,{isNumeric:!0,children:l}),"right"===g&&AM({size:d,iconKey:h,color:m})]}):AM({size:d,iconKey:h,color:m})},PM=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,DM=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:l})=>{const{interactions:s,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=tA(JR,(e=>e.baseProps)),m=tA(JR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),h=tA(JR,(e=>e.env));let g=t.representation.text;if(t.representation.type!==Gh.Link||m||(g=rr.jsx($P,{href:t.representation.url,text:t.representation.text,interactions:s,color:r.cellForegroundColor})),t.representation.type===Gh.Image)return rr.jsx(ED,{representation:t.representation,textStyle:r,maxImageHeight:PM(u,o),wrapInContainer:!n});const b="string"==typeof(v=h.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==Gh.Indicator||Number.isNaN(b)?t.representation.type===Gh.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(cD,{height:PM(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):rr.jsx(pD,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):rr.jsx(IM,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:l})},MM=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:HE.SelectMultiEnd})};r({type:HE.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:HE.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:HE.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),LM=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=tA(JR,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:l,direction:s}=tA(JR,(e=>e.baseProps)),u=tA(JR,(e=>e.setFocusedCellCoord)),c=tA(JR,(e=>e.selectionDispatch)),d=!!l.active&&!!l.select,p=l=>{kP({evt:l,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:s})},f=e=>{((e,t)=>{e.key===em.Shift&&t({type:HE.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;wP([l,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b}=MM(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},kM=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=FE.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?FE.Disabled:n.has(e.qElemNumber)?FE.Selected:FE.Possible),i},OM=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},TM=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},_M=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return TM(t,e,n?"even":"odd")}return e},qM=(e,t)=>{const{styleService:r}=tA(JR,(e=>e.baseProps)),n=tA(JR,(t=>kM(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=_M(o,r,e),o=OM(o,r,e);const i=jR(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===FE.Selected?{...e,...r}:t===FE.Disabled?{...e,background:`${uR}, ${e.background}`}:e}(w((()=>e.isNull?o:jR(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:a,representationStyle:i,cellSelectionState:n}},NM=wE(TC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),jM=wE(tR,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),zM=wE(zC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...mR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),FM=wE(zC,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...mR,...e,fontWeight:pR,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),HM=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:l}=tA(JR,(e=>e.baseProps)),{onKeyDown:s,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=LM(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=qM(e,r);return rr.jsx(zM,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Qf}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:rr.jsx(DM,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:bD(l,e.align)})})},BM=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),$M=()=>{const{columns:e,totalsPosition:t,rows:r}=tA(JR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l,direction:s}=tA(JR,(e=>e.baseProps)),u=tA(JR,(e=>e.headRowHeight)),c=tA(JR,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!l.active;return rr.jsx(tR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return rr.jsx(FM,{totalsStyle:{...a.totalRow,...BM(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Qf}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case em.C:PP(r);break;case em.Space:r.preventDefault();break;default:DP(e)}else kf(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:s})},onMouseDown:()=>{wP(f,n,c,i)},children:rr.jsx(pD,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var VM=T($M);const WM=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=tA(JR,(e=>e.tableData)),{selectionsAPI:l,keyboard:s,layout:u,styleService:c}=tA(JR,(e=>e.baseProps)),d=tA(JR,(e=>e.selectionDispatch)),p=!(null===(n=TR(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);HP({keyboard:s,selectionDispatch:d,selectionsAPI:l,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=k((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return jP(t)})(t),m=FP();return rr.jsxs(NM,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?rr.jsx(VM,{}):void 0,o.map(((e,t)=>rr.jsx(jM,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n];return rr.jsx(HM,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:m},o)}))},`row-${t}`))),a.atBottom?rr.jsx(VM,{}):void 0]})};var GM=T(WM);const UM=(e,t,r)=>{var n;return!(null===(n=e.viewState)||void 0===n||!n.skipHeader)||!!r.flags.isEnabled("CLIENT_IM_7170_TABLE_HIDE_HEADER")&&!!t.hideHeader},YM=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>e.columnWidths)),d=tA(JR,(e=>e.setColumnWidths));if(!l.active)return null;return rr.jsx(aA,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{vP(e);const t=e.closest(".sn-table-cell");xP(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i},direction:u})};function KM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XM(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const JM=(e,t)=>rr.jsx("svg",XM(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){KM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:rr.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),ZM=O(JM);function QM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const tL=(e,t)=>rr.jsx("svg",eL(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){QM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:rr.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),rL=O(tL);function nL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oL(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const iL=(e,t)=>rr.jsxs("svg",oL(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nL(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:[rr.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),rr.jsx("use",{fillRule:"evenodd"})]})),aL=O(iL),lL=wE("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),sL=wE(sC,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?hD(e,n):void 0})));wE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const uL=wE(sC,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${Xf}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Xf}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),cL=wE(sC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));wE(sC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),wE(SC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),wE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),wE(hC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),wE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const dL=wE(zC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...mR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));wE("div")({display:"flex",alignItems:"center"});const pL=wE("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:dR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),fL=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f,direction:m}=tA(JR,(e=>e.baseProps)),h=tA(JR,(t=>t.columnWidths[e.pageColIdx])),g=tA(JR,(e=>e.baseProps.model)),b=L(null),v=L(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=Hf({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:pR});return k((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:h}),x=y(),{StartIcon:S,EndIcon:E,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(ZM,{height:dR,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(rL,{height:dR,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(pL,{align:t,dir:o,children:i}):void 0,l=n?rr.jsx(cL,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(aL,{height:dR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:l}:{EndIcon:a,LockIcon:l}})(e,x,m);o&&(o.current[e.pageColIdx]=x);return rr.jsxs(uL,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:gD(e,i,m),children:[w,rr.jsxs(sL,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:m,isPagination:i,children:[S,rr.jsx(pD,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),E]}),t?rr.jsxs(rr.Fragment,{children:[rr.jsx(AI,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:l,anchorRef:b,menuAvailabilityFlags:{[wI.Sorting]:!0,[wI.Searching]:!0,[wI.Selections]:!0,[wI.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:v},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:SP},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:m,isPagination:i}),rr.jsx(lL,{ref:v,direction:m,isPagination:i}),rr.jsx(lL,{ref:b,direction:m})]}):null]})},mL=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return Wf((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(tm)})(t)||o||n(!0)},setIsAdjustingWidth:i}},hL=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:l}=tA(JR,(e=>e.baseProps)),{columns:s,totalsPosition:u}=tA(JR,(e=>e.tableData)),c=tA(JR,(e=>e.columnWidths[t])),d=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=tA(JR,(e=>e.setFocusedCellCoord)),f=tA(JR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=mL({isInteractionEnabled:m,columnsData:s}),y=e.isActivelySorted?BE[e.sortDirection]:void 0,x=h?Zf:void 0,S=h?"true":void 0,E=t===r-1,w=[0,e.pageColIdx],C={width:c-(E?8:9),zIndex:s.length-t},R=f&&0===t&&!i.enabled&&m?0:-1;return rr.jsxs(dL,{headerStyle:{...a.header,...BM(a,u,!0)},background:h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Qf}`,tabIndex:R,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case em.C:PP(r);break;case em.Enter:case em.Space:null==n||n(r);break;default:DP(e)}else kf(r)})({evt:e,rootElement:o,cellCoord:w,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:b,direction:l})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&wP(r,t,n,o)})({evt:e,rootElement:o,cellCoord:w,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:b,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[rr.jsx(fL,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),rr.jsx(YM,{column:e,isLastColumn:E,setIsAdjustingWidth:v})]},e.id)},gL=()=>{const{columns:e}=tA(JR,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=tA(JR,(e=>e.baseProps)),o=tA(JR,(e=>e.setHeadRowHeight)),i=tA(JR,(e=>e.columnWidths)),a=tA(JR,(e=>e.env)),l=L(null),s=UM(r,n,a);return C((()=>{l.current&&o(l.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(KC,{style:{visibility:s?"collapse":void 0},children:rr.jsx(tR,{ref:l,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>rr.jsx(hL,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var bL=T(gL);const vL=e=>{var t,r;const{pageInfo:n,setPageInfo:o,footerContainer:i,announce:a}=e,{page:l,rowsPerPage:s}=n,{totalColumnCount:u,totalRowCount:c,totalPages:d,paginationNeeded:p,rows:f,columns:m}=tA(JR,(e=>e.tableData)),{rootElement:h,keyboard:g,translator:b,theme:v,interactions:y,styleService:x,viewService:S,layout:E,rect:w,direction:R}=tA(JR,(e=>e.baseProps)),A=tA(JR,(e=>e.setYScrollbarWidth)),I=tA(JR,(e=>e.showRightBorder)),P=tA(JR,(e=>e.selectionDispatch)),D=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),M=L(!1),O=L(null),T=L(null),{yScrollbarWidth:_}=OP(O),q=`${b.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(m.length)])} ${b.get("SNTable.Accessibility.NavigationInstructions")}`,N=dv(E,S),j=N&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,z=N&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,F=k((()=>{M.current=h.getElementsByTagName("table")[0].contains(document.activeElement)}),[h]),H=k((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),B=k((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return IP(O,R,S),((e,t)=>{const{keyboard:r}=tA(JR,(e=>e.baseProps));C((()=>{const n=e.current;if(!n)return;const o=e=>{CP(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(T,M),(()=>{const{rootElement:e,keyboard:t}=tA(JR,(e=>e.baseProps)),r=tA(JR,(e=>e.focusedCellCoord));Wf((()=>{const n=gP(e,r);t.active?xP(n):(null==n||n.blur(),yP(e))}),[t.active,e])})(),AP(M,a,l),C((()=>{const e=O.current;e&&(e.scrollLeft=j,e.scrollTop=z)}),[n,c,j,z]),pP((()=>{A(_)}),[_]),pP((()=>{P({type:HE.UpdatePageRows,payload:{pageRows:f}})}),[f]),RP(),rr.jsxs(cP,{ref:T,background:v.background,dir:R,onKeyDown:e=>{LP({evt:e,totalRowCount:c,page:l,rowsPerPage:s,handleChangePage:H,updateShouldRefocus:F,keyboard:g,isSelectionMode:D})},"data-testid":"sn-table",children:[rr.jsx(NP,{}),rr.jsx(_P,{ref:O,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:rr.jsxs(qP,{stickyHeader:!0,"aria-label":q,borderRight:I?`1px solid ${x.grid.border}`:void 0,children:[rr.jsx(bL,{}),rr.jsx(GM,{...e,updateShouldRefocus:F,tableWrapperRef:T})]})}),rr.jsx(sP,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:v,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:b,interactions:y,rect:w,layout:E,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:D,direction:R})]})};var yL=T(vL),xL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function SL(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||xL(n)&&xL(o)))return!1;var n,o;return!0}function EL(e,t){var r;void 0===t&&(t=SL);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var wL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function CL(e){cancelAnimationFrame(e.id)}function RL(e,t){var r=wL();var n={id:requestAnimationFrame((function o(){wL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var AL=-1;function IL(e){if(void 0===e&&(e=!1),-1===AL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),AL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return AL}var PL=null;function DL(e){if(void 0===e&&(e=!1),null===PL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?PL="positive-descending":(t.scrollLeft=1,PL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PL}return PL}var ML=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function LL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Ot(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Ot(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=EL((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=EL((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=EL((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(DL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&CL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return kL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=IL();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(DL()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ML:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),A=C[0],I=C[1],P=[];if(n>0&&g)for(var D=A;D<=I;D++)for(var M=E;M<=w;M++)P.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,M)}));var L=a(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:St({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:P,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:k}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var kL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},TL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},_L=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},qL=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?NL(e,t,r,i,0,n):jL(e,t,r,Math.max(0,i),n)},NL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=_L(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},jL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&_L(e,t,n,r).offset<o;)n+=a,a*=2;return NL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},zL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=_L(e,t,r,i),u="column"===e?TL(t,i):OL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},FL=LL({getColumnOffset:function(e,t,r){return _L("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return qL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=_L("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_L("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:OL,getEstimatedTotalWidth:TL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return zL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return zL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return _L("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return qL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=_L("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_L("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),HL=function(e,t){return e};function BL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Ot(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Ot(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=EL((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=EL((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=EL((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(DL()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&CL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return $L(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?IL():0:s.scrollHeight>s.clientHeight?IL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(DL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?HL:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],A=[];if(u>0)for(var I=w;I<=C;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var P=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:St({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var $L=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},VL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},WL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=VL(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},GL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&VL(e,r,t).offset<n;)r+=i,i*=2;return WL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},UL=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},YL=BL({getItemOffset:function(e,t,r){return VL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:UL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=VL(e,t,o),p=UL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?WL(e,t,o,0,r):GL(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=VL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=VL(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KL(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var XL=["style"],JL=["style"];function ZL(e,t){var r=e.style,n=Mt(e,XL),o=t.style,i=Mt(t,JL);return!KL(r,o)&&!KL(n,i)}const QL=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var ek=x.memo(QL,ZL);const tk=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},rk=(e,t,r)=>{C((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},nk=()=>{},ok=e=>{e.preventDefault()};const ik=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c,resizeObserverTaskScheduler:d}=n,p=tA(JR,(e=>e.hoverIndex===t)),f=tA(JR,(e=>e.setHoverIndex)),{interactions:m,styleService:h,direction:g}=tA(JR,(e=>e.baseProps)),b=tA(JR,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:E}=function(e){const{interactions:t}=tA(JR,(e=>e.baseProps)),r=tA(JR,(e=>e.selectionDispatch)),n="object"==typeof e,o=tA(JR,(t=>n?kM(e,t.selectionState):FE.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=MM(ok,e,r,nk);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),w=((e,t,r,n)=>{const o=L(null),i=r&&!r.isNumeric,a=k((r=>{const o=tk(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return rk(o,a),o})(t,e,v,u),C=null!==(i=l[e])&&void 0!==i&&i.isDim?h.dimension.values:h.measure.values;if("object"==typeof v){const n=((e,t,r,n,o,i)=>{let a=_M(o,i,e);a=OM(a,i,e);const l=!e.isNull&&t.qAttrExprInfoIDs.length?jR(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===FE.Selected?{...l,...i.selectedColors}:n===FE.Disabled?{...l,color:r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.color:l.color,background:`${uR}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:l.background}`}:r?{...l,...i.grid.hoverColors}:l;var s,u})(v,l[e],s&&p,E,C,h),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${E} ${Qf}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:vD(g,v.isLastColumn,b),borderLeftWidth:yD(g,v.isLastColumn,b),justifyContent:mD(v,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:v.align},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:s?()=>{f(t)}:void 0,onMouseLeave:s?()=>{f(-1)}:void 0,title:m.passive?v.representation.text:void 0,...o,children:rr.jsx(DM,{forwardRef:h.contentStaticLineCount||1===c?void 0:w,cell:v,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return rr.jsx(ek,{style:{...r,...C,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var ak=T(ik,ZL);const lk=e=>{const t=L(e);return t.current=e,t},sk=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,uk=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},ck=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},dk=(e,t,r,n,o,i,a,l)=>{e.forEach((e=>{e.qMatrix.forEach(((s,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,l,s,u)=>{var c;const{qSize:d}=a.qHyperCube,p=n.qTop+r,f=o+r,m=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(m.at(r))return;const{colIdx:o,isDim:c,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],E=rv(c,e,a,l),w=l.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&!c&&e.qIsNull,C=w?Qg(E):Zg(e);m[r]={id:Kg(),...e,align:uv(C,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!h,pageRowIdx:f,pageColIdx:r,selectionColIdx:b,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:C,isNull:(!w||!C)&&tv(e,c),representation:ev({cell:e,representationProperties:y,attrExprInfoIndex:v,env:l,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>w?E:e.qText,direction:u})},s(m[r],p,r)})),{row:m,pageRowIdx:f}})(r,s,u,e.qArea,c,n,o,i,a,l);r[p]=d}))}))},pk=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=tA(JR,(e=>e.env)),{direction:p}=tA(JR,(e=>e.baseProps)),f=L([]),m=k(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return dk(t,o,n,s,e,d,c,p),f.current=n,n}),[i,o,s,e,d,c,p]),[h,g]=E((()=>m(null!=n?n:[])));Wf((()=>{g(m(null!=n?n:[]))}),[n,p]);const b=((e,t)=>{const r=L(new Set),n=L(new Set),o=L(new Set),i=lk(e),a=lk(t),l=w((()=>({enqueue:e=>{const t=sk(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(sk(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),v=k(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ck(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=k(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(uk(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},fk=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},mk=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,hk=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=tA(JR,(e=>e.baseProps.styleService)),i=tA(JR,(e=>e.columnWidths)),{estimateLineCount:a}=Hf(o.dimension.values),l=GR(o.dimension.values.fontSize),s=e||t||1===r;return k(((e,t,o)=>{if(s||e.representation.type===Gh.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},gk=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>w((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),bk=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=tA(JR,(e=>e.baseProps)),[a,l]=E({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n,o;const{layout:i}=tA(JR,(e=>e.baseProps)),a=tA(JR,(e=>e.columnWidths)),{flags:l}=tA(JR,(e=>e.env)),s=null===(n=i.multiline)||void 0===n?void 0:n.wrapTextInCells,u=l.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")?null===(o=i.nullValueRepresentation)||void 0===o?void 0:o.text:void 0;Wf((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[i.qHyperCube.qSize.qcx,i.qHyperCube.qSize.qcy,r.page,s,u]),Wf((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[a])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>k(((o,i,a)=>{N((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!mk(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,fk(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>k(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:hk({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:k((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:gk({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},vk=(e,t)=>{_((()=>()=>{t(0)}),[e,t]);const r=k((e=>{const r=tk(e);void 0!==r&&t(r)}),[t]);rk(e,r)};var yk;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(yk||(yk={}));const xk=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>k((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=yk.None,i=yk.None;return o=n>t?yk.Down:n<t?yk.Up:yk.None,i=r>e?yk.Right:r<e?yk.Left:yk.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===yk.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===yk.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===yk.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===yk.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),Sk={enabled:!1},Ek=()=>{},wk={current:null};const Ck=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=w((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},Rk=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},Ak={overflow:"hidden",willChange:"auto"};var Ik=T(O(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a,setInnerBodyHeight:l}=e,{layout:s,model:u,theme:c,viewService:d,styleService:p,direction:f}=tA(JR,(e=>e.baseProps)),m=tA(JR,(e=>e.columnWidths)),h=tA(JR,(e=>e.initialDataPages)),g=L(null),b=L(null),v=L({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=L(0),x=!(null===(r=TR(s))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:E,visibleColumnCount:R}=Ck(s,i,n,m,p.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:I,getRowHeight:P,lineClamp:D,totalRowHeight:M}=bk({rowCount:S,isSnapshot:!!s.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:k,loadRows:O,loadColumns:T}=pk({layout:s,model:u,theme:c,initialDataPages:h,pageInfo:i,rowCount:S,visibleRowCount:E,visibleColumnCount:R,columns:o,gridState:v,setEstimatedCellHeight:I}),q=xk({layout:s,loadRows:O,loadColumns:T,rowCount:S,pageInfo:i,gridState:v,viewService:d}),N=FP(),z=w((()=>({rowsInPage:k,columns:o,isHoverEnabled:x,lineClamp:D,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[k,o,x,D,A,N]),F=((e,t,r)=>Math.min(e.height-t,r))(n,a,M);return _((()=>{var e;1===y.current&&(null===(e=g.current)||void 0===e||e.scrollToItem({rowIndex:S-1,align:"start"}))})),function(e){const{selectionsAPI:t}=tA(JR,(e=>e.baseProps)),r=tA(JR,(e=>e.selectionDispatch));C((()=>{r({type:HE.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),HP({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:Ek,keyboard:Sk,tableWrapperRef:wk})}(k),j(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=b.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:F)-F,i=Math.round(o*e);var a,l,s;(y.current=e,1===y.current)?(null===(a=g.current)||void 0===a||a.scrollToItem({rowIndex:S-1,align:"start"}),null===(l=g.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=g.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})}})),[b,F,S]),vk(b,l),rr.jsx(FL,{"data-key":"body",ref:g,innerRef:b,style:Ak,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>m[e],height:F,rowCount:S,rowHeight:P,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:z,onItemsRendered:q,itemKey:Rk,className:"sn-table-body",direction:f,children:ak})})));const Pk=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Dk=(e,t)=>{const r=L(null),n=tA(JR,(e=>e.columnWidths));_((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=k((r=>{const n=tk(r);n&&t(n+9,e)}),[e,t]);return rk(r,o),r},Mk=wE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),Lk=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=tA(JR,(e=>e.showRightBorder)),p=tA(JR,(e=>e.tableData.totalsPosition)),f=!!l.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=mL({isInteractionEnabled:f,columnsData:n}),v=Dk(e,a),y=n[e],x=n.length-1===e;return rr.jsxs(Mk,{className:`sn-table-cell ${Qf}`,title:l.passive?y.label:void 0,onClick:g,applicableStyle:{...s.header,...BM(s,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:vD(u,x,d),borderLeftWidth:yD(u,x,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===y.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:m?s.headerMenuActiveBackground:s.header.background,children:[rr.jsx(fL,{forwardRef:v,column:y,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:i}),rr.jsx(YM,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:b})]})},kk=e=>{const[t,r]=E(new Map);Wf((()=>{r(new Map)}),[e.length]);const n=k(((e,t)=>{r((r=>mk(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:w((()=>fk(t)),[t]),setMeasuredCellHeight:n}},Ok=(e,t)=>{j(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},Tk=(e,t,r,n,o)=>{Wf((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},_k={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},qk=O(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:l}=e,s=L(null),u=L(null),{layout:c,theme:d,styleService:p,direction:f,viewService:m}=tA(JR,(e=>e.baseProps)),h=tA(JR,(e=>e.columnWidths)),g=tA(JR,(e=>e.env)),{rowHeight:b,setMeasuredCellHeight:v}=kk(n),y=UM(m,c,g);return Ok(t,s),Tk(s,c,o,h,d),vk(u,l),rr.jsx(YL,{ref:s,outerRef:u,layout:"horizontal",style:{..._k,...y?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(b+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:v},direction:f,children:Lk})}));var Nk=T(qk);const jk=O(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:l}=tA(JR,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:l,children:r})})),zk=({children:e,rect:t})=>{const{direction:r}=tA(JR,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},Fk=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>e.showRightBorder)),d=Dk(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return rr.jsx("div",{className:`sn-table-cell ${Qf}`,title:l.passive?p:void 0,style:{...t,...s.totalRow,...BM(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:vD(u,h,c),borderLeftWidth:yD(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:rr.jsx(pD,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},Hk=O(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,l=L(null),s=L(null),{layout:u,theme:c,styleService:d,direction:p}=tA(JR,(e=>e.baseProps)),f=tA(JR,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=kk(i);return Ok(t,l),Tk(l,u,n,f,c),vk(s,a),rr.jsx(YL,{ref:l,outerRef:s,layout:"horizontal",style:_k,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:Fk})}));var Bk=T(Hk);const $k=(e,t,r,n,o)=>k((i=>{var a,l,s;const{scrollHeight:u,clientHeight:c,scrollTop:d}=i.currentTarget,p=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(a=r.current)||void 0===a||a.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(l=e.current)||void 0===l||l.scrollTo(p),null===(s=t.current)||void 0===s||s.scrollTo(p)}),[n,r,e,t,o]),Vk=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=tA(JR,(e=>e.tableData)),{layout:i,theme:a,rect:l,viewService:s,direction:u}=tA(JR,(e=>e.baseProps)),c=tA(JR,(e=>e.columnWidths)),d=tA(JR,(e=>e.setYScrollbarWidth)),p=L(null),f=L(null),m=L(null),h=L(null),{xScrollbarWidth:g,yScrollbarWidth:b}=OP(p),v=L([]),y=w((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(l,o)),[l,o]),x=w((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=Ck(i,t,x,c,0),{headerAndTotalsHeight:C,innerBodyHeight:R,setHeaderRowHeight:A,setTotalsRowHeight:I,setInnerBodyHeight:P}=(()=>{const[e,t]=E(0),[r,n]=E(0),[o,i]=E(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:D,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=tA(JR,(e=>e.baseProps)),a=e+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:R,headerAndTotalsHeight:C,rowCount:S,stickyContainerRect:x,columnWidths:c}),O=$k(f,m,h,s,u),T=k((()=>{p.current&&(p.current.scrollTop=0)}),[p]);RP(),_((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),_((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),pP((()=>{d(b)}),[b]);const q=rr.jsx(Bk,{rect:x,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:I},"totals");return rr.jsx(jk,{ref:p,width:y.width,height:y.height,onScroll:O,children:rr.jsx(Pk,{width:D,height:M,children:rr.jsxs(zk,{rect:x,children:[rr.jsx(Nk,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:T,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:A}),r.atTop?q:null,rr.jsx(Ik,{ref:h,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:C,setInnerBodyHeight:P}),r.atBottom?q:null]})})})};var Wk=T(Vk);const Gk=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=tA(JR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=tA(JR,(e=>e.tableData)),c=tA(JR,(e=>e.pageInfo)),d=tA(JR,(e=>e.setPage));return rr.jsxs(cP,{"data-testid":"sn-table",background:e.background,children:[rr.jsx(Wk,{pageInfo:c}),rr.jsx(sP,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var Uk=T(Gk);var Yk={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const Kk=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(Yk).forEach((t=>{e.add(Yk[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${$E.First}`),l=e.querySelector(`.${$E.Second}`);if(!a||!l)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let s;r===$E.First?(s=l,r=$E.Second):(s=a,r=$E.First),s.innerHTML=s.innerHTML.endsWith(" ­")?i:`${i} ­`,s.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),Xk={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},Jk=e=>{const{app:r,model:i,rootElement:a,layout:l,translator:s,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=t(),h=pv(l,d),g=Kk(a,s),[b,v]=n(((e,t)=>dv(e,t)?{page:t.page||Xk.page,rowsPerPage:t.rowsPerPage||Xk.rowsPerPage,rowsPerPageOptions:Xk.rowsPerPageOptions}:Xk)(l,d)),[y,x]=n(!0);y||x(!0);const[S,E]=jf((async()=>h?async function(e,t,r,n,o,i,a,l){var s,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:m}=r,h=t.qHyperCube.qSize.qcx,g=t.qHyperCube.qSize.qcy,b=Math.ceil(g/f),v=null!==(s=o.visibleTop)&&void 0!==s?s:p*f,y=null!==(u=o.visibleHeight)&&void 0!==u?u:Math.min(f,g-v);if(p>0&&v>=g)return n({...r,page:0}),null;if(y*h>nv)return n({...r,rowsPerPage:ov(h,m),page:0}),null;const x=g>10,S=iv(t,o),E=cv(t,a,l),w=!!t.snapshotData,C=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=null==n?void 0:n.qArea;return n&&(null==o?void 0:o.qLeft)===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:v,qHeight:y,qWidth:h});w||(o.qTop=v,o.qHeight=y,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const R=null!==(c=null===(d=C.at(0))||void 0===d?void 0:d.qMatrix.map(((e,r)=>{const n=[];return E.forEach(((o,s)=>{const u=e[s],c=rv(o.isDim,u,t,i),d=i.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&!o.isDim&&u.qIsNull,p=d?Qg(c):Zg(u);n[s]={id:Kg(),...u,align:uv(p,o.bodyTextAlign,l,a),rowIdx:r+v,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===y-1,isNumeric:p,isNull:(!d||!p)&&tv(u,o.isDim),representation:ev({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:l})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:h,totalRowCount:g,totalPages:b,paginationNeeded:x,totalsPosition:S,columns:E,rows:R}}(i,l,b,v,d,p,y,f):null),[l,b,i,h,f]);o((()=>{h&&e.model&&e.changeSortOrder&&S&&c&&!E&&function(e,t){const{direction:r,...n}=e,o=rA(r);t.render(rr.jsx(yi,{stylisPlugins:"rtl"===r?[hw]:void 0,children:rr.jsx(RE,{theme:o,children:rr.jsx(eA,{...e,children:rr.jsx(yL,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,r,f,m,c,b,u,e,h,S,E])},Zk=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==l||s;if(!o){var m;const e=null===(m=c.qHyperCubeDef.qMeasures.at(u))||void 0===m?void 0:m.qSortBy;void 0===(null==e?void 0:e.qSortByNumeric)&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===l?1:-1})})}s||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const Qk=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=jf((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(gR,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return n})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},eO=t=>{const{layout:r,model:i,keyboard:a,interactions:l,reactRoot:s,isFontLoaded:u,viewService:c,direction:d}=t,p=!pv(r,c),[f,m]=n(!1);f&&m(!1);const h=e((()=>function(e,t,r,n,o){const i=cv(e,o,n),a=iv(e,r),l=e.qHyperCube.qSize.qcy,s=Math.min(gR,l),u=l>gR&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:l,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/s),paginationNeeded:u}}(r,l,c,d,f)),[r,l,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(gR,t.qHyperCube.qSize.qcy),l=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/gR);e<o&&i(e)}return{pageInfo:l,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=Qk({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{var e;p&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=rA(r);t.render(rr.jsx(x.StrictMode,{children:rr.jsx(RE,{theme:n,children:rr.jsx(eA,{...e,children:rr.jsx(Uk,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},s)}),[v,u,y,g,s,t,b,p,h])},tO={version:JSON.stringify("4.7.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var rO=e=>({properties:{initial:tO},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>zh({...t,env:e}),exportProperties:Oh,exploration:Fh});function nO(e,t){var r,n;const o=e.getElementsByClassName("sn-table-container")[0];if(!o)return{};const i=o.getBoundingClientRect(),a=e.getElementsByClassName("sn-table-head-row")[0],l=null!==(r=null==a?void 0:a.getBoundingClientRect())&&void 0!==r?r:{height:0},s=e.getElementsByClassName("sn-table-totals-row")[0],u=null!==(n=null==s?void 0:s.getBoundingClientRect())&&void 0!==n?n:{height:0},c=e.getElementsByClassName("sn-table-data-row"),d={top:i.y+l.height+(t.atTop?u.height:0),bottom:i.y+i.height-(t.atBottom?u.height:0)},p=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(c,d),f=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(c,d),m=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(c,d,p);return{visibleRowStartIndex:p,visibleRowEndIndex:f,rowPartialHeight:m}}const oO=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},iO=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const aO=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||Xk.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},lO=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=iv(e,t);if(pv(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=nO(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:aO(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=oO(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(iO(m,h,g)?d:d+1)+c;let v=p+c;const y=oO(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(iO(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:aO(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},sO=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),uO=e=>e.getStyle("object","straightTableV2","backgroundColor");function cO(r){return{qae:rO(r),ext:Fg(r),component(){var n;const i=c(),y=(t=>{const r=e((()=>Bf(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d(),S=p(),E=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData),C=m(),R=h(),A=g(),I=t(),{freeResize:P}=I,D=b(),M=e((()=>{var e;return null!==(e=x.snapshotData)&&void 0!==e&&e.content&&!P?{...D,...x.snapshotData.content.size}:D}),[D,P,null===(n=x.snapshotData)||void 0===n?void 0:n.content]),L=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),k=v(),O=Nf(x,i,sO,uO),T=r.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?I.direction:"ltr",_=Zk(x.qHyperCube,E),q=Hg(x.qHyperCube,E),N=((e,t,r)=>{const[,n,o]=jf((async()=>{var t;const n=ue(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,Vf].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(O,x,r),j=xt(),z={app:S,layout:x,model:E,rect:M,theme:O,keyboard:A,translator:C,interactions:w,selectionsAPI:R,changeSortOrder:_,rootElement:i,embed:k,reactRoot:y,applyColumnWidths:q,isFontLoaded:N,downloadService:j,viewService:L,direction:T,env:r};null==l||l(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Qf}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{um(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{s((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=lO(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>lO(e,t,n)})),[e,t,n])})({layout:x,viewService:L,model:E,rootElement:i,contentRect:D}),eO(z),Jk(z)}}}export{cO as default};