@nebula.js/sn-pivot-table 4.8.9 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v4.8.9
2
+ * @nebula.js/sn-pivot-table v6.0.0
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -111,7 +111,7 @@ function ax(e,t){let n;return n=t?tx(e).withConfig({displayName:t.label,shouldFo
111
111
  }
112
112
  `),KS.rippleVisible,nC,550,(({theme:e})=>e.transitions.easing.easeInOut),KS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),KS.child,KS.childLeaving,rC,550,(({theme:e})=>e.transitions.easing.easeInOut),KS.childPulsate,oC,(({theme:e})=>e.transitions.easing.easeInOut)),sC=e.forwardRef((function(t,n){const r=CS({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=_g(r,XS),[l,u]=e.useState([]),c=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=e.useRef(!1),f=S_(),h=e.useRef(null),m=e.useRef(null),g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;u((e=>[...e,se.jsx(aC,{classes:{ripple:SS(i.ripple,KS.ripple),rippleVisible:SS(i.rippleVisible,KS.rippleVisible),ripplePulsate:SS(i.ripplePulsate,KS.ripplePulsate),child:SS(i.child,KS.child),childLeaving:SS(i.childLeaving,KS.childLeaving),childPulsate:SS(i.childPulsate,KS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=e.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[o,g,f]),y=e.useCallback((()=>{b({},{pulsate:!0})}),[b]),x=e.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{x(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return e.useImperativeHandle(n,(()=>({pulsate:y,start:b,stop:x})),[y,b,x]),se.jsx(iC,vg({className:SS(KS.root,i.root,a),ref:m},s,{children:se.jsx($S,{component:null,exit:!0,children:l})}))}));function lC(e){return Pv("MuiButtonBase",e)}const uC=Dv("MuiButtonBase",["root","disabled","focusVisible"]),cC=["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"],dC=vS("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"},[`&.${uC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pC=e.forwardRef((function(t,n){const r=CS({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:y,onFocusVisible:x,onKeyDown:v,onKeyUp:_,onMouseDown:w,onMouseLeave:S,onMouseUp:C,onTouchEnd:E,onTouchMove:k,onTouchStart:R,tabIndex:M=0,TouchRippleProps:A,touchRippleRef:I,type:L}=r,P=_g(r,cC),D=e.useRef(null),T=e.useRef(null),O=x_(T,I),{isFocusVisibleRef:z,onFocus:N,onBlur:q,ref:j}=P_(),[F,B]=e.useState(!1);u&&F&&B(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),D.current.focus()}})),[]);const[$,W]=e.useState(!1);e.useEffect((()=>{W(!0)}),[]);const H=$&&!c&&!u;function G(e,t,n=d){return y_((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}e.useEffect((()=>{F&&p&&!c&&$&&T.current.pulsate()}),[c,p,F,$]);const V=G("start",w),Y=G("stop",g),U=G("stop",b),K=G("stop",C),X=G("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),J=G("start",R),Z=G("stop",E),Q=G("stop",k),ee=G("stop",(e=>{q(e),!1===z.current&&B(!1),h&&h(e)}),!1),te=y_((e=>{D.current||(D.current=e.currentTarget),N(e),!0===z.current&&(B(!0),x&&x(e)),y&&y(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=y_((e=>{p&&!re.current&&F&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),v&&v(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=y_((e=>{p&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),_&&_(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=u):(P.href||P.to||(le.role="button"),u&&(le["aria-disabled"]=u));const ue=x_(n,j,D),ce=vg({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:F}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=T_({root:["root",t&&"disabled",n&&"focusVisible"]},lC,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return se.jsxs(dC,vg({as:ae,className:SS(de.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:ue,tabIndex:u?-1:M,type:L},le,P,{children:[a,H?se.jsx(sC,vg({ref:O,center:i},A)):null]}))}));function fC(e){return Pv("MuiTypography",e)}Dv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mC=vS("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${_x(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>vg({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}))),gC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yC=e.forwardRef((function(e,t){const n=CS({props:e,name:"MuiTypography"}),r=(e=>bC[e]||e)(n.color),o=Cv(vg({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=gC}=o,f=_g(o,hC),h=vg({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||gC[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return T_({root:["root",i,"inherit"!==e.align&&`align${_x(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},fC,a)})(h);return se.jsx(mC,vg({as:m,ref:t,ownerState:h,className:SS(g.root,a)},f))}));const xC=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=e.useState(null),l=x_(e.isValidElement(r)?F_(r):null,n);if(o_((()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),o_((()=>{if(a&&!i)return f_(n,a),()=>{f_(n,null)}}),[n,a,i]),i){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return se.jsx(e.Fragment,{children:r})}return se.jsx(e.Fragment,{children:a?v.createPortal(r,a):a})})),vC=["onChange","maxRows","minRows","style","value"];function _C(e){return parseInt(e,10)||0}const wC={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function SC(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const CC=e.forwardRef((function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=_g(t,vC),{current:u}=e.useRef(null!=s),c=e.useRef(null),d=x_(n,c),p=e.useRef(null),f=e.useRef(null),h=e.useCallback((()=>{const e=c.current,n=f.current;if(!e||!n)return;const r=p_(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=r.width,n.value=e.value||t.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,s=_C(r.paddingBottom)+_C(r.paddingTop),l=_C(r.borderBottomWidth)+_C(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;i&&(p=Math.max(Number(i)*d,p)),o&&(p=Math.min(Number(o)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}}),[o,i,t.placeholder]),m=y_((()=>{const e=c.current,t=h();if(!e||!t||SC(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n})),g=e.useCallback((()=>{const e=c.current,t=h();if(!e||!t||SC(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),b=e.useRef(-1);o_((()=>{const e=c_(g),t=null==c?void 0:c.current;if(!t)return;const n=p_(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{m()&&(r.unobserve(t),cancelAnimationFrame(b.current),g(),b.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[h,g,m]),o_((()=>{g()}));return se.jsxs(e.Fragment,{children:[se.jsx("textarea",vg({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:i,style:a},l)),se.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:vg({},wC,a,{paddingTop:0,paddingBottom:0})})]})}));function EC({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}const kC=e.createContext(void 0);function RC(){return e.useContext(kC)}function MC(e){return se.jsx(wv,vg({},e,{defaultTheme:jw,themeId:xg}))}function AC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function IC(e,t=!1){return e&&(AC(e.value)&&""!==e.value||t&&AC(e.defaultValue)&&""!==e.defaultValue)}function LC(e){return Pv("MuiInputBase",e)}const PC=Dv("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),DC=["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"],TC=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${_x(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},OC=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},zC=vS("div",{name:"MuiInputBase",slot:"Root",overridesResolver:TC})((({theme:e,ownerState:t})=>vg({},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",[`&.${PC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&vg({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),NC=vS("input",{name:"MuiInputBase",slot:"Input",overridesResolver:OC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=vg({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return vg({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${PC.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},[`&.${PC.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"})})),qC=se.jsx(MC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jC=e.forwardRef((function(t,n){var r;const o=CS({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:y={},inputRef:x,maxRows:v,minRows:_,multiline:w=!1,name:S,onBlur:C,onChange:E,onClick:k,onFocus:R,onKeyDown:M,onKeyUp:A,placeholder:I,readOnly:L,renderSuffix:P,rows:D,slotProps:T={},slots:O={},startAdornment:z,type:N="text",value:q}=o,j=_g(o,DC),F=null!=y.value?y.value:q,{current:B}=e.useRef(null!=F),$=e.useRef(),W=e.useCallback((e=>{}),[]),H=x_($,x,y.ref,W),[G,V]=e.useState(!1),Y=RC(),U=EC({props:o,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:G,e.useEffect((()=>{!Y&&p&&G&&(V(!1),C&&C())}),[Y,p,G,C]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=e.useCallback((e=>{IC(e)?K&&K():X&&X()}),[K,X]);o_((()=>{B&&J({value:F})}),[F,J,B]);e.useEffect((()=>{J($.current)}),[]);let Z=b,Q=y;w&&"input"===Z&&(Q=vg(D?{type:void 0,minRows:D,maxRows:D}:{type:void 0,maxRows:v,minRows:_},Q),Z=CC);e.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(z))}),[Y,z]);const ee=vg({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:h,error:U.error,focused:U.focused,formControl:Y,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:w,size:U.size,startAdornment:z,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return T_({root:["root",`color${_x(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${_x(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},LC,t)})(ee),ne=O.root||u.Root||zC,re=T.root||c.root||{},oe=O.input||u.Input||NC;return Q=vg({},Q,null!=(r=T.input)?r:c.input),se.jsxs(e.Fragment,{children:[!f&&qC,se.jsxs(ne,vg({},re,!O_(ne)&&{ownerState:vg({},ee,re.ownerState)},{ref:n,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},j,{className:SS(te.root,re.className,l,L&&"MuiInputBase-readOnly"),children:[z,se.jsx(kC.Provider,{value:null,children:se.jsx(oe,vg({ownerState:ee,"aria-invalid":U.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:U.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:S,placeholder:I,readOnly:L,required:U.required,rows:D,value:F,onKeyDown:M,onKeyUp:A,type:N},Q,!O_(oe)&&{as:Z,ownerState:vg({},ee,Q.ownerState)},{ref:H,className:SS(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),y.onBlur&&y.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||$.current;if(null==t)throw new Error(bg(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(R&&R(e),y.onFocus&&y.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),h,P?P(vg({},U,{startAdornment:z})):null]}))]})}));function FC(e){return Pv("MuiInput",e)}const BC=vg({},PC,Dv("MuiInput",["root","underline","input"]));function $C(e){return Pv("MuiOutlinedInput",e)}const WC=vg({},PC,Dv("MuiOutlinedInput",["root","notchedOutline","input"]));function HC(e){return Pv("MuiFilledInput",e)}const GC=vg({},PC,Dv("MuiFilledInput",["root","underline","input"]));var VC=function(t,n){function r(e,r){return se.jsx(MS,vg({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=MS.muiName,e.memo(e.forwardRef(r))}(se.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const YC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],UC={entering:{opacity:1},entered:{opacity:1}},KC=e.forwardRef((function(t,n){const r=Fw(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=o,TransitionComponent:y=zS}=t,x=_g(t,YC),v=e.useRef(null),_=x_(v,F_(s),n),w=e=>t=>{if(e){const n=v.current;void 0===t?e(n):e(n,t)}},S=w(p),C=w(((e,t)=>{WS(e);const n=HS({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),E=w(d),k=w(m),R=w((e=>{const t=HS({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),M=w(h);return se.jsx(y,vg({appear:a,in:u,nodeRef:v,onEnter:C,onEntered:E,onEntering:S,onExit:R,onExited:M,onExiting:k,addEndListener:e=>{i&&i(v.current,e)},timeout:b},x,{children:(t,n)=>e.cloneElement(s,vg({style:vg({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},UC[t],g,s.props.style),ref:_},n))}))}));function XC(e){return Pv("MuiBackdrop",e)}Dv("MuiBackdrop",["root","invisible"]);const JC=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ZC=vS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>vg({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"}))),QC=e.forwardRef((function(e,t){var n,r,o;const i=CS({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=KC,transitionDuration:g}=i,b=_g(i,JC),y=vg({},i,{component:l,invisible:d}),x=(e=>{const{classes:t,invisible:n}=e;return T_({root:["root",n&&"invisible"]},XC,t)})(y),v=null!=(n=f.root)?n:c.root;return se.jsx(m,vg({in:p,timeout:g},b,{children:se.jsx(ZC,vg({"aria-hidden":!0},v,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:l,className:SS(x.root,s,null==v?void 0:v.className),ownerState:vg({},y,null==v?void 0:v.ownerState),classes:x,ref:t,children:a}))}))})),eE=Dv("MuiBox",["root"]),tE=qw(),nE=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=t,a=ax("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hv),s=e.forwardRef((function(e,t){const s=_v(r),l=Cv(e),{className:u,component:c="div"}=l,d=Au(l,Iv);return se.jsx(a,Ll({as:c,ref:t,className:Av(u,i?i(o):o),theme:n&&s[n]||s},d))}));return s}({themeId:xg,defaultTheme:tE,defaultClassName:eE.root,generateClassName:Rv.generate});function rE(e){return Pv("MuiButton",e)}const oE=Dv("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),iE=e.createContext({}),aE=e.createContext(void 0),sE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lE=e=>vg({},"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}}),uE=vS(pC,{shouldForwardProp:e=>xS(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_x(n.color)}`],t[`size${_x(n.size)}`],t[`${n.variant}Size${_x(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 vg({},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":vg({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tw(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})`:tw(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})`:tw(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":vg({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${oE.focusVisible}`]:vg({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${oE.disabled}`]:vg({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 ${tw(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.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"},[`&.${oE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${oE.disabled}`]:{boxShadow:"none"}})),cE=vS("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${_x(n.size)}`]]}})((({ownerState:e})=>vg({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},lE(e)))),dE=vS("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${_x(n.size)}`]]}})((({ownerState:e})=>vg({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},lE(e)))),pE=e.forwardRef((function(t,n){const r=e.useContext(iE),o=e.useContext(aE),i=CS({props:r_(r,t),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:b,type:y,variant:x="text"}=i,v=_g(i,sE),_=vg({},i,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:x}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return vg({},a,T_({root:["root",i,`${i}${_x(t)}`,`size${_x(o)}`,`${i}Size${_x(o)}`,`color${_x(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${_x(o)}`],endIcon:["icon","endIcon",`iconSize${_x(o)}`]},rE,a))})(_),S=b&&se.jsx(cE,{className:w.startIcon,ownerState:_,children:b}),C=f&&se.jsx(dE,{className:w.endIcon,ownerState:_,children:f}),E=o||"";return se.jsxs(uE,vg({ownerState:_,className:SS(r.className,w.root,u,E),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:SS(w.focusVisible,h),ref:n,type:y},v,{classes:w,children:[S,a,C]}))}));function fE(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hE(e){return parseInt(p_(e).getComputedStyle(e).paddingRight,10)||0}function mE(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&fE(e,o)}))}function gE(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=d_(e);return t.body===e?p_(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=D_(d_(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${hE(r)+e}px`;const t=d_(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hE(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=d_(r).body;else{const t=r.parentElement,n=p_(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const yE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xE(e){const t=[],n=[];return Array.from(e.querySelectorAll(yE)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function vE(){return!0}function _E(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=xE,isEnabled:s=vE,open:l}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=x_(F_(n),m),b=e.useRef(null);e.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),e.useEffect((()=>{if(!l||!m.current)return;const e=d_(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),e.useEffect((()=>{if(!l||!m.current)return;const e=d_(m.current),t=t=>{b.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,i;const e=Boolean((null==(r=b.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,o,i,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return se.jsxs(e.Fragment,{children:[se.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),se.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const wE=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fE(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);mE(t,e.mount,e.modalRef,r,!0);const o=gE(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=gE(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bE(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=gE(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&fE(e.modalRef,t),mE(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&fE(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function SE(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=wE,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=t,f=e.useRef({}),h=e.useRef(null),m=e.useRef(null),g=x_(m,p),[b,y]=e.useState(!d),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let v=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(v=!1);const _=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{i.mount(_(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=y_((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||d_(h.current).body;i.add(_(),e),m.current&&w()})),C=e.useCallback((()=>i.isTopModal(_())),[i]),E=y_((e=>{h.current=e,e&&(d&&C()?w():m.current&&fE(m.current,v))})),k=e.useCallback((()=>{i.remove(_(),v)}),[v,i]);e.useEffect((()=>()=>{k()}),[k]),e.useEffect((()=>{d?S():x&&a||k()}),[d,k,x,a,S]);const R=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(e={})=>{const n=z_(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=vg({},n,e);return vg({role:"presentation"},r,{onKeyDown:R(r),ref:g})},getBackdropProps:(e={})=>vg({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:u_((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:u_((()=>{y(!0),l&&l(),a&&k()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:E,isTopModal:C,exited:b,hasTransition:x}}function CE(e){return Pv("MuiModal",e)}Dv("MuiModal",["root","hidden","backdrop"]);const EE=["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"],kE=vS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>vg({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),RE=vS(QC,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ME=e.forwardRef((function(t,n){var r,o,i,a,s,l;const u=CS({name:"MuiModal",props:t}),{BackdropComponent:c=RE,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:_=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:k=!1,onBackdropClick:R,open:M,slotProps:A,slots:I}=u,L=_g(u,EE),P=vg({},u,{closeAfterTransition:f,disableAutoFocus:x,disableEnforceFocus:v,disableEscapeKeyDown:_,disablePortal:w,disableRestoreFocus:S,disableScrollLock:C,hideBackdrop:E,keepMounted:k}),{getRootProps:D,getBackdropProps:T,getTransitionProps:O,portalRef:z,isTopModal:N,exited:q,hasTransition:j}=SE(vg({},P,{rootRef:n})),F=vg({},P,{exited:q}),B=(e=>{const{open:t,exited:n,classes:r}=e;return T_({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},CE,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const W=null!=(r=null!=(o=null==I?void 0:I.root)?o:b.Root)?r:kE,H=null!=(i=null!=(a=null==I?void 0:I.backdrop)?a:b.Backdrop)?i:c,G=null!=(s=null==A?void 0:A.root)?s:y.root,V=null!=(l=null==A?void 0:A.backdrop)?l:y.backdrop,Y=j_({elementType:W,externalSlotProps:G,externalForwardedProps:L,getSlotProps:D,additionalProps:{ref:n,as:g},ownerState:F,className:SS(p,null==G?void 0:G.className,null==B?void 0:B.root,!F.open&&F.exited&&(null==B?void 0:B.hidden))}),U=j_({elementType:H,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(vg({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:SS(null==V?void 0:V.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:F});return k||M||j&&!q?se.jsx(xC,{ref:z,container:m,disablePortal:w,children:se.jsxs(W,vg({},Y,{children:[!E&&c?se.jsx(H,vg({},U)):null,se.jsx(_E,{disableEnforceFocus:v,disableAutoFocus:x,disableRestoreFocus:S,isEnabled:N,open:M,children:e.cloneElement(h,$)})]}))}):null}));function AE(e){return Pv("MuiDivider",e)}const IE=Dv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),LE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],PE=vS("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>vg({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)`:tw(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})=>vg({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>vg({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>vg({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>vg({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),DE=vS("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>vg({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)`}))),TE=e.forwardRef((function(e,t){const n=CS({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=_g(n,LE),h=vg({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return T_({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},AE,r)})(h);return se.jsx(PE,vg({as:a,className:SS(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?se.jsx(DE,{className:m.wrapper,ownerState:h,children:o}):null}))}));TE.muiSkipListHighlight=!0;const OE=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zE=vS(zC,{shouldForwardProp:e=>xS(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...TC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return vg({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}},[`&.${GC.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${GC.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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 ${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(.${GC.disabled}, .${GC.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${GC.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&vg({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}))})),NE=vS(NC,{name:"MuiFilledInput",slot:"Input",overridesResolver:OC})((({theme:e,ownerState:t})=>vg({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}))),qE=e.forwardRef((function(e,t){var n,r,o,i;const a=CS({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=_g(a,OE),g=vg({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return vg({},t,T_({root:["root",!n&&"underline"],input:["input"]},HC,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},x=(null!=p?p:l)?px(y,null!=p?p:l):y,v=null!=(n=null!=(r=f.root)?r:s.Root)?n:zE,_=null!=(o=null!=(i=f.input)?i:s.Input)?o:NE;return se.jsx(jC,vg({slots:{root:v,input:_},componentsProps:x,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));qE.muiName="Input";const jE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function FE(e){return`scale(${e}, ${e**2})`}const BE={entering:{opacity:1,transform:FE(1)},entered:{opacity:1,transform:"none"}},$E="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),WE=e.forwardRef((function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=zS}=t,b=_g(t,jE),y=S_(),x=e.useRef(),v=Fw(),_=e.useRef(null),w=x_(_,F_(i),n),S=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},C=S(c),E=S(((e,t)=>{WS(e);const{duration:n,delay:r,easing:o}=HS({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=i):i=n,e.style.transition=[v.transitions.create("opacity",{duration:i,delay:r}),v.transitions.create("transform",{duration:$E?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=S(u),R=S(f),M=S((e=>{const{duration:t,delay:n,easing:r}=HS({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:$E?o:.666*o,delay:$E?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=FE(.75),d&&d(e)})),A=S(p);return se.jsx(g,vg({appear:o,in:s,nodeRef:_,onEnter:E,onEntered:k,onEntering:C,onExit:M,onExited:A,onExiting:R,addEndListener:e=>{"auto"===m&&y.start(x.current||0,e),r&&r(_.current,e)},timeout:"auto"===m?null:m},b,{children:(t,n)=>e.cloneElement(i,vg({style:vg({opacity:0,transform:FE(.75),visibility:"exited"!==t||s?void 0:"hidden"},BE[t],h,i.props.style),ref:w},n))}))}));WE.muiSupportAuto=!0;const HE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],GE=vS(zC,{shouldForwardProp:e=>xS(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...TC(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),vg({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"},[`&.${BC.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${BC.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${BC.disabled}, .${BC.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${BC.disabled}:before`]:{borderBottomStyle:"dotted"}})})),VE=vS(NC,{name:"MuiInput",slot:"Input",overridesResolver:OC})({}),YE=e.forwardRef((function(e,t){var n,r,o,i;const a=CS({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=_g(a,HE),b=(e=>{const{classes:t,disableUnderline:n}=e;return vg({},t,T_({root:["root",!n&&"underline"],input:["input"]},FC,t))})(a),y={root:{ownerState:{disableUnderline:s}}},x=(null!=f?f:u)?px(null!=f?f:u,y):y,v=null!=(n=null!=(r=h.root)?r:l.Root)?n:GE,_=null!=(o=null!=(i=h.input)?i:l.Input)?o:VE;return se.jsx(jC,vg({slots:{root:v,input:_},slotProps:x,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function UE(e){return Pv("MuiLink",e)}YE.muiName="Input";const KE=Dv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),XE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},JE=({theme:e,ownerState:t})=>{const n=(e=>XE[e]||e)(t.color),r=Sx(e,`palette.${n}`,!1)||t.color,o=Sx(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:tw(r,.4)},ZE=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],QE=vS(yC,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${_x(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>vg({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&vg({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:JE({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"},[`&.${KE.focusVisible}`]:{outline:"auto"}}))),ek=e.forwardRef((function(t,n){const r=CS({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=_g(r,ZE),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:b}=P_(),[y,x]=e.useState(!1),v=x_(n,b),_=vg({},r,{color:i,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return T_({root:["root",`underline${_x(o)}`,"button"===n&&"button",r&&"focusVisible"]},UE,t)})(_);return se.jsx(QE,vg({color:i,className:SS(w.root,o),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&x(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&x(!0),l&&l(e)},ref:v,ownerState:_,variant:d,sx:[...Object.keys(XE).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),tk=e.createContext({});function nk(e){return Pv("MuiList",e)}Dv("MuiList",["root","padding","dense","subheader"]);const rk=["children","className","component","dense","disablePadding","subheader"],ok=vS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>vg({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ik=e.forwardRef((function(t,n){const r=CS({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=_g(r,rk),d=e.useMemo((()=>({dense:s})),[s]),p=vg({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return T_({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nk,t)})(p);return se.jsx(tk.Provider,{value:d,children:se.jsxs(ok,vg({as:a,className:SS(f.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}));function ak(e){return Pv("MuiListItemIcon",e)}const sk=Dv("MuiListItemIcon",["root","alignItemsFlexStart"]),lk=["className"],uk=vS("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>vg({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ck=e.forwardRef((function(t,n){const r=CS({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=_g(r,lk),a=vg({},r,{alignItems:e.useContext(tk).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return T_({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ak,n)})(a);return se.jsx(uk,vg({className:SS(s.root,o),ownerState:a,ref:n},i))})),dk=Dv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),pk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function fk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function hk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mk(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function gk(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&mk(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const bk=e.forwardRef((function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=_g(t,pk),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});o_((()=>{o&&f.current.focus()}),[o]),e.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${D_(d_(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=x_(f,n);let g=-1;e.Children.forEach(a,((t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===n&&(g+=1,g>=a.length&&(g=-1))}));const b=e.Children.map(a,((t,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return se.jsx(ik,vg({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=d_(t).activeElement;if("ArrowDown"===n)e.preventDefault(),gk(t,r,u,l,fk);else if("ArrowUp"===n)e.preventDefault(),gk(t,r,u,l,hk);else if("Home"===n)e.preventDefault(),gk(t,null,u,l,fk);else if("End"===n)e.preventDefault(),gk(t,null,u,l,hk);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&mk(r,o);o.previousKeyMatched&&(s||gk(t,r,!1,l,fk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function yk(e){return Pv("MuiPopover",e)}Dv("MuiPopover",["root","paper"]);const xk=["onEntering"],vk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_k=["slotProps"];function wk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Sk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ck(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ek(e){return"function"==typeof e?e():e}const kk=vS(ME,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rk=vS(US,{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}),Mk=e.forwardRef((function(t,n){var r,o,i;const a=CS({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:y={},slots:x,slotProps:v,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:w=WE,transitionDuration:S="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=a,k=_g(a.TransitionProps,xk),R=_g(a,vk),M=null!=(r=null==v?void 0:v.paper)?r:y,A=e.useRef(),I=x_(A,M.ref),L=vg({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:_,TransitionComponent:w,transitionDuration:S,TransitionProps:k}),P=(e=>{const{classes:t}=e;return T_({root:["root"],paper:["paper"]},yk,t)})(L),D=e.useCallback((()=>{if("anchorPosition"===d)return c;const e=Ek(l),t=(e&&1===e.nodeType?e:d_(A.current).body).getBoundingClientRect();return{top:t.top+wk(t,u.vertical),left:t.left+Sk(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),T=e.useCallback((e=>({vertical:wk(e,_.vertical),horizontal:Sk(e,_.horizontal)})),[_.horizontal,_.vertical]),O=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:Ck(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=p_(Ek(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ck(n)}}),[l,d,D,T,g]),[z,N]=e.useState(b),q=e.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);e.useEffect((()=>(E&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,E,q]);e.useEffect((()=>{b&&q()})),e.useImperativeHandle(s,(()=>b?{updatePosition:()=>{q()}}:null),[b,q]),e.useEffect((()=>{if(!b)return;const e=c_((()=>{q()})),t=p_(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,q]);let j=S;"auto"!==S||w.muiSupportAuto||(j=void 0);const F=h||(l?d_(Ek(l)).body:void 0),B=null!=(o=null==x?void 0:x.root)?o:kk,$=null!=(i=null==x?void 0:x.paper)?i:Rk,W=j_({elementType:$,externalSlotProps:vg({},M,{style:z?M.style:vg({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:L,className:SS(P.paper,null==M?void 0:M.className)}),H=j_({elementType:B,externalSlotProps:(null==v?void 0:v.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:F,open:b},ownerState:L,className:SS(P.root,f)}),{slotProps:G}=H,V=_g(H,_k);return se.jsx(B,vg({},V,!O_(B)&&{slotProps:G,disableScrollLock:E},{children:se.jsx(w,vg({appear:!0,in:b,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:j},k,{children:se.jsx($,vg({},W,{children:p}))}))}))}));function Ak(e){return Pv("MuiMenu",e)}Dv("MuiMenu",["root","paper","list"]);const Ik=["onEntering"],Lk=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Pk={vertical:"top",horizontal:"right"},Dk={vertical:"top",horizontal:"left"},Tk=vS(Mk,{shouldForwardProp:e=>xS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ok=vS(Rk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zk=vS(bk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Nk=e.forwardRef((function(t,n){var r,o;const i=CS({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:y={},slotProps:x={}}=i,v=_g(i.TransitionProps,Ik),_=_g(i,Lk),w=(()=>{const t=e.useContext(G_);return null!=t&&t})(),S=vg({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:v,variant:b}),C=(e=>{const{classes:t}=e;return T_({root:["root"],paper:["paper"],list:["list"]},Ak,t)})(S),E=a&&!u&&p,k=e.useRef(null);let R=-1;e.Children.map(s,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===b&&t.props.selected||-1===R)&&(R=n))}));const M=null!=(r=y.paper)?r:Ok,A=null!=(o=x.paper)?o:f,I=j_({elementType:y.root,externalSlotProps:x.root,ownerState:S,className:[C.root,l]}),L=j_({elementType:M,externalSlotProps:A,ownerState:S,className:C.paper});return se.jsx(Tk,vg({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Pk:Dk,slots:{paper:M,root:y.root},slotProps:{root:I,paper:L},open:p,ref:n,transitionDuration:m,TransitionProps:vg({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},v),ownerState:S},_,{classes:h,children:se.jsx(zk,vg({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:a&&(-1===R||u),autoFocusItem:E,variant:b},c,{className:SS(C.list,c.className),children:s}))}))}));function qk(e){return Pv("MuiMenuItem",e)}const jk=Dv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bk=vS(pC,{shouldForwardProp:e=>xS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>vg({},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"}},[`&.${jk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tw(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tw(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tw(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})`:tw(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${IE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${IE.inset}`]:{marginLeft:52},[`& .${dk.root}`]:{marginTop:0,marginBottom:0},[`& .${dk.inset}`]:{paddingLeft:36},[`& .${sk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&vg({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sk.root} svg`]:{fontSize:"1.25rem"}})))),$k=e.forwardRef((function(t,n){const r=CS({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=_g(r,Fk),h=e.useContext(tk),m=e.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=e.useRef(null);o_((()=>{o&&g.current&&g.current.focus()}),[o]);const b=vg({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return vg({},a,T_({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},qk,a))})(r),x=x_(g,n);let v;return r.disabled||(v=void 0!==d?d:-1),se.jsx(tk.Provider,{value:m,children:se.jsx(Bk,vg({ref:x,role:c,tabIndex:v,component:i,focusVisibleClassName:SS(y.focusVisible,u),className:SS(y.root,p)},f,{ownerState:b,classes:y}))})}));function Wk(e){return Pv("MuiNativeSelect",e)}const Hk=Dv("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Gk=["className","disabled","error","IconComponent","inputRef","variant"],Vk=({ownerState:e,theme:t})=>vg({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":vg({},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"},[`&.${Hk.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}}),Yk=vS("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xS,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Hk.multiple}`]:t.multiple}]}})(Vk),Uk=({ownerState:e,theme:t})=>vg({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Hk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Kk=vS("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${_x(n.variant)}`],n.open&&t.iconOpen]}})(Uk),Xk=e.forwardRef((function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=_g(t,Gk),c=vg({},t,{disabled:o,variant:l,error:i}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return T_({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${_x(n)}`,i&&"iconOpen",r&&"disabled"]},Wk,t)})(c);return se.jsxs(e.Fragment,{children:[se.jsx(Yk,vg({ownerState:c,className:SS(d.select,r),disabled:o,ref:s||n},u)),t.multiple?null:se.jsx(Kk,{as:a,ownerState:c,className:d.icon})]})}));var Jk;const Zk=["children","classes","className","label","notched"],Qk=vS("fieldset",{shouldForwardProp:xS})({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%"}),eR=vS("legend",{shouldForwardProp:xS})((({ownerState:e,theme:t})=>vg({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&&vg({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 tR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nR=vS(zC,{shouldForwardProp:e=>xS(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:TC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return vg({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${WC.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${WC.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${WC.focused} .${WC.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${WC.error} .${WC.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${WC.disabled} .${WC.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&vg({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),rR=vS((function(e){const{className:t,label:n,notched:r}=e,o=_g(e,Zk),i=null!=n&&""!==n,a=vg({},e,{notched:r,withLabel:i});return se.jsx(Qk,vg({"aria-hidden":!0,className:t,ownerState:a},o,{children:se.jsx(eR,{ownerState:a,children:i?se.jsx("span",{children:n}):Jk||(Jk=se.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}})),oR=vS(NC,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:OC})((({theme:e,ownerState:t})=>vg({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}))),iR=e.forwardRef((function(t,n){var r,o,i,a,s;const l=CS({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,b=_g(l,tR),y=(e=>{const{classes:t}=e;return vg({},t,T_({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$C,t))})(l),x=RC(),v=EC({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=vg({},l,{color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:x,fullWidth:c,hiddenLabel:v.hiddenLabel,multiline:f,size:v.size,type:g}),w=null!=(r=null!=(o=m.root)?o:u.Root)?r:nR,S=null!=(i=null!=(a=m.input)?a:u.Input)?i:oR;return se.jsx(jC,vg({slots:{root:w,input:S},renderSuffix:t=>se.jsx(rR,{ownerState:_,className:y.notchedOutline,label:null!=p&&""!==p&&v.required?s||(s=se.jsxs(e.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},b,{classes:vg({},y,{notchedOutline:null})}))}));function aR(e){return Pv("MuiSelect",e)}iR.muiName="Input";const sR=Dv("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lR;const uR=["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"],cR=vS("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${sR.select}`]:t.select},{[`&.${sR.select}`]:t[n.variant]},{[`&.${sR.error}`]:t.error},{[`&.${sR.multiple}`]:t.multiple}]}})(Vk,{[`&.${sR.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dR=vS("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${_x(n.variant)}`],n.open&&t.iconOpen]}})(Uk),pR=vS("input",{shouldForwardProp:e=>yS(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fR(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function hR(e){return null==e||"string"==typeof e&&!e.trim()}const mR=e.forwardRef((function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:b,MenuProps:y={},multiple:x,name:v,onBlur:_,onChange:w,onClose:S,onFocus:C,onOpen:E,open:k,readOnly:R,renderValue:M,SelectDisplayProps:A={},tabIndex:I,value:L,variant:P="standard"}=t,D=_g(t,uR),[T,O]=b_({controlled:L,default:d,name:"Select"}),[z,N]=b_({controlled:k,default:c,name:"Select"}),q=e.useRef(null),j=e.useRef(null),[F,B]=e.useState(null),{current:$}=e.useRef(null!=k),[W,H]=e.useState(),G=x_(n,g),V=e.useCallback((e=>{j.current=e,e&&B(e)}),[]),Y=null==F?void 0:F.parentNode;e.useImperativeHandle(G,(()=>({focus:()=>{j.current.focus()},node:q.current,value:T})),[T]),e.useEffect((()=>{c&&z&&F&&!$&&(H(s?null:Y.clientWidth),j.current.focus())}),[F,s]),e.useEffect((()=>{a&&j.current.focus()}),[a]),e.useEffect((()=>{if(!b)return;const e=d_(j.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?E&&E(t):S&&S(t),$||(H(s?null:Y.clientWidth),N(e))},K=e.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(x){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(O(n),w)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:v}}),w(o,e)}x||U(!1,t)}},J=null!==F&&z;let Z,Q;delete D["aria-invalid"];const ee=[];let te=!1;(IC({value:T})||f)&&(M?Z=M(T):te=!0);const ne=K.map((t=>{if(!e.isValidElement(t))return null;let n;if(x){if(!Array.isArray(T))throw new Error(bg(2));n=T.some((e=>fR(e,t.props.value))),n&&te&&ee.push(t.props.children)}else n=fR(T,t.props.value),n&&te&&(Q=t.props.children);return e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:X(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));te&&(Z=x?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=W;!s&&$&&F&&(oe=Y.clientWidth),re=void 0!==I?I:p?null:0;const ie=A.id||(v?`mui-component-select-${v}`:void 0),ae=vg({},t,{variant:P,value:T,open:J,error:h}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return T_({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${_x(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},aR,t)})(ae),ue=vg({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ce=g_();return se.jsxs(e.Fragment,{children:[se.jsx(cR,vg({ref:V,tabIndex:re,role:"combobox","aria-controls":ce,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:p||R?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),U(!0,e))},onBlur:e=>{!J&&_&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:v}}),_(e))},onFocus:C},A,{ownerState:ae,className:SS(A.className,le.select,u),id:ie,children:hR(Z)?lR||(lR=se.jsx("span",{className:"notranslate",children:"​"})):Z})),se.jsx(pR,vg({"aria-invalid":h,value:Array.isArray(T)?T.join(","):T,name:v,ref:q,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:a,ownerState:ae},D)),se.jsx(dR,{as:m,className:le.icon,ownerState:ae}),se.jsx(Nk,vg({id:`menu-${v||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:vg({"aria-labelledby":b,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:ce},y.MenuListProps),slotProps:vg({},y.slotProps,{paper:vg({},ue,{style:vg({minWidth:oe},null!=ue?ue.style:null)})}),children:ne}))]})})),gR=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bR=["root"],yR={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xS(e)&&"variant"!==e,slot:"Root"},xR=vS(YE,yR)(""),vR=vS(iR,yR)(""),_R=vS(qE,yR)(""),wR=e.forwardRef((function(t,n){const r=CS({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=VC,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:b=!1,native:y=!1,onClose:x,onOpen:v,open:_,renderValue:w,SelectDisplayProps:S,variant:C="outlined"}=r,E=_g(r,gR),k=y?Xk:mR,R=EC({props:r,muiFormControl:RC(),states:["variant","error"]}),M=R.variant||C,A=vg({},r,{variant:M,classes:a}),I=(e=>{const{classes:t}=e;return t})(A),L=_g(I,bR),P=p||{standard:se.jsx(xR,{ownerState:A}),outlined:se.jsx(vR,{label:h,ownerState:A}),filled:se.jsx(_R,{ownerState:A})}[M],D=x_(n,F_(P));return se.jsx(e.Fragment,{children:e.cloneElement(P,vg({inputComponent:k,inputProps:vg({children:i,error:R.error,IconComponent:c,variant:M,type:void 0,multiple:b},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:x,onOpen:v,open:_,renderValue:w,SelectDisplayProps:vg({id:d},S)},f,{classes:f?px(L,f.classes):L},p?p.props.inputProps:{})},(b&&y||u)&&"outlined"===M?{notched:!0}:{},{ref:D,className:SS(P.props.className,s,I.root)},!p&&{variant:M},E))})}));function SR(e={}){return se.jsx(Lm,{...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:se.jsx("rect",{stroke:hm.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}wR.muiName="Select";const CR={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:xm,"& > 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 ER=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:hm.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:hm.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:se.jsx(Mm,{"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 ${hm.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:hm.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${hm.MISC_FOCUS_BORDER}`,borderRadius:xm,backgroundColor:hm.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 ${hm.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:hm.WHITE,color:hm.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:xm},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hm.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:hm.GREYSCALE_0_15,backgroundColor:hm.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:hm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hm.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:hm.GREEN_PALE},"&:active":{backgroundColor:hm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hm.GREEN_PALE,boxShadow:`0 0 0 3px ${l_(hm.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:hm.BLUE_PALE},"&:active":{backgroundColor:hm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hm.BLUE_PALE,boxShadow:`0 0 0 3px ${l_(hm.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:xm,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:hm.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hm.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:hm.GREYSCALE_0_15,backgroundColor:hm.GREYSCALE_100_60,"&:active":{backgroundColor:hm.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:hm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hm.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:hm.PURPLE,"&.Mui-focusVisible":{borderColor:hm.PURPLE,boxShadow:`0 0 0 3px ${l_(hm.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:hm.GREEN,"&.Mui-focusVisible":{borderColor:hm.GREEN,boxShadow:`0 0 0 3px ${l_(hm.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:hm.BLUE,"&.Mui-focusVisible":{borderColor:hm.BLUE,boxShadow:`0 0 0 3px ${l_(hm.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:hm.ORANGE,"&.Mui-focusVisible":{borderColor:hm.ORANGE,boxShadow:`0 0 0 3px ${l_(hm.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:hm.RED,"&.Mui-focusVisible":{borderColor:hm.RED,boxShadow:`0 0 0 3px ${l_(hm.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:hm.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:hm.PURPLE_PALE},"&:active":{backgroundColor:hm.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:hm.PURPLE_PALE,boxShadow:`0 0 0 3px ${l_(hm.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:hm.GREEN_PALE},"&:active":{backgroundColor:hm.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hm.GREEN_PALE,boxShadow:`0 0 0 3px ${l_(hm.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:hm.BLUE_PALE},"&:active":{backgroundColor:hm.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hm.BLUE_PALE,boxShadow:`0 0 0 3px ${l_(hm.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:hm.ORANGE_PALE},"&:active":{backgroundColor:hm.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:hm.ORANGE_PALE,boxShadow:`0 0 0 3px ${l_(hm.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:hm.RED_PALE},"&:active":{backgroundColor:hm.RED_DARK},"&.Mui-focusVisible":{borderColor:hm.RED_PALE,boxShadow:`0 0 0 3px ${l_(hm.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:hm.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:hm.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:xm,boxShadow:`inset 0 0 0 2px ${hm.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:se.jsx(Im,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:mm,borderRadius:xm,color:hm.TEXT_PRIMARY,backgroundColor:hm.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:hm.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${hm.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:hm.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:hm.GREYSCALE_0_05,color:hm.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:hm.GREEN,borderColor:hm.GREEN},"&.MuiChip-outlinedInfo":{color:hm.BLUE,borderColor:hm.BLUE},"&.MuiChip-outlinedWarning":{color:hm.ORANGE,borderColor:hm.ORANGE},"&.MuiChip-outlinedError":{color:hm.RED,borderColor:hm.RED}},outlined:{border:`solid 1px ${hm.GREYSCALE_0_15}`,backgroundColor:hm.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:xm,boxShadow:"none",backgroundColor:hm.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:hm.GREEN,borderColor:hm.GREEN},outlinedSecondary:{color:hm.BLUE,borderColor:hm.BLUE},label:{fontFamily:Cm.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:se.jsx(Im,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:se.jsx(Mm,{"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:xm},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:xm,fontSize:gm,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:hm.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${hm.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:hm.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:hm.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:hm.GREYSCALE_0_05}}},popupIndicator:{borderRadius:xm,border:`solid 1px ${hm.GREYSCALE_0_15}`,color:hm.GREYSCALE_0_60,marginRight:0,width:ym,height:ym},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${hm.GREYSCALE_0_15}`},clearIndicator:{borderRadius:xm,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:hm.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:gm}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:mm,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:hm.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:hm.GREYSCALE_25,fontSize:mm,fontFamily:Cm.FONT_FAMILY,fontWeight:wm,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:hm.TEXT_PRIMARY},"&.Mui-error":{color:hm.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:hm.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_m,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:hm.TEXT_SECONDARY,content:"'(required)'",fontWeight:_m,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:gm,lineHeight:"16px",backgroundColor:hm.WHITE,borderRadius:xm,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hm.GREYSCALE_0_05}`,borderColor:hm.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hm.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${hm.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${hm.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hm.RED}`,boxShadow:`0px 0px 0px 1px ${hm.RED}, inset 0 2px 0 0 ${hm.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hm.GREYSCALE_0_10}`,borderColor:hm.GREYSCALE_0_10,backgroundColor:hm.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:hm.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:hm.GREYSCALE_0_15,borderRadius:xm,boxShadow:`inset 0 2px 0 0 ${hm.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>se.jsx(Mm,{...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:hm.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:hm.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:hm.GREYSCALE_0_03},"&:active":{backgroundColor:hm.GREYSCALE_0_10},"&:focus":{backgroundColor:hm.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${hm.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${hm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:hm.GREYSCALE_0_30,"&:hover":{backgroundColor:hm.GREYSCALE_0_0,borderColor:hm.GREYSCALE_0_15},"& ~svg":{color:hm.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${hm.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:xm}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:hm.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${hm.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:hm.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:gm,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:mm,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:mm,fontWeight:wm,color:hm.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:wm}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${hm.GREYSCALE_0_15}, 0px 0px 0px 1px ${hm.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:se.jsx(Tm,{}),checkedIcon:se.jsx(Om,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:hm.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${hm.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:hm.GREEN_PALE,boxShadow:`0 0 0 3px ${l_(hm.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:hm.BLUE_PALE,boxShadow:`0 0 0 3px ${l_(hm.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:hm.GREYSCALE_0_20}},"&.Mui-disabled":{fill:hm.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:se.jsx(SR,{}),checkedIcon:se.jsx(Pm,{}),indeterminateIcon:se.jsx(Dm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:xm,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:hm.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:hm.GREYSCALE_0_55,color:hm.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:hm.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:hm.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:hm.GREYSCALE_0_55,"&:hover":{color:hm.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:hm.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:hm.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:gm,color:hm.TEXT_PRIMARY,lineHeight:"16px",fontWeight:wm},secondary:{fontSize:mm,color:hm.GREYSCALE_45,fontWeight:_m,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:gm,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:gm,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:hm.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:mm,borderBottom:`solid 1px ${hm.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:gm,color:hm.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:hm.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:hm.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:hm.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:hm.RED}}},"&.Mui-focusVisible":{backgroundColor:hm.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:hm.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:hm.GREEN,height:"24px","&.Mui-disabled":{color:hm.GREYSCALE_0_15}},rail:{backgroundColor:hm.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${hm.GREYSCALE_0_05}`,borderRadius:xm,boxShadow:`inset 0px 0px 0px 1px ${hm.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${hm.GREYSCALE_0_05}`,borderRadius:xm},thumb:{height:"16px",width:"16px",borderRadius:xm,backgroundColor:hm.WHITE,boxShadow:`0px 1px 2px 0px ${hm.GREYSCALE_0_15}, 0px 0px 0px 1px ${hm.GREYSCALE_0_05}`,"&:hover":{borderRadius:xm,boxShadow:`0 2px 4px 0 ${hm.GREYSCALE_0_30}, 0 0 0 1px ${hm.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${hm.GREYSCALE_0_15}, 0 0 0 1px ${hm.GREYSCALE_0_06}, 0 0 0 2px ${hm.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${hm.GREYSCALE_0_15}, 0 0 0 1px ${hm.GREYSCALE_0_06}, 0 0 0 2px ${hm.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:hm.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:hm.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:hm.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:hm.GREYSCALE_0_15},markLabel:{color:hm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:hm.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:hm.WHITE,color:hm.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:hm.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:hm.GREEN_PALE,boxShadow:`0 0 0 3px ${l_(hm.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:hm.BLUE_PALE,boxShadow:`0 0 0 3px ${l_(hm.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:hm.GREYSCALE_0_15,borderRadius:xm},thumb:{height:"16px",width:"16px",borderRadius:xm,backgroundColor:hm.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:gm,fontWeight:wm,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${hm.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${hm.MISC_FOCUS_BORDER}`,backgroundColor:hm.GREYSCALE_0_03,borderRadius:xm},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:hm.GREYSCALE_25,"&.Mui-selected":{color:hm.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:gm,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:xm,"&:hover":{backgroundColor:hm.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 ${hm.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${hm.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:xm,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:hm.GREYSCALE_0_05},"&:hover":{backgroundColor:hm.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${hm.GREYSCALE_85}`,borderRight:`1px solid ${hm.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:wm,backgroundColor:hm.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:hm.GREYSCALE_98,borderBottom:`1px solid ${hm.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${hm.GREYSCALE_85}`,borderTop:`1px solid ${hm.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:hm.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:hm.GREYSCALE_0_05,"&:hover":{backgroundColor:hm.GREYSCALE_0_03}},"&&:hover":{backgroundColor:hm.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>se.jsx(zm,{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 ${hm.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:gm,borderRadius:xm,padding:"7px 16px",border:`1px solid ${hm.GREYSCALE_0_15}`,backgroundColor:hm.GREYSCALE_100_60,color:hm.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:hm.GREYSCALE_0_10,border:`1px solid ${hm.GREYSCALE_0_30}`},"&:hover":{backgroundColor:hm.GREYSCALE_0_03,border:`1px solid ${hm.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:hm.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${hm.MISC_FOCUS_BORDER}`,border:`1px solid ${hm.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:hm.GREYSCALE_25,backgroundColor:hm.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:hm.GREYSCALE_0_10,border:`1px solid ${hm.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:mm,height:24,width:24,padding:7},sizeLarge:{fontSize:bm,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:gm,borderRadius:xm}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:hm.GREYSCALE_20},tooltip:{backgroundColor:hm.GREYSCALE_20,fontSize:mm,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...CR}:{}}))(t);const kR=e=>({mode:"light",primary:{ultraLight:hm.GREEN_ULTRA_LIGHT,light:hm.GREEN_PALE,main:hm.GREEN,dark:hm.GREEN_DARK,extraDark:hm.GREEN_EXTRA_DARK,contrastText:hm.WHITE},secondary:{ultraLight:hm.BLUE_ULTRA_LIGHT,light:hm.BLUE_PALE,main:hm.BLUE,dark:hm.BLUE_DARK,extraDark:hm.BLUE_EXTRA_DARK,contrastText:hm.WHITE},error:{ultraLight:hm.RED_ULTRA_LIGHT,light:hm.RED_PALE,main:hm.RED,dark:hm.RED_DARK,extraDark:hm.RED_EXTRA_DARK,contrastText:hm.WHITE},warning:{ultraLight:hm.ORANGE_ULTRA_LIGHT,light:hm.ORANGE_PALE,main:hm.ORANGE,dark:hm.ORANGE_DARK,extraDark:hm.ORANGE_EXTRA_DARK,contrastText:hm.WHITE},success:{ultraLight:hm.GREEN_ULTRA_LIGHT,light:hm.GREEN_PALE,main:hm.GREEN,dark:hm.GREEN_DARK,extraDark:hm.GREEN_EXTRA_DARK,contrastText:hm.WHITE},info:{ultraLight:hm.BLUE_ULTRA_LIGHT,light:hm.BLUE_PALE,main:hm.BLUE,dark:hm.BLUE_DARK,extraDark:hm.BLUE_EXTRA_DARK,contrastText:hm.WHITE},text:{primary:hm.TEXT_PRIMARY,secondary:hm.TEXT_SECONDARY,disabled:hm.GREYSCALE_0_30},action:{hover:hm.GREYSCALE_0_03,hoverOpacity:.03,selected:hm.GREYSCALE_0_05,selectedOpacity:.05,focus:hm.MISC_FOCUS_BORDER},amethyst:{ultraLight:hm.WHITE,main:hm.PURPLE,light:hm.PURPLE_PALE,dark:hm.PURPLE_DARK,extraDark:hm.GREYSCALE_0_0,contrastText:hm.WHITE},background:{paper:hm.WHITE,default:hm.GREYSCALE_95},divider:hm.GREYSCALE_0_15}),RR={...fm},MR=((e="light",t=!1)=>((e,t=!1)=>({components:ER(0,t),palette:kR(),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:gm,fontWeightLight:vm,fontWeightRegular:_m,fontWeightMedium:wm,fontWeightBold:Sm,htmlFontSize:gm,fontFamily:Cm.FONT_FAMILY,button:{fontWeight:wm,fontSize:gm,textTransform:"none"},body1:{fontSize:bm,lineHeight:"24px"},body2:{fontSize:gm,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ym,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:bm,fontWeight:wm,lineHeight:"16px"},h6:{fontSize:gm,fontWeight:wm,lineHeight:"16px"},caption:{color:hm.TEXT_SECONDARY},subtitle1:{fontSize:gm,color:hm.TEXT_SECONDARY},subtitle2:{fontSize:mm,color:hm.TEXT_SECONDARY}},shape:{borderRadius:xm}}))(0,t))().palette,AR={TEXT:MR.text.primary,DISABLED:MR.text.disabled,HOVER:MR.action.hover,WHITE:RR.GREYSCALE_100,BORDER_LIGHT:RR.GREYSCALE_90,BORDER_MEDIUM:RR.GREYSCALE_85,BORDER_HEAVY:RR.GREYSCALE_50,DARK_MODE_TEXT:RR.GREYSCALE_95,DARK_MODE_BORDER:RR.GREYSCALE_95,DARK_MODE_DISABLED:RR.GREYSCALE_70,DARK_MODE_BACKGROUND:RR.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:RR.GREYSCALE_95,SELECTED:MR.primary.main};function IR(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function LR(e){if("object"==typeof e&&IR(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const PR={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function DR(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(IR(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in PR}(e)){const t=PR[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function TR(e){let t,n,r;if(IR(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?LR(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function OR(e){let t,n,r=0;const o="string"==typeof e?DR(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function zR(e){let t,n,r=0;const o="string"==typeof e?DR(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,r=0;else{switch(n=l-u,t=0===n?0:n/c,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}function NR(e){if(IR(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?LR(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function qR(e,t){return IR(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:qR(DR(e))}function jR(e){return IR(e)?1===e.a?NR(e):qR(e):jR(DR(e))}const FR=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function BR(e){return.2126*FR(e.r)+.7152*FR(e.g)+.0722*FR(e.b)}function $R(...e){const t=DR(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=OR(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=DR(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=DR(...e);return t.invalid||BR(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=NR(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=qR(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=jR(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=TR(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?DR(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,r=0;else{switch(n=l-u,t=c>.5?n/(2-l-u):n/(l+u),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*c})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=OR(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=zR(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=zR(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>$R(o(18*e)),getDarkenedColor:(e=1)=>$R(o(18*-e))}}function WR(e,t){if(!e||!t)return;const n=BR(e),r=BR(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}var HR,GR,VR=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],YR=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function UR(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?YR:VR}var KR=function(){if(GR)return HR;GR=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return HR=function e(){var t,n,r,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},HR}();function XR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function JR(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ZR(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(KR);var QR=1/.7,eM="\\s*([+-]?\\d+)\\s*",tM="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nM="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rM=/^#([0-9a-f]{3,8})$/,oM=new RegExp(`^rgb\\(${eM},${eM},${eM}\\)$`),iM=new RegExp(`^rgb\\(${nM},${nM},${nM}\\)$`),aM=new RegExp(`^rgba\\(${eM},${eM},${eM},${tM}\\)$`),sM=new RegExp(`^rgba\\(${nM},${nM},${nM},${tM}\\)$`),lM=new RegExp(`^hsl\\(${tM},${nM},${nM}\\)$`),uM=new RegExp(`^hsla\\(${tM},${nM},${nM},${tM}\\)$`),cM={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 dM(){return this.rgb().formatHex()}function pM(){return this.rgb().formatRgb()}function fM(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?hM(t):3===n?new yM(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?mM(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?mM(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=oM.exec(e))?new yM(t[1],t[2],t[3],1):(t=iM.exec(e))?new yM(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=aM.exec(e))?mM(t[1],t[2],t[3],t[4]):(t=sM.exec(e))?mM(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lM.exec(e))?CM(t[1],t[2]/100,t[3]/100,1):(t=uM.exec(e))?CM(t[1],t[2]/100,t[3]/100,t[4]):cM.hasOwnProperty(e)?hM(cM[e]):"transparent"===e?new yM(NaN,NaN,NaN,0):null}function hM(e){return new yM(e>>16&255,e>>8&255,255&e,1)}function mM(e,t,n,r){return r<=0&&(e=t=n=NaN),new yM(e,t,n,r)}function gM(e){return e instanceof ZR||(e=fM(e)),e?new yM((e=e.rgb()).r,e.g,e.b,e.opacity):new yM}function bM(e,t,n,r){return 1===arguments.length?gM(e):new yM(e,t,n,null==r?1:r)}function yM(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xM(){return`#${SM(this.r)}${SM(this.g)}${SM(this.b)}`}function vM(){const e=_M(this.opacity);return`${1===e?"rgb(":"rgba("}${wM(this.r)}, ${wM(this.g)}, ${wM(this.b)}${1===e?")":`, ${e})`}`}function _M(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wM(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SM(e){return((e=wM(e))<16?"0":"")+e.toString(16)}function CM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kM(e,t,n,r)}function EM(e){if(e instanceof kM)return new kM(e.h,e.s,e.l,e.opacity);if(e instanceof ZR||(e=fM(e)),!e)return new kM;if(e instanceof kM)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new kM(a,s,l,e.opacity)}function kM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function RM(e){return(e=(e||0)%360)<0?e+360:e}function MM(e){return Math.max(0,Math.min(1,e||0))}function AM(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}XR(ZR,fM,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dM,formatHex:dM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return EM(this).formatHsl()},formatRgb:pM,toString:pM}),XR(yM,bM,JR(ZR,{brighter(e){return e=null==e?QR:Math.pow(QR,e),new yM(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new yM(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yM(wM(this.r),wM(this.g),wM(this.b),_M(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:xM,formatHex:xM,formatHex8:function(){return`#${SM(this.r)}${SM(this.g)}${SM(this.b)}${SM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:vM,toString:vM})),XR(kM,(function(e,t,n,r){return 1===arguments.length?EM(e):new kM(e,t,n,null==r?1:r)}),JR(ZR,{brighter(e){return e=null==e?QR:Math.pow(QR,e),new kM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new kM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yM(AM(e>=240?e-240:e+120,o,r),AM(e,o,r),AM(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new kM(RM(this.h),MM(this.s),MM(this.l),_M(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=_M(this.opacity);return`${1===e?"hsl(":"hsla("}${RM(this.h)}, ${100*MM(this.s)}%, ${100*MM(this.l)}%${1===e?")":`, ${e})`}`}}));const IM=Math.PI/180,LM=180/Math.PI,PM=4/29,DM=6/29,TM=3*DM*DM;function OM(e){if(e instanceof zM)return new zM(e.l,e.a,e.b,e.opacity);if(e instanceof BM)return $M(e);e instanceof yM||(e=gM(e));var t,n,r=FM(e.r),o=FM(e.g),i=FM(e.b),a=NM((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=NM((.4360747*r+.3850649*o+.1430804*i)/.96422),n=NM((.0139322*r+.0971045*o+.7141733*i)/.82521)),new zM(116*a-16,500*(t-a),200*(a-n),e.opacity)}function zM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function NM(e){return e>.008856451679035631?Math.pow(e,1/3):e/TM+PM}function qM(e){return e>DM?e*e*e:TM*(e-PM)}function jM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function FM(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function BM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $M(e){if(isNaN(e.h))return new zM(e.l,0,0,e.opacity);var t=e.h*IM;return new zM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}XR(zM,(function(e,t,n,r){return 1===arguments.length?OM(e):new zM(e,t,n,null==r?1:r)}),JR(ZR,{brighter(e){return new zM(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new zM(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new yM(jM(3.1338561*(t=.96422*qM(t))-1.6168667*(e=1*qM(e))-.4906146*(n=.82521*qM(n))),jM(-.9787684*t+1.9161415*e+.033454*n),jM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),XR(BM,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof BM)return new BM(e.h,e.c,e.l,e.opacity);if(e instanceof zM||(e=OM(e)),0===e.a&&0===e.b)return new BM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*LM;return new BM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new BM(e,t,n,null==r?1:r)}),JR(ZR,{brighter(e){return new BM(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new BM(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $M(this).rgb()}}));var WM=e=>()=>e;function HM(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):WM(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?HM:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):WM(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=bM(e)).r,(t=bM(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=HM(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var GM,VM="center",YM="bottom";function UM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function KM(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function XM(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ZM)):void 0===t&&(t=JM);for(var n,r,o,i,a,s=new tA(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new tA(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(eA)}function JM(e){return e.children}function ZM(e){return Array.isArray(e)?e[1]:null}function QM(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function eA(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function tA(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:VM,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:VM,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:VM,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:VM},{key:"DataRangeIncludingZero",alignment:YM},{key:"LimitedData",alignment:YM},{key:"NegativeOrZeroValues",alignment:YM}].reduce((function(e,t){return e[t.key]=t,e}),{}),tA.prototype=XM.prototype={constructor:tA,count:function(){return this.eachAfter(KM)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return XM(this).eachBefore(QM)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},GM=function(e){
113
113
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
114
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),x=b+("."===y||","===y?1:0),v=g>0?e.substring(x,p):"";if(n=(t="-"===(e=e.substring(f,x)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+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],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,x=0;x<p;x++)m+=d.charAt(x),!((x-b+1)%l)&&x<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+v}},GM({exports:{}});const nA=(e,t=AR.TEXT,n=AR.WHITE)=>{const r=$R(e),o=$R(t),i=$R(n);return r.isInvalid()?t:function(e,t,n){const r=WR(e,t),o=WR(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},rA=e=>{const t=e.getStyle("","","dataColors.selected")||AR.SELECTED,n=function(e,t){const n=$R("#FFFFFF"),r=$R(e),o=$R(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=WR(n,r),a=WR(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,AR.TEXT);return{background:t,color:n}},oA=(e,t)=>{const n=$R(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},iA=e=>!!e&&0===$R(e).a,aA=e=>{const t=$R(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},sA=e=>{e.stopPropagation(),e.preventDefault()},lA=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=r&&r,defaultValue(e,t,o){var i;const a=null!==(i=null==r?void 0:r(e,t,o))&&void 0!==i&&i,s=o.theme.current(),l=n(s,a);return{color:"transparent"===l?"none":l}}}),uA=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},cA=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",s=null!==(i=t.fontFamilies)&&void 0!==i?i:[],l=Array.from(new Set([e,a,...s])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...l.sort().map((e=>uA(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...UR(r).filter((e=>!l.includes(e))).map((e=>uA(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),dA=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],pA=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>uA(e,!1)))],l=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...dA.filter((e=>!a.includes(e))).map((e=>uA(e,!1)))];return[...s,...l.length>1?l:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),fA=({section:e,defaultFontStyle:t,translator:n,flags:r,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:cA({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:pA({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:lA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:lA(`${e}.background`,"properties.background",((t,n)=>{var r;const i=n?AR.WHITE:AR.TRANSPARENT;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:i}),a)}}}}),hA=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:lA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:lA(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),mA=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),gA="12px",bA="Source Sans Pro, sans-serif",yA="600",xA=15e3,vA=4/3;var _A,wA;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(_A||(_A={})),function(e){e.Solid="solid",e.None="none"}(wA||(wA={}));const SA={display:"flex",justifyContent:"center",alignItems:"center"},CA={borderStyle:"solid"},EA={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kA={lineHeight:vA,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},RA=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),MA=(e,t)=>e>0?`${e}px ${wA.Solid} ${t}`:wA.None,AA=(e,t,n,r,o)=>{const i=Number(!t||(null==o?void 0:o.right)),a=Number(!e||(null==o?void 0:o.bottom));return{borderRight:"rtl"!==r?MA(i,n):wA.None,borderBottom:MA(a,n),borderLeft:"rtl"===r?MA(i,n):wA.None,borderTop:wA.None}},IA=(e,t,n,r,o,i,a)=>{const s=AA(t,r,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=MA(2,o)),n||(s.borderLeft="rtl"!==i?MA(1,o):"none",s.borderRight="rtl"===i?MA(1,o):"none")),s},LA=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=MA(1,n)),t&&(r.borderRight=MA(1,n)),r},PA=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:mA("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?mA("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:lA("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:_A.DividerLight})),divider:lA("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:_A.DividerDark})),background:lA("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:_A.Transparent}))}}}}),DA=(e,t,n)=>{var r,o,i,a,s,l;switch(t){case"header":return null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||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[n];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.total)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||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[n];default:return}},TA=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:fA({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:DA}),dimensionValueSection:fA({section:"dimensionValues",translator:e,flags:t,getThemeValue:DA}),measureValueSection:fA({section:"measureValues",translator:e,flags:t,getThemeValue:DA}),measureLabelSection:hA({section:"measureLabels",getThemeValue:DA}),totalValuesSection:hA({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:DA}),nullValuesSection:hA({section:"nullValues",fallbackBackground:_A.NullValueBackground,getThemeValue:DA}),gridSection:PA(t)}}]}),OA=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{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}}},zA=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[TA(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:na.Auto,translation:"Common.Auto"},{value:na.Pixels,translation:"Object.Table.Column.Pixels"},{value:na.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:na.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:ta.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===na.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(ta.PixelsMin,Math.min(ta.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:ta.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===na.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(ta.PercentageMin,Math.min(ta.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...OA(t)}}),NA="auto",qA={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:NA,translation:"Object.Table.SortingInSearch",options:[{value:NA,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function jA(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Al(e),sorting:qA,addons:ul,settings:zA(t,n)}}}function FA(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:jA(e),importProperties:sl(e),exportProperties:ll,exploration:ca(e)}}const BA=()=>{let e;const t=new Promise((t=>{e=t}));return{promise:t,resolve:e}};function $A(e,t){return w((()=>e),t)}const WA={},HA=e=>{const t=w((()=>({current:WA})),[]);return t.current=t.current===WA?e:t.current,t},GA=()=>{const{viewState:e}=S(),t=HA(new Set),n=void 0!==e,{promise:r,resolve:o}=w((()=>BA()),[]),i=$A((e=>{n&&t.current.add(e)}),[t]),a=$A(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return C((async()=>{n&&await r}),[r,n]),w((()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:i})),[a,n,e,i])},VA="#grid",YA=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},UA=(e,t,n,r,o)=>{const i=YA(".qv-object .qv-inner-object",n),a=YA(".qv-panel-sheet",n),s=YA(VA,n),l=null!=s?s:a,u=(e=>{var t,n,r,o,i,a;const s=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),l=null==s||null===(n=s.bgColor)||void 0===n?void 0:n.colorExpression,u=null==s||null===(r=s.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==s||null===(o=s.bgColor)||void 0===o?void 0:o.useColorExpression)&&l)return aA(l);if("none"===u)return"transparent";if(void 0===u)return;const c=$R(u);return c.setAlpha(null!==(i=null==s||null===(a=s.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==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=iA(p),h=!iA(m=f?l:p)&&nA(m,AR.TEXT,AR.DARK_MODE_TEXT)===NR(AR.DARK_MODE_TEXT);var m;const g=((e,t,n,r=AR.WHITE)=>e&&!iA(e)?e:iA(t)?n&&!iA(n)?n:r:t)(u,p,l);return{color:p,headerColor:g,isDark:h}},KA=(e,t,n,r)=>{const o=R(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=E([]);return k((()=>{let n;return e&&(n=new MutationObserver((e=>{r(e)})),n.observe(e,t)),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}}),[e,t]),n})(t.closest(VA),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return w((()=>({...o,background:UA(e,o,t,n,r)})),[o.name(),t,n,r,e,i])};function XA(e,t){const n=w((()=>({isLoading:!0})),t),[r,o]=C((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,o]}const JA=3;function ZA(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}function QA({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:a=JA}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=i((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const i=UM(o.measureText.bind(o)),s=e=>+i(e).width.toFixed(2),l=UM((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=ZA(o,t,s)}while(null!==o&&r<a);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>i(e).width,estimateWidth:e=>i("N").width*e,estimateLineCount:l}}),[n,r,e,t,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var eI,tI=_;eI=tI.createRoot,tI.hydrateRoot;const nI="Source Sans Pro, sans-serif";function rI(e,t){const[r,o]=n(t),i=r.some(((e,n)=>e!==t[n]));i&&(o(t),e())}var oI={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 iI=({translator:e})=>(i((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oI).forEach((t=>{e.add(oI[t])}))}}(e)}),[e]),e);var aI="$$material";const sI=["values","unit","step"];function lI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Au(e,sI),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)=>Ll({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ll({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const uI={borderRadius:4};function cI(e,t){return t?px(e,t,{clone:!1}):e}const dI={xs:0,sm:600,md:900,lg:1200,xl:1536},pI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dI[e]}px)`};function fI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||pI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||pI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||dI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function hI(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function mI(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function gI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:mI(e,n)||r,t&&(o=t(o,r,e)),o}function bI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=mI(e.theme,r)||{};return fI(e,i,(e=>{let r=gI(a,o,e);return e===r&&"string"==typeof e&&(r=gI(a,o,`${t}${"default"===e?"":_x(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const yI={m:"margin",p:"padding"},xI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_I=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!vI[e])return[e];e=vI[e]}const[t,n]=e.split(""),r=yI[t],o=xI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),wI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function CI(e,t,n,r){var o;const i=null!=(o=mI(e,t,!1))?o:n;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 EI(e){return CI(e,"spacing",8)}function kI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function RI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=kI(t,n),e)),{})}(_I(n),r);return fI(e,e[n],o)}function MI(e,t){const n=EI(e.theme);return Object.keys(e).map((r=>RI(e,t,r,n))).reduce(cI,{})}function AI(e){return MI(e,wI)}function II(e){return MI(e,SI)}function LI(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?cI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function PI(e){return"number"!=typeof e?e:`${e}px solid`}function DI(e,t){return bI({prop:e,themeKey:"borders",transform:t})}AI.propTypes={},AI.filterProps=wI,II.propTypes={},II.filterProps=SI;const TI=DI("border",PI),OI=DI("borderTop",PI),zI=DI("borderRight",PI),NI=DI("borderBottom",PI),qI=DI("borderLeft",PI),jI=DI("borderColor"),FI=DI("borderTopColor"),BI=DI("borderRightColor"),$I=DI("borderBottomColor"),WI=DI("borderLeftColor"),HI=DI("outline",PI),GI=DI("outlineColor"),VI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=CI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:kI(t,e)});return fI(e,e.borderRadius,n)}return null};VI.propTypes={},VI.filterProps=["borderRadius"],LI(TI,OI,zI,NI,qI,jI,FI,BI,$I,WI,VI,HI,GI);const YI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=CI(e.theme,"spacing",8),n=e=>({gap:kI(t,e)});return fI(e,e.gap,n)}return null};YI.propTypes={},YI.filterProps=["gap"];const UI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=CI(e.theme,"spacing",8),n=e=>({columnGap:kI(t,e)});return fI(e,e.columnGap,n)}return null};UI.propTypes={},UI.filterProps=["columnGap"];const KI=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=CI(e.theme,"spacing",8),n=e=>({rowGap:kI(t,e)});return fI(e,e.rowGap,n)}return null};KI.propTypes={},KI.filterProps=["rowGap"];function XI(e,t){return"grey"===t?t:e}LI(YI,UI,KI,bI({prop:"gridColumn"}),bI({prop:"gridRow"}),bI({prop:"gridAutoFlow"}),bI({prop:"gridAutoColumns"}),bI({prop:"gridAutoRows"}),bI({prop:"gridTemplateColumns"}),bI({prop:"gridTemplateRows"}),bI({prop:"gridTemplateAreas"}),bI({prop:"gridArea"}));function JI(e){return e<=1&&0!==e?100*e+"%":e}LI(bI({prop:"color",themeKey:"palette",transform:XI}),bI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:XI}),bI({prop:"backgroundColor",themeKey:"palette",transform:XI}));const ZI=bI({prop:"width",transform:JI}),QI=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||dI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:JI(t)}};return fI(e,e.maxWidth,t)}return null};QI.filterProps=["maxWidth"];const eL=bI({prop:"minWidth",transform:JI}),tL=bI({prop:"height",transform:JI}),nL=bI({prop:"maxHeight",transform:JI}),rL=bI({prop:"minHeight",transform:JI});bI({prop:"size",cssProperty:"width",transform:JI}),bI({prop:"size",cssProperty:"height",transform:JI});LI(ZI,QI,eL,tL,nL,rL,bI({prop:"boxSizing"}));const oL={border:{themeKey:"borders",transform:PI},borderTop:{themeKey:"borders",transform:PI},borderRight:{themeKey:"borders",transform:PI},borderBottom:{themeKey:"borders",transform:PI},borderLeft:{themeKey:"borders",transform:PI},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:PI},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:VI},color:{themeKey:"palette",transform:XI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:XI},backgroundColor:{themeKey:"palette",transform:XI},p:{style:II},pt:{style:II},pr:{style:II},pb:{style:II},pl:{style:II},px:{style:II},py:{style:II},padding:{style:II},paddingTop:{style:II},paddingRight:{style:II},paddingBottom:{style:II},paddingLeft:{style:II},paddingX:{style:II},paddingY:{style:II},paddingInline:{style:II},paddingInlineStart:{style:II},paddingInlineEnd:{style:II},paddingBlock:{style:II},paddingBlockStart:{style:II},paddingBlockEnd:{style:II},m:{style:AI},mt:{style:AI},mr:{style:AI},mb:{style:AI},ml:{style:AI},mx:{style:AI},my:{style:AI},margin:{style:AI},marginTop:{style:AI},marginRight:{style:AI},marginBottom:{style:AI},marginLeft:{style:AI},marginX:{style:AI},marginY:{style:AI},marginInline:{style:AI},marginInlineStart:{style:AI},marginInlineEnd:{style:AI},marginBlock:{style:AI},marginBlockStart:{style:AI},marginBlockEnd:{style:AI},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:YI},rowGap:{style:KI},columnGap:{style:UI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:JI},maxWidth:{style:QI},minWidth:{transform:JI},height:{transform:JI},maxHeight:{transform:JI},minHeight:{transform:JI},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function iL(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=mI(n,s)||{};if(u)return u(o);return fI(o,t,(t=>{let n=gI(c,l,t);return t===n&&"string"==typeof t&&(n=gI(c,l,`${e}${"default"===t?"":_x(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:oL;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=cI(u,e(n,o,i,s));else{const e=fI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=cI(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=cI(u,e(n,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":hI(l,u)}:hI(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const aL=iL();function sL(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}aL.filterProps=["sx"];const lL=["breakpoints","palette","spacing","shape"];function uL(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Au(e,lL),s=lI(n),l=function(e=8){if(e.mui)return e;const t=EI({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=px({breakpoints:s,direction:"ltr",components:{},palette:Ll({mode:"light"},r),spacing:l,shape:Ll({},uI,i)},a);return u.applyStyles=sL,u=t.reduce(((e,t)=>px(e,t)),u),u.unstable_sxConfig=Ll({},oL,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return aL({sx:e,theme:this})},u}var cL=Object.freeze({__proto__:null,default:uL,private_createBreakpoints:lI,unstable_applyStyles:sL});function dL(t=null){const n=e.useContext(Yy);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const pL=uL();function fL(e=pL){return dL(e)}function hL(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mL({styles:e,themeId:t,defaultTheme:n={}}){const r=fL(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>hL("function"==typeof e?e(o):e))):hL(i)),se.jsx(ix,{styles:i})}const gL=["sx"];function bL(e){const{sx:t}=e,n=Au(e,gL),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:oL;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return cx(n)?Ll({},r,n):r}:Ll({},r,t),Ll({},o,{sx:i})}var yL=Object.freeze({__proto__:null,default:aL,extendSxProp:bL,unstable_createStyleFunctionSx:iL,unstable_defaultSxConfig:oL});const xL=["className","component"];function vL(e){if(e.type)return e;if("#"===e.charAt(0))return vL(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(bg(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(bg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function _L(e,t){return e=vL(e),t=function(e,t=0,n=1){return i_(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const wL=["value"],SL=e.createContext();function CL(e){let{value:t}=e,n=Au(e,wL);return se.jsx(SL.Provider,Ll({value:null==t||t},n))}const EL=e.createContext(void 0);function kL({value:e,children:t}){return se.jsx(EL.Provider,{value:e,children:t})}function RL({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?r_(o.defaultProps,r):o.styleOverrides||o.variants?r:r_(o,r)}({props:t,name:n,theme:{components:e.useContext(EL)}})}const ML={};function AL(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Ll({},n,{[t]:i}):i;return o?()=>a:a}return Ll({},n,t?{[t]:r}:r)}),[t,n,r,o])}function IL(e){const{children:t,theme:n,themeId:r}=e,o=dL(ML),i=$_()||ML,a=AL(r,o,n),s=AL(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=dL(),n=g_()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",o_((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?se.jsx(mL,{styles:o}):null}(a);return se.jsx(H_,{theme:s,children:se.jsx(Yy.Provider,{value:a,children:se.jsx(CL,{value:l,children:se.jsxs(kL,{value:null==a?void 0:a.components,children:[u,t]})})})})}function LL(e,t){return Ll({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var PL={},DL=J_;Object.defineProperty(PL,"__esModule",{value:!0});var TL=PL.alpha=YL;PL.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=$L(e),a=$L(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return HL({type:"rgb",values:s})},PL.colorChannel=void 0;var OL=PL.darken=UL;PL.decomposeColor=$L,PL.emphasize=XL;var zL=PL.getContrastRatio=function(e,t){const n=VL(e),r=VL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};PL.getLuminance=VL,PL.hexToRgb=BL,PL.hslToRgb=GL;var NL=PL.lighten=KL;PL.private_safeAlpha=function(e,t,n){try{return YL(e,t)}catch(t){return e}},PL.private_safeColorChannel=void 0,PL.private_safeDarken=function(e,t,n){try{return UL(e,t)}catch(t){return e}},PL.private_safeEmphasize=function(e,t,n){try{return XL(e,t)}catch(t){return e}},PL.private_safeLighten=function(e,t,n){try{return KL(e,t)}catch(t){return e}},PL.recomposeColor=HL,PL.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=$L(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 qL=DL(Z_),jL=DL(Q_);function FL(e,t=0,n=1){return(0,jL.default)(e,t,n)}function BL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function $L(e){if(e.type)return e;if("#"===e.charAt(0))return $L(BL(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,qL.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,qL.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const WL=e=>{const t=$L(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};PL.colorChannel=WL;function HL(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function GL(e){e=$L(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),HL({type:s,values:l})}function VL(e){let t="hsl"===(e=$L(e)).type||"hsla"===e.type?$L(GL(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 YL(e,t){return e=$L(e),t=FL(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,HL(e)}function UL(e,t){if(e=$L(e),t=FL(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 n=0;n<3;n+=1)e.values[n]*=1-t;return HL(e)}function KL(e,t){if(e=$L(e),t=FL(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return HL(e)}function XL(e,t=.15){return VL(e)>.5?UL(e,t):KL(e,t)}PL.private_safeColorChannel=(e,t)=>{try{return WL(e)}catch(t){return e}};const JL={black:"#000",white:"#fff"},ZL={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"},QL="#f3e5f5",eP="#ce93d8",tP="#ba68c8",nP="#ab47bc",rP="#9c27b0",oP="#7b1fa2",iP="#e57373",aP="#ef5350",sP="#f44336",lP="#d32f2f",uP="#c62828",cP="#ffb74d",dP="#ffa726",pP="#ff9800",fP="#f57c00",hP="#e65100",mP="#e3f2fd",gP="#90caf9",bP="#42a5f5",yP="#1976d2",xP="#1565c0",vP="#4fc3f7",_P="#29b6f6",wP="#03a9f4",SP="#0288d1",CP="#01579b",EP="#81c784",kP="#66bb6a",RP="#4caf50",MP="#388e3c",AP="#2e7d32",IP="#1b5e20",LP=["mode","contrastThreshold","tonalOffset"],PP={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:JL.white,default:JL.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}},DP={text:{primary:JL.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:JL.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 TP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=NL(e.main,o):"dark"===t&&(e.dark=OL(e.main,i)))}function OP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Au(e,LP),i=e.primary||function(e="light"){return"dark"===e?{main:gP,light:mP,dark:bP}:{main:yP,light:bP,dark:xP}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:eP,light:QL,dark:nP}:{main:rP,light:tP,dark:oP}}(t),s=e.error||function(e="light"){return"dark"===e?{main:sP,light:iP,dark:lP}:{main:lP,light:aP,dark:uP}}(t),l=e.info||function(e="light"){return"dark"===e?{main:_P,light:vP,dark:SP}:{main:SP,light:wP,dark:CP}}(t),u=e.success||function(e="light"){return"dark"===e?{main:kP,light:EP,dark:MP}:{main:AP,light:RP,dark:IP}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:dP,light:cP,dark:fP}:{main:"#ed6c02",light:pP,dark:hP}}(t);function d(e){return zL(e,DP.text.primary)>=n?DP.text.primary:PP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ll({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(bg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(bg(12,t?` (${t})`:"",JSON.stringify(e.main)));return TP(e,"light",o,r),TP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:DP,light:PP};return px(Ll({common:Ll({},JL),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:ZL,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const zP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function NP(e){return Math.round(1e5*e)/1e5}const qP={textTransform:"uppercase"},jP='"Roboto", "Helvetica", "Arial", sans-serif';function FP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=jP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Au(n,zP),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>Ll({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===jP?{letterSpacing:`${NP(o/t)}em`}:{},i,c),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,qP),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return px(Ll({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function BP(...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 $P=["none",BP(0,2,1,-1,0,1,1,0,0,1,3,0),BP(0,3,1,-2,0,2,2,0,0,1,5,0),BP(0,3,3,-2,0,3,4,0,0,1,8,0),BP(0,2,4,-1,0,4,5,0,0,1,10,0),BP(0,3,5,-1,0,5,8,0,0,1,14,0),BP(0,3,5,-1,0,6,10,0,0,1,18,0),BP(0,4,5,-2,0,7,10,1,0,2,16,1),BP(0,5,5,-3,0,8,10,1,0,3,14,2),BP(0,5,6,-3,0,9,12,1,0,3,16,2),BP(0,6,6,-3,0,10,14,1,0,4,18,3),BP(0,6,7,-4,0,11,15,1,0,4,20,3),BP(0,7,8,-4,0,12,17,2,0,5,22,4),BP(0,7,8,-4,0,13,19,2,0,5,24,4),BP(0,7,9,-4,0,14,21,2,0,5,26,4),BP(0,8,9,-5,0,15,22,2,0,6,28,5),BP(0,8,10,-5,0,16,24,2,0,6,30,5),BP(0,8,11,-5,0,17,26,2,0,6,32,5),BP(0,9,11,-5,0,18,28,2,0,7,34,6),BP(0,9,12,-6,0,19,29,2,0,7,36,6),BP(0,10,13,-6,0,20,31,3,0,8,38,7),BP(0,10,13,-6,0,21,33,3,0,8,40,7),BP(0,10,14,-6,0,22,35,3,0,8,42,7),BP(0,11,14,-7,0,23,36,3,0,9,44,8),BP(0,11,15,-7,0,24,38,3,0,9,46,8)],WP=["duration","easing","delay"],HP={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)"},GP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function VP(e){return`${Math.round(e)}ms`}function YP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function UP(e){const t=Ll({},HP,e.easing),n=Ll({},GP,e.duration);return Ll({getAutoHeightDuration:YP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Au(r,WP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:VP(o)} ${i} ${"string"==typeof a?a:VP(a)}`)).join(",")}},e,{easing:t,duration:n})}const KP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},XP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function JP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Au(e,XP);if(e.vars&&void 0===e.generateCssVars)throw new Error(bg(18));const s=OP(r),l=uL(e);let u=px(l,{mixins:LL(l.breakpoints,n),palette:s,shadows:$P.slice(),typography:FP(s,i),transitions:UP(o),zIndex:Ll({},KP)});return u=px(u,a),u=t.reduce(((e,t)=>px(e,t)),u),u.unstable_sxConfig=Ll({},oL,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return aL({sx:e,theme:this})},u}const ZP=JP();function QP(){const e=fL(ZP);return e[aI]||e}var eD={},tD=X(cL),nD=X(yL),rD=J_;Object.defineProperty(eD,"__esModule",{value:!0});var oD=eD.default=function(e={}){const{themeId:t,defaultTheme:n=bD,rootShouldForwardProp:r=mD,slotShouldForwardProp:o=mD}=e,i=e=>(0,cD.default)((0,iD.default)({},e,{theme:xD((0,iD.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,sD.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vD(yD(l))}=a,p=(0,aD.default)(a,fD),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=mD;"Root"===l||"root"===l?g=r:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,sD.default)(e,(0,iD.default)({shouldForwardProp:g,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,lD.isPlainObject)(e)?r=>{const o=xD({theme:r.theme,defaultTheme:n,themeId:t});return _D(e,(0,iD.default)({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,x=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=xD((0,iD.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=_D(n,(0,iD.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var r;const o=xD((0,iD.default)({},e,{defaultTheme:n,themeId:t}));return _D({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,iD.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(x.withConfig=b.withConfig),x}};eD.shouldForwardProp=mD,eD.systemDefaultTheme=void 0;var iD=rD(Hw()),aD=rD(Yw()),sD=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=hD(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Uw),lD=Kw;rD(Xw),rD(Jw);var uD=rD(tD),cD=rD(nD);const dD=["ownerState"],pD=["variants"],fD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hD(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(hD=function(e){return e?n:t})(e)}function mD(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function gD(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const bD=eD.systemDefaultTheme=(0,uD.default)(),yD=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function xD({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vD(e){return e?(t,n)=>n[e]:null}function _D(e,t,n){let{ownerState:r}=t,o=(0,aD.default)(t,dD);const i="function"==typeof e?e((0,iD.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>_D(e,(0,iD.default)({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,aD.default)(i,pD);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,iD.default)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,iD.default)({ownerState:r},o,r)):e.style;t.push(n?gD((0,sD.internal_serializeStyles)(i),n):i)}})),t}return n?gD((0,sD.internal_serializeStyles)(i),n):i}const wD=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,SD=oD({themeId:aI,defaultTheme:ZP,rootShouldForwardProp:wD}),CD=["theme"];function ED(e){let{theme:t}=e,n=Au(e,CD);const r=t[aI];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Ll({},r,{vars:null}):t&&!t.vars&&(o=Ll({},t,{vars:null}))),se.jsx(IL,Ll({},n,{themeId:r?aI:void 0,theme:o}))}const kD=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},RD={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},MD={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},AD=vS("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-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":{...RD},"&::-moz-range-track":{...RD},"&::-ms-track":{...RD},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...MD},"&::-moz-range-thumb":{...MD},"&::-ms-thumb":{...MD},"&: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"}}))),ID=({columnWidth:e,keyValue:n,isLastColumn:r,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:s,handleBlur:l,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:f="ltr"})=>{const h=iI({translator:d.translator}),m=p({initWidth:e,columnWidth:e,initX:0}),g=r?0:1,b=o&&!c,y=()=>b?m.current.columnWidth-g:"100%",x={left:"rtl"!==f?y():void 0,right:"rtl"===f?y():void 0},v=t=>{m.current={initWidth:e,columnWidth:e,initX:null!=t?t:m.current.initX}};rI((()=>{b&&v()}),[e]);const _=e=>{const t=Math.max(e,ta.PixelsMin);m.current.columnWidth=t,a(t)},w=()=>{if(m.current.columnWidth!==m.current.initWidth){const e={type:na.Pixels,pixels:m.current.columnWidth};s(e)}else null==u||u(!1)},S=e=>{const t="rtl"===f?m.current.initWidth+m.current.initX-e.clientX:m.current.initWidth+e.clientX-m.current.initX;_(t)},C=e=>{sA(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",C),w()},E=e=>{const t="rtl"===f?m.current.initWidth+-m.current.initX-e.touches[0].clientX:m.current.initWidth+e.touches[0].clientX-m.current.initX;_(t)},k=e=>{sA(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",k),w()},R=!o&&l?e=>{if(e.key===Qi.Left||e.key===Qi.Right){sA(e);const t=5,n=e.key===Qi.Left?t:-t,r="rtl"===f?n:-n;_(m.current.columnWidth+r)}else e.key===Qi.Space||e.key===Qi.Enter?(sA(e),l(e),w()):e.key===Qi.Esc&&(sA(e),l(e),_(m.current.initWidth))}:void 0,M=h.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return t.createElement(AD,{style:x,key:n,hoverColor:i,isLastColumn:r,className:ea,"data-testid":ea,onMouseDown:e=>{sA(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",C),null==u||u(!0),v(e.clientX)},onDoubleClick:()=>{s({type:na.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(sA(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",k),null==u||u(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:l,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":M,"aria-valuemin":ta.PixelsMin,"aria-valuemax":ta.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})},LD=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),PD=vS(nE,{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"}))),DD=vS(LD,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),TD=vS(Nk)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),OD=vS(TE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),zD=vS($k)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ND=vS($k,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:n?"rgba(0, 0, 0, 0.05)":"transparent"}))),qD=vS("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),jD=vS("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),FD=vS(yC)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),BD=vS(ck,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),$D=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),WD=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?WD(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},HD=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?HD(t):t},GD=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===Qi.Down||n===Qi.Up){const t=e=>n===Qi.Down?WD(e):HD(e);e.preventDefault(),e.stopPropagation();let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},VD=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(n)}}:{}})))})))));let YD={};const UD=({autoFocus:e,id:r,onClick:o,itemTitle:i,icon:a,enabled:s,subMenus:l,isSubMenu:u,isActive:c,direction:d,isPagination:h})=>{const[m,g]=n(!1),b=p(null),y=f((e=>{e.stopPropagation(),g(!1)}),[g]);return t.createElement(t.Fragment,null,t.createElement(ND,{ref:l?b:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(o&&(await o(e),YD={}),null!=l&&l.length&&(g(!0),YD[i]=g))},disabled:!s,autoFocus:e,isSubMenu:!!u,isActive:!!c,onKeyDown:GD},c?t.createElement(qD,{direction:d,isPagination:h}):null,t.createElement(jD,null,t.createElement(BD,{direction:d,isPagination:h},t.createElement(a,null)),t.createElement(FD,{variant:"body2"},i)),null!=l&&l.length?t.createElement($D,null):null),null!=l&&l.length?t.createElement(JD,{isSubMenu:!0,open:m,anchorEl:b.current,onClose:y,menuGroups:VD(l,YD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:d,isPagination:h}):null)},KD=({menuGroup:e,isSubMenu:n,direction:r,isPagination:o})=>e.map((e=>[[e.groupHeading&&t.createElement(zD,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>t.createElement(UD,me({key:e.id},e,{isSubMenu:n,direction:r,isPagination:o}))))].filter(Boolean)])),XD={appear:0,enter:0,exit:0},JD=({anchorEl:e,open:n,onClose:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:s,direction:l,isPagination:u})=>o.length?t.createElement(TD,me({className:"nebula-table-utils-head-menu",open:n,anchorEl:e,onClose:r,transitionDuration:XD,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:l}),(({itemGroups:e,isSubMenu:n,direction:r,isPagination:o})=>e.map(((i,a)=>[KD({menuGroup:i,isSubMenu:n,direction:r,isPagination:o}),a<e.length-1?t.createElement(OD,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:s,direction:l,isPagination:u})):null,ZD=(e,t)=>e.some((e=>t[e]>0)),QD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},eT=({open:e,qStateName:t="$",headerData:o,app:i})=>{const[a,s]=n(null),[l,u]=n(QD);return rI((()=>{e||(u(QD),s(null))}),[e]),r((()=>{if(null==i||!i.createSessionObject||!o.isDim||!e)return()=>{};let n,r=!1;const a=()=>{n&&i.destroySessionObject(n)};return(async()=>{try{var e,l,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,o),p=await i.createSessionObject(d),f=await p.getLayout(),{qStateCounts:h}=null!==(e=null===(l=f.qListObject)||void 0===l?void 0:l.qDimensionInfo)&&void 0!==e?e:{};n=null===(c=f.qInfo)||void 0===c?void 0:c.qId,r?a():(s(p),h&&u((e=>({canSelectAll:ZD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:ZD(["qSelected"],e),canSelectPossible:ZD(["qOption"],e),canSelectAlternative:ZD(["qAlternative"],e),canSelectExcluded:ZD(["qAlternative","qExcluded"],e)}))(h)))}catch(e){console.error(e)}})(),()=>{r=!0,a()}}),[e,i,o,t]),{fieldInstance:a,selectionActionsEnabledStatus:l}},tT=l(((e,t)=>se.jsx("svg",{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:se.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"})}))),nT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),rT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),oT=l(((e,t)=>se.jsx("svg",{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:se.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"})}))),iT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),aT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),sT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),lT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),uT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),cT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),dT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),pT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),fT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})})));let hT=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const mT="/qListObjectDef",gT=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[hT.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:tT,enabled:a,isActive:!!n&&"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")),r(!1)},icon:oT,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos].label,enabled:!0,icon:sT,subMenus:[[{items:e.groupDimensionLabels.map((({label:t,enabled:n},o)=>({id:o+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(o)},enabled:n,icon:ii,isActive:e.groupDimensionPos===o})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];n[hT.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:lT,enabled:!0}]}]),n[hT.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:fT,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectAll(mT))},icon:uT,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectPossible(mT))},icon:pT,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectAlternative(mT))},icon:cT,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectExcluded(mT))},icon:dT,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clearSelections(mT))},icon:nT,enabled:l.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:aT,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:iT,enabled:!0}]}]),e.length>0&&f.push(...e)}return n[hT.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:rT,enabled:!0}]}]),f},bT=({open:e,setOpen:n,anchorRef:r,headerData:o,translator:i,interactions:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:b})=>{var y;const x=iI({translator:i}),{qLibraryId:v,fieldId:_,headTextAlign:w}=o,S=null==d?void 0:d.app,{fieldInstance:C,selectionActionsEnabledStatus:E}=eT({open:e,headerData:o,app:S,qStateName:null==d?void 0:d.qStateName});let k=null;if(m&&"setActiveField"in m&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;k=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const R=f((()=>{const e=v?{qLibraryId:v,type:"dimension"}:_;if(null!=c&&c.embed){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName,direction:g})}}),[v,_,c,null==d?void 0:d.qStateName,g]),M=f((e=>{e.stopPropagation(),n(!1)}),[n]);return a.active?t.createElement(PD,{rightAligned:"right"===w,shouldShowMenuIcon:l,className:"nebula-table-utils-head-menu-wrapper"},l?t.createElement(DD,{height:Xi,className:Ji,"data-testid":Ji,isInteractionsActive:null!==(y=a.active)&&void 0!==y&&y},t.createElement(LD,null)):null,t.createElement(JD,{open:e,anchorEl:r.current,onClose:M,menuGroups:gT({headerData:o,translator:x,menuAvailabilityFlags:s,setOpen:n,...u,embedListbox:R,interactions:a,fieldInstance:C,selectionActionsEnabledStatus:E,anchorRef:r,focusColumnAdjuster:null==p?void 0:p.focusColumnAdjuster,setActiveFieldCallback:k,expandOrCollapseArgs:h}),direction:g,isPagination:b})):null},yT=e=>e.isDark?{background:e.color,borderColor:AR.DARK_MODE_BORDER,color:AR.DARK_MODE_TEXT,disabledColor:AR.DARK_MODE_DISABLED,iconColor:AR.DARK_MODE_TEXT}:{background:e.color,borderColor:AR.BORDER_MEDIUM,color:AR.TEXT,disabledColor:AR.DISABLED},xT=vS(nE,{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}`}))),vT=vS(wR,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),_T=vS(pE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),wT=vS(yC)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ST=({children:e,footerContainer:n,interactions:r,theme:o,paginationNeeded:a=!0})=>{const s=i((()=>yT(o.background)),[o]);if(!r.active)return null;const l=a?t.createElement(xT,{footerStyle:s},e):null;return n?_.createPortal(e,n):l},CT=d({}),ET=()=>c(CT),kT=({children:e,direction:n,pageInfo:r,handleChangeRowsPerPage:o,footerContainer:a,isSelectionMode:s,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:h,interactions:m,rect:g,layout:b})=>{const y=(e=>!e.enabled||e.active)(p)?0:-1,x=i((()=>yT(h.background)),[h]),v=a?a.getBoundingClientRect().width:g.width,_=iI({translator:f}),w=i((()=>({direction:n,pageInfo:r,handleChangeRowsPerPage:o,footerContainer:a,isSelectionMode:s,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:_,theme:h,interactions:m,rect:g,layout:b,footerStyle:x,tabIndex:y,width:v})),[n,r,o,a,s,l,u,c,d,p,_,h,m,g,b,x,y,v]);return t.createElement(CT.Provider,{value:w},e)};let RT=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),MT=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}({});const AT=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),IT=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),LT=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),PT={FirstPage:IT,PreviousPage:AT,NextPage:$D,LastPage:LT,FirstPageRTL:LT,PreviousPageRTL:$D,NextPageRTL:AT,LastPageRTL:IT},DT=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=ET(),u=n.concat("rtl"===r?"RTL":""),c=PT[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},TT=()=>{const{pageInfo:e,width:n}=ET(),r=0===e.page,{IconComponent:o,styledProps:i}=DT({type:RT.FirstPage,disabledCondition:r,pageNumber:0});return n<=MT.FirstPage?null:t.createElement(_T,i,t.createElement(o,{height:Xi}))},OT=(e,t,n=!1)=>{n&&e.key===Qi.Tab&&!e.shiftKey&&(sA(e),((e,t,n)=>{var r,o,i,a;const s=null!==(r=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!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},zT=()=>{const{pageInfo:e,keyboard:n,totalPages:r,isSelectionMode:o,width:i}=ET(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=DT({type:RT.LastPage,disabledCondition:a,pageNumber:r-1}),u=n.enabled?e=>{OT(e,n,o)}:void 0;return i<=MT.LastPage?null:t.createElement(_T,me({},l,{onKeyDown:u}),t.createElement(s,{height:Xi}))},NT=()=>{const{pageInfo:e,keyboard:n,totalPages:r,isSelectionMode:o,width:i}=ET(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=DT({type:RT.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>MT.FirstPage&&i>MT.LastPage)&&n.enabled?e=>{OT(e,n,o)}:void 0;return t.createElement(_T,me({},l,{onKeyDown:u}),t.createElement(s,{height:Xi}))},qT=()=>{const{pageInfo:e}=ET(),n=0===e.page,{IconComponent:r,styledProps:o}=DT({type:RT.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return t.createElement(_T,o,t.createElement(r,{height:Xi}))},jT=()=>{const{translator:e,width:n,pageInfo:r,totalRowCount:o}=ET(),{page:i,rowsPerPage:a}=r;if(n<=MT.DisplayedRowsLabel)return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return t.createElement(wT,{variant:"caption",dir:"ltr"},s)},FT=({name:e,value:n,options:r,handleChange:o})=>{const{layout:i,footerStyle:a,translator:s,tabIndex:l}=ET(),u=i.qInfo.qId,c=s.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:l,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return t.createElement(t.Fragment,null,t.createElement(wT,{variant:"caption",id:p},c,":"),t.createElement(vT,{footerStyle:a,size:"small",native:!0,value:n,onChange:o,inputProps:f},r))},BT=()=>{var e;const{pageInfo:n,isSelectionMode:r,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=ET();if(!(!(null===(e=n.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&i>MT.RowsPerPage&&o<=100)||void 0===n.rowsPerPageOptions)return null;const s=t.createElement(t.Fragment,null,n.rowsPerPageOptions.map((e=>t.createElement("option",{key:e,value:e},e))));return t.createElement(FT,{name:"RowsPerPage",value:n.rowsPerPage,options:s,handleChange:e=>{null==a||a(+e.target.value)}})},$T=1e3,WT="…",HT=({totalPages:e,page:n})=>{const r=Math.min(e,$T),o=r<e&&n>500,i=o?Math.min(500+n,e):r,a=o?Math.max(0,i-$T):0,s=Array.from(Array(r).keys()).map((e=>{const n=e+a;return t.createElement("option",{key:n,value:n},n+1)}));return a>0&&s.unshift(t.createElement("option",{key:"startMoreOptions",value:WT,disabled:!0},WT)),i<e-1&&s.push(t.createElement("option",{key:"endMoreOptions",value:WT,disabled:!0},WT)),t.createElement(t.Fragment,null,s)},GT=()=>{const{pageInfo:e,width:n,totalPages:r,handleChangePage:o}=ET(),{page:i}=e;if(n<=MT.SelectPage)return null;const a=t.createElement(HT,{totalPages:r,page:i});return t.createElement(FT,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var VT=y((e=>t.createElement(kT,e,t.createElement(BT,null),t.createElement(GT,null),t.createElement(jT,null),t.createElement(TT,null),t.createElement(qT,null),t.createElement(NT,null),t.createElement(zT,null))));const YT=e=>t.createElement(ST,e,t.createElement(VT,e)),UT=d({}),KT=()=>c(UT),XT=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o,children:a})=>{const s=i((()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o})),[e,t,n,r,o]);return se.jsx(UT.Provider,{value:s,children:a})},JT=d({}),ZT=()=>c(JT),QT=({app:e,model:t,theme:n,embed:r,keyboard:o,translator:a,interactions:s,env:l,children:u})=>{const c=i((()=>({model:t,app:e,interactions:s,embed:r,theme:n,keyboard:o,env:l,translator:a})),[e,s,t,r,n,o,l,a]);return se.jsx(JT.Provider,{value:c,children:u})},eO=d({}),tO=()=>c(eO),nO=({children:e,...t})=>se.jsx(eO.Provider,{value:t,children:e}),rO=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:n}=ZT(),{layoutService:r}=tO(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:bA;return r.hasData?r.hasLimitedData?{text:n.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:n.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:se.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:o,width:"100%",height:i},children:se.jsx("span",{style:{...kA,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},oO="/qHyperCubeDef",iO=-1,aO="PSEUDO-DIM",sO=[];for(let e=0;e<256;++e)sO.push((e+256).toString(16).slice(1));let lO;const uO=new Uint8Array(16);var cO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function dO(e,t,n){var r,o,i,a;if(cO.randomUUID&&!e)return cO.randomUUID();const s=null!==(r=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==r?r:function(){if(!lO){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");lO=crypto.getRandomValues.bind(crypto)}return lO(uO)}();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(e,t=0){return(sO[e[t+0]]+sO[e[t+1]]+sO[e[t+2]]+sO[e[t+3]]+"-"+sO[e[t+4]]+sO[e[t+5]]+"-"+sO[e[t+6]]+sO[e[t+7]]+"-"+sO[e[t+8]]+sO[e[t+9]]+"-"+sO[e[t+10]]+sO[e[t+11]]+sO[e[t+12]]+sO[e[t+13]]+sO[e[t+14]]+sO[e[t+15]]).toLowerCase()}(s)}const pO=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:dO()},fO=e=>e===iO?aO:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:pO()})(e),hO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===iO?n.columnWidthLocation=bl.Measures:n.isLeftDimension?n.columnWidthLocation=bl.Dimension:t.at(-1)===iO?n.columnWidthLocation=bl.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=bl.Pivot))},mO=e=>"string"==typeof e?e.replace(/^=+/,"").trim():e,gO=(e,t,n,r,o)=>{var i;const a=fO(n),s=e.getDimensionInfoIndex(n),l=e.isLeftDimension(s);return n===iO?{id:a,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:s,canBeResized:!1,isLeftDimension:l,isLastDimension:r,columnWidthLocation:bl.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:a,colIdx:0,label:n.qFallbackTitle,qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:null!==(i=n.qLocked)&&void 0!==i&&i,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===ia.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles.map(((e,t)=>({label:e,enabled:!o.has(mO(n.qGroupFieldDefs[t]))}))),headTextAlign:"left",dimensionInfoIndex:s,canBeResized:!1,isLeftDimension:l,isLastDimension:r,columnWidthLocation:bl.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},bO=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let o=r;var i;n.length>0&&(o=(i=r).at(-1)===iO?i.slice(0,-1):i);const a=o.length+(n.length?1:0),s=Math.max(1,n.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s),u=(e=>{const t=new Set;return e.forEach((e=>{e!==iO&&t.add(mO(e.qGroupFieldDefs[e.qGroupPos]))})),t})([...n,...o]);return n.forEach(((n,r,o)=>{const i=r===o.length-1;l[a-1][r]=gO(e,t,n,i,u)})),o.forEach(((n,r,o)=>{const i=r===o.length-1;l[r][s-1]=gO(e,t,n,i,u)})),l},yO=(e,t,n,r)=>{var o,i;const a=((e,t,n,r)=>{let o;var i;return o=0===n.length||n.includes(iO)?bO({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(bO({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,n)=>{Array.isArray(t)?t.forEach(((t,n)=>{hO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})})):hO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),o})(e,t,n,r);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function xO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vO(e,t,n){return t=CO(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,kO()?Reflect.construct(t,n||[],CO(e).constructor):t.apply(e,n))}function _O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AO(r.key),r)}}function SO(e,t,n){return t&&wO(e.prototype,t),n&&wO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CO(e){return CO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CO(e)}function EO(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&&RO(e,t)}function kO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kO=function(){return!!e})()}function RO(e,t){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RO(e,t)}function MO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xO(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 AO(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function IO(e){return IO="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},IO(e)}var LO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:PO(e),value:PO(t),useEqualSign:n}}(n,o,i))}})),t}};function PO(e){try{return decodeURIComponent(e)}catch(t){return e}}function DO(e){if(!(this instanceof DO))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 LO.fromSearchString(t.search)}}})}function TO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}DO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},DO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=TO((t=e[r]).key),t.value?n+="=".concat(TO(t.value)):n+=t.useEqualSign?"=":"";return n};var OO,zO=function(){return SO((function e(t){_O(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}}])}(),NO=function(){return SO((function e(){_O(this,e)}),[{key:"decode",value:function(e){for(var t,n="",r=new zO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),qO=function(e){return e>=0&&e<=1114111},jO=function(e){return e.match(/[\s]/)},FO=function(){function e(){return _O(this,e),vO(this,e,arguments)}return EO(e,NO),SO(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!jO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return qO(a)?String.fromCharCode(a):"�"}}])}(),BO=function(){function e(t,n){_O(this,e),this._key=t,this._value=n}return SO(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}])}(),$O=function(){function e(){_O(this,e)}return SO(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return BO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return BO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||BO.newInstanceIfNeeded(e,t,this._value)}}])}(),WO=function(){return SO((function e(){_O(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 $O);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),HO=function(){var e,t,n,r=[],o=[],i=new WO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),GO=function(){function e(){return _O(this,e),vO(this,e,arguments)}return EO(e,NO),SO(e,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,HO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=HO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&qO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&qO(r)?String.fromCharCode(r):null}}])}(),VO=function(){function e(){return _O(this,e),vO(this,e,arguments)}return EO(e,NO),SO(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),qO(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),YO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(OO=document.createElement("div"));var UO=Array.prototype.indexOf,KO=[",",".","_"," "],XO=[",",".","-","_"," "],JO={width:["%"],height:["%"]},ZO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},QO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":ZO.image,"background-color":ZO.color,"border-color":ZO.color,"border-image":ZO.image,color:ZO.color,icon:ZO.image,"list-style-image":ZO.image,"outline-color":ZO.color},ez={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function tz(e,t,n){var r;if(t){if(UO)return UO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function nz(e){if(null==e)return"";var t,n=document.createTextNode(e);return OO.appendChild(n),t=OO.innerHTML,OO.removeChild(n),t}function rz(e,t,n){var r,o,i,a,s,l,u,c,d;for(e=iz(e).toLowerCase(),t=iz(t),i=0;i<ez.attr_name.length;i++)if(e.match(ez.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ez.attr_val.length;i++)if(t.toLowerCase().match(ez.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=JO[e])||(r=XO),o="",!n){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&tz(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function oz(e,t,n){var r,o,i,a,s,l,u,c,d,p;if(e=iz(e).toLowerCase(),t=iz(t),tz(e,ez.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ez.css_val.length;r++)if(t.toLowerCase().indexOf(ez.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=QO[e])||(o=ZO.default),i="",!n){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&tz(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function iz(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var s=[new GO,new VO,new FO];!a;){r=n;for(var l=0;l<s.length;l++)(i=s[l].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var az=[],sz=0;sz<255;sz++)az[sz]=sz>=48&&sz<=57||sz>=65&&sz<=90||sz>=97&&sz<=122?null:sz.toString(16);var lz=function(e){return nz(e.unsafe)},uz=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=oz(t,n[t],!0),i+=oz(t,n[t],!0),o[t]=r[t]);return e.map?o:i},cz=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=rz(i,t[i],!0),o+=rz(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function dz(e,t){throw new Error(t)}var pz={canonicalize:iz,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===IO(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?lz(e):"css"===e.context?(null!=e.map&&"object"!==IO(e.map)&&dz(this,"Invalid parameter type"),uz(e)):"attr"===e.context?(null!=e.map&&"object"!==IO(e.map)&&dz(this,"Invalid parameter type"),cz(e)):void dz(this,"Invalid parameter type")},encodeForAttr:rz,encodeForAttr2:function(e){return rz("nonsens",e,!0)},encodeForCSS:oz,encodeForHref:function(e){iz(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new DO(e),n=DO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+DO.encodeSearchParams(r)+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 n,r,o,i,a,s;for(t||(t=KO),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),tz(o,t)>=0||null==az[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),s+="\\u".concat(a).concat(r.toUpperCase())));return s},encodeForHTML:nz,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=iz(t).toLowerCase():dz(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,n=MO(null!==(t=YO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(l,u,c);return"image/svg+xml"===l?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 n=function(e){for(var t=e,n="";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 r=n.lastIndexOf("/");-1!==r&&(n=n.slice(0,r))}else if("/.."===t){t="/";var o=n.lastIndexOf("/");-1!==o&&(n=n.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),n+=a}return n}(t);return""!==n&&"/"!==n&&n}};const fz=(e,t)=>{var n;return null===(n=t.qAttrExps)||void 0===n||null===(n=n.qValues)||void 0===n?void 0:n[e]},hz=(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"}}},mz=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>r&&t&&!t.toLowerCase().includes("javascript:")&&pz.isSafeDataURL(t)?{type:cl.Image,url:t,text:e,imageSize:n,resolvedImagePosition:hz(r,a),labelStructure:o,imageBox:i}:{type:cl.Text,url:void 0,text:e,labelStructure:o},gz=(e,t,n,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!n)return{type:cl.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{var r,o;const i="global"===(null===(r=t.yAxis)||void 0===r?void 0:r.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),s=i?n.qYMin:e.qMiniChart.qMin,l=i?n.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(s),Math.abs(l));return{minY:-e,maxY:e}}return(e=>{var t,n;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(n=e.yAxis)||void 0===n?void 0:n.position)})(t)?{minY:Math.min(0,s),maxY:Math.max(0,l)}:{minY:s,maxY:l}})(e,t.miniChart,n),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:cl.MiniChart,text:r,miniChart:a}},bz=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===dl.Attribute||null==n?void 0:n.urlLabel},yz=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:cl.Link,url:pz.encodeForHref(n),text:t,labelStructure:e}}catch(n){return{type:cl.Text,url:void 0,text:t,labelStructure:e}}},xz=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{var c,d,p,f,h,m;const g=pl(t),b=s(e);return g!==cl.Image||!u[cl.Image]||null!==(c=r.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===cl.Link?((e,t,n,r,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===dl.Attribute){var a;const i=bz(null!==(a=n.url)&&void 0!==a?a:-1,e,t);return yz({labelStructure:r,text:o||i||"",url:i})}if(i===dl.Dimension){var s,l;const i=bz(null!==(s=n.urlLabel)&&void 0!==s?s:-1,e,t)||o;return r&&(r.maskedValue=i),yz({text:i,labelStructure:r,url:null!==(l=null==r?void 0:r.originalValue)&&void 0!==l?l:o})}return{type:cl.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,b):g!==cl.Indicator||!u[cl.Indicator]||null!==(p=r.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==cl.MiniChart||!u[cl.MiniChart]||null!==(h=r.anything.sense)&&void 0!==h&&null!==(m=h.isUnsupportedFeature)&&void 0!==m&&m.call(h,"qMiniChartDef")?{type:cl.Text,url:void 0,text:b,labelStructure:a}:gz(e,t,i,b):((e,t,n)=>{const{indicator:r}=null!=e?e:{};return{type:cl.Indicator,url:void 0,text:n,indicator:{applySegmentColors:null==r?void 0:r.applySegmentColors,position:null==r?void 0:r.position,showTextValues:null==r?void 0:r.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===l){var d,p;const t=null===(d=fz(null!==(p=n.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),mz({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){var f,h,m;const t=i?i.originalValue:r;if(-1===n.imageLabel)return mz({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=null!==(f=null===(h=fz(null!==(m=n.imageLabel)&&void 0!==m?m:-1,e))||void 0===h?void 0:h.qText)&&void 0!==f?f:r;return mz({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:cl.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,b,l,a)},vz=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,s=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,l=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=l?aA(l):null,c=s?aA(s):null,d=((e,t)=>e||!t?null:nA(t))(c,u);return{color:null!=d?d:c,background:u}},_z=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:_z(e,t)),e),wz=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:xA-r;let s=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;s=e.qDown+n}return Math.min(a,_z(s,e))},Sz=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:h,pageInfo:m,direction:g="ltr"})=>{var b,y;const x=(!c||!u)&&"P"===e.qType,v=((e,t,n)=>{if(e!==iO){if(t){const t=pl(e.representation);return t===cl.Link||null!=n&&n.isImagesSupported&&t===cl.Image?e.representation:{type:cl.Text}}return e.representation}})(s,c,d),_=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=o===cl.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:f,representationType:pl(v),parentOrRootOriginalValue:null!==(b=null===(y=t||n)||void 0===y||null===(y=y.representation)||void 0===y||null===(y=y.labelStructure)||void 0===y?void 0:y.originalValue)&&void 0!==b?b:""}),w=xz({cell:{...e,qText:_},representationProperties:v,attrExprInfoIndex:l,env:h,labelStructure:f,direction:g,enabledFeatures:{[cl.Image]:h.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cl.Indicator]:h.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),S={id:pO(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:wz(e,o,i,r,u,m),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:x,expressionColor:vz(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:x?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:w,...void 0!==p&&{indentLevel:p}};return t&&(t.children[S.mainAxisPageCoord-t.mainAxisPageCoord]=S),S},Cz=(e,t,n,r,o,i,a,s,l)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=o;if(!t.length)return e;let d=0;return function t(p,f,h,m=0,g=-1){e[m]||(e[m]={}),u&&g++;const b=o.leftDimensionInfoIndexes.indexOf(iO);h.forEach(((h,y)=>{var x,v;const _={originalValue:null!==(x=h.qText)&&void 0!==x?x:"",maskedValue:"",delimeter:"-",suffix:""};d+=0===y?0:1;const w=n.qTop-r.page*r.rowsPerPage,S=Math.max(0,w+d-h.qUp),C=n.qTop+d-h.qUp;if(u){var E,k;if(o.hasPseudoDimOnLeft&&g<=b)if(_.originalValue=null!==(E=h.qText)&&void 0!==E?E:"",_.maskedValue=null!==(k=h.qText)&&void 0!==k?k:"","N"===h.qType||"U"===h.qType||"T"===h.qType)"U"===h.qType&&(_.originalValue=o.getNullValueText()),g<b&&(_.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===h.qType){var R,M,A,I,L,P,D,T;_.originalValue=null!==(R=null===(M=f||p)||void 0===M||null===(M=M.representation.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==R?R:"",_.maskedValue=null!==(A=null===(I=f||p)||void 0===I||null===(I=I.representation.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==A?A:"",_.suffix=null!==(L=h.qText)&&void 0!==L?L:"";const e=h.qSubNodes;h={...null===(P=f||p)||void 0===P?void 0:P.ref,...h.qText?{qText:h.qText}:{},qSubNodes:e},g=null!==(D=null===(T=f||p)||void 0===T?void 0:T.indentLevel)&&void 0!==D?D:0}"U"===h.qType&&(_.originalValue=o.getNullValueText())}let O=m;u&&(O=b>=1&&g>=b?g+1:g,0===g&&0===b&&0===h.qSubNodes.length&&(O=0));const z=null===(v=e.at(m))||void 0===v?void 0:v[S],N=u&&void 0===(null==z?void 0:z.ref.qText)||!z?Sz({node:h,parent:f,root:p,x:O,y:C,pageY:S,layoutService:o,dimensionInfo:i[O],attrExprInfoIndex:a[O],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentModeFeatures:c,indentLevel:g},env:s,pageInfo:r,labelStructure:_,direction:l}):e[m][S];if(e[m][S]=N,h.qSubNodes.length){const e=u?0:m+1;t(p||N,N,h.qSubNodes,e,g)}}))}(null,null,t,0,-1),e},Ez=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r.at(n+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},kz=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Rz=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=Cz(e.grid,l,u,n,r,o,i,a,s);Ez(c,n.rowsOnCurrentPage);const d=kz(c,r);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},Mz=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const s=e.qTop-r.page*r.rowsPerPage+n,l=e.qLeft+i;Array.isArray(o[s])||(o[s]=[]);const u="U"===t.qType;o[s][l]=null!==(a=o[s][l])&&void 0!==a?a:{id:pO(),ref:t,isNull:u}}))})),o},Az=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return null!=r&&r.length?Mz({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},Iz=(e,t,n,r,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c,indentModeFeatures:d}=r;if(!t.length)return e;let p=0;!function t(a,f,h,m=0){e[m]||(e[m]={}),h.forEach(((h,g)=>{var b;p+=0===g?0:1;const y=n.qLeft+p-h.qUp,x=null!==(b=e[m][y])&&void 0!==b?b:Sz({node:h,parent:f,root:a,x:y,y:m,pageY:m,layoutService:r,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...c&&{isIndentModeEnabled:c,indentModeFeatures:d},env:s,pageInfo:l,direction:u});e[m][y]=x,h.qSubNodes.length&&t(a||x,x,h.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Lz=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=Iz(e.grid,u,c,n,r,o,i,a,s,l);Ez(d,n.size.x);const p=kz(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},Pz=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),Dz=(e,t)=>{const{env:r}=ZT(),{direction:o}=KT(),{layoutService:a,effectivePropertiesService:s}=tO(),{qPivotDataPages:l,pageInfo:u}=KT(),[c,d]=n(null),p=((e,t,n)=>i((()=>({left:e.map(Pz),top:t.map(Pz),measures:n.map(Pz)})),[n,e,t]))(e,t,a.visibleMeasureInfo),h=i((()=>yO(a,s,t,e)),[a,s,t,e]),m=f((()=>l.slice(1).reduce(((e,t)=>Az({prevData:e,dataPage:t,pageInfo:u})),((e,t)=>{const{qData:n,qArea:r}=e;return Mz({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(l[0],u))),[l,u]),g=f((()=>l.slice(1).reduce(((e,n)=>Lz({prevData:e,nextDataPage:n,layoutService:a,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:h.size.y,env:r,pageInfo:u,direction:o})),((e,t,n,r,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=Iz([],u,l,t,n,r,o,i,a,s);Ez(c,t.size.x);const d=kz(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(l[0],a,t,p.top,h.size.y,r,u,o))),[l,a,t,p.top,h.size.y,r,u,o]),b=f((()=>l.slice(1).reduce(((t,n)=>Rz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:a,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})),((e,t,n,r,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=Cz([],l,s,n,t,r,o,i,a);Ez(u,n.rowsOnCurrentPage);const c=kz(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(l[0],a,u,e,p.left,r,o))),[l,a,u,e,p,r,o]),[y,x]=n((()=>m())),[v,_]=n((()=>g())),[w,S]=n((()=>b()));rI((()=>{x(m())}),[m]),rI((()=>{_(g())}),[g]),rI((()=>{S(b())}),[b]),rI((()=>{c&&c.forEach((n=>{x((e=>Az({prevData:e,dataPage:n,pageInfo:u}))),_((e=>Lz({prevData:e,nextDataPage:n,layoutService:a,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:h.size.y,env:r,pageInfo:u,direction:o}))),S((t=>Rz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:a,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})))}))}),[c]);const C=f((e=>{d(e)}),[]);return{headersData:h,measureData:y,topDimensionData:v,leftDimensionData:w,attrExprInfoIndexes:p,nextPageHandler:C}},Tz=Math.sqrt(1e4),Oz=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/ta.PixelsMin)}),zz=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Tz),r=Math.ceil(e.qHeight/Tz);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Tz,qTop:e.qTop+n*Tz,qWidth:Math.min(Tz,e.qWidth-o*Tz),qHeight:Math.min(Tz,e.qHeight-n*Tz)});return t};function Nz({nextPageHandler:e}){const{model:t}=ZT(),{pageInfo:n}=KT(),{layoutService:r}=tO(),o=(e=>{const t=p(e);return t.current=e,t})(n.page),a=t,s=f((async(e,t)=>{await(null==a?void 0:a.collapseLeft(oO,e,t,!1))}),[a]),l=f((async(e,t)=>{await(null==a?void 0:a.collapseTop(oO,e,t,!1))}),[a]),u=f((async(e,t)=>{await(null==a?void 0:a.expandLeft(oO,e,t,!1))}),[a]),c=f((async(e,t)=>{await(null==a?void 0:a.expandTop(oO,e,t,!1))}),[a]),d=f((async t=>{if(null!=a&&a.getHyperCubePivotData&&0!==t.length)try{const r=await a.getHyperCubePivotData(oO,t.reduce(((e,t)=>[...e,...zz(t)]),[]));o.current===n.page&&e(r)}catch(e){console.error(e)}}),[a,e,n,o]),h=f(((e,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case bl.Dimension:c=[{qPath:`${oO}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case bl.Measures:if(o)c=s.map(((e,t)=>({qPath:`${oO}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${oO}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case bl.Pivot:c=[{qPath:`${oO}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}}));null==t||t.applyPatches(d,!0)}),[t,r]),m=f((async e=>{await(null==a?void 0:a.applyPatches([{qPath:`${oO}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[a,r]);return i((()=>({collapseLeft:s,collapseTop:l,expandLeft:u,expandTop:c,applyColumnWidth:h,applyIndentModeColumnWidth:m,fetchPages:d})),[s,l,u,c,h,m,d])}const qz=(e,t,n)=>(r,o)=>{if("P"===r)return iO;const i=t[n+o];return e[i]},jz=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Fz=d({}),Bz=()=>c(Fz),$z=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=tO(),{qPivotDataPages:r}=KT();return i((()=>{var o,i,a,s;const l=jz(null!==(o=null===(i=r[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=jz(null!==(a=null===(s=r[0])||void 0===s?void 0:s.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:l.map(qz(n,t,0)),visibleTopDimensionInfo:u.map(qz(n,t,e))}}),[n,t,e,r])})(),{headersData:r,measureData:o,topDimensionData:a,leftDimensionData:s,attrExprInfoIndexes:l,nextPageHandler:u}=Dz(t,n),c=Nz({nextPageHandler:u}),d=i((()=>({gridSectionsData:{headersData:r,topDimensionData:a,leftDimensionData:s,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:l,dataModel:c})),[t,n,r,o,a,s,l,c]);return se.jsx(Fz.Provider,{value:d,children:e})},Wz=18,Hz=.75,Gz=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===cl.Image},Vz=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&n.type===cl.Image,Yz=e=>void 0===e?yA:e,Uz=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Kz=e=>Uz(e,ta.PixelsDefault),Xz=(e,t)=>Uz(e,ta.PercentageDefault)*t/100,Jz=(e,t,n)=>{switch(null==t?void 0:t.type){case na.Pixels:return Kz(t.pixels);case na.Percentage:return Xz(t.percentage,e);case na.FitToContent:case na.Auto:default:return n}},Zz=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:d}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:h,isLeftDimension:m}=s,g=d.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!m)return e+0;if(p===aO)return e+0;const y=Vz({isLeftColumn:m,layoutService:t,representation:(null==g?void 0:g.representation)||{type:cl.Text}})?b.width+8+4:r(h),x=!n.qAlwaysFullyExpanded&&f<c-1?21:0;let v=0;if(o&&i&&a){v=i("- ")+a}return Math.max(e,24*l+Wz+x+y+v)}),0),Qz=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*Wz;return Math.max(e,o+t(r.qFallbackTitle))}),0),eN=(e,t,n,r)=>{const o=100*e/t,i=r*Hz*(o/100),a=n*(o/100);return Math.min(a,i)},tN=(e,t,n,r)=>r*(n/100)*(100*e/t/100),nN=(e,t)=>e.some((e=>e>=t*Hz)),rN=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*Hz,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,Zz({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,Qz(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===aO)),y=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===na.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+Wz+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const n=Math.min(d,Qz(e.visibleMeasureInfo,l,!0));g=Math.min(d,Zz({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);c=[Math.max(y,r-f),f]}else c=[Math.max(y,h-f),f];const x=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:v}=e;i&&i<=d&&(v.type=na.Pixels,v.pixels=i);return[na.Pixels,na.Percentage].includes(v.type)||nN(c,o)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=nN(e,n);l===na.Auto&&d&&(o>i?o-=i:i-=o),l===na.Pixels&&u&&(o=eN(e[0],s,u,n),i=eN(e[1],s,u,n)),l===na.Percentage&&c&&(o=tN(e[0],s,c,n),i=tN(e[1],s,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,v,o,f):{leftGridWidth:x,leftGridColumnWidths:c,leftGridFullWidth:x}};function oN({tableWidth:e}){const t=e*Hz,{styleService:r,layoutService:o,effectivePropertiesService:i}=tO(),{translator:a}=ZT(),{gridSectionsData:{headersData:s}}=Bz(),{measureText:l}=QA(r.header),{estimateWidth:u,measureText:c}=QA({...r.dimensionValues,fontWeight:Yz(r.dimensionValues.fontWeight)}),{measureText:d}=QA({...r.dimensionValues,...r.measureLabels}),p=f(((n,r)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=o,b=(t=0)=>h.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=d(r)+Wz,a=Math.max(i,t);return Math.max(n,m?a:Jz(e,o,a))}),0),y=e=>s.data.reduce(((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===aO)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?20:0;return Wz+l(t)+20+r})(r);return Math.max(o,t)}),0);let x=0,v=s.data.at(-1);m&&s.size.x>1&&v&&v[0]&&(v=v[0]);const _=v.map(((a,l)=>{let c=Wz;if(m&&1!==s.size.x||!n||void 0===r||r!==a.colIdx){let t;a.columnWidthLocation===bl.Pivot?t=m?void 0:f:a.columnWidthLocation===bl.Dimension&&({columnWidth:t}=a);let n=0;if(a.isLeftDimension)if(a.id===aO)n=b();else{const e=y(l),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r,dimensionInfoIndex:a}=e,s=o.getDimensionInfo(a);if(Gz(s))return ta.PixelsDefault;const l=!i.qAlwaysFullyExpanded&&r&&t<p-1?21:0;return Wz+u(n)+l})(a,l);n=Math.max(e,t),m&&!g&&l+1===p&&a.columnWidthLocation===bl.Dimension&&s.size.x>1&&(n=e)}else n=y(l),a.columnWidthLocation===bl.Measures&&(n=b(n));m&&1===s.size.x&&(t=o.indentModeColumnWidth),c=m&&!g&&s.size.x>1?n:Jz(e,t,n)}else c=m?Math.min(t,n):n;return x+=c,c}));return m&&s.size.x>1?rN({layoutService:o,effectivePropertiesService:i,headersData:s,columnWidths:_,tableWidth:e,widthOverride:n,measureTextForHeader:l,estimateWidthForDimensionValue:u,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:a}):{leftGridWidth:Math.min(t,x),leftGridColumnWidths:_,leftGridFullWidth:x}}),[e,s,o,t,l,d,u,c,a,i]),[h,m]=n(p);rI((()=>{m(p())}),[p]);const g=f(((e,t)=>{m(p(e,t))}),[p]);return{...h,overrideLeftGridWidth:g}}function iN({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:o}=tO(),{visibleDimensionsInfo:{visibleTopDimensionInfo:a}}=Bz(),{layout:{qHyperCube:{qNoOfLeftDims:s,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:p}=QA(r.measureValues),{estimateWidth:h}=QA({...r.dimensionValues,fontWeight:Yz(r.dimensionValues.fontWeight)}),m=e-n-1,g=a.at(-1),b=g===iO,y=l.length-s>a.length?21:0,x=i((()=>{const e=b?c:[g],t=u.x/e.length,n=[],r=[];let o=m;const i=(e,r)=>{n[e]=Math.min(ta.PixelsMax,Math.max(ta.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case na.Pixels:i(t,Kz(o));break;case na.Percentage:i(t,Xz(a,m));break;case na.FitToContent:i(t,((e,t,n)=>n?ta.PixelsDefault:Wz+(b?Math.max(d(e),p(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),h(e)+y)))(s,l,Gz(e)));break;case na.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(ta.AutoMinPivot,i)}))}return n}),[b,c,g,u.x,m,d,p,h,y]),v=i((()=>{if(b){const e=c.reduce(((e,t,n)=>e+x[n]),0);return e/c.length}return x[0]}),[b,x,c]),_=parseFloat((t/o.size.x).toFixed(12)),w=f((e=>(b&&void 0!==e?x[o.getMeasureInfoIndexFromCellIndex(e,!0)]:v)-_),[b,x,o,v,_]),S=u.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,m),getRightGridColumnWidth:w}}const aN=`scrollable-container--${xl.TopGrid}`,sN=`scrollable-container--${xl.LeftGrid}`,lN=`scrollable-container--${xl.DataGrid}`,uN=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},cN=(e,t)=>e>t?vl.Forward:e<t?vl.Backward:vl.None,dN=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:s})=>{const{direction:l}=KT();r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=o(),p=e=>{const t=e.target;r.scrollLeft=t.scrollLeft,a(e),null==i||i(e)},f=e=>{const t=e.target;r.scrollTop=t.scrollTop,a(e),null==i||i(e)},h=r=>{var o,s,p;const f=r.target,h=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(f,l);null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:h,scrollTop:f.scrollTop}),u.scrollLeft=h,null===(s=e.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(h)})),c.scrollTop=d.scrollTop,null===(p=t.current)||void 0===p||p.forEach((e=>{null==e||e.scrollTo(f.scrollTop)})),a(r),null==i||i(r)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),s.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[a,i,s,e,t,n,o,l])},pN=()=>{const{interactions:e}=ZT(),t=p(null),o=p(null),i=p(null),a=p(null),s=p([]),l=p([]),c=p(null),{scrollbarsDimensions:{verticalScrollbarWidth:d,horizontalScrollbarHeight:h},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[o,i]=n(0),[a,s]=n(0);return u((()=>{(e.current||r.current)&&i(Math.max(uN(e.current).width,uN(r.current).width))})),u((()=>{(t.current||r.current)&&s(Math.max(uN(t.current).height,uN(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a},resetHorizontalScrollbarHeight:()=>{s(0)}}})({topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=KT(),{downloadService:l,viewService:c,layoutService:d}=tO(),p=f((()=>{var o,i,a,s;const l={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(l),null===(i=t.current)||void 0===i||i.scrollTo(l),null===(a=n.current)||void 0===a||a.scrollTo(l),null===(s=r.current)||void 0===s||s.scrollTo(l)}),[e,t,n,r]);u((()=>{p()}),[s.page,p]),u((()=>{d.triggerdByExpandOrCollapse||p()}),[d,p]),u((()=>{if(d.triggerdByExpandOrCollapse){var e,t,n,s,l,u,c;const d=null!==(e=null===(t=r.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(n=null===(s=r.current)||void 0===s?void 0:s.scrollTop)&&void 0!==n?n:0;null===(l=i.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(d)})),null===(c=a.current)||void 0===c||c.scrollTo({scrollTop:p,scrollLeft:d})}}),[d,r,a,i,o]),u((()=>{(l.isDownloadedAsPDForImage||d.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=c.scrollTop,r.current.scrollLeft=c.scrollLeft,n.current.scrollLeft=c.leftGridScrollLeft,t.current.scrollTop=c.topGridScrollTop)}),[c,l,d,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:s,leftGridRef:l,dataGridRef:c}});const{trackScrollDirection:g,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:y}}=(()=>{const e=p(vl.None),t=p(vl.None),n=p({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:f((r=>{if(r instanceof WheelEvent&&(e.current=cN(r.deltaY,0),t.current=cN(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const o=r.target;e.current=cN(o.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=o.scrollTop,t.current=cN(o.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=o.scrollLeft}}),[e,t,n]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),x=(()=>{const{viewService:e}=tO();return f((t=>{const n=t.target,r=t.currentTarget,o=n.dataset.key;o===sN&&(e.leftGridScrollLeft=r.scrollLeft),o===lN&&(e.scrollLeft=r.scrollLeft),o===aN&&(e.topGridScrollTop=r.scrollTop),o!==sN&&o!==lN||(e.scrollTop=r.scrollTop)}),[e])})(),v={gridRefs:{topGridRef:s,leftGridRef:l,dataGridRef:c},getWrapperElements:f((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:o.current,leftGridWrapperElement:i.current,dataGridWrapperElement:a.current})),[t,o,i,a]),updateViewService:x,trackScrollDirection:g,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:s})=>{r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:i,leftGridWrapperElement:l,dataGridWrapperElement:u}=o(),c=e=>{r.scrollLeft+=e.deltaX,r.scrollTop+=e.deltaY,l.scrollLeft=r.scrollLeft,i.scrollTop=r.scrollTop,a(e)},d=e=>{var o,i;l.scrollTop+=e.deltaY,null===(o=t.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(l.scrollTop)})),r.scrollLeft+=e.deltaX,l.scrollLeft=r.scrollLeft,u.scrollTop=l.scrollTop,null===(i=n.current)||void 0===i||i.scrollTo({scrollTop:l.scrollTop}),a(e)},p=t=>{var o,s;i.scrollLeft+=t.deltaX,null===(o=e.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(i.scrollLeft)})),r.scrollTop+=t.deltaY,i.scrollTop=r.scrollTop,u.scrollLeft=i.scrollLeft,null===(s=n.current)||void 0===s||s.scrollTo({scrollLeft:i.scrollLeft}),a(t)},f=r=>{var o,s,c;u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),i.scrollLeft=u.scrollLeft,null===(s=e.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),a(r)};return r.addEventListener("wheel",c),l.addEventListener("wheel",d),i.addEventListener("wheel",p),u.addEventListener("wheel",f),s.scroll||setTimeout((()=>{r.removeEventListener("wheel",c),l.removeEventListener("wheel",d),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{r.removeEventListener("wheel",c),l.removeEventListener("wheel",d),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[a,i,s,e,t,n,o])})(v),dN(v),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:s,leftGridRef:l,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:y},scrollbarsDimensions:{verticalScrollbarWidth:d,horizontalScrollbarHeight:h,resetHorizontalScrollbarHeight:m}}},fN=()=>{const{layoutService:e}=tO(),{rect:t,pageInfo:n}=KT();return i((()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}}),[t,e,n.shouldShowPagination])},hN=({children:e,style:t})=>se.jsx("div",{"data-testid":"fullSize",style:t,children:e}),mN=({children:e,style:t})=>{const{direction:n}=KT();return se.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},gN=e=>e&&`scrollable-container--${e}`,bN=({children:e,style:t,origin:n},r)=>{const{interactions:o}=ZT(),i=o.scroll?t:{overflow:"hidden"};return se.jsx("div",{"data-testid":"scrollable","data-key":gN(n),style:i,ref:r,children:e})};var yN=t.forwardRef(bN);const xN=({children:e,style:t})=>{const{direction:n}=KT();return se.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var vN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function _N(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||vN(r)&&vN(o)))return!1;var r,o;return!0}function wN(e,t){var n;void 0===t&&(t=_N);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var SN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function CN(e){cancelAnimationFrame(e.id)}function EN(e,t){var n=SN();var r={id:requestAnimationFrame((function o(){SN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var kN=-1;function RN(e){if(void 0===e&&(e=!1),-1===kN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),kN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return kN}var MN=null;function AN(e){if(void 0===e&&(e=!1),null===MN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?MN="positive-descending":(t.scrollLeft=1,MN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),MN}return MN}var IN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function LN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,wd(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:wd(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=r._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;p[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(AN()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&CN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=EN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}_d(t,e),t.getDerivedStateFromProps=function(e,t){return PN(e,t),b(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=RN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),x=s(this.props,this._instanceProps)>f?b:0,v=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,v):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,x):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(AN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CN(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?IN:p,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,x=e.useIsScrolling,v=e.width,_=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],C=w[1],E=this._getVerticalRangeToRender(),k=E[0],R=E[1],M=[];if(r>0&&b)for(var A=k;A<=R;A++)for(var I=S;I<=C;I++)M.push(h(t,{columnIndex:I,data:d,isScrolling:x?_:void 0,key:f({columnIndex:I,data:d,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,I)}));var L=a(this.props,this._instanceProps),P=s(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ll({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(u||c||"div",{children:M,ref:l,style:{height:L,pointerEvents:_?"none":void 0,width:P}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,x=m.scrollUpdateWasRequested,v=m.verticalScrollDirection;this._callOnScroll(b,y,g,v,x)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(x),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var PN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},DN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},TN=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},ON=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},zN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?NN(e,t,n,i,0,r):qN(e,t,n,Math.max(0,i),r)},NN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=ON(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},qN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&ON(e,t,r,n).offset<o;)r+=a,a*=2;return NN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},jN=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=ON(e,t,n,i),u="column"===e?TN(t,i):DN(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=c+s?"auto":"center"),r){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}},FN=LN({getColumnOffset:function(e,t,n){return ON("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return zN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=ON("column",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ON("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:DN,getEstimatedTotalWidth:TN,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return jN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return jN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return ON("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return zN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=ON("row",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ON("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),BN=function(e,t){return e};function $N(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,wd(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:wd(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(AN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&CN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=EN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}_d(t,e),t.getDerivedStateFromProps=function(e,t){return WN(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?RN():0:l.scrollHeight>l.clientHeight?RN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(AN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?BN:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=e.useIsScrolling,x=e.width,v=this.state.isScrolling,_="horizontal"===o||"horizontal"===f,w=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],E=S[1],k=[];if(u>0)for(var R=C;R<=E;R++)k.push(h(t,{data:c,key:p(R,c),index:R,isScrolling:y?v:void 0,style:this._getItemStyle(R)}));var M=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Ll({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(s||l||"div",{children:k,ref:a,style:{height:_?"100%":M,pointerEvents:v?"none":void 0,width:_?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(x),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var WN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},HN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},GN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=HN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},VN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&HN(e,n,t).offset<r;)n+=i,i*=2;return GN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},YN=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},UN=$N({getItemOffset:function(e,t,n){return HN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:YN,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=HN(e,t,o),p=YN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?GN(e,t,o,0,n):VN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=HN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=HN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KN(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var XN=["style"],JN=["style"];function ZN(e,t){var n=e.style,r=Au(e,XN),o=t.style,i=Au(t,JN);return!KN(n,o)&&!KN(r,i)}const QN=10,eq=(e,t)=>e.current===vl.Backward?t:0,tq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e.at(o);if(void 0===n||void 0===n.at(t))return!0}return!1},nq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,rq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(tq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&nq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},oq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,u=n.current===vl.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return rq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},iq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=eq(n,QN),u=Math.max(r-l,0);return{startLeft:u,endLeft:u+Math.min(i+QN,s-u),pageTop:o,qHeight:a}})(r,o,n),u=rq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...oq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},aq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},sq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,lq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(aq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+s,qWidth:r,qHeight:1};void 0!==e&&sq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},uq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=eq(n,QN),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+QN,e.rowsOnCurrentPage-l),qLeft:r,qWidth:i}})(e,r,n),l=lq({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===vl.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=lq({startTop:r,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},cq=async(e,t,n,r,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==vl.None&&(p=uq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==vl.None&&(f=iq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===vl.None&&a.current===vl.None&&(p=lq({measureData:n,pageInfo:r,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},dq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(cq,100),pq=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(cq,75),fq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),hq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=KT(),{styleService:{grid:{border:l,divider:u}}}=tO();return se.jsx("div",{style:{...e,...EA,...AA(n,r,l,s,o),...LA({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},mq=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i,indentModeFeatures:a}}=tO(),s=o&&i&&a.isImagesSupported;return se.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!s&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},gq=e=>{const{type:t,imageSize:n}=e;return t!==cl.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},bq=e=>"number"==typeof e&&!Number.isNaN(+e),yq=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,xq=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),vq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),_q=l(((e,t)=>se.jsxs("svg",{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:[se.jsx("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"}),se.jsx("use",{fillRule:"evenodd"})]}))),wq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Sq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Cq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Eq=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M2 7h12v2H2z"})}))),kq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Rq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Mq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Aq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Iq=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),Lq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Pq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Dq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Tq={m:Iq,"ï":Mq,R:l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),S:Lq,T:Pq,U:Dq,P:Rq,Q:Cq,"è":l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),"¢":wq,"©":_q,"23F4":Sq,2013:Aq,"&":kq,add:xq,"minus-2":Eq,dot:vq},Oq=({size:e,iconKey:n,color:r,pvStyle:o})=>{const i=n&&Tq[n];return i&&t.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...o}},t.createElement(i,{style:{height:e}}))},zq=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),Nq=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},qq=(e,t)=>{const n=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),r=n.some((e=>!bq(e)));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!bq(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},jq=(e,t,n)=>{const r={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 n=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return s&&$R(e.localPaletteColors[t].color).blend($R(s.color),s.t)},Fq=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort(((e,t)=>e.value-t.value)),e.limits=n.map((e=>({...e,value:zq(t,e.value)})))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map(((e,t)=>({color:Nq(r,t,n)})))),r},Bq=(e,t,n,r)=>{const o=Fq(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=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>=r&&t<i){n=jq(e,a,t);break}r=i}return n})(o,t);return a},$q=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=qq(e,t),o=Math.abs(t);return{min:null!=n?n:t-o,max:null!=r?r:t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!bq(t))return 0;let a=n&&bq(n)?Math.min(n,t):0;const s=r.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},Wq=e=>"flex-start"===e?"flex-end":"flex-start",Hq=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=$q(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var n,r,o;return!(!e||0===e.length||!(null!==(n=null===(r=e[t])||void 0===r?void 0:r.gradient)&&void 0!==n?n:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,n.limitPaletteColorIndex))return Nq(o,n.limitPaletteColorIndex,r);const a=zq(n.limitRange,t);return Bq(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:l}=e;let u=(null==l?void 0:l.position)||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},Gq=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=tO(),{theme:o}=ZT(),{direction:i}=KT(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=null!=s?s:{},c=Hq(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},b=parseInt(d||gA,10),{iconKey:y,color:x,position:v}=c||{},_={display:"flex",paddingTop:2};return l?se.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:null==n?void 0:n.overflow,color:u?x:null==n?void 0:n.color},children:["left"===v&&Oq({size:b,iconKey:y,color:x,pvStyle:_}),se.jsx("span",{style:{paddingTop:4,overflow:null==n?void 0:n.overflow,textOverflow:null==n?void 0:n.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===v&&Oq({size:b,iconKey:y,color:x,pvStyle:_})]}):(_.paddingTop=5,Oq({size:b,iconKey:y,color:x,pvStyle:_}))},Vq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Yq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Uq=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(ea))},Kq=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);"N"===(null==n?void 0:n.ref.qType)&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}};const Xq=d({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),Jq=()=>c(Xq),Zq=({children:e,selections:t})=>{const n=function(e){var t,n,o;const{updatePageInfo:a}=KT(),s=e.isActive(),[l,u]=m(Kq,{engineSelectedCells:null,selectedField:null,activeSelection:null});r((()=>{const t=()=>{u({type:"clearSelections"})},n=()=>{t(),a({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",n),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",n),e.removeListener("cleared",t)}}),[e,a]);const c=f((async()=>{var t,n,r;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(n=l.engineSelectedCells,(r=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=n&&n.has(t)&&(r.clientSelectedCells.delete(t),n.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[oO,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);r((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=f(((e,t)=>n=>{const r=t(e);Uq(n)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(n)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(n)||!(e=>1===e.buttons)(n)||!r||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}})}),[]),p=f((t=>async()=>{l.activeSelection&&(e.isActive()||await e.begin([oO]),u({type:"mouseover",payload:{index:t}}))}),[l.activeSelection,e]),h=f((e=>{var t,n;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(n=l.activeSelection)&&void 0!==n&&n.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&("L"===e.selectionCellType?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(n=l.engineSelectedCells)||void 0===n?void 0:n.size,l.selectedField]),g=f((e=>{var t,n;return!h(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(n=l.activeSelection)||void 0===n||!n.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(o=l.activeSelection)||void 0===o?void 0:o.clientSelectedCells,l.engineSelectedCells]);return i((()=>({isSelected:g,isActive:s,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:p})),[g,s,h,d,p])}(t);return se.jsx(Xq.Provider,{value:n,children:e})},Qq=e=>"fill"===e.representation.imageSize,ej=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";var r;return e.isLeftColumn&&Qq(e)&&t&&(n="center"),e.representation.type!==cl.Image||Qq(e)?n:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var tj;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(tj||(tj={}));const nj={brighter:.5,darker:.3,opacity:.03},rj=(e,{cell:t,styleService:n})=>{if(e===tj.Background||e===tj.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},oj=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=rj(tj.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?rj(tj.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${oA(i=o,nj)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},ij=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:rj(tj.Color,{cell:e,styleService:t}),aj=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=rj(tj.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?yA:o},sj=({cell:e,styleService:t})=>rj(tj.FontStyle,{cell:e,styleService:t}),lj=({cell:e,styleService:t})=>rj(tj.TextDecoration,{cell:e,styleService:t}),uj=e=>e?"pointer":"default",cj=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},dj=(e,t)=>{if(!e.isLeftColumn||e.representation.type===cl.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},pj=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:o}=tO(),{interactions:i}=ZT(),{isActive:a}=Jq(),{dataModel:s}=Bz();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=ij({cell:e,styleService:r,isCellSelected:n}),c=a?.4:1,d=e.ref.qCanExpand?Yq:Vq;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=Vz({isLeftColumn:t,layoutService:o,representation:e.representation});return se.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...dj(e,r),...f&&{alignSelf:ej(e)}},onClick:l?void 0:cj({cell:e,expandOrCollapse:p})})},fj=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},hj=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},mj=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},gj=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:o,layoutService:i,isMeasureCell:a})=>{var s,l;const{isIndentModeEnabled:u,indentModeFeatures:{isImagesSupported:c}}=i,d=Vz({isLeftColumn:r,layoutService:i,representation:e}),p=t?21:0,f=null!==(s=null===(l=e.imageBox)||void 0===l?void 0:l.width)&&void 0!==s?s:24;let h=`calc(100% - ${p}px)`,m=o.headerCellHeight;r&&d&&(h=f),(a||r)&&(m=o.contentCellHeight);let g=m;switch(!r||void 0===n||u&&c||(g=m*Math.max(n,1)),e.imageSize){case"originalSize":return{maxWidth:h,maxHeight:g,...d?{width:h}:{}};case"fitWidth":return{width:h,maxHeight:g};case"fitHeight":return{height:g,maxWidth:h,...d?{width:h}:{}};case"fill":return{height:g,width:h};default:return{width:h,height:m}}},bj=e=>{if("alwaysFit"===e)return"contain"},yj=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),xj=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:hj(e,n,r),height:fj(e),objectFit:bj(e),objectPosition:mj(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),vj=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:o,onLoad:a}=(()=>{const{downloadService:e}=tO(),t=p(null),{promise:n,resolve:o}=i((()=>BA()),[]);return r((()=>{var r;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(r=t.current)&&void 0!==r&&r.complete&&o()),()=>{o()}}),[t,e,n,o]),{onLoad:f((()=>{o()}),[o]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:s,indentModeFeatures:{isImagesSupported:l}}}=tO(),{url:u,text:c,imageSize:d,resolvedImagePosition:h}=e,{overflow:m,...g}=t;return se.jsx("img",{src:u,alt:c,style:{...xj({imageSize:d,resolvedImagePosition:h,isImagesInIndentModeEnabled:s&&l,isMeasureCell:n}),...g},onLoad:a,ref:o})},_j=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=tO(),{resolvedImagePosition:u}=e;return se.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...gj({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:se.jsx(vj,{representation:e,textStyle:t,isMeasureCell:!0})})},wj=(e,t,n)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},Sj=(e,t)=>{var n,r;let{textAlign:o}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};var i;e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:o}=null!==(i=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex))&&void 0!==i?i:{});return null!==(r=o)&&void 0!==r&&r.auto||void 0===o?"left":o.align},Cj={display:"flex",flexDirection:"row",alignItems:"center"},Ej={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},kj=(e,t,n,r)=>t?{...Ej,...e.nullValues}:n?{...Cj,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Cj,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},Rj=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...kA,...!n&&RA(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?yA:l,fontStyle:u,textDecoration:c}},Mj=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=tO(),{isIndentModeEnabled:s,indentModeFeatures:l}=i,u=e.isNull?i.getNullValueText():t.text,c=t.type===cl.Image,d=t.type===cl.Indicator,p=bq(yq(u)),f=Rj(a,n,p,r,e.isNull);if(!s&&c&&!e.isNull||s&&l.isImagesSupported&&c&&!e.isNull)return se.jsx(_j,{isMeasureCell:!0,textStyle:f,representation:t,imageContainerHorizontalAlignment:o});const h=yq(e.isNull?t.text:e.ref.qNum);return d&&bq(h)?se.jsx(Gq,{representation:t,cellValue:h,textStyle:f}):se.jsx("span",{style:{padding:4,direction:p?"ltr":void 0,...f},children:u})},Aj=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},Ij="flex-start",Lj=(e,t)=>{return e.isNull?Ij:t.type===cl.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:Ij;var n},Pj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{env:i}=ZT(),{pageInfo:a,direction:s}=KT(),{styleService:l,layoutService:u}=tO(),{attrExprInfoIndexes:c,gridSectionsData:{measureData:d,leftDimensionData:p,topDimensionData:h},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:g}}=Bz(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=tO(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:o}}=Bz(),i=r.length,a=o.length;return f(((r,o)=>{var s,l;return!!(null!==(s=n.grid.at(a-1))&&void 0!==s&&null!==(s=s[r])&&void 0!==s&&s.isTotal||null!==(l=t.grid.at(e?0:i-1))&&void 0!==l&&null!==(l=l[o])&&void 0!==l&&l.isTotal)}),[n,t,i,a,e])})(),y=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=Bz(),n=t.length;return f((t=>{var r;const o=null===(r=e.grid.at(n-1))||void 0===r?void 0:r[t];return fq(o,e.totalDividerIndex)}),[e,n])})(),x=(()=>{const{layoutService:{isIndentModeEnabled:e}}=tO(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=Bz(),r=n.length;return f((n=>{var o;const i=e?0:r-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[n];return fq(a,t.totalDividerIndex,e)}),[t,e,r])})(),{showLastBorder:v}=r,_=h.grid.at(g.length-1),w=p.grid.at(m.length-1),{background:S}=l.measureValues,C=null===(o=d[t])||void 0===o?void 0:o[e],E=t===a.rowsOnCurrentPage-1,k=e===u.size.x-1;if(!C)return se.jsx(hq,{style:{...n,background:S},isLastRow:E,isLastColumn:k,showLastBorder:v,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const R=u.hasPseudoDimOnLeft?Aj(w,t):Aj(_,e),M=u.visibleMeasureInfo[R],A=xz({cell:C.ref,representationProperties:M.representation,attrExprInfoIndex:c.measures[R],env:i,direction:s,conditionalColoring:M.conditionalColoring,enabledFeatures:{[cl.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cl.Indicator]:i.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),I=!C.isNull&&b(e,t),L=C.isNull?u.getNullValueText():A.text,P=!C.isNull||!Number.isNaN(+L),D=vz(c.measures[R],C.ref),T=((e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var s,l;return e.isNull||n.type!==cl.Image?wj(i,a,o):null!==(s=null===(l=n.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==s?s:"center"})(C,M,A,P,s),O={...kj(l,C.isNull,I,D.background),...AA(E,k,l.grid.border,s,v),...LA({bottomDivider:x(t),rightDivider:y(e),borderColor:l.grid.divider}),...EA,padding:"0px 4px",display:"flex",justifyContent:T};return se.jsx("div",{className:Zi,title:L,style:{...O,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:se.jsx(mq,{width:gq(A),verticalAlign:Lj(C,A),children:se.jsx(Mj,{cell:C,representation:A,isTotalValueCell:I,color:D.color,cellHorizontalAlignment:T})})})};var Dj=t.memo(Pj,ZN);const Tj=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},Oj=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},zj=e=>({...CA,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),Nj=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:c}=KT(),{layoutService:d,styleService:{grid:{divider:p},contentCellHeight:h}}=tO(),{dataModel:m,gridSectionsData:{measureData:g}}=Bz(),b={...zj(c),borderColor:p,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=KT(),{downloadService:r,viewService:o,layoutService:i}=tO(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=Bz(),c=s.columnCount,d=l.rowCount;return f((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===vl.None?0:QN),m=o.gridHeight+d+(e.current===vl.None?0:QN);let g=dq;m*h>1500&&(g=pq),g(a,i,u,n,o,e,t,r)}),[o,i,a,u,e,t,n,c,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return rI((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,m,g]),u((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[r,t,e,h,c]),0===d.size.x?null:se.jsx(FN,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:d.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:o,grid:g},onItemsRendered:y,estimatedRowHeight:n(),estimatedColumnWidth:i(),itemKey:Oj,direction:c,children:Dj})};var qj=y(Nj);const jj=l(((e,t)=>se.jsxs("svg",{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:[se.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"}),se.jsx("use",{fillRule:"evenodd"})]}))),Fj=e=>{const[t,r]=n(!1);return rI((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},Bj=()=>{const[e,t]=n(!1),{dataModel:r}=Bz(),{interactions:o}=ZT(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Fj([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!o.active||Uq(e)||i||t(!0)},setIsAdjustingWidth:a}};function $j(e,t){var n,r;const o=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===_A.Transparent?AR.WHITE:i,s=Ta(e.grid.border),l=Ta(a);return l.isInvalid()||s.isInvalid()||1===s.a?e.grid.border:function(e,t,n){return Ta(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(l,s,s.a).getRGB()}const Wj=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:s})=>{var l;const{direction:u}=KT(),{interactions:c,translator:d}=ZT(),{isActive:p}=Jq(),{dataModel:f}=Bz(),{styleService:h}=tO(),[,m]=n({});if(!(e.canBeResized&&!!c.active&&!p))return null;const g=$j(h,e);return se.jsx(ID,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:g,updateWidthCallback:t=>{m({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var n;a?f.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=s?s:0)*Hz,null!==(n=t.pixels)&&void 0!==n?n:0)}):f.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:d,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:u})};function Hj(e){return RL(e)}const Gj=e=>e.scrollTop;function Vj(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Yj(e){return Pv("MuiPaper",e)}Dv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Uj=["className","component","elevation","square","variant"],Kj=SD("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ll({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ll({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${TL("#fff",kD(t.elevation))}, ${TL("#fff",kD(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Xj=e.forwardRef((function(e,t){const n=Hj({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Au(n,Uj),u=Ll({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return T_({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Yj,o)})(u);return se.jsx(Kj,Ll({as:o,ownerState:u,className:Av(c.root,r),ref:t},l))}));const Jj=Dv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zj=["center","classes","className"];let Qj,eF,tF,nF,rF=e=>e;const oF=rx(Qj||(Qj=rF`
114
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),x=b+("."===y||","===y?1:0),v=g>0?e.substring(x,p):"";if(n=(t="-"===(e=e.substring(f,x)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+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],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,x=0;x<p;x++)m+=d.charAt(x),!((x-b+1)%l)&&x<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+v}},GM({exports:{}});const nA=(e,t=AR.TEXT,n=AR.WHITE)=>{const r=$R(e),o=$R(t),i=$R(n);return r.isInvalid()?t:function(e,t,n){const r=WR(e,t),o=WR(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},rA=e=>{const t=e.getStyle("","","dataColors.selected")||AR.SELECTED,n=function(e,t){const n=$R("#FFFFFF"),r=$R(e),o=$R(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=WR(n,r),a=WR(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,AR.TEXT);return{background:t,color:n}},oA=(e,t)=>{const n=$R(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},iA=e=>!!e&&0===$R(e).a,aA=e=>{const t=$R(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},sA=e=>{e.stopPropagation(),e.preventDefault()},lA=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=r&&r,defaultValue(e,t,o){var i;const a=null!==(i=null==r?void 0:r(e,t,o))&&void 0!==i&&i,s=o.theme.current(),l=n(s,a);return{color:"transparent"===l?"none":l}}}),uA=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},cA=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",s=null!==(i=t.fontFamilies)&&void 0!==i?i:[],l=Array.from(new Set([e,a,...s])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...l.sort().map((e=>uA(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...UR(r).filter((e=>!l.includes(e))).map((e=>uA(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),dA=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],pA=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>uA(e,!1)))],l=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...dA.filter((e=>!a.includes(e))).map((e=>uA(e,!1)))];return[...s,...l.length>1?l:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),fA=({section:e,defaultFontStyle:t,translator:n,flags:r,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:cA({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:pA({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:lA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:lA(`${e}.background`,"properties.background",((t,n)=>{var r;const i=n?AR.WHITE:AR.TRANSPARENT;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:i}),a)}}}}),hA=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:lA(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:lA(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),mA=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),gA="12px",bA="Source Sans Pro, sans-serif",yA="600",xA=15e3,vA=4/3;var _A,wA;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(_A||(_A={})),function(e){e.Solid="solid",e.None="none"}(wA||(wA={}));const SA={display:"flex",justifyContent:"center",alignItems:"center"},CA={borderStyle:"solid"},EA={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},kA={lineHeight:vA,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},RA=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),MA=(e,t)=>e>0?`${e}px ${wA.Solid} ${t}`:wA.None,AA=(e,t,n,r,o)=>{const i=Number(!t||(null==o?void 0:o.right)),a=Number(!e||(null==o?void 0:o.bottom));return{borderRight:"rtl"!==r?MA(i,n):wA.None,borderBottom:MA(a,n),borderLeft:"rtl"===r?MA(i,n):wA.None,borderTop:wA.None}},IA=(e,t,n,r,o,i,a)=>{const s=AA(t,r,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=MA(2,o)),n||(s.borderLeft="rtl"!==i?MA(1,o):"none",s.borderRight="rtl"===i?MA(1,o):"none")),s},LA=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=MA(1,n)),t&&(r.borderRight=MA(1,n)),r},PA=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:mA("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?mA("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:lA("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:_A.DividerLight})),divider:lA("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:_A.DividerDark})),background:lA("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:_A.Transparent}))}}}}),DA=(e,t,n)=>{var r,o,i,a,s,l;switch(t){case"header":return null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||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[n];case"measureLabels":return null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.total)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||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[n];default:return}},TA=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:fA({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:DA}),dimensionValueSection:fA({section:"dimensionValues",translator:e,flags:t,getThemeValue:DA}),measureValueSection:fA({section:"measureValues",translator:e,flags:t,getThemeValue:DA}),measureLabelSection:hA({section:"measureLabels",getThemeValue:DA}),totalValuesSection:hA({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:DA}),nullValuesSection:hA({section:"nullValues",fallbackBackground:_A.NullValueBackground,getThemeValue:DA}),gridSection:PA(t)}}]}),OA=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{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}}},zA=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[TA(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:na.Auto,translation:"Common.Auto"},{value:na.Pixels,translation:"Object.Table.Column.Pixels"},{value:na.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:na.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:ta.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===na.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(ta.PixelsMin,Math.min(ta.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:ta.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===na.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(ta.PercentageMin,Math.min(ta.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...OA(t)}}),NA="auto",qA={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:NA,translation:"Object.Table.SortingInSearch",options:[{value:NA,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function jA(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:Al(e),sorting:qA,addons:ul,settings:zA(t,n)}}}function FA(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:jA(e),importProperties:sl(e),exportProperties:ll,exploration:ca(e)}}const BA=()=>{let e;const t=new Promise((t=>{e=t}));return{promise:t,resolve:e}};function $A(e,t){return w((()=>e),t)}const WA={},HA=e=>{const t=w((()=>({current:WA})),[]);return t.current=t.current===WA?e:t.current,t},GA=()=>{const{viewState:e}=S(),t=HA(new Set),n=void 0!==e,{promise:r,resolve:o}=w((()=>BA()),[]),i=$A((e=>{n&&t.current.add(e)}),[t]),a=$A(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return C((async()=>{n&&await r}),[r,n]),w((()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:i})),[a,n,e,i])},VA="#grid",YA=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},UA=(e,t,n,r,o)=>{const i=YA(".qv-object .qv-inner-object",n),a=YA(".qv-panel-sheet",n),s=YA(VA,n),l=null!=s?s:a,u=(e=>{var t,n,r,o,i,a;const s=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),l=null==s||null===(n=s.bgColor)||void 0===n?void 0:n.colorExpression,u=null==s||null===(r=s.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==s||null===(o=s.bgColor)||void 0===o?void 0:o.useColorExpression)&&l)return aA(l);if("none"===u)return"transparent";if(void 0===u)return;const c=$R(u);return c.setAlpha(null!==(i=null==s||null===(a=s.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==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=iA(p),h=!iA(m=f?l:p)&&nA(m,AR.TEXT,AR.DARK_MODE_TEXT)===NR(AR.DARK_MODE_TEXT);var m;const g=((e,t,n,r=AR.WHITE)=>e&&!iA(e)?e:iA(t)?n&&!iA(n)?n:r:t)(u,p,l);return{color:p,headerColor:g,isDark:h}},KA=(e,t,n,r)=>{const o=R(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=E([]);return k((()=>{let n;return e&&(n=new MutationObserver((e=>{r(e)})),n.observe(e,t)),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}}),[e,t]),n})(t.closest(VA),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return w((()=>({...o,background:UA(e,o,t,n,r)})),[o.name(),t,n,r,e,i])};function XA(e,t){const n=w((()=>({isLoading:!0})),t),[r,o]=C((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,o]}const JA=3;function ZA(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}function QA({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:a=JA}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=i((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const i=UM(o.measureText.bind(o)),s=e=>+i(e).width.toFixed(2),l=UM((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=ZA(o,t,s)}while(null!==o&&r<a);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>i(e).width,estimateWidth:e=>i("N").width*e,estimateLineCount:l}}),[n,r,e,t,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var eI,tI=_;eI=tI.createRoot,tI.hydrateRoot;const nI="Source Sans Pro, sans-serif";function rI(e,t){const[r,o]=n(t),i=r.some(((e,n)=>e!==t[n]));i&&(o(t),e())}var oI={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 iI=({translator:e})=>(i((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oI).forEach((t=>{e.add(oI[t])}))}}(e)}),[e]),e);var aI="$$material";const sI=["values","unit","step"];function lI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Au(e,sI),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)=>Ll({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ll({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const uI={borderRadius:4};function cI(e,t){return t?px(e,t,{clone:!1}):e}const dI={xs:0,sm:600,md:900,lg:1200,xl:1536},pI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dI[e]}px)`};function fI(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||pI;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||pI;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||dI).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function hI(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function mI(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function gI(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:mI(e,n)||r,t&&(o=t(o,r,e)),o}function bI(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=mI(e.theme,r)||{};return fI(e,i,(e=>{let r=gI(a,o,e);return e===r&&"string"==typeof e&&(r=gI(a,o,`${t}${"default"===e?"":_x(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const yI={m:"margin",p:"padding"},xI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_I=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!vI[e])return[e];e=vI[e]}const[t,n]=e.split(""),r=yI[t],o=xI[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),wI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function CI(e,t,n,r){var o;const i=null!=(o=mI(e,t,!1))?o:n;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 EI(e){return CI(e,"spacing",8)}function kI(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function RI(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=kI(t,n),e)),{})}(_I(n),r);return fI(e,e[n],o)}function MI(e,t){const n=EI(e.theme);return Object.keys(e).map((r=>RI(e,t,r,n))).reduce(cI,{})}function AI(e){return MI(e,wI)}function II(e){return MI(e,SI)}function LI(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?cI(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function PI(e){return"number"!=typeof e?e:`${e}px solid`}function DI(e,t){return bI({prop:e,themeKey:"borders",transform:t})}AI.propTypes={},AI.filterProps=wI,II.propTypes={},II.filterProps=SI;const TI=DI("border",PI),OI=DI("borderTop",PI),zI=DI("borderRight",PI),NI=DI("borderBottom",PI),qI=DI("borderLeft",PI),jI=DI("borderColor"),FI=DI("borderTopColor"),BI=DI("borderRightColor"),$I=DI("borderBottomColor"),WI=DI("borderLeftColor"),HI=DI("outline",PI),GI=DI("outlineColor"),VI=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=CI(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:kI(t,e)});return fI(e,e.borderRadius,n)}return null};VI.propTypes={},VI.filterProps=["borderRadius"],LI(TI,OI,zI,NI,qI,jI,FI,BI,$I,WI,VI,HI,GI);const YI=e=>{if(void 0!==e.gap&&null!==e.gap){const t=CI(e.theme,"spacing",8),n=e=>({gap:kI(t,e)});return fI(e,e.gap,n)}return null};YI.propTypes={},YI.filterProps=["gap"];const UI=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=CI(e.theme,"spacing",8),n=e=>({columnGap:kI(t,e)});return fI(e,e.columnGap,n)}return null};UI.propTypes={},UI.filterProps=["columnGap"];const KI=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=CI(e.theme,"spacing",8),n=e=>({rowGap:kI(t,e)});return fI(e,e.rowGap,n)}return null};KI.propTypes={},KI.filterProps=["rowGap"];function XI(e,t){return"grey"===t?t:e}LI(YI,UI,KI,bI({prop:"gridColumn"}),bI({prop:"gridRow"}),bI({prop:"gridAutoFlow"}),bI({prop:"gridAutoColumns"}),bI({prop:"gridAutoRows"}),bI({prop:"gridTemplateColumns"}),bI({prop:"gridTemplateRows"}),bI({prop:"gridTemplateAreas"}),bI({prop:"gridArea"}));function JI(e){return e<=1&&0!==e?100*e+"%":e}LI(bI({prop:"color",themeKey:"palette",transform:XI}),bI({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:XI}),bI({prop:"backgroundColor",themeKey:"palette",transform:XI}));const ZI=bI({prop:"width",transform:JI}),QI=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||dI[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:JI(t)}};return fI(e,e.maxWidth,t)}return null};QI.filterProps=["maxWidth"];const eL=bI({prop:"minWidth",transform:JI}),tL=bI({prop:"height",transform:JI}),nL=bI({prop:"maxHeight",transform:JI}),rL=bI({prop:"minHeight",transform:JI});bI({prop:"size",cssProperty:"width",transform:JI}),bI({prop:"size",cssProperty:"height",transform:JI});LI(ZI,QI,eL,tL,nL,rL,bI({prop:"boxSizing"}));const oL={border:{themeKey:"borders",transform:PI},borderTop:{themeKey:"borders",transform:PI},borderRight:{themeKey:"borders",transform:PI},borderBottom:{themeKey:"borders",transform:PI},borderLeft:{themeKey:"borders",transform:PI},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:PI},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:VI},color:{themeKey:"palette",transform:XI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:XI},backgroundColor:{themeKey:"palette",transform:XI},p:{style:II},pt:{style:II},pr:{style:II},pb:{style:II},pl:{style:II},px:{style:II},py:{style:II},padding:{style:II},paddingTop:{style:II},paddingRight:{style:II},paddingBottom:{style:II},paddingLeft:{style:II},paddingX:{style:II},paddingY:{style:II},paddingInline:{style:II},paddingInlineStart:{style:II},paddingInlineEnd:{style:II},paddingBlock:{style:II},paddingBlockStart:{style:II},paddingBlockEnd:{style:II},m:{style:AI},mt:{style:AI},mr:{style:AI},mb:{style:AI},ml:{style:AI},mx:{style:AI},my:{style:AI},margin:{style:AI},marginTop:{style:AI},marginRight:{style:AI},marginBottom:{style:AI},marginLeft:{style:AI},marginX:{style:AI},marginY:{style:AI},marginInline:{style:AI},marginInlineStart:{style:AI},marginInlineEnd:{style:AI},marginBlock:{style:AI},marginBlockStart:{style:AI},marginBlockEnd:{style:AI},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:YI},rowGap:{style:KI},columnGap:{style:UI},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:JI},maxWidth:{style:QI},minWidth:{transform:JI},height:{transform:JI},maxHeight:{transform:JI},minHeight:{transform:JI},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function iL(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=mI(n,s)||{};if(u)return u(o);return fI(o,t,(t=>{let n=gI(c,l,t);return t===n&&"string"==typeof t&&(n=gI(c,l,`${e}${"default"===t?"":_x(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:oL;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])u=cI(u,e(n,o,i,s));else{const e=fI({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=cI(u,e):u[n]=t({sx:o,theme:i,nested:!0})}else u=cI(u,e(n,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":hI(l,u)}:hI(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const aL=iL();function sL(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}aL.filterProps=["sx"];const lL=["breakpoints","palette","spacing","shape"];function uL(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Au(e,lL),s=lI(n),l=function(e=8){if(e.mui)return e;const t=EI({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=px({breakpoints:s,direction:"ltr",components:{},palette:Ll({mode:"light"},r),spacing:l,shape:Ll({},uI,i)},a);return u.applyStyles=sL,u=t.reduce(((e,t)=>px(e,t)),u),u.unstable_sxConfig=Ll({},oL,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return aL({sx:e,theme:this})},u}var cL=Object.freeze({__proto__:null,default:uL,private_createBreakpoints:lI,unstable_applyStyles:sL});function dL(t=null){const n=e.useContext(Yy);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const pL=uL();function fL(e=pL){return dL(e)}function hL(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mL({styles:e,themeId:t,defaultTheme:n={}}){const r=fL(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>hL("function"==typeof e?e(o):e))):hL(i)),se.jsx(ix,{styles:i})}const gL=["sx"];function bL(e){const{sx:t}=e,n=Au(e,gL),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:oL;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return cx(n)?Ll({},r,n):r}:Ll({},r,t),Ll({},o,{sx:i})}var yL=Object.freeze({__proto__:null,default:aL,extendSxProp:bL,unstable_createStyleFunctionSx:iL,unstable_defaultSxConfig:oL});const xL=["className","component"];function vL(e){if(e.type)return e;if("#"===e.charAt(0))return vL(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(bg(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(bg(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function _L(e,t){return e=vL(e),t=function(e,t=0,n=1){return i_(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}const wL=["value"],SL=e.createContext();function CL(e){let{value:t}=e,n=Au(e,wL);return se.jsx(SL.Provider,Ll({value:null==t||t},n))}const EL=e.createContext(void 0);function kL({value:e,children:t}){return se.jsx(EL.Provider,{value:e,children:t})}function RL({props:t,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?r_(o.defaultProps,r):o.styleOverrides||o.variants?r:r_(o,r)}({props:t,name:n,theme:{components:e.useContext(EL)}})}const ML={};function AL(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Ll({},n,{[t]:i}):i;return o?()=>a:a}return Ll({},n,t?{[t]:r}:r)}),[t,n,r,o])}function IL(e){const{children:t,theme:n,themeId:r}=e,o=dL(ML),i=$_()||ML,a=AL(r,o,n),s=AL(r,i,n,!0),l="rtl"===a.direction,u=function(e){const t=dL(),n=g_()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",o_((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}}),[o,n]),o?se.jsx(mL,{styles:o}):null}(a);return se.jsx(H_,{theme:s,children:se.jsx(Yy.Provider,{value:a,children:se.jsx(CL,{value:l,children:se.jsxs(kL,{value:null==a?void 0:a.components,children:[u,t]})})})})}function LL(e,t){return Ll({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var PL={},DL=J_;Object.defineProperty(PL,"__esModule",{value:!0});var TL=PL.alpha=YL;PL.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=$L(e),a=$L(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return HL({type:"rgb",values:s})},PL.colorChannel=void 0;var OL=PL.darken=UL;PL.decomposeColor=$L,PL.emphasize=XL;var zL=PL.getContrastRatio=function(e,t){const n=VL(e),r=VL(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};PL.getLuminance=VL,PL.hexToRgb=BL,PL.hslToRgb=GL;var NL=PL.lighten=KL;PL.private_safeAlpha=function(e,t,n){try{return YL(e,t)}catch(t){return e}},PL.private_safeColorChannel=void 0,PL.private_safeDarken=function(e,t,n){try{return UL(e,t)}catch(t){return e}},PL.private_safeEmphasize=function(e,t,n){try{return XL(e,t)}catch(t){return e}},PL.private_safeLighten=function(e,t,n){try{return KL(e,t)}catch(t){return e}},PL.recomposeColor=HL,PL.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=$L(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 qL=DL(Z_),jL=DL(Q_);function FL(e,t=0,n=1){return(0,jL.default)(e,t,n)}function BL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function $L(e){if(e.type)return e;if("#"===e.charAt(0))return $L(BL(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,qL.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,qL.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const WL=e=>{const t=$L(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};PL.colorChannel=WL;function HL(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function GL(e){e=$L(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),HL({type:s,values:l})}function VL(e){let t="hsl"===(e=$L(e)).type||"hsla"===e.type?$L(GL(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 YL(e,t){return e=$L(e),t=FL(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,HL(e)}function UL(e,t){if(e=$L(e),t=FL(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 n=0;n<3;n+=1)e.values[n]*=1-t;return HL(e)}function KL(e,t){if(e=$L(e),t=FL(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return HL(e)}function XL(e,t=.15){return VL(e)>.5?UL(e,t):KL(e,t)}PL.private_safeColorChannel=(e,t)=>{try{return WL(e)}catch(t){return e}};const JL={black:"#000",white:"#fff"},ZL={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"},QL="#f3e5f5",eP="#ce93d8",tP="#ba68c8",nP="#ab47bc",rP="#9c27b0",oP="#7b1fa2",iP="#e57373",aP="#ef5350",sP="#f44336",lP="#d32f2f",uP="#c62828",cP="#ffb74d",dP="#ffa726",pP="#ff9800",fP="#f57c00",hP="#e65100",mP="#e3f2fd",gP="#90caf9",bP="#42a5f5",yP="#1976d2",xP="#1565c0",vP="#4fc3f7",_P="#29b6f6",wP="#03a9f4",SP="#0288d1",CP="#01579b",EP="#81c784",kP="#66bb6a",RP="#4caf50",MP="#388e3c",AP="#2e7d32",IP="#1b5e20",LP=["mode","contrastThreshold","tonalOffset"],PP={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:JL.white,default:JL.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}},DP={text:{primary:JL.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:JL.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 TP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=NL(e.main,o):"dark"===t&&(e.dark=OL(e.main,i)))}function OP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Au(e,LP),i=e.primary||function(e="light"){return"dark"===e?{main:gP,light:mP,dark:bP}:{main:yP,light:bP,dark:xP}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:eP,light:QL,dark:nP}:{main:rP,light:tP,dark:oP}}(t),s=e.error||function(e="light"){return"dark"===e?{main:sP,light:iP,dark:lP}:{main:lP,light:aP,dark:uP}}(t),l=e.info||function(e="light"){return"dark"===e?{main:_P,light:vP,dark:SP}:{main:SP,light:wP,dark:CP}}(t),u=e.success||function(e="light"){return"dark"===e?{main:kP,light:EP,dark:MP}:{main:AP,light:RP,dark:IP}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:dP,light:cP,dark:fP}:{main:"#ed6c02",light:pP,dark:hP}}(t);function d(e){return zL(e,DP.text.primary)>=n?DP.text.primary:PP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ll({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(bg(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(bg(12,t?` (${t})`:"",JSON.stringify(e.main)));return TP(e,"light",o,r),TP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:DP,light:PP};return px(Ll({common:Ll({},JL),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:ZL,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const zP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function NP(e){return Math.round(1e5*e)/1e5}const qP={textTransform:"uppercase"},jP='"Roboto", "Helvetica", "Arial", sans-serif';function FP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=jP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Au(n,zP),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>Ll({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===jP?{letterSpacing:`${NP(o/t)}em`}:{},i,c),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,qP),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return px(Ll({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function BP(...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 $P=["none",BP(0,2,1,-1,0,1,1,0,0,1,3,0),BP(0,3,1,-2,0,2,2,0,0,1,5,0),BP(0,3,3,-2,0,3,4,0,0,1,8,0),BP(0,2,4,-1,0,4,5,0,0,1,10,0),BP(0,3,5,-1,0,5,8,0,0,1,14,0),BP(0,3,5,-1,0,6,10,0,0,1,18,0),BP(0,4,5,-2,0,7,10,1,0,2,16,1),BP(0,5,5,-3,0,8,10,1,0,3,14,2),BP(0,5,6,-3,0,9,12,1,0,3,16,2),BP(0,6,6,-3,0,10,14,1,0,4,18,3),BP(0,6,7,-4,0,11,15,1,0,4,20,3),BP(0,7,8,-4,0,12,17,2,0,5,22,4),BP(0,7,8,-4,0,13,19,2,0,5,24,4),BP(0,7,9,-4,0,14,21,2,0,5,26,4),BP(0,8,9,-5,0,15,22,2,0,6,28,5),BP(0,8,10,-5,0,16,24,2,0,6,30,5),BP(0,8,11,-5,0,17,26,2,0,6,32,5),BP(0,9,11,-5,0,18,28,2,0,7,34,6),BP(0,9,12,-6,0,19,29,2,0,7,36,6),BP(0,10,13,-6,0,20,31,3,0,8,38,7),BP(0,10,13,-6,0,21,33,3,0,8,40,7),BP(0,10,14,-6,0,22,35,3,0,8,42,7),BP(0,11,14,-7,0,23,36,3,0,9,44,8),BP(0,11,15,-7,0,24,38,3,0,9,46,8)],WP=["duration","easing","delay"],HP={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)"},GP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function VP(e){return`${Math.round(e)}ms`}function YP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function UP(e){const t=Ll({},HP,e.easing),n=Ll({},GP,e.duration);return Ll({getAutoHeightDuration:YP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Au(r,WP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:VP(o)} ${i} ${"string"==typeof a?a:VP(a)}`)).join(",")}},e,{easing:t,duration:n})}const KP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},XP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function JP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Au(e,XP);if(e.vars&&void 0===e.generateCssVars)throw new Error(bg(18));const s=OP(r),l=uL(e);let u=px(l,{mixins:LL(l.breakpoints,n),palette:s,shadows:$P.slice(),typography:FP(s,i),transitions:UP(o),zIndex:Ll({},KP)});return u=px(u,a),u=t.reduce(((e,t)=>px(e,t)),u),u.unstable_sxConfig=Ll({},oL,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return aL({sx:e,theme:this})},u}const ZP=JP();function QP(){const e=fL(ZP);return e[aI]||e}var eD={},tD=X(cL),nD=X(yL),rD=J_;Object.defineProperty(eD,"__esModule",{value:!0});var oD=eD.default=function(e={}){const{themeId:t,defaultTheme:n=bD,rootShouldForwardProp:r=mD,slotShouldForwardProp:o=mD}=e,i=e=>(0,cD.default)((0,iD.default)({},e,{theme:xD((0,iD.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,sD.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vD(yD(l))}=a,p=(0,aD.default)(a,fD),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=mD;"Root"===l||"root"===l?g=r:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,sD.default)(e,(0,iD.default)({shouldForwardProp:g,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,lD.isPlainObject)(e)?r=>{const o=xD({theme:r.theme,defaultTheme:n,themeId:t});return _D(e,(0,iD.default)({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,x=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=xD((0,iD.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=_D(n,(0,iD.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var r;const o=xD((0,iD.default)({},e,{defaultTheme:n,themeId:t}));return _D({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,iD.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(x.withConfig=b.withConfig),x}};eD.shouldForwardProp=mD,eD.systemDefaultTheme=void 0;var iD=rD(Hw()),aD=rD(Yw()),sD=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=hD(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Uw),lD=Kw;rD(Xw),rD(Jw);var uD=rD(tD),cD=rD(nD);const dD=["ownerState"],pD=["variants"],fD=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hD(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(hD=function(e){return e?n:t})(e)}function mD(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function gD(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const bD=eD.systemDefaultTheme=(0,uD.default)(),yD=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function xD({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vD(e){return e?(t,n)=>n[e]:null}function _D(e,t,n){let{ownerState:r}=t,o=(0,aD.default)(t,dD);const i="function"==typeof e?e((0,iD.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>_D(e,(0,iD.default)({ownerState:r},o),n)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,aD.default)(i,pD);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,iD.default)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,iD.default)({ownerState:r},o,r)):e.style;t.push(n?gD((0,sD.internal_serializeStyles)(i),n):i)}})),t}return n?gD((0,sD.internal_serializeStyles)(i),n):i}const wD=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,SD=oD({themeId:aI,defaultTheme:ZP,rootShouldForwardProp:wD}),CD=["theme"];function ED(e){let{theme:t}=e,n=Au(e,CD);const r=t[aI];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Ll({},r,{vars:null}):t&&!t.vars&&(o=Ll({},t,{vars:null}))),se.jsx(IL,Ll({},n,{themeId:r?aI:void 0,theme:o}))}const kD=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},RD={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},MD={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},AD=vS("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-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":{...RD},"&::-moz-range-track":{...RD},"&::-ms-track":{...RD},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...MD},"&::-moz-range-thumb":{...MD},"&::-ms-thumb":{...MD},"&: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"}}))),ID=({columnWidth:e,keyValue:n,isLastColumn:r,isPivot:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:s,handleBlur:l,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:f="ltr"})=>{const h=iI({translator:d.translator}),m=p({initWidth:e,columnWidth:e,initX:0}),g=r?0:1,b=o&&!c,y=()=>b?m.current.columnWidth-g:"100%",x={left:"rtl"!==f?y():void 0,right:"rtl"===f?y():void 0},v=t=>{m.current={initWidth:e,columnWidth:e,initX:null!=t?t:m.current.initX}};rI((()=>{b&&v()}),[e]);const _=e=>{const t=Math.max(e,ta.PixelsMin);m.current.columnWidth=t,a(t)},w=()=>{if(m.current.columnWidth!==m.current.initWidth){const e={type:na.Pixels,pixels:m.current.columnWidth};s(e)}else null==u||u(!1)},S=e=>{const t="rtl"===f?m.current.initWidth+m.current.initX-e.clientX:m.current.initWidth+e.clientX-m.current.initX;_(t)},C=e=>{sA(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",C),w()},E=e=>{const t="rtl"===f?m.current.initWidth+-m.current.initX-e.touches[0].clientX:m.current.initWidth+e.touches[0].clientX-m.current.initX;_(t)},k=e=>{sA(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",k),w()},R=!o&&l?e=>{if(e.key===Qi.Left||e.key===Qi.Right){sA(e);const t=5,n=e.key===Qi.Left?t:-t,r="rtl"===f?n:-n;_(m.current.columnWidth+r)}else e.key===Qi.Space||e.key===Qi.Enter?(sA(e),l(e),w()):e.key===Qi.Esc&&(sA(e),l(e),_(m.current.initWidth))}:void 0,M=h.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return t.createElement(AD,{style:x,key:n,hoverColor:i,isLastColumn:r,className:ea,"data-testid":ea,onMouseDown:e=>{sA(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",C),null==u||u(!0),v(e.clientX)},onDoubleClick:()=>{s({type:na.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(sA(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",k),null==u||u(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:l,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":M,"aria-valuemin":ta.PixelsMin,"aria-valuemax":ta.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:f})},LD=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),PD=vS(nE,{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"}))),DD=vS(LD,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),TD=vS(Nk)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),OD=vS(TE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),zD=vS($k)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ND=vS($k,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:n?"rgba(0, 0, 0, 0.05)":"transparent"}))),qD=vS("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),jD=vS("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),FD=vS(yC)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),BD=vS(ck,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),$D=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),WD=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?WD(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},HD=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?HD(t):t},GD=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===Qi.Down||n===Qi.Up){const t=e=>n===Qi.Down?WD(e):HD(e);e.preventDefault(),e.stopPropagation();let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},VD=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(n)}}:{}})))})))));let YD={};const UD=({autoFocus:e,id:r,onClick:o,itemTitle:i,icon:a,enabled:s,subMenus:l,isSubMenu:u,isActive:c,direction:d,isPagination:h})=>{const[m,g]=n(!1),b=p(null),y=f((e=>{e.stopPropagation(),g(!1)}),[g]);return t.createElement(t.Fragment,null,t.createElement(ND,{ref:l?b:null,key:r,"data-testid":`menu-item-${r}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(o&&(await o(e),YD={}),null!=l&&l.length&&(g(!0),YD[i]=g))},disabled:!s,autoFocus:e,isSubMenu:!!u,isActive:!!c,onKeyDown:GD},c?t.createElement(qD,{direction:d,isPagination:h}):null,t.createElement(jD,null,t.createElement(BD,{direction:d,isPagination:h},t.createElement(a,null)),t.createElement(FD,{variant:"body2"},i)),null!=l&&l.length?t.createElement($D,null):null),null!=l&&l.length?t.createElement(JD,{isSubMenu:!0,open:m,anchorEl:b.current,onClose:y,menuGroups:VD(l,YD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:d,isPagination:h}):null)},KD=({menuGroup:e,isSubMenu:n,direction:r,isPagination:o})=>e.map((e=>[[e.groupHeading&&t.createElement(zD,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>t.createElement(UD,me({key:e.id},e,{isSubMenu:n,direction:r,isPagination:o}))))].filter(Boolean)])),XD={appear:0,enter:0,exit:0},JD=({anchorEl:e,open:n,onClose:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:s,direction:l,isPagination:u})=>o.length?t.createElement(TD,me({className:"nebula-table-utils-head-menu",open:n,anchorEl:e,onClose:r,transitionDuration:XD,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{},{dir:l}),(({itemGroups:e,isSubMenu:n,direction:r,isPagination:o})=>e.map(((i,a)=>[KD({menuGroup:i,isSubMenu:n,direction:r,isPagination:o}),a<e.length-1?t.createElement(OD,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:o,isSubMenu:s,direction:l,isPagination:u})):null,ZD=(e,t)=>e.some((e=>t[e]>0)),QD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},eT=({open:e,qStateName:t="$",headerData:o,app:i})=>{const[a,s]=n(null),[l,u]=n(QD);return rI((()=>{e||(u(QD),s(null))}),[e]),r((()=>{if(null==i||!i.createSessionObject||!o.isDim||!e)return()=>{};let n,r=!1;const a=()=>{n&&i.destroySessionObject(n)};return(async()=>{try{var e,l,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,o),p=await i.createSessionObject(d),f=await p.getLayout(),{qStateCounts:h}=null!==(e=null===(l=f.qListObject)||void 0===l?void 0:l.qDimensionInfo)&&void 0!==e?e:{};n=null===(c=f.qInfo)||void 0===c?void 0:c.qId,r?a():(s(p),h&&u((e=>({canSelectAll:ZD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:ZD(["qSelected"],e),canSelectPossible:ZD(["qOption"],e),canSelectAlternative:ZD(["qAlternative"],e),canSelectExcluded:ZD(["qAlternative","qExcluded"],e)}))(h)))}catch(e){console.error(e)}})(),()=>{r=!0,a()}}),[e,i,o,t]),{fieldInstance:a,selectionActionsEnabledStatus:l}},tT=l(((e,t)=>se.jsx("svg",{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:se.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"})}))),nT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),rT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),oT=l(((e,t)=>se.jsx("svg",{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:se.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"})}))),iT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),aT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),sT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),lT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),uT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),cT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),dT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),pT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),fT=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})})));let hT=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const mT="/qListObjectDef",gT=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[hT.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:tT,enabled:a,isActive:!!n&&"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")),r(!1)},icon:oT,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos].label,enabled:!0,icon:sT,subMenus:[[{items:e.groupDimensionLabels.map((({label:t,enabled:n},o)=>({id:o+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(o)},enabled:n,icon:ii,isActive:e.groupDimensionPos===o})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];n[hT.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:lT,enabled:!0}]}]),n[hT.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:fT,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectAll(mT))},icon:uT,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectPossible(mT))},icon:pT,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectAlternative(mT))},icon:cT,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectListObjectExcluded(mT))},icon:dT,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clearSelections(mT))},icon:nT,enabled:l.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:aT,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:iT,enabled:!0}]}]),e.length>0&&f.push(...e)}return n[hT.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:rT,enabled:!0}]}]),f},bT=({open:e,setOpen:n,anchorRef:r,headerData:o,translator:i,interactions:a,menuAvailabilityFlags:s,shouldShowMenuIcon:l=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:b})=>{var y;const x=iI({translator:i}),{qLibraryId:v,fieldId:_,headTextAlign:w}=o,S=null==d?void 0:d.app,{fieldInstance:C,selectionActionsEnabledStatus:E}=eT({open:e,headerData:o,app:S,qStateName:null==d?void 0:d.qStateName});let k=null;if(m&&"setActiveField"in m&&void 0!==o.dimensionInfoIndex){const e=o.dimensionInfoIndex;k=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const R=f((()=>{const e=v?{qLibraryId:v,type:"dimension"}:_;if(null!=c&&c.embed){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:null==d?void 0:d.qStateName,direction:g})}}),[v,_,c,null==d?void 0:d.qStateName,g]),M=f((e=>{e.stopPropagation(),n(!1)}),[n]);return a.active?t.createElement(PD,{rightAligned:"right"===w,shouldShowMenuIcon:l,className:"nebula-table-utils-head-menu-wrapper"},l?t.createElement(DD,{height:Xi,className:Ji,"data-testid":Ji,isInteractionsActive:null!==(y=a.active)&&void 0!==y&&y},t.createElement(LD,null)):null,t.createElement(JD,{open:e,anchorEl:r.current,onClose:M,menuGroups:gT({headerData:o,translator:x,menuAvailabilityFlags:s,setOpen:n,...u,embedListbox:R,interactions:a,fieldInstance:C,selectionActionsEnabledStatus:E,anchorRef:r,focusColumnAdjuster:null==p?void 0:p.focusColumnAdjuster,setActiveFieldCallback:k,expandOrCollapseArgs:h}),direction:g,isPagination:b})):null},yT=e=>e.isDark?{background:e.color,borderColor:AR.DARK_MODE_BORDER,color:AR.DARK_MODE_TEXT,disabledColor:AR.DARK_MODE_DISABLED,iconColor:AR.DARK_MODE_TEXT}:{background:e.color,borderColor:AR.BORDER_MEDIUM,color:AR.TEXT,disabledColor:AR.DISABLED},xT=vS(nE,{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}`}))),vT=vS(wR,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),_T=vS(pE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),wT=vS(yC)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ST=({children:e,footerContainer:n,interactions:r,theme:o,paginationNeeded:a=!0})=>{const s=i((()=>yT(o.background)),[o]);if(!r.active)return null;const l=a?t.createElement(xT,{footerStyle:s},e):null;return n?_.createPortal(e,n):l},CT=d({}),ET=()=>c(CT),kT=({children:e,direction:n,pageInfo:r,handleChangeRowsPerPage:o,footerContainer:a,isSelectionMode:s,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:f,theme:h,interactions:m,rect:g,layout:b})=>{const y=(e=>!e.enabled||e.active)(p)?0:-1,x=i((()=>yT(h.background)),[h]),v=a?a.getBoundingClientRect().width:g.width,_=iI({translator:f}),w=i((()=>({direction:n,pageInfo:r,handleChangeRowsPerPage:o,footerContainer:a,isSelectionMode:s,handleChangePage:l,totalRowCount:u,totalColumnCount:c,totalPages:d,keyboard:p,translator:_,theme:h,interactions:m,rect:g,layout:b,footerStyle:x,tabIndex:y,width:v})),[n,r,o,a,s,l,u,c,d,p,_,h,m,g,b,x,y,v]);return t.createElement(CT.Provider,{value:w},e)};let RT=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),MT=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}({});const AT=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),IT=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),LT=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),PT={FirstPage:IT,PreviousPage:AT,NextPage:$D,LastPage:LT,FirstPageRTL:LT,PreviousPageRTL:$D,NextPageRTL:AT,LastPageRTL:IT},DT=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=ET(),u=n.concat("rtl"===r?"RTL":""),c=PT[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},TT=()=>{const{pageInfo:e,width:n,interactions:r}=ET(),o=0===e.page,{IconComponent:i,styledProps:a}=DT({type:RT.FirstPage,disabledCondition:o,pageNumber:0});return n<=MT.FirstPage?null:t.createElement(_T,me({},a,{disabled:!r.active}),t.createElement(i,{height:Xi}))},OT=(e,t,n=!1)=>{n&&e.key===Qi.Tab&&!e.shiftKey&&(sA(e),((e,t,n)=>{var r,o,i,a;const s=null!==(r=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!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},zT=()=>{const{pageInfo:e,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a}=ET(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=DT({type:RT.LastPage,disabledCondition:s,pageNumber:r-1}),c=n.enabled?e=>{OT(e,n,o)}:void 0;return i<=MT.LastPage?null:t.createElement(_T,me({},u,{onKeyDown:c,disabled:!a.active}),t.createElement(l,{height:Xi}))},NT=()=>{const{pageInfo:e,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a}=ET(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=DT({type:RT.NextPage,disabledCondition:s,pageNumber:e.page+1}),c=!(i>MT.FirstPage&&i>MT.LastPage)&&n.enabled?e=>{OT(e,n,o)}:void 0;return t.createElement(_T,me({},u,{onKeyDown:c,disabled:!a.active}),t.createElement(l,{height:Xi}))},qT=()=>{const{pageInfo:e,interactions:n}=ET(),r=0===e.page,{IconComponent:o,styledProps:i}=DT({type:RT.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return t.createElement(_T,me({},i,{disabled:!n.active}),t.createElement(o,{height:Xi}))},jT=()=>{const{translator:e,width:n,pageInfo:r,totalRowCount:o}=ET(),{page:i,rowsPerPage:a}=r;if(n<=MT.DisplayedRowsLabel)return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,o)}`,o.toString()]);return t.createElement(wT,{variant:"caption",dir:"ltr"},s)},FT=({name:e,value:n,options:r,handleChange:o})=>{const{layout:i,footerStyle:a,translator:s,tabIndex:l,interactions:u}=ET(),c=i.qInfo.qId,d=s.get(`NebulaTableUtils.Pagination.${e}`),p=`${e}-dropdown`,f=`${p}-label-${c}`,h={tabIndex:l,id:`${p}-${c}`,"data-testid":p,"aria-labelledby":f};return t.createElement(t.Fragment,null,t.createElement(wT,{variant:"caption",id:f},d,":"),t.createElement(vT,{footerStyle:a,size:"small",native:!0,value:n,onChange:o,inputProps:h,disabled:!u.active},r))},BT=()=>{var e;const{pageInfo:n,isSelectionMode:r,totalColumnCount:o,width:i,handleChangeRowsPerPage:a}=ET();if(!(!(null===(e=n.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&i>MT.RowsPerPage&&o<=100)||void 0===n.rowsPerPageOptions)return null;const s=t.createElement(t.Fragment,null,n.rowsPerPageOptions.map((e=>t.createElement("option",{key:e,value:e},e))));return t.createElement(FT,{name:"RowsPerPage",value:n.rowsPerPage,options:s,handleChange:e=>{null==a||a(+e.target.value)}})},$T=1e3,WT="…",HT=({totalPages:e,page:n})=>{const r=Math.min(e,$T),o=r<e&&n>500,i=o?Math.min(500+n,e):r,a=o?Math.max(0,i-$T):0,s=Array.from(Array(r).keys()).map((e=>{const n=e+a;return t.createElement("option",{key:n,value:n},n+1)}));return a>0&&s.unshift(t.createElement("option",{key:"startMoreOptions",value:WT,disabled:!0},WT)),i<e-1&&s.push(t.createElement("option",{key:"endMoreOptions",value:WT,disabled:!0},WT)),t.createElement(t.Fragment,null,s)},GT=()=>{const{pageInfo:e,width:n,totalPages:r,handleChangePage:o}=ET(),{page:i}=e;if(n<=MT.SelectPage)return null;const a=t.createElement(HT,{totalPages:r,page:i});return t.createElement(FT,{name:"SelectPage",value:i,options:a,handleChange:e=>{o(+e.target.value)}})};var VT=y((e=>t.createElement(kT,e,t.createElement(BT,null),t.createElement(GT,null),t.createElement(jT,null),t.createElement(TT,null),t.createElement(qT,null),t.createElement(NT,null),t.createElement(zT,null))));const YT=e=>t.createElement(ST,e,t.createElement(VT,e)),UT=d({}),KT=()=>c(UT),XT=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o,children:a})=>{const s=i((()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o})),[e,t,n,r,o]);return se.jsx(UT.Provider,{value:s,children:a})},JT=d({}),ZT=()=>c(JT),QT=({app:e,model:t,theme:n,embed:r,keyboard:o,translator:a,interactions:s,env:l,children:u})=>{const c=i((()=>({model:t,app:e,interactions:s,embed:r,theme:n,keyboard:o,env:l,translator:a})),[e,s,t,r,n,o,l,a]);return se.jsx(JT.Provider,{value:c,children:u})},eO=d({}),tO=()=>c(eO),nO=({children:e,...t})=>se.jsx(eO.Provider,{value:t,children:e}),rO=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:o,height:i}=(()=>{var e;const{theme:t,translator:n}=ZT(),{layoutService:r}=tO(),o=null!==(e=t.getStyle("","","fontFamily"))&&void 0!==e?e:bA;return r.hasData?r.hasLimitedData?{text:n.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:n.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:se.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:o,width:"100%",height:i},children:se.jsx("span",{style:{...kA,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},oO="/qHyperCubeDef",iO=-1,aO="PSEUDO-DIM",sO=[];for(let e=0;e<256;++e)sO.push((e+256).toString(16).slice(1));let lO;const uO=new Uint8Array(16);var cO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function dO(e,t,n){var r,o,i,a;if(cO.randomUUID&&!e)return cO.randomUUID();const s=null!==(r=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==r?r:function(){if(!lO){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");lO=crypto.getRandomValues.bind(crypto)}return lO(uO)}();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(e,t=0){return(sO[e[t+0]]+sO[e[t+1]]+sO[e[t+2]]+sO[e[t+3]]+"-"+sO[e[t+4]]+sO[e[t+5]]+"-"+sO[e[t+6]]+sO[e[t+7]]+"-"+sO[e[t+8]]+sO[e[t+9]]+"-"+sO[e[t+10]]+sO[e[t+11]]+sO[e[t+12]]+sO[e[t+13]]+sO[e[t+14]]+sO[e[t+15]]).toLowerCase()}(s)}const pO=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:dO()},fO=e=>e===iO?aO:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:pO()})(e),hO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===iO?n.columnWidthLocation=bl.Measures:n.isLeftDimension?n.columnWidthLocation=bl.Dimension:t.at(-1)===iO?n.columnWidthLocation=bl.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=bl.Pivot))},mO=e=>"string"==typeof e?e.replace(/^=+/,"").trim():e,gO=(e,t,n,r,o)=>{var i;const a=fO(n),s=e.getDimensionInfoIndex(n),l=e.isLeftDimension(s);return n===iO?{id:a,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:s,canBeResized:!1,isLeftDimension:l,isLastDimension:r,columnWidthLocation:bl.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:a,colIdx:0,label:n.qFallbackTitle,qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:null!==(i=n.qLocked)&&void 0!==i&&i,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===ia.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles.map(((e,t)=>({label:e,enabled:!o.has(mO(n.qGroupFieldDefs[t]))}))),headTextAlign:"left",dimensionInfoIndex:s,canBeResized:!1,isLeftDimension:l,isLastDimension:r,columnWidthLocation:bl.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},bO=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let o=r;var i;n.length>0&&(o=(i=r).at(-1)===iO?i.slice(0,-1):i);const a=o.length+(n.length?1:0),s=Math.max(1,n.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s),u=(e=>{const t=new Set;return e.forEach((e=>{e!==iO&&t.add(mO(e.qGroupFieldDefs[e.qGroupPos]))})),t})([...n,...o]);return n.forEach(((n,r,o)=>{const i=r===o.length-1;l[a-1][r]=gO(e,t,n,i,u)})),o.forEach(((n,r,o)=>{const i=r===o.length-1;l[r][s-1]=gO(e,t,n,i,u)})),l},yO=(e,t,n,r)=>{var o,i;const a=((e,t,n,r)=>{let o;var i;return o=0===n.length||n.includes(iO)?bO({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(bO({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&(null===(i=o.at(-1))||void 0===i||i.forEach(((t,n)=>{Array.isArray(t)?t.forEach(((t,n)=>{hO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})})):hO({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}))),o})(e,t,n,r);return{data:a,size:{x:null!==(o=null===(i=a[0])||void 0===i?void 0:i.length)&&void 0!==o?o:0,y:a.length}}};function xO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vO(e,t,n){return t=CO(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,kO()?Reflect.construct(t,n||[],CO(e).constructor):t.apply(e,n))}function _O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AO(r.key),r)}}function SO(e,t,n){return t&&wO(e.prototype,t),n&&wO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CO(e){return CO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CO(e)}function EO(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&&RO(e,t)}function kO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kO=function(){return!!e})()}function RO(e,t){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RO(e,t)}function MO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xO(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 AO(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function IO(e){return IO="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},IO(e)}var LO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:PO(e),value:PO(t),useEqualSign:n}}(n,o,i))}})),t}};function PO(e){try{return decodeURIComponent(e)}catch(t){return e}}function DO(e){if(!(this instanceof DO))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 LO.fromSearchString(t.search)}}})}function TO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}DO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},DO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=TO((t=e[r]).key),t.value?n+="=".concat(TO(t.value)):n+=t.useEqualSign?"=":"";return n};var OO,zO=function(){return SO((function e(t){_O(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}}])}(),NO=function(){return SO((function e(){_O(this,e)}),[{key:"decode",value:function(e){for(var t,n="",r=new zO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),qO=function(e){return e>=0&&e<=1114111},jO=function(e){return e.match(/[\s]/)},FO=function(){function e(){return _O(this,e),vO(this,e,arguments)}return EO(e,NO),SO(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!jO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return qO(a)?String.fromCharCode(a):"�"}}])}(),BO=function(){function e(t,n){_O(this,e),this._key=t,this._value=n}return SO(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}])}(),$O=function(){function e(){_O(this,e)}return SO(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return BO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return BO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||BO.newInstanceIfNeeded(e,t,this._value)}}])}(),WO=function(){return SO((function e(){_O(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 $O);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),HO=function(){var e,t,n,r=[],o=[],i=new WO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),GO=function(){function e(){return _O(this,e),vO(this,e,arguments)}return EO(e,NO),SO(e,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,HO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=HO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&qO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&qO(r)?String.fromCharCode(r):null}}])}(),VO=function(){function e(){return _O(this,e),vO(this,e,arguments)}return EO(e,NO),SO(e,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),qO(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),YO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(OO=document.createElement("div"));var UO=Array.prototype.indexOf,KO=[",",".","_"," "],XO=[",",".","-","_"," "],JO={width:["%"],height:["%"]},ZO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},QO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":ZO.image,"background-color":ZO.color,"border-color":ZO.color,"border-image":ZO.image,color:ZO.color,icon:ZO.image,"list-style-image":ZO.image,"outline-color":ZO.color},ez={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function tz(e,t,n){var r;if(t){if(UO)return UO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function nz(e){if(null==e)return"";var t,n=document.createTextNode(e);return OO.appendChild(n),t=OO.innerHTML,OO.removeChild(n),t}function rz(e,t,n){var r,o,i,a,s,l,u,c,d;for(e=iz(e).toLowerCase(),t=iz(t),i=0;i<ez.attr_name.length;i++)if(e.match(ez.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ez.attr_val.length;i++)if(t.toLowerCase().match(ez.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=JO[e])||(r=XO),o="",!n){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&tz(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function oz(e,t,n){var r,o,i,a,s,l,u,c,d,p;if(e=iz(e).toLowerCase(),t=iz(t),tz(e,ez.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ez.css_val.length;r++)if(t.toLowerCase().indexOf(ez.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=QO[e])||(o=ZO.default),i="",!n){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&tz(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function iz(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var s=[new GO,new VO,new FO];!a;){r=n;for(var l=0;l<s.length;l++)(i=s[l].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var az=[],sz=0;sz<255;sz++)az[sz]=sz>=48&&sz<=57||sz>=65&&sz<=90||sz>=97&&sz<=122?null:sz.toString(16);var lz=function(e){return nz(e.unsafe)},uz=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=oz(t,n[t],!0),i+=oz(t,n[t],!0),o[t]=r[t]);return e.map?o:i},cz=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=rz(i,t[i],!0),o+=rz(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function dz(e,t){throw new Error(t)}var pz={canonicalize:iz,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===IO(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?lz(e):"css"===e.context?(null!=e.map&&"object"!==IO(e.map)&&dz(this,"Invalid parameter type"),uz(e)):"attr"===e.context?(null!=e.map&&"object"!==IO(e.map)&&dz(this,"Invalid parameter type"),cz(e)):void dz(this,"Invalid parameter type")},encodeForAttr:rz,encodeForAttr2:function(e){return rz("nonsens",e,!0)},encodeForCSS:oz,encodeForHref:function(e){iz(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new DO(e),n=DO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+DO.encodeSearchParams(r)+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 n,r,o,i,a,s;for(t||(t=KO),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),tz(o,t)>=0||null==az[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),s+="\\u".concat(a).concat(r.toUpperCase())));return s},encodeForHTML:nz,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=iz(t).toLowerCase():dz(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,n=MO(null!==(t=YO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(l,u,c);return"image/svg+xml"===l?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 n=function(e){for(var t=e,n="";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 r=n.lastIndexOf("/");-1!==r&&(n=n.slice(0,r))}else if("/.."===t){t="/";var o=n.lastIndexOf("/");-1!==o&&(n=n.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),n+=a}return n}(t);return""!==n&&"/"!==n&&n}};const fz=(e,t)=>{var n;return null===(n=t.qAttrExps)||void 0===n||null===(n=n.qValues)||void 0===n?void 0:n[e]},hz=(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"}}},mz=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>r&&t&&!t.toLowerCase().includes("javascript:")&&pz.isSafeDataURL(t)?{type:cl.Image,url:t,text:e,imageSize:n,resolvedImagePosition:hz(r,a),labelStructure:o,imageBox:i}:{type:cl.Text,url:void 0,text:e,labelStructure:o},gz=(e,t,n,r)=>{if(!e.qMiniChart||null==t||!t.miniChart||!n)return{type:cl.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{var r,o;const i="global"===(null===(r=t.yAxis)||void 0===r?void 0:r.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),s=i?n.qYMin:e.qMiniChart.qMin,l=i?n.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(s),Math.abs(l));return{minY:-e,maxY:e}}return(e=>{var t,n;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(n=e.yAxis)||void 0===n?void 0:n.position)})(t)?{minY:Math.min(0,s),maxY:Math.max(0,l)}:{minY:s,maxY:l}})(e,t.miniChart,n),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:cl.MiniChart,text:r,miniChart:a}},bz=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===dl.Attribute||null==n?void 0:n.urlLabel},yz=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:cl.Link,url:pz.encodeForHref(n),text:t,labelStructure:e}}catch(n){return{type:cl.Text,url:void 0,text:t,labelStructure:e}}},xz=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{var c,d,p,f,h,m;const g=pl(t),b=s(e);return g!==cl.Image||!u[cl.Image]||null!==(c=r.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===cl.Link?((e,t,n,r,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===dl.Attribute){var a;const i=bz(null!==(a=n.url)&&void 0!==a?a:-1,e,t);return yz({labelStructure:r,text:o||i||"",url:i})}if(i===dl.Dimension){var s,l;const i=bz(null!==(s=n.urlLabel)&&void 0!==s?s:-1,e,t)||o;return r&&(r.maskedValue=i),yz({text:i,labelStructure:r,url:null!==(l=null==r?void 0:r.originalValue)&&void 0!==l?l:o})}return{type:cl.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,b):g!==cl.Indicator||!u[cl.Indicator]||null!==(p=r.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==cl.MiniChart||!u[cl.MiniChart]||null!==(h=r.anything.sense)&&void 0!==h&&null!==(m=h.isUnsupportedFeature)&&void 0!==m&&m.call(h,"qMiniChartDef")?{type:cl.Text,url:void 0,text:b,labelStructure:a}:gz(e,t,i,b):((e,t,n)=>{const{indicator:r}=null!=e?e:{};return{type:cl.Indicator,url:void 0,text:n,indicator:{applySegmentColors:null==r?void 0:r.applySegmentColors,position:null==r?void 0:r.position,showTextValues:null==r?void 0:r.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===l){var d,p;const t=null===(d=fz(null!==(p=n.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),mz({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){var f,h,m;const t=i?i.originalValue:r;if(-1===n.imageLabel)return mz({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=null!==(f=null===(h=fz(null!==(m=n.imageLabel)&&void 0!==m?m:-1,e))||void 0===h?void 0:h.qText)&&void 0!==f?f:r;return mz({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:cl.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,b,l,a)},vz=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,s=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,l=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=l?aA(l):null,c=s?aA(s):null,d=((e,t)=>e||!t?null:nA(t))(c,u);return{color:null!=d?d:c,background:u}},_z=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:_z(e,t)),e),wz=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:xA-r;let s=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;s=e.qDown+n}return Math.min(a,_z(s,e))},Sz=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentModeFeatures:d,indentLevel:p,labelStructure:f,env:h,pageInfo:m,direction:g="ltr"})=>{var b,y;const x=(!c||!u)&&"P"===e.qType,v=((e,t,n)=>{if(e!==iO){if(t){const t=pl(e.representation);return t===cl.Link||null!=n&&n.isImagesSupported&&t===cl.Image?e.representation:{type:cl.Text}}return e.representation}})(s,c,d),_=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=o===cl.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:f,representationType:pl(v),parentOrRootOriginalValue:null!==(b=null===(y=t||n)||void 0===y||null===(y=y.representation)||void 0===y||null===(y=y.labelStructure)||void 0===y?void 0:y.originalValue)&&void 0!==b?b:""}),w=xz({cell:{...e,qText:_},representationProperties:v,attrExprInfoIndex:l,env:h,labelStructure:f,direction:g,enabledFeatures:{[cl.Image]:h.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cl.Indicator]:h.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),S={id:pO(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:wz(e,o,i,r,u,m),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!(null==t||!t.isTotal),isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:x,expressionColor:vz(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:x?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:w,...void 0!==p&&{indentLevel:p}};return t&&(t.children[S.mainAxisPageCoord-t.mainAxisPageCoord]=S),S},Cz=(e,t,n,r,o,i,a,s,l)=>{const{isIndentModeEnabled:u,indentModeFeatures:c}=o;if(!t.length)return e;let d=0;return function t(p,f,h,m=0,g=-1){e[m]||(e[m]={}),u&&g++;const b=o.leftDimensionInfoIndexes.indexOf(iO);h.forEach(((h,y)=>{var x,v;const _={originalValue:null!==(x=h.qText)&&void 0!==x?x:"",maskedValue:"",delimeter:"-",suffix:""};d+=0===y?0:1;const w=n.qTop-r.page*r.rowsPerPage,S=Math.max(0,w+d-h.qUp),C=n.qTop+d-h.qUp;if(u){var E,k;if(o.hasPseudoDimOnLeft&&g<=b)if(_.originalValue=null!==(E=h.qText)&&void 0!==E?E:"",_.maskedValue=null!==(k=h.qText)&&void 0!==k?k:"","N"===h.qType||"U"===h.qType||"T"===h.qType)"U"===h.qType&&(_.originalValue=o.getNullValueText()),g<b&&(_.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===h.qType){var R,M,A,I,L,P,D,T;_.originalValue=null!==(R=null===(M=f||p)||void 0===M||null===(M=M.representation.labelStructure)||void 0===M?void 0:M.originalValue)&&void 0!==R?R:"",_.maskedValue=null!==(A=null===(I=f||p)||void 0===I||null===(I=I.representation.labelStructure)||void 0===I?void 0:I.originalValue)&&void 0!==A?A:"",_.suffix=null!==(L=h.qText)&&void 0!==L?L:"";const e=h.qSubNodes;h={...null===(P=f||p)||void 0===P?void 0:P.ref,...h.qText?{qText:h.qText}:{},qSubNodes:e},g=null!==(D=null===(T=f||p)||void 0===T?void 0:T.indentLevel)&&void 0!==D?D:0}"U"===h.qType&&(_.originalValue=o.getNullValueText())}let O=m;u&&(O=b>=1&&g>=b?g+1:g,0===g&&0===b&&0===h.qSubNodes.length&&(O=0));const z=null===(v=e.at(m))||void 0===v?void 0:v[S],N=u&&void 0===(null==z?void 0:z.ref.qText)||!z?Sz({node:h,parent:f,root:p,x:O,y:C,pageY:S,layoutService:o,dimensionInfo:i[O],attrExprInfoIndex:a[O],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentModeFeatures:c,indentLevel:g},env:s,pageInfo:r,labelStructure:_,direction:l}):e[m][S];if(e[m][S]=N,h.qSubNodes.length){const e=u?0:m+1;t(p||N,N,h.qSubNodes,e,g)}}))}(null,null,t,0,-1),e},Ez=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r.at(n+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},kz=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Rz=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=Cz(e.grid,l,u,n,r,o,i,a,s);Ez(c,n.rowsOnCurrentPage);const d=kz(c,r);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},Mz=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const s=e.qTop-r.page*r.rowsPerPage+n,l=e.qLeft+i;Array.isArray(o[s])||(o[s]=[]);const u="U"===t.qType;o[s][l]=null!==(a=o[s][l])&&void 0!==a?a:{id:pO(),ref:t,isNull:u}}))})),o},Az=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return null!=r&&r.length?Mz({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},Iz=(e,t,n,r,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c,indentModeFeatures:d}=r;if(!t.length)return e;let p=0;!function t(a,f,h,m=0){e[m]||(e[m]={}),h.forEach(((h,g)=>{var b;p+=0===g?0:1;const y=n.qLeft+p-h.qUp,x=null!==(b=e[m][y])&&void 0!==b?b:Sz({node:h,parent:f,root:a,x:y,y:m,pageY:m,layoutService:r,dimensionInfo:o[m],attrExprInfoIndex:i[m],isLeftColumn:!1,...c&&{isIndentModeEnabled:c,indentModeFeatures:d},env:s,pageInfo:l,direction:u});e[m][y]=x,h.qSubNodes.length&&t(a||x,x,h.qSubNodes,m+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Lz=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=Iz(e.grid,u,c,n,r,o,i,a,s,l);Ez(d,n.size.x);const p=kz(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},Pz=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),Dz=(e,t)=>{const{env:r}=ZT(),{direction:o}=KT(),{layoutService:a,effectivePropertiesService:s}=tO(),{qPivotDataPages:l,pageInfo:u}=KT(),[c,d]=n(null),p=((e,t,n)=>i((()=>({left:e.map(Pz),top:t.map(Pz),measures:n.map(Pz)})),[n,e,t]))(e,t,a.visibleMeasureInfo),h=i((()=>yO(a,s,t,e)),[a,s,t,e]),m=f((()=>l.slice(1).reduce(((e,t)=>Az({prevData:e,dataPage:t,pageInfo:u})),((e,t)=>{const{qData:n,qArea:r}=e;return Mz({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(l[0],u))),[l,u]),g=f((()=>l.slice(1).reduce(((e,n)=>Lz({prevData:e,nextDataPage:n,layoutService:a,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:h.size.y,env:r,pageInfo:u,direction:o})),((e,t,n,r,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=Iz([],u,l,t,n,r,o,i,a,s);Ez(c,t.size.x);const d=kz(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(l[0],a,t,p.top,h.size.y,r,u,o))),[l,a,t,p.top,h.size.y,r,u,o]),b=f((()=>l.slice(1).reduce(((t,n)=>Rz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:a,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})),((e,t,n,r,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=Cz([],l,s,n,t,r,o,i,a);Ez(u,n.rowsOnCurrentPage);const c=kz(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(l[0],a,u,e,p.left,r,o))),[l,a,u,e,p,r,o]),[y,x]=n((()=>m())),[v,_]=n((()=>g())),[w,S]=n((()=>b()));rI((()=>{x(m())}),[m]),rI((()=>{_(g())}),[g]),rI((()=>{S(b())}),[b]),rI((()=>{c&&c.forEach((n=>{x((e=>Az({prevData:e,dataPage:n,pageInfo:u}))),_((e=>Lz({prevData:e,nextDataPage:n,layoutService:a,visibleTopDimensionInfo:t,attrExprInfoIndexes:p.top,headerRows:h.size.y,env:r,pageInfo:u,direction:o}))),S((t=>Rz({prevData:t,nextDataPage:n,pageInfo:u,layoutService:a,visibleLeftDimensionInfo:e,attrExprInfoIndexes:p.left,env:r,direction:o})))}))}),[c]);const C=f((e=>{d(e)}),[]);return{headersData:h,measureData:y,topDimensionData:v,leftDimensionData:w,attrExprInfoIndexes:p,nextPageHandler:C}},Tz=Math.sqrt(1e4),Oz=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/ta.PixelsMin)}),zz=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Tz),r=Math.ceil(e.qHeight/Tz);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Tz,qTop:e.qTop+n*Tz,qWidth:Math.min(Tz,e.qWidth-o*Tz),qHeight:Math.min(Tz,e.qHeight-n*Tz)});return t};function Nz({nextPageHandler:e}){const{model:t}=ZT(),{pageInfo:n}=KT(),{layoutService:r}=tO(),o=(e=>{const t=p(e);return t.current=e,t})(n.page),a=t,s=f((async(e,t)=>{await(null==a?void 0:a.collapseLeft(oO,e,t,!1))}),[a]),l=f((async(e,t)=>{await(null==a?void 0:a.collapseTop(oO,e,t,!1))}),[a]),u=f((async(e,t)=>{await(null==a?void 0:a.expandLeft(oO,e,t,!1))}),[a]),c=f((async(e,t)=>{await(null==a?void 0:a.expandTop(oO,e,t,!1))}),[a]),d=f((async t=>{if(null!=a&&a.getHyperCubePivotData&&0!==t.length)try{const r=await a.getHyperCubePivotData(oO,t.reduce(((e,t)=>[...e,...zz(t)]),[]));o.current===n.page&&e(r)}catch(e){console.error(e)}}),[a,e,n,o]),h=f(((e,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case bl.Dimension:c=[{qPath:`${oO}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case bl.Measures:if(o)c=s.map(((e,t)=>({qPath:`${oO}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${oO}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case bl.Pivot:c=[{qPath:`${oO}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}}));null==t||t.applyPatches(d,!0)}),[t,r]),m=f((async e=>{await(null==a?void 0:a.applyPatches([{qPath:`${oO}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[a,r]);return i((()=>({collapseLeft:s,collapseTop:l,expandLeft:u,expandTop:c,applyColumnWidth:h,applyIndentModeColumnWidth:m,fetchPages:d})),[s,l,u,c,h,m,d])}const qz=(e,t,n)=>(r,o)=>{if("P"===r)return iO;const i=t[n+o];return e[i]},jz=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},Fz=d({}),Bz=()=>c(Fz),$z=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=tO(),{qPivotDataPages:r}=KT();return i((()=>{var o,i,a,s;const l=jz(null!==(o=null===(i=r[0])||void 0===i?void 0:i.qLeft)&&void 0!==o?o:[]),u=jz(null!==(a=null===(s=r[0])||void 0===s?void 0:s.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:l.map(qz(n,t,0)),visibleTopDimensionInfo:u.map(qz(n,t,e))}}),[n,t,e,r])})(),{headersData:r,measureData:o,topDimensionData:a,leftDimensionData:s,attrExprInfoIndexes:l,nextPageHandler:u}=Dz(t,n),c=Nz({nextPageHandler:u}),d=i((()=>({gridSectionsData:{headersData:r,topDimensionData:a,leftDimensionData:s,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:l,dataModel:c})),[t,n,r,o,a,s,l,c]);return se.jsx(Fz.Provider,{value:d,children:e})},Wz=18,Hz=.75,Gz=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===cl.Image},Vz=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&t.indentModeFeatures.isImagesSupported&&n.type===cl.Image,Yz=e=>void 0===e?yA:e,Uz=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Kz=e=>Uz(e,ta.PixelsDefault),Xz=(e,t)=>Uz(e,ta.PercentageDefault)*t/100,Jz=(e,t,n)=>{switch(null==t?void 0:t.type){case na.Pixels:return Kz(t.pixels);case na.Percentage:return Xz(t.percentage,e);case na.FitToContent:case na.Auto:default:return n}},Zz=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{var u;const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:d}}}=t,{id:p,colIdx:f,qApprMaxGlyphCount:h,isLeftDimension:m}=s,g=d.find((e=>e.cId===p)),b={width:24,...null==g||null===(u=g.representation)||void 0===u?void 0:u.imageBox};if(!m)return e+0;if(p===aO)return e+0;const y=Vz({isLeftColumn:m,layoutService:t,representation:(null==g?void 0:g.representation)||{type:cl.Text}})?b.width+8+4:r(h),x=!n.qAlwaysFullyExpanded&&f<c-1?21:0;let v=0;if(o&&i&&a){v=i("- ")+a}return Math.max(e,24*l+Wz+x+y+v)}),0),Qz=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*Wz;return Math.max(e,o+t(r.qFallbackTitle))}),0),eN=(e,t,n,r)=>{const o=100*e/t,i=r*Hz*(o/100),a=n*(o/100);return Math.min(a,i)},tN=(e,t,n,r)=>r*(n/100)*(100*e/t/100),nN=(e,t)=>e.some((e=>e>=t*Hz)),rN=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*Hz,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,Zz({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,Qz(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===aO)),y=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===na.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+Wz+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const n=Math.min(d,Qz(e.visibleMeasureInfo,l,!0));g=Math.min(d,Zz({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);c=[Math.max(y,r-f),f]}else c=[Math.max(y,h-f),f];const x=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:v}=e;i&&i<=d&&(v.type=na.Pixels,v.pixels=i);return[na.Pixels,na.Percentage].includes(v.type)||nN(c,o)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=nN(e,n);l===na.Auto&&d&&(o>i?o-=i:i-=o),l===na.Pixels&&u&&(o=eN(e[0],s,u,n),i=eN(e[1],s,u,n)),l===na.Percentage&&c&&(o=tN(e[0],s,c,n),i=tN(e[1],s,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,v,o,f):{leftGridWidth:x,leftGridColumnWidths:c,leftGridFullWidth:x}};function oN({tableWidth:e}){const t=e*Hz,{styleService:r,layoutService:o,effectivePropertiesService:i}=tO(),{translator:a}=ZT(),{gridSectionsData:{headersData:s}}=Bz(),{measureText:l}=QA(r.header),{estimateWidth:u,measureText:c}=QA({...r.dimensionValues,fontWeight:Yz(r.dimensionValues.fontWeight)}),{measureText:d}=QA({...r.dimensionValues,...r.measureLabels}),p=f(((n,r)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=o,b=(t=0)=>h.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=d(r)+Wz,a=Math.max(i,t);return Math.max(n,m?a:Jz(e,o,a))}),0),y=e=>s.data.reduce(((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===aO)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?20:0;return Wz+l(t)+20+r})(r);return Math.max(o,t)}),0);let x=0,v=s.data.at(-1);m&&s.size.x>1&&v&&v[0]&&(v=v[0]);const _=v.map(((a,l)=>{let c=Wz;if(m&&1!==s.size.x||!n||void 0===r||r!==a.colIdx){let t;a.columnWidthLocation===bl.Pivot?t=m?void 0:f:a.columnWidthLocation===bl.Dimension&&({columnWidth:t}=a);let n=0;if(a.isLeftDimension)if(a.id===aO)n=b();else{const e=y(l),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r,dimensionInfoIndex:a}=e,s=o.getDimensionInfo(a);if(Gz(s))return ta.PixelsDefault;const l=!i.qAlwaysFullyExpanded&&r&&t<p-1?21:0;return Wz+u(n)+l})(a,l);n=Math.max(e,t),m&&!g&&l+1===p&&a.columnWidthLocation===bl.Dimension&&s.size.x>1&&(n=e)}else n=y(l),a.columnWidthLocation===bl.Measures&&(n=b(n));m&&1===s.size.x&&(t=o.indentModeColumnWidth),c=m&&!g&&s.size.x>1?n:Jz(e,t,n)}else c=m?Math.min(t,n):n;return x+=c,c}));return m&&s.size.x>1?rN({layoutService:o,effectivePropertiesService:i,headersData:s,columnWidths:_,tableWidth:e,widthOverride:n,measureTextForHeader:l,estimateWidthForDimensionValue:u,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:a}):{leftGridWidth:Math.min(t,x),leftGridColumnWidths:_,leftGridFullWidth:x}}),[e,s,o,t,l,d,u,c,a,i]),[h,m]=n(p);rI((()=>{m(p())}),[p]);const g=f(((e,t)=>{m(p(e,t))}),[p]);return{...h,overrideLeftGridWidth:g}}function iN({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:o}=tO(),{visibleDimensionsInfo:{visibleTopDimensionInfo:a}}=Bz(),{layout:{qHyperCube:{qNoOfLeftDims:s,qEffectiveInterColumnSortOrder:l}},size:u,visibleMeasureInfo:c}=o,{estimateWidth:d,measureText:p}=QA(r.measureValues),{estimateWidth:h}=QA({...r.dimensionValues,fontWeight:Yz(r.dimensionValues.fontWeight)}),m=e-n-1,g=a.at(-1),b=g===iO,y=l.length-s>a.length?21:0,x=i((()=>{const e=b?c:[g],t=u.x/e.length,n=[],r=[];let o=m;const i=(e,r)=>{n[e]=Math.min(ta.PixelsMax,Math.max(ta.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case na.Pixels:i(t,Kz(o));break;case na.Percentage:i(t,Xz(a,m));break;case na.FitToContent:i(t,((e,t,n)=>n?ta.PixelsDefault:Wz+(b?Math.max(d(e),p(t)):Math.max(Math.max(...c.map((e=>d(e.qApprMaxGlyphCount)))),h(e)+y)))(s,l,Gz(e)));break;case na.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(ta.AutoMinPivot,i)}))}return n}),[b,c,g,u.x,m,d,p,h,y]),v=i((()=>{if(b){const e=c.reduce(((e,t,n)=>e+x[n]),0);return e/c.length}return x[0]}),[b,x,c]),_=parseFloat((t/o.size.x).toFixed(12)),w=f((e=>(b&&void 0!==e?x[o.getMeasureInfoIndexFromCellIndex(e,!0)]:v)-_),[b,x,o,v,_]),S=u.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,m),getRightGridColumnWidth:w}}const aN=`scrollable-container--${xl.TopGrid}`,sN=`scrollable-container--${xl.LeftGrid}`,lN=`scrollable-container--${xl.DataGrid}`,uN=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},cN=(e,t)=>e>t?vl.Forward:e<t?vl.Backward:vl.None,dN=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:s})=>{const{direction:l}=KT();r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=o(),p=e=>{const t=e.target;r.scrollLeft=t.scrollLeft,a(e),null==i||i(e)},f=e=>{const t=e.target;r.scrollTop=t.scrollTop,a(e),null==i||i(e)},h=r=>{var o,s,p;const f=r.target,h=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(f,l);null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:h,scrollTop:f.scrollTop}),u.scrollLeft=h,null===(s=e.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(h)})),c.scrollTop=d.scrollTop,null===(p=t.current)||void 0===p||p.forEach((e=>{null==e||e.scrollTo(f.scrollTop)})),a(r),null==i||i(r)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),s.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[a,i,s,e,t,n,o,l])},pN=()=>{const{interactions:e}=ZT(),t=p(null),o=p(null),i=p(null),a=p(null),s=p([]),l=p([]),c=p(null),{scrollbarsDimensions:{verticalScrollbarWidth:d,horizontalScrollbarHeight:h},resetHorizontalScrollbarHeight:m}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[o,i]=n(0),[a,s]=n(0);return u((()=>{(e.current||r.current)&&i(Math.max(uN(e.current).width,uN(r.current).width))})),u((()=>{(t.current||r.current)&&s(Math.max(uN(t.current).height,uN(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a},resetHorizontalScrollbarHeight:()=>{s(0)}}})({topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=KT(),{downloadService:l,viewService:c,layoutService:d}=tO(),p=f((()=>{var o,i,a,s;const l={left:0,top:0};null===(o=e.current)||void 0===o||o.scrollTo(l),null===(i=t.current)||void 0===i||i.scrollTo(l),null===(a=n.current)||void 0===a||a.scrollTo(l),null===(s=r.current)||void 0===s||s.scrollTo(l)}),[e,t,n,r]);u((()=>{p()}),[s.page,p]),u((()=>{d.triggerdByExpandOrCollapse||p()}),[d,p]),u((()=>{if(d.triggerdByExpandOrCollapse){var e,t,n,s,l,u,c;const d=null!==(e=null===(t=r.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==e?e:0,p=null!==(n=null===(s=r.current)||void 0===s?void 0:s.scrollTop)&&void 0!==n?n:0;null===(l=i.current)||void 0===l||l.forEach((e=>{null==e||e.scrollTo(p)})),null===(u=o.current)||void 0===u||u.forEach((e=>{null==e||e.scrollTo(d)})),null===(c=a.current)||void 0===c||c.scrollTo({scrollTop:p,scrollLeft:d})}}),[d,r,a,i,o]),u((()=>{(l.isDownloadedAsPDForImage||d.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=c.scrollTop,r.current.scrollLeft=c.scrollLeft,n.current.scrollLeft=c.leftGridScrollLeft,t.current.scrollTop=c.topGridScrollTop)}),[c,l,d,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:s,leftGridRef:l,dataGridRef:c}});const{trackScrollDirection:g,scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:y}}=(()=>{const e=p(vl.None),t=p(vl.None),n=p({prevScrollTop:0,prevScrollLeft:0});return{trackScrollDirection:f((r=>{if(r instanceof WheelEvent&&(e.current=cN(r.deltaY,0),t.current=cN(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const o=r.target;e.current=cN(o.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=o.scrollTop,t.current=cN(o.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=o.scrollLeft}}),[e,t,n]),scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),x=(()=>{const{viewService:e}=tO();return f((t=>{const n=t.target,r=t.currentTarget,o=n.dataset.key;o===sN&&(e.leftGridScrollLeft=r.scrollLeft),o===lN&&(e.scrollLeft=r.scrollLeft),o===aN&&(e.topGridScrollTop=r.scrollTop),o!==sN&&o!==lN||(e.scrollTop=r.scrollTop)}),[e])})(),v={gridRefs:{topGridRef:s,leftGridRef:l,dataGridRef:c},getWrapperElements:f((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:o.current,leftGridWrapperElement:i.current,dataGridWrapperElement:a.current})),[t,o,i,a]),updateViewService:x,trackScrollDirection:g,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:o,updateViewService:i,trackScrollDirection:a,interactions:s})=>{r((()=>{const{headerGridWrapperElement:r,topGridWrapperElement:i,leftGridWrapperElement:l,dataGridWrapperElement:u}=o(),c=e=>{r.scrollLeft+=e.deltaX,r.scrollTop+=e.deltaY,l.scrollLeft=r.scrollLeft,i.scrollTop=r.scrollTop,a(e)},d=e=>{var o,i;l.scrollTop+=e.deltaY,null===(o=t.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(l.scrollTop)})),r.scrollLeft+=e.deltaX,l.scrollLeft=r.scrollLeft,u.scrollTop=l.scrollTop,null===(i=n.current)||void 0===i||i.scrollTo({scrollTop:l.scrollTop}),a(e)},p=t=>{var o,s;i.scrollLeft+=t.deltaX,null===(o=e.current)||void 0===o||o.forEach((e=>{null==e||e.scrollTo(i.scrollLeft)})),r.scrollTop+=t.deltaY,i.scrollTop=r.scrollTop,u.scrollLeft=i.scrollLeft,null===(s=n.current)||void 0===s||s.scrollTo({scrollLeft:i.scrollLeft}),a(t)},f=r=>{var o,s,c;u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,null===(o=n.current)||void 0===o||o.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),i.scrollLeft=u.scrollLeft,null===(s=e.current)||void 0===s||s.forEach((e=>{null==e||e.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,null===(c=t.current)||void 0===c||c.forEach((e=>{null==e||e.scrollTo(u.scrollTop)})),a(r)};return r.addEventListener("wheel",c),l.addEventListener("wheel",d),i.addEventListener("wheel",p),u.addEventListener("wheel",f),s.scroll||setTimeout((()=>{r.removeEventListener("wheel",c),l.removeEventListener("wheel",d),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{r.removeEventListener("wheel",c),l.removeEventListener("wheel",d),i.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[a,i,s,e,t,n,o])})(v),dN(v),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:o,leftGridWrapperRef:i,dataGridWrapperRef:a},gridRefs:{topGridRef:s,leftGridRef:l,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:b,horizontalScrollDirection:y},scrollbarsDimensions:{verticalScrollbarWidth:d,horizontalScrollbarHeight:h,resetHorizontalScrollbarHeight:m}}},fN=()=>{const{layoutService:e}=tO(),{rect:t,pageInfo:n}=KT();return i((()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}}),[t,e,n.shouldShowPagination])},hN=({children:e,style:t})=>se.jsx("div",{"data-testid":"fullSize",style:t,children:e}),mN=({children:e,style:t})=>{const{direction:n}=KT();return se.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},gN=e=>e&&`scrollable-container--${e}`,bN=({children:e,style:t,origin:n},r)=>{const{interactions:o}=ZT(),i=o.scroll?t:{overflow:"hidden"};return se.jsx("div",{"data-testid":"scrollable","data-key":gN(n),style:i,ref:r,children:e})};var yN=t.forwardRef(bN);const xN=({children:e,style:t})=>{const{direction:n}=KT();return se.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var vN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function _N(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||vN(r)&&vN(o)))return!1;var r,o;return!0}function wN(e,t){var n;void 0===t&&(t=_N);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var SN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function CN(e){cancelAnimationFrame(e.id)}function EN(e,t){var n=SN();var r={id:requestAnimationFrame((function o(){SN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var kN=-1;function RN(e){if(void 0===e&&(e=!1),-1===kN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),kN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return kN}var MN=null;function AN(e){if(void 0===e&&(e=!1),null===MN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?MN="positive-descending":(t.scrollLeft=1,MN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),MN}return MN}var IN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function LN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,wd(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:wd(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=r._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;p[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(AN()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&CN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=EN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}_d(t,e),t.getDerivedStateFromProps=function(e,t){return PN(e,t),b(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=RN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),x=s(this.props,this._instanceProps)>f?b:0,v=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,v):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,x):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(AN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CN(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?IN:p,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,x=e.useIsScrolling,v=e.width,_=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],C=w[1],E=this._getVerticalRangeToRender(),k=E[0],R=E[1],M=[];if(r>0&&b)for(var A=k;A<=R;A++)for(var I=S;I<=C;I++)M.push(h(t,{columnIndex:I,data:d,isScrolling:x?_:void 0,key:f({columnIndex:I,data:d,rowIndex:A}),rowIndex:A,style:this._getItemStyle(A,I)}));var L=a(this.props,this._instanceProps),P=s(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ll({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(u||c||"div",{children:M,ref:l,style:{height:L,pointerEvents:_?"none":void 0,width:P}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,x=m.scrollUpdateWasRequested,v=m.verticalScrollDirection;this._callOnScroll(b,y,g,v,x)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(x),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var PN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},DN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},TN=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},ON=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},zN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?NN(e,t,n,i,0,r):qN(e,t,n,Math.max(0,i),r)},NN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=ON(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},qN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&ON(e,t,r,n).offset<o;)r+=a,a*=2;return NN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},jN=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=ON(e,t,n,i),u="column"===e?TN(t,i):DN(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=c+s?"auto":"center"),r){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}},FN=LN({getColumnOffset:function(e,t,n){return ON("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return zN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=ON("column",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ON("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:DN,getEstimatedTotalWidth:TN,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return jN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return jN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return ON("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return zN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=ON("row",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ON("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),BN=function(e,t){return e};function $N(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,wd(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:wd(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=wN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=wN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=wN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(AN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&CN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=EN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}_d(t,e),t.getDerivedStateFromProps=function(e,t){return WN(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?RN():0:l.scrollHeight>l.clientHeight?RN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(AN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?BN:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=e.useIsScrolling,x=e.width,v=this.state.isScrolling,_="horizontal"===o||"horizontal"===f,w=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],E=S[1],k=[];if(u>0)for(var R=C;R<=E;R++)k.push(h(t,{data:c,key:p(R,c),index:R,isScrolling:y?v:void 0,style:this._getItemStyle(R)}));var M=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Ll({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(s||l||"div",{children:k,ref:a,style:{height:_?"100%":M,pointerEvents:v?"none":void 0,width:_?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(x),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var WN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},HN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},GN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=HN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},VN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&HN(e,n,t).offset<r;)n+=i,i*=2;return GN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},YN=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},UN=$N({getItemOffset:function(e,t,n){return HN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:YN,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=HN(e,t,o),p=YN(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?GN(e,t,o,0,n):VN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=HN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=HN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KN(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var XN=["style"],JN=["style"];function ZN(e,t){var n=e.style,r=Au(e,XN),o=t.style,i=Au(t,JN);return!KN(n,o)&&!KN(r,i)}const QN=10,eq=(e,t)=>e.current===vl.Backward?t:0,tq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e.at(o);if(void 0===n||void 0===n.at(t))return!0}return!1},nq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,rq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(tq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&nq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},oq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,u=n.current===vl.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return rq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},iq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=eq(n,QN),u=Math.max(r-l,0);return{startLeft:u,endLeft:u+Math.min(i+QN,s-u),pageTop:o,qHeight:a}})(r,o,n),u=rq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...oq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},aq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},sq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,lq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(aq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+s,qWidth:r,qHeight:1};void 0!==e&&sq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},uq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=eq(n,QN),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+QN,e.rowsOnCurrentPage-l),qLeft:r,qWidth:i}})(e,r,n),l=lq({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===vl.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=lq({startTop:r,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},cq=async(e,t,n,r,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==vl.None&&(p=uq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==vl.None&&(f=iq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===vl.None&&a.current===vl.None&&(p=lq({measureData:n,pageInfo:r,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},dq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(cq,100),pq=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(cq,75),fq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),hq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=KT(),{styleService:{grid:{border:l,divider:u}}}=tO();return se.jsx("div",{style:{...e,...EA,...AA(n,r,l,s,o),...LA({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},mq=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i,indentModeFeatures:a}}=tO(),s=o&&i&&a.isImagesSupported;return se.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!s&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},gq=e=>{const{type:t,imageSize:n}=e;return t!==cl.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},bq=e=>"number"==typeof e&&!Number.isNaN(+e),yq=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,xq=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),vq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),_q=l(((e,t)=>se.jsxs("svg",{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:[se.jsx("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"}),se.jsx("use",{fillRule:"evenodd"})]}))),wq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Sq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Cq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Eq=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M2 7h12v2H2z"})}))),kq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Rq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Mq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Aq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Iq=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),Lq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Pq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Dq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Tq={m:Iq,"ï":Mq,R:l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),S:Lq,T:Pq,U:Dq,P:Rq,Q:Cq,"è":l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),"¢":wq,"©":_q,"23F4":Sq,2013:Aq,"&":kq,add:xq,"minus-2":Eq,dot:vq},Oq=({size:e,iconKey:n,color:r,pvStyle:o})=>{const i=n&&Tq[n];return i&&t.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...o}},t.createElement(i,{style:{height:e}}))},zq=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),Nq=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},qq=(e,t)=>{const n=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),r=n.some((e=>!bq(e)));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!bq(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},jq=(e,t,n)=>{const r={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 n=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return s&&$R(e.localPaletteColors[t].color).blend($R(s.color),s.t)},Fq=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort(((e,t)=>e.value-t.value)),e.limits=n.map((e=>({...e,value:zq(t,e.value)})))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map(((e,t)=>({color:Nq(r,t,n)})))),r},Bq=(e,t,n,r)=>{const o=Fq(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=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>=r&&t<i){n=jq(e,a,t);break}r=i}return n})(o,t);return a},$q=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=qq(e,t),o=Math.abs(t);return{min:null!=n?n:t-o,max:null!=r?r:t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!bq(t))return 0;let a=n&&bq(n)?Math.min(n,t):0;const s=r.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},Wq=e=>"flex-start"===e?"flex-end":"flex-start",Hq=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=$q(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var n,r,o;return!(!e||0===e.length||!(null!==(n=null===(r=e[t])||void 0===r?void 0:r.gradient)&&void 0!==n?n:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,n.limitPaletteColorIndex))return Nq(o,n.limitPaletteColorIndex,r);const a=zq(n.limitRange,t);return Bq(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:l}=e;let u=(null==l?void 0:l.position)||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},Gq=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=tO(),{theme:o}=ZT(),{direction:i}=KT(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=null!=s?s:{},c=Hq(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},b=parseInt(d||gA,10),{iconKey:y,color:x,position:v}=c||{},_={display:"flex",paddingTop:2};return l?se.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:null==n?void 0:n.overflow,color:u?x:null==n?void 0:n.color},children:["left"===v&&Oq({size:b,iconKey:y,color:x,pvStyle:_}),se.jsx("span",{style:{paddingTop:4,overflow:null==n?void 0:n.overflow,textOverflow:null==n?void 0:n.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===v&&Oq({size:b,iconKey:y,color:x,pvStyle:_})]}):(_.paddingTop=5,Oq({size:b,iconKey:y,color:x,pvStyle:_}))},Vq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Yq=l(((e,t)=>se.jsx("svg",{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:se.jsx("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"})}))),Uq=e=>{var t;return!(null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t||!t.includes(ea))},Kq=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);"N"===(null==n?void 0:n.ref.qType)&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}};const Xq=d({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),Jq=()=>c(Xq),Zq=({children:e,selections:t})=>{const n=function(e){var t,n,o;const{updatePageInfo:a}=KT(),s=e.isActive(),[l,u]=m(Kq,{engineSelectedCells:null,selectedField:null,activeSelection:null});r((()=>{const t=()=>{u({type:"clearSelections"})},n=()=>{t(),a({page:0})};return e.on("deactivated",t),e.on("canceled",t),e.on("confirmed",n),e.on("cleared",t),()=>{e.removeListener("deactivated",t),e.removeListener("canceled",t),e.removeListener("confirmed",n),e.removeListener("cleared",t)}}),[e,a]);const c=f((async()=>{var t,n,r;if(!l.activeSelection)return;1===l.activeSelection.clientSelectedCells.size&&(n=l.engineSelectedCells,(r=l.activeSelection).clientSelectedCells.forEach(((e,t)=>{null!=n&&n.has(t)&&(r.clientSelectedCells.delete(t),n.delete(t))})));const o=new Map([...null!==(t=l.engineSelectedCells)&&void 0!==t?t:new Map,...l.activeSelection.clientSelectedCells]);try{u({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[oO,Array.from(o,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),u({type:"mouseup",payload:{engineSelectedCells:l.engineSelectedCells}})}}),[l,e]);r((()=>{if(l.activeSelection)return document.addEventListener("mouseup",c),()=>{document.removeEventListener("mouseup",c)}}),[c,l.activeSelection]);const d=f(((e,t)=>n=>{const r=t(e);Uq(n)||(e=>{var t;return null!==(null===(t=e.target)||void 0===t?void 0:t.closest("[data-prevent-selection]"))})(n)||(e=>{var t;return"A"===(null===(t=e.target)||void 0===t?void 0:t.tagName)})(n)||!(e=>1===e.buttons)(n)||!r||u({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}})}),[]),p=f((t=>async()=>{l.activeSelection&&(e.isActive()||await e.begin([oO]),u({type:"mouseover",payload:{index:t}}))}),[l.activeSelection,e]),h=f((e=>{var t,n;return!(!(null!==(t=l.engineSelectedCells)&&void 0!==t&&t.size||null!==(n=l.activeSelection)&&void 0!==n&&n.clientSelectedCells.size)||!l.selectedField||e.selectionCellType===l.selectedField.selectionCellType&&("L"===e.selectionCellType?l.selectedField.index===e.x:l.selectedField.index===e.y))}),[null===(t=l.activeSelection)||void 0===t?void 0:t.clientSelectedCells.size,null===(n=l.engineSelectedCells)||void 0===n?void 0:n.size,l.selectedField]),g=f((e=>{var t,n;return!h(e)&&((null===(t=l.engineSelectedCells)||void 0===t?void 0:t.has(e.ref.qElemNo))||!(null===(n=l.activeSelection)||void 0===n||!n.clientSelectedCells.has(e.ref.qElemNo)))}),[h,null===(o=l.activeSelection)||void 0===o?void 0:o.clientSelectedCells,l.engineSelectedCells]);return i((()=>({isSelected:g,isActive:s,isLocked:h,createMouseDownHandler:d,createMouseOverHandler:p})),[g,s,h,d,p])}(t);return se.jsx(Xq.Provider,{value:n,children:e})},Qq=e=>"fill"===e.representation.imageSize,ej=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";var r;return e.isLeftColumn&&Qq(e)&&t&&(n="center"),e.representation.type!==cl.Image||Qq(e)?n:null===(r=e.representation.resolvedImagePosition)||void 0===r?void 0:r.vertical};var tj;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(tj||(tj={}));const nj={brighter:.5,darker:.3,opacity:.03},rj=(e,{cell:t,styleService:n})=>{if(e===tj.Background||e===tj.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},oj=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=rj(tj.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?rj(tj.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${oA(i=o,nj)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},ij=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:rj(tj.Color,{cell:e,styleService:t}),aj=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=rj(tj.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?yA:o},sj=({cell:e,styleService:t})=>rj(tj.FontStyle,{cell:e,styleService:t}),lj=({cell:e,styleService:t})=>rj(tj.TextDecoration,{cell:e,styleService:t}),uj=e=>e?"pointer":"default",cj=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},dj=(e,t)=>{if(!e.isLeftColumn||e.representation.type===cl.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},pj=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:o}=tO(),{interactions:i}=ZT(),{isActive:a}=Jq(),{dataModel:s}=Bz();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=ij({cell:e,styleService:r,isCellSelected:n}),c=a?.4:1,d=e.ref.qCanExpand?Yq:Vq;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=Vz({isLeftColumn:t,layoutService:o,representation:e.representation});return se.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...dj(e,r),...f&&{alignSelf:ej(e)}},onClick:l?void 0:cj({cell:e,expandOrCollapse:p})})},fj=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},hj=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},mj=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},gj=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:o,layoutService:i,isMeasureCell:a})=>{var s,l;const{isIndentModeEnabled:u,indentModeFeatures:{isImagesSupported:c}}=i,d=Vz({isLeftColumn:r,layoutService:i,representation:e}),p=t?21:0,f=null!==(s=null===(l=e.imageBox)||void 0===l?void 0:l.width)&&void 0!==s?s:24;let h=`calc(100% - ${p}px)`,m=o.headerCellHeight;r&&d&&(h=f),(a||r)&&(m=o.contentCellHeight);let g=m;switch(!r||void 0===n||u&&c||(g=m*Math.max(n,1)),e.imageSize){case"originalSize":return{maxWidth:h,maxHeight:g,...d?{width:h}:{}};case"fitWidth":return{width:h,maxHeight:g};case"fitHeight":return{height:g,maxWidth:h,...d?{width:h}:{}};case"fill":return{height:g,width:h};default:return{width:h,height:m}}},bj=e=>{if("alwaysFit"===e)return"contain"},yj=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),xj=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:hj(e,n,r),height:fj(e),objectFit:bj(e),objectPosition:mj(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),vj=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:o,onLoad:a}=(()=>{const{downloadService:e}=tO(),t=p(null),{promise:n,resolve:o}=i((()=>BA()),[]);return r((()=>{var r;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(r=t.current)&&void 0!==r&&r.complete&&o()),()=>{o()}}),[t,e,n,o]),{onLoad:f((()=>{o()}),[o]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:s,indentModeFeatures:{isImagesSupported:l}}}=tO(),{url:u,text:c,imageSize:d,resolvedImagePosition:h}=e,{overflow:m,...g}=t;return se.jsx("img",{src:u,alt:c,style:{...xj({imageSize:d,resolvedImagePosition:h,isImagesInIndentModeEnabled:s&&l,isMeasureCell:n}),...g},onLoad:a,ref:o})},_j=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=tO(),{resolvedImagePosition:u}=e;return se.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...gj({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:se.jsx(vj,{representation:e,textStyle:t,isMeasureCell:!0})})},wj=(e,t,n)=>{if(null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},Sj=(e,t)=>{var n,r;let{textAlign:o}=null!==(n=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==n?n:{};var i;e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:o}=null!==(i=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex))&&void 0!==i?i:{});return null!==(r=o)&&void 0!==r&&r.auto||void 0===o?"left":o.align},Cj={display:"flex",flexDirection:"row",alignItems:"center"},Ej={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},kj=(e,t,n,r)=>t?{...Ej,...e.nullValues}:n?{...Cj,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...Cj,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},Rj=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...kA,...!n&&RA(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?yA:l,fontStyle:u,textDecoration:c}},Mj=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=tO(),{isIndentModeEnabled:s,indentModeFeatures:l}=i,u=e.isNull?i.getNullValueText():t.text,c=t.type===cl.Image,d=t.type===cl.Indicator,p=bq(yq(u)),f=Rj(a,n,p,r,e.isNull);if(!s&&c&&!e.isNull||s&&l.isImagesSupported&&c&&!e.isNull)return se.jsx(_j,{isMeasureCell:!0,textStyle:f,representation:t,imageContainerHorizontalAlignment:o});const h=yq(e.isNull?t.text:e.ref.qNum);return d&&bq(h)?se.jsx(Gq,{representation:t,cellValue:h,textStyle:f}):se.jsx("span",{style:{padding:4,direction:p?"ltr":void 0,...f},children:u})},Aj=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},Ij="flex-start",Lj=(e,t)=>{return e.isNull?Ij:t.type===cl.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:Ij;var n},Pj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{env:i}=ZT(),{pageInfo:a,direction:s}=KT(),{styleService:l,layoutService:u}=tO(),{attrExprInfoIndexes:c,gridSectionsData:{measureData:d,leftDimensionData:p,topDimensionData:h},visibleDimensionsInfo:{visibleLeftDimensionInfo:m,visibleTopDimensionInfo:g}}=Bz(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=tO(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:o}}=Bz(),i=r.length,a=o.length;return f(((r,o)=>{var s,l;return!!(null!==(s=n.grid.at(a-1))&&void 0!==s&&null!==(s=s[r])&&void 0!==s&&s.isTotal||null!==(l=t.grid.at(e?0:i-1))&&void 0!==l&&null!==(l=l[o])&&void 0!==l&&l.isTotal)}),[n,t,i,a,e])})(),y=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=Bz(),n=t.length;return f((t=>{var r;const o=null===(r=e.grid.at(n-1))||void 0===r?void 0:r[t];return fq(o,e.totalDividerIndex)}),[e,n])})(),x=(()=>{const{layoutService:{isIndentModeEnabled:e}}=tO(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=Bz(),r=n.length;return f((n=>{var o;const i=e?0:r-1,a=null===(o=t.grid.at(i))||void 0===o?void 0:o[n];return fq(a,t.totalDividerIndex,e)}),[t,e,r])})(),{showLastBorder:v}=r,_=h.grid.at(g.length-1),w=p.grid.at(m.length-1),{background:S}=l.measureValues,C=null===(o=d[t])||void 0===o?void 0:o[e],E=t===a.rowsOnCurrentPage-1,k=e===u.size.x-1;if(!C)return se.jsx(hq,{style:{...n,background:S},isLastRow:E,isLastColumn:k,showLastBorder:v,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const R=u.hasPseudoDimOnLeft?Aj(w,t):Aj(_,e),M=u.visibleMeasureInfo[R],A=xz({cell:C.ref,representationProperties:M.representation,attrExprInfoIndex:c.measures[R],env:i,direction:s,conditionalColoring:M.conditionalColoring,enabledFeatures:{[cl.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[cl.Indicator]:i.flags.isEnabled("CLIENT_VNA-118_PIVOT_INDICATOR")}}),I=!C.isNull&&b(e,t),L=C.isNull?u.getNullValueText():A.text,P=!C.isNull||!Number.isNaN(+L),D=vz(c.measures[R],C.ref),T=((e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var s,l;return e.isNull||n.type!==cl.Image?wj(i,a,o):null!==(s=null===(l=n.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==s?s:"center"})(C,M,A,P,s),O={...kj(l,C.isNull,I,D.background),...AA(E,k,l.grid.border,s,v),...LA({bottomDivider:x(t),rightDivider:y(e),borderColor:l.grid.divider}),...EA,padding:"0px 4px",display:"flex",justifyContent:T};return se.jsx("div",{className:Zi,title:L,style:{...O,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:se.jsx(mq,{width:gq(A),verticalAlign:Lj(C,A),children:se.jsx(Mj,{cell:C,representation:A,isTotalValueCell:I,color:D.color,cellHorizontalAlignment:T})})})};var Dj=t.memo(Pj,ZN);const Tj=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},Oj=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},zj=e=>({...CA,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),Nj=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:c}=KT(),{layoutService:d,styleService:{grid:{divider:p},contentCellHeight:h}}=tO(),{dataModel:m,gridSectionsData:{measureData:g}}=Bz(),b={...zj(c),borderColor:p,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=KT(),{downloadService:r,viewService:o,layoutService:i}=tO(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=Bz(),c=s.columnCount,d=l.rowCount;return f((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===vl.None?0:QN),m=o.gridHeight+d+(e.current===vl.None?0:QN);let g=dq;m*h>1500&&(g=pq),g(a,i,u,n,o,e,t,r)}),[o,i,a,u,e,t,n,c,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return rI((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,m,g]),u((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[r,t,e,h,c]),0===d.size.x?null:se.jsx(FN,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:d.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:o,grid:g},onItemsRendered:y,estimatedRowHeight:n(),estimatedColumnWidth:i(),itemKey:Oj,direction:c,children:Dj})};var qj=y(Nj);const jj=l(((e,t)=>se.jsxs("svg",{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:[se.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"}),se.jsx("use",{fillRule:"evenodd"})]}))),Fj=e=>{const[t,r]=n(!1);return rI((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},Bj=()=>{const[e,t]=n(!1),{dataModel:r}=Bz(),{interactions:o}=ZT(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Fj([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!o.active||Uq(e)||i||t(!0)},setIsAdjustingWidth:a}};function $j(e,t){var n,r;const o=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,i=t.isLeftColumn?e.header.background:o,a=i===_A.Transparent?AR.WHITE:i,s=Ta(e.grid.border),l=Ta(a);return l.isInvalid()||s.isInvalid()||1===s.a?e.grid.border:function(e,t,n){return Ta(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(l,s,s.a).getRGB()}const Wj=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:s})=>{var l;const{direction:u}=KT(),{interactions:c,translator:d}=ZT(),{isActive:p}=Jq(),{dataModel:f}=Bz(),{styleService:h}=tO(),[,m]=n({});if(!(e.canBeResized&&!!c.active&&!p))return null;const g=$j(h,e);return se.jsx(ID,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:g,updateWidthCallback:t=>{m({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var n;a?f.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=s?s:0)*Hz,null!==(n=t.pixels)&&void 0!==n?n:0)}):f.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:d,columnLabel:null!==(l=e.label)&&void 0!==l?l:""},direction:u})};function Hj(e){return RL(e)}const Gj=e=>e.scrollTop;function Vj(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Yj(e){return Pv("MuiPaper",e)}Dv("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Uj=["className","component","elevation","square","variant"],Kj=SD("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ll({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ll({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${TL("#fff",kD(t.elevation))}, ${TL("#fff",kD(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Xj=e.forwardRef((function(e,t){const n=Hj({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Au(n,Uj),u=Ll({},n,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return T_({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Yj,o)})(u);return se.jsx(Kj,Ll({as:o,ownerState:u,className:Av(c.root,r),ref:t},l))}));const Jj=Dv("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zj=["center","classes","className"];let Qj,eF,tF,nF,rF=e=>e;const oF=rx(Qj||(Qj=rF`
115
115
  0% {
116
116
  transform: scale(0);
117
117
  opacity: 0.1;
@@ -186,4 +186,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.le
186
186
  }
187
187
  `),Jj.rippleVisible,oF,550,(({theme:e})=>e.transitions.easing.easeInOut),Jj.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Jj.child,Jj.childLeaving,iF,550,(({theme:e})=>e.transitions.easing.easeInOut),Jj.childPulsate,aF,(({theme:e})=>e.transitions.easing.easeInOut)),uF=e.forwardRef((function(t,n){const r=Hj({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=Au(r,Zj),[l,u]=e.useState([]),c=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=e.useRef(!1),f=S_(),h=e.useRef(null),m=e.useRef(null),g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;u((e=>[...e,se.jsx(lF,{classes:{ripple:Av(i.ripple,Jj.ripple),rippleVisible:Av(i.rippleVisible,Jj.rippleVisible),ripplePulsate:Av(i.ripplePulsate,Jj.ripplePulsate),child:Av(i.child,Jj.child),childLeaving:Av(i.childLeaving,Jj.childLeaving),childPulsate:Av(i.childPulsate,Jj.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=e.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[o,g,f]),y=e.useCallback((()=>{b({},{pulsate:!0})}),[b]),x=e.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{x(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return e.useImperativeHandle(n,(()=>({pulsate:y,start:b,stop:x})),[y,b,x]),se.jsx(sF,Ll({className:Av(Jj.root,i.root,a),ref:m},s,{children:se.jsx($S,{component:null,exit:!0,children:l})}))}));function cF(e){return Pv("MuiButtonBase",e)}const dF=Dv("MuiButtonBase",["root","disabled","focusVisible"]),pF=["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"],fF=SD("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"},[`&.${dF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hF=e.forwardRef((function(t,n){const r=Hj({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:y,onFocusVisible:x,onKeyDown:v,onKeyUp:_,onMouseDown:w,onMouseLeave:S,onMouseUp:C,onTouchEnd:E,onTouchMove:k,onTouchStart:R,tabIndex:M=0,TouchRippleProps:A,touchRippleRef:I,type:L}=r,P=Au(r,pF),D=e.useRef(null),T=e.useRef(null),O=x_(T,I),{isFocusVisibleRef:z,onFocus:N,onBlur:q,ref:j}=P_(),[F,B]=e.useState(!1);u&&F&&B(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),D.current.focus()}})),[]);const[$,W]=e.useState(!1);e.useEffect((()=>{W(!0)}),[]);const H=$&&!c&&!u;function G(e,t,n=d){return y_((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}e.useEffect((()=>{F&&p&&!c&&$&&T.current.pulsate()}),[c,p,F,$]);const V=G("start",w),Y=G("stop",g),U=G("stop",b),K=G("stop",C),X=G("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),J=G("start",R),Z=G("stop",E),Q=G("stop",k),ee=G("stop",(e=>{q(e),!1===z.current&&B(!1),h&&h(e)}),!1),te=y_((e=>{D.current||(D.current=e.currentTarget),N(e),!0===z.current&&(B(!0),x&&x(e)),y&&y(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=y_((e=>{p&&!re.current&&F&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),v&&v(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=y_((e=>{p&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),_&&_(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=u):(P.href||P.to||(le.role="button"),u&&(le["aria-disabled"]=u));const ue=x_(n,j,D),ce=Ll({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:F}),de=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=T_({root:["root",t&&"disabled",n&&"focusVisible"]},cF,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return se.jsxs(fF,Ll({as:ae,className:Av(de.root,s),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:ue,tabIndex:u?-1:M,type:L},le,P,{children:[a,H?se.jsx(uF,Ll({ref:O,center:i},A)):null]}))}));function mF(e){return Pv("MuiTypography",e)}Dv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gF=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bF=SD("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${_x(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ll({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}))),yF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xF={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vF=e.forwardRef((function(e,t){const n=Hj({props:e,name:"MuiTypography"}),r=(e=>xF[e]||e)(n.color),o=bL(Ll({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=yF}=o,f=Au(o,gF),h=Ll({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||yF[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return T_({root:["root",i,"inherit"!==e.align&&`align${_x(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},mF,a)})(h);return se.jsx(bF,Ll({as:m,ref:t,ownerState:h,className:Av(g.root,a)},f))}));const _F=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=e.useState(null),l=x_(e.isValidElement(r)?F_(r):null,n);if(o_((()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),o_((()=>{if(a&&!i)return f_(n,a),()=>{f_(n,null)}}),[n,a,i]),i){if(e.isValidElement(r)){const t={ref:l};return e.cloneElement(r,t)}return se.jsx(e.Fragment,{children:r})}return se.jsx(e.Fragment,{children:a?v.createPortal(r,a):a})})),wF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],SF={entering:{opacity:1},entered:{opacity:1}},CF=e.forwardRef((function(t,n){const r=QP(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=o,TransitionComponent:y=zS}=t,x=Au(t,wF),v=e.useRef(null),_=x_(v,F_(s),n),w=e=>t=>{if(e){const n=v.current;void 0===t?e(n):e(n,t)}},S=w(p),C=w(((e,t)=>{Gj(e);const n=Vj({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),E=w(d),k=w(m),R=w((e=>{const t=Vj({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),M=w(h);return se.jsx(y,Ll({appear:a,in:u,nodeRef:v,onEnter:C,onEntered:E,onEntering:S,onExit:R,onExited:M,onExiting:k,addEndListener:e=>{i&&i(v.current,e)},timeout:b},x,{children:(t,n)=>e.cloneElement(s,Ll({style:Ll({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},SF[t],g,s.props.style),ref:_},n))}))}));function EF(e){return Pv("MuiBackdrop",e)}Dv("MuiBackdrop",["root","invisible"]);const kF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],RF=SD("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ll({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"}))),MF=e.forwardRef((function(e,t){var n,r,o;const i=Hj({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=CF,transitionDuration:g}=i,b=Au(i,kF),y=Ll({},i,{component:l,invisible:d}),x=(e=>{const{classes:t,invisible:n}=e;return T_({root:["root",n&&"invisible"]},EF,t)})(y),v=null!=(n=f.root)?n:c.root;return se.jsx(m,Ll({in:p,timeout:g},b,{children:se.jsx(RF,Ll({"aria-hidden":!0},v,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:l,className:Av(x.root,s,null==v?void 0:v.className),ownerState:Ll({},y,null==v?void 0:v.ownerState),classes:x,ref:t,children:a}))}))})),AF=Dv("MuiBox",["root"]),IF=JP(),LF=function(t={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=t,a=ax("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(aL),s=e.forwardRef((function(e,t){const s=fL(r),l=bL(e),{className:u,component:c="div"}=l,d=Au(l,xL);return se.jsx(a,Ll({as:c,ref:t,className:Av(u,i?i(o):o),theme:n&&s[n]||s},d))}));return s}({themeId:aI,defaultTheme:IF,defaultClassName:AF.root,generateClassName:Rv.generate});function PF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function DF(e){return parseInt(p_(e).getComputedStyle(e).paddingRight,10)||0}function TF(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&PF(e,o)}))}function OF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function zF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=d_(e);return t.body===e?p_(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=D_(d_(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${DF(r)+e}px`;const t=d_(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${DF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=d_(r).body;else{const t=r.parentElement,n=p_(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const NF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qF(e){const t=[],n=[];return Array.from(e.querySelectorAll(NF)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function jF(){return!0}function FF(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=qF,isEnabled:s=jF,open:l}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=x_(F_(n),m),b=e.useRef(null);e.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),e.useEffect((()=>{if(!l||!m.current)return;const e=d_(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),e.useEffect((()=>{if(!l||!m.current)return;const e=d_(m.current),t=t=>{b.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,i;const e=Boolean((null==(r=b.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,o,i,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return se.jsxs(e.Fragment,{children:[se.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),se.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const BF=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&PF(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);TF(t,e.mount,e.modalRef,r,!0);const o=OF(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=OF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=zF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=OF(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&PF(e.modalRef,t),TF(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&PF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $F(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=BF,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=t,f=e.useRef({}),h=e.useRef(null),m=e.useRef(null),g=x_(m,p),[b,y]=e.useState(!d),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let v=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(v=!1);const _=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{i.mount(_(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},S=y_((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||d_(h.current).body;i.add(_(),e),m.current&&w()})),C=e.useCallback((()=>i.isTopModal(_())),[i]),E=y_((e=>{h.current=e,e&&(d&&C()?w():m.current&&PF(m.current,v))})),k=e.useCallback((()=>{i.remove(_(),v)}),[v,i]);e.useEffect((()=>()=>{k()}),[k]),e.useEffect((()=>{d?S():x&&a||k()}),[d,k,x,a,S]);const R=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(e={})=>{const n=z_(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ll({},n,e);return Ll({role:"presentation"},r,{onKeyDown:R(r),ref:g})},getBackdropProps:(e={})=>Ll({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:u_((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:u_((()=>{y(!0),l&&l(),a&&k()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:E,isTopModal:C,exited:b,hasTransition:x}}function WF(e){return Pv("MuiModal",e)}Dv("MuiModal",["root","hidden","backdrop"]);const HF=["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"],GF=SD("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ll({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),VF=SD(MF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),YF=e.forwardRef((function(t,n){var r,o,i,a,s,l;const u=Hj({name:"MuiModal",props:t}),{BackdropComponent:c=VF,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:_=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:k=!1,onBackdropClick:R,open:M,slotProps:A,slots:I}=u,L=Au(u,HF),P=Ll({},u,{closeAfterTransition:f,disableAutoFocus:x,disableEnforceFocus:v,disableEscapeKeyDown:_,disablePortal:w,disableRestoreFocus:S,disableScrollLock:C,hideBackdrop:E,keepMounted:k}),{getRootProps:D,getBackdropProps:T,getTransitionProps:O,portalRef:z,isTopModal:N,exited:q,hasTransition:j}=$F(Ll({},P,{rootRef:n})),F=Ll({},P,{exited:q}),B=(e=>{const{open:t,exited:n,classes:r}=e;return T_({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},WF,r)})(F),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const W=null!=(r=null!=(o=null==I?void 0:I.root)?o:b.Root)?r:GF,H=null!=(i=null!=(a=null==I?void 0:I.backdrop)?a:b.Backdrop)?i:c,G=null!=(s=null==A?void 0:A.root)?s:y.root,V=null!=(l=null==A?void 0:A.backdrop)?l:y.backdrop,Y=j_({elementType:W,externalSlotProps:G,externalForwardedProps:L,getSlotProps:D,additionalProps:{ref:n,as:g},ownerState:F,className:Av(p,null==G?void 0:G.className,null==B?void 0:B.root,!F.open&&F.exited&&(null==B?void 0:B.hidden))}),U=j_({elementType:H,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(Ll({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Av(null==V?void 0:V.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:F});return k||M||j&&!q?se.jsx(_F,{ref:z,container:m,disablePortal:w,children:se.jsxs(W,Ll({},Y,{children:[!E&&c?se.jsx(H,Ll({},U)):null,se.jsx(FF,{disableEnforceFocus:v,disableAutoFocus:x,disableRestoreFocus:S,isEnabled:N,open:M,children:e.cloneElement(h,$)})]}))}):null})),UF=Dv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),KF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function XF(e){return`scale(${e}, ${e**2})`}const JF={entering:{opacity:1,transform:XF(1)},entered:{opacity:1,transform:"none"}},ZF="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),QF=e.forwardRef((function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=zS}=t,b=Au(t,KF),y=S_(),x=e.useRef(),v=QP(),_=e.useRef(null),w=x_(_,F_(i),n),S=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},C=S(c),E=S(((e,t)=>{Gj(e);const{duration:n,delay:r,easing:o}=Vj({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=i):i=n,e.style.transition=[v.transitions.create("opacity",{duration:i,delay:r}),v.transitions.create("transform",{duration:ZF?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=S(u),R=S(f),M=S((e=>{const{duration:t,delay:n,easing:r}=Vj({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:ZF?o:.666*o,delay:ZF?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=XF(.75),d&&d(e)})),A=S(p);return se.jsx(g,Ll({appear:o,in:s,nodeRef:_,onEnter:E,onEntered:k,onEntering:C,onExit:M,onExited:A,onExiting:R,addEndListener:e=>{"auto"===m&&y.start(x.current||0,e),r&&r(_.current,e)},timeout:"auto"===m?null:m},b,{children:(t,n)=>e.cloneElement(i,Ll({style:Ll({opacity:0,transform:XF(.75),visibility:"exited"!==t||s?void 0:"hidden"},JF[t],h,i.props.style),ref:w},n))}))}));function eB(e){return Pv("MuiLink",e)}QF.muiSupportAuto=!0;const tB=Dv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rB=({theme:e,ownerState:t})=>{const n=(e=>nB[e]||e)(t.color),r=mI(e,`palette.${n}`,!1)||t.color,o=mI(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:TL(r,.4)},oB=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],iB=SD(vF,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${_x(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Ll({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Ll({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:rB({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"},[`&.${tB.focusVisible}`]:{outline:"auto"}}))),aB=e.forwardRef((function(t,n){const r=Hj({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=Au(r,oB),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:b}=P_(),[y,x]=e.useState(!1),v=x_(n,b),_=Ll({},r,{color:i,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return T_({root:["root",`underline${_x(o)}`,"button"===n&&"button",r&&"focusVisible"]},eB,t)})(_);return se.jsx(iB,Ll({color:i,className:Av(w.root,o),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&x(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&x(!0),l&&l(e)},ref:v,ownerState:_,variant:d,sx:[...Object.keys(nB).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),sB=e.createContext({});function lB(e){return Pv("MuiList",e)}Dv("MuiList",["root","padding","dense","subheader"]);const uB=["children","className","component","dense","disablePadding","subheader"],cB=SD("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Ll({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),dB=e.forwardRef((function(t,n){const r=Hj({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Au(r,uB),d=e.useMemo((()=>({dense:s})),[s]),p=Ll({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return T_({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},lB,t)})(p);return se.jsx(sB.Provider,{value:d,children:se.jsxs(cB,Ll({as:a,className:Av(f.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})})),pB=Dv("MuiListItemIcon",["root","alignItemsFlexStart"]),fB=Dv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hB=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mB(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gB(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bB(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function yB(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&bB(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const xB=e.forwardRef((function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Au(t,hB),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});o_((()=>{o&&f.current.focus()}),[o]),e.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${D_(d_(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=x_(f,n);let g=-1;e.Children.forEach(a,((t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===n&&(g+=1,g>=a.length&&(g=-1))}));const b=e.Children.map(a,((t,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return se.jsx(dB,Ll({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=d_(t).activeElement;if("ArrowDown"===n)e.preventDefault(),yB(t,r,u,l,mB);else if("ArrowUp"===n)e.preventDefault(),yB(t,r,u,l,gB);else if("Home"===n)e.preventDefault(),yB(t,null,u,l,mB);else if("End"===n)e.preventDefault(),yB(t,null,u,l,gB);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&bB(r,o);o.previousKeyMatched&&(s||yB(t,r,!1,l,mB,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function vB(e){return Pv("MuiPopover",e)}Dv("MuiPopover",["root","paper"]);const _B=["onEntering"],wB=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],SB=["slotProps"];function CB(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function EB(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function kB(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function RB(e){return"function"==typeof e?e():e}const MB=SD(YF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AB=SD(Xj,{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}),IB=e.forwardRef((function(t,n){var r,o,i;const a=Hj({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:y={},slots:x,slotProps:v,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:w=QF,transitionDuration:S="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=a,k=Au(a.TransitionProps,_B),R=Au(a,wB),M=null!=(r=null==v?void 0:v.paper)?r:y,A=e.useRef(),I=x_(A,M.ref),L=Ll({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:_,TransitionComponent:w,transitionDuration:S,TransitionProps:k}),P=(e=>{const{classes:t}=e;return T_({root:["root"],paper:["paper"]},vB,t)})(L),D=e.useCallback((()=>{if("anchorPosition"===d)return c;const e=RB(l),t=(e&&1===e.nodeType?e:d_(A.current).body).getBoundingClientRect();return{top:t.top+CB(t,u.vertical),left:t.left+EB(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),T=e.useCallback((e=>({vertical:CB(e,_.vertical),horizontal:EB(e,_.horizontal)})),[_.horizontal,_.vertical]),O=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:kB(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=p_(RB(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:kB(n)}}),[l,d,D,T,g]),[z,N]=e.useState(b),q=e.useCallback((()=>{const e=A.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);e.useEffect((()=>(E&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,E,q]);e.useEffect((()=>{b&&q()})),e.useImperativeHandle(s,(()=>b?{updatePosition:()=>{q()}}:null),[b,q]),e.useEffect((()=>{if(!b)return;const e=c_((()=>{q()})),t=p_(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,q]);let j=S;"auto"!==S||w.muiSupportAuto||(j=void 0);const F=h||(l?d_(RB(l)).body:void 0),B=null!=(o=null==x?void 0:x.root)?o:MB,$=null!=(i=null==x?void 0:x.paper)?i:AB,W=j_({elementType:$,externalSlotProps:Ll({},M,{style:z?M.style:Ll({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:L,className:Av(P.paper,null==M?void 0:M.className)}),H=j_({elementType:B,externalSlotProps:(null==v?void 0:v.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:F,open:b},ownerState:L,className:Av(P.root,f)}),{slotProps:G}=H,V=Au(H,SB);return se.jsx(B,Ll({},V,!O_(B)&&{slotProps:G,disableScrollLock:E},{children:se.jsx(w,Ll({appear:!0,in:b,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:j},k,{children:se.jsx($,Ll({},W,{children:p}))}))}))}));function LB(e){return Pv("MuiMenu",e)}Dv("MuiMenu",["root","paper","list"]);const PB=["onEntering"],DB=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],TB={vertical:"top",horizontal:"right"},OB={vertical:"top",horizontal:"left"},zB=SD(IB,{shouldForwardProp:e=>wD(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NB=SD(AB,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qB=SD(xB,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jB=e.forwardRef((function(t,n){var r,o;const i=Hj({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:y={},slotProps:x={}}=i,v=Au(i.TransitionProps,PB),_=Au(i,DB),w=(()=>{const t=e.useContext(SL);return null!=t&&t})(),S=Ll({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:v,variant:b}),C=(e=>{const{classes:t}=e;return T_({root:["root"],paper:["paper"],list:["list"]},LB,t)})(S),E=a&&!u&&p,k=e.useRef(null);let R=-1;e.Children.map(s,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===b&&t.props.selected||-1===R)&&(R=n))}));const M=null!=(r=y.paper)?r:NB,A=null!=(o=x.paper)?o:f,I=j_({elementType:y.root,externalSlotProps:x.root,ownerState:S,className:[C.root,l]}),L=j_({elementType:M,externalSlotProps:A,ownerState:S,className:C.paper});return se.jsx(zB,Ll({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?TB:OB,slots:{paper:M,root:y.root},slotProps:{root:I,paper:L},open:p,ref:n,transitionDuration:m,TransitionProps:Ll({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},v),ownerState:S},_,{classes:h,children:se.jsx(qB,Ll({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:a&&(-1===R||u),autoFocusItem:E,variant:b},c,{className:Av(C.list,c.className),children:s}))}))}));function FB(e){return Pv("MuiMenuItem",e)}const BB=Dv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$B=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],WB=SD(hF,{shouldForwardProp:e=>wD(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Ll({},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"}},[`&.${BB.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:TL(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${BB.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:TL(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${BB.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:TL(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})`:TL(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${BB.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${BB.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${UF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${UF.inset}`]:{marginLeft:52},[`& .${fB.root}`]:{marginTop:0,marginBottom:0},[`& .${fB.inset}`]:{paddingLeft:36},[`& .${pB.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ll({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pB.root} svg`]:{fontSize:"1.25rem"}})))),HB=e.forwardRef((function(t,n){const r=Hj({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=Au(r,$B),h=e.useContext(sB),m=e.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=e.useRef(null);o_((()=>{o&&g.current&&g.current.focus()}),[o]);const b=Ll({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ll({},a,T_({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},FB,a))})(r),x=x_(g,n);let v;return r.disabled||(v=void 0!==d?d:-1),se.jsx(sB.Provider,{value:m,children:se.jsx(WB,Ll({ref:x,role:c,tabIndex:v,component:i,focusVisibleClassName:Av(y.focusVisible,u),className:Av(y.root,p)},f,{ownerState:b,classes:y}))})})),GB=SD(LF,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),VB=SD("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),YB=SD("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...SA,justifyContent:null!=e?e:SA.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),UB=SD("div")((()=>({...SA}))),KB=SD("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),XB=SD(jB)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),JB=SD(HB,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),ZB=SD("span")({textOverflow:"ellipsis",overflow:"hidden"}),QB=SD("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),e$=SD("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));var t$;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(t$||(t$={}));const n$=(e,t)=>({qExcludeList:t===t$.Expand,qPos:{qDimName:e,qElemNo:[]}}),r$=`${oO}/qExpansionState`,o$=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=null==t?void 0:t.findIndex((t=>{var n;return(null===(n=t.qPos)||void 0===n?void 0:n.qDimName)===e}));return{expansionData:n$(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:o}=t;try{let t,n=r$,i="Add";void 0===r?t=JSON.stringify([o]):-1===r?(n=`${r$}/-`,t=JSON.stringify(o)):(n=`${r$}/${r}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:n,qOp:i,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${r} dimension`})},i$=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:o$({...r,action:t$.Expand}),collapseCallback:o$({...r,action:t$.Collapse})}},a$={[hT.Sorting]:!0,[hT.Selections]:!0,[hT.Searching]:!0},s$=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:u,tableWidth:c})=>{var d;const f=p(null),{styleService:h,layoutService:m,effectivePropertiesService:g}=tO(),{app:b,interactions:y,embed:x,translator:v,model:_}=ZT(),{fontSize:w,fontFamily:S,fontStyle:C,fontWeight:E,textDecoration:k,color:R,background:M,hoverBackground:A,activeBackground:I}=h.header,L=p(null),{shouldShowLockIcon:P,shouldShowMenuIcon:D}=a,{open:T,setOpen:O,handleOpenMenu:z,setIsAdjustingWidth:N}=Bj(),{direction:q}=KT(),j={sortFromMenu:async(t,n)=>{t.stopPropagation(),await i(e,n)}},F={embed:x,listboxRef:f,sortCriteria:m.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},B={app:b,qStateName:m.layout.qStateName},{labelTextAlign:$}=null!==(d=m.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==d?d:{},W=wj($,"flex-start",q);return se.jsxs(GB,{className:Zi,title:e.label,interactions:y,background:T?I:M,hoverBackground:A,shouldShowMenuIcon:D,isDimension:e.isDim,style:{...t,...EA,...IA(e,o,n,r,h.grid.border,q),color:R},"data-testid":"title-cell",onClick:z,children:[se.jsxs(YB,{children:[P?se.jsx(UB,{children:se.jsx(jj,{height:12})}):null,se.jsx(KB,{fontFamily:S,fontSize:w,fontStyle:C,fontWeight:E,textDecoration:k,justifyContent:W,children:se.jsx("span",{style:kA,children:e.label})})]}),e.isDim?se.jsxs(se.Fragment,{children:[se.jsx(bT,{headerData:e,translator:v,anchorRef:L,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:a$,sortRelatedArgs:j,searchRelatedArgs:F,selectionRelatedArgs:B,expandOrCollapseArgs:i$({model:_,effectivePropertiesService:g,cell:e}),shouldShowMenuIcon:D,model:_&&"setActiveField"in _?_:void 0,direction:q}),se.jsx(VB,{ref:f,direction:q}),se.jsx(VB,{ref:L,direction:q})]}):null,se.jsx(Wj,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:l,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:u,tableWidth:c})]})},l$=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=tO(),{direction:r}=KT();return e>0&&t>0?se.jsx("div",{style:{...CA,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},u$=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),c$=l(((e,t)=>se.jsxs("svg",{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:[se.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),se.jsx("use",{fillRule:"evenodd"})]}))),d$=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=KT(),{styleService:o}=tO(),{interactions:i,translator:a}=ZT(),{isActive:s}=Jq(),{dataModel:l}=Bz(),{setIsAdjustingWidth:u}=Fj([l]);if(!(!!i.active&&!s))return null;const c=$j(o,{isLeftColumn:!0});return se.jsx(ID,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*Hz))},confirmWidthCallback:r=>{var o;if(r.type===na.FitToContent)return void l.applyIndentModeColumnWidth({type:na.Auto});const i=Math.min(null!==(o=r.pixels)&&void 0!==o?o:t,e*Hz);n(i),l.applyIndentModeColumnWidth({type:na.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},p$=l(((e,t)=>se.jsx("svg",{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:se.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),f$=({cell:e,changeSortOrder:t})=>{const n=p(null),r=p(null),{app:o,interactions:i,embed:a,translator:s,model:l}=ZT(),{layoutService:u,effectivePropertiesService:c}=tO(),{open:d,setOpen:f,handleOpenMenu:h}=Bj();return se.jsxs(JB,{onClick:h,isActive:d,children:[se.jsx(ZB,{children:e.label}),se.jsxs(QB,{className:"indent-mode-dropdown-more",visible:d,children:[se.jsx(p$,{}),e.isDim?se.jsxs(se.Fragment,{children:[se.jsx(bT,{headerData:e,translator:s,anchorRef:n,open:d,setOpen:f,interactions:i,menuAvailabilityFlags:a$,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},expandOrCollapseArgs:i$({model:l,effectivePropertiesService:c,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),se.jsx(VB,{ref:r}),se.jsx(VB,{ref:n})]}):null]})]})},h$=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===aO,s=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===aO;return!(r&&a&&s)&&((null==t?void 0:t.id)!==aO&&e<n.length-1)},m$=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:o,tableWidth:i})=>{const{styleService:a}=tO(),{interactions:s,translator:l}=ZT(),{dataModel:u,gridSectionsData:{headersData:c}}=Bz(),[d,f]=n(!1),h=p(null),{headerCellHeight:m}=a,{color:g,background:b,hoverBackground:y,activeBackground:x,fontFamily:v,fontSize:_,fontStyle:w,fontWeight:S,textDecoration:C}=a.header,{isAdjustingWidth:E}=Fj([u]),k=e=>{e.stopPropagation()},R={height:m,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return se.jsxs(GB,{isDimension:!0,background:d?x:b,interactions:s,hoverBackground:y,style:{...R,...EA,color:g},onClick:e=>{!s.active||Uq(e)||E||f(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[se.jsxs(YB,{justifyContent:"flex-start",children:[se.jsx(KB,{fontFamily:v,fontSize:_,fontStyle:w,fontWeight:S,textDecoration:C,justifyContent:"flex-start",children:se.jsx("span",{style:kA,children:l.get("SNPivotTable.IndentMode.Rows")})}),d?se.jsx(c$,{}):se.jsx(u$,{}),se.jsx(VB,{ref:h})]}),se.jsx(XB,{open:d,anchorEl:h.current,disableEnforceFocus:!0,children:e.map(((n,r)=>[n&&n.id!==aO&&se.jsx("li",{role:"presentation",onClick:k,onKeyDown:k,children:se.jsx(f$,{cell:n,changeSortOrder:t})}),h$({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===c.size.y})&&se.jsx(OD,{"data-testid":"group-divider",variant:"middle"})]))}),se.jsx(d$,{tableWidth:i,leftGridWidth:o,overrideLeftGridWidth:r})]})},g$=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,b$={display:"grid",width:"fit-content"},y$=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=tO(),{gridSectionsData:{headersData:u}}=Bz();return se.jsxs("div",{"data-testid":"HEADER_GRID",style:{...b$,gridTemplateColumns:n.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${r}px`)).join(" "),height:a},children:[u.size.y>1&&se.jsx(l$,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(g$({layoutService:l,headersData:u,topRowIndex:c})){const n=a.at(0);var p;if(Array.isArray(n))d.push(se.jsx(m$,{menuItems:n,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},null===(p=n.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(se.jsx(s$,{style:{width:n[d],height:r,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var x$=y(y$);const v$=(e,t,n,r)=>{const{layoutService:o}=tO();u((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},_$=(e,t)=>{rI((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},w$=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},S$=(e,t,n,r,o)=>{var i,a;if(o)return;const s=e.representation,l=Vz({isLeftColumn:n,layoutService:t,representation:s}),u=n?"flex-start":"center",c=null===(i=e.representation.resolvedImagePosition)||void 0===i?void 0:i.horizontal;if(e.representation.type===cl.Image)return l&&c&&"center"!==c&&"rtl"===r?Wq(c):null!=c?c:u;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var d;const{labelTextAlign:n}=null!==(d=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==d?d:{};return wj(n,u,r)}const{textAlign:p}=null!==(a=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==a?a:{};return wj(p,u,r)},C$=()=>{},E$=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=tO(),{interactions:h}=ZT(),{direction:m}=KT(),{isLocked:g,createMouseDownHandler:b,createMouseOverHandler:y}=Jq(),{showLastBorder:x}=r,v=g(n)||n.isLockedByDimension,_=!(v||!h.active||!h.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),w=_?b(c,(e=>w$(e,r))):void 0,S=_?y(c):void 0,C=Vz({isLeftColumn:s,layoutService:f,representation:n.representation});return se.jsx("div",{className:Zi,title:h.passive?n.representation.text:void 0,style:{...t,...AA(i,a,p.grid.border,m,x),...LA({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:p.grid.divider}),...EA,padding:"rtl"===m?"0px 0px 0px 4px":"0px 4px",cursor:uj(_),background:oj({styleService:p,isCellSelected:l,cell:n,isCellLocked:v}),zIndex:s?void 0:f.size.x-n.x,justifyContent:S$(n,f,s,m,C),display:"flex",...f.isIndentModeEnabled&&s&&{["rtl"===m?"paddingRight":"paddingLeft"]:Math.max(4,24*(null!==(d=n.indentLevel)&&void 0!==d?d:0))},textAlign:Sj(n,f)},"aria-hidden":"true",onMouseDown:w,onMouseOver:S,onKeyUp:C$,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},k$=e=>{e.stopPropagation()},R$=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:k$,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}}),M$=({href:e,text:n,interactions:r,color:o})=>t.createElement(ek,R$({href:e,text:n,interactions:r,color:o}),n);function A$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I$(Object(n),!0).forEach((function(t){A$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P$=Object.prototype.hasOwnProperty,D$=Object.prototype.toString,T$=Object.defineProperty,O$=Object.getOwnPropertyDescriptor,z$=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===D$.call(e)},N$=function(e){if(!e||"[object Object]"!==D$.call(e))return!1;var t,n=P$.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&P$.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||P$.call(e,t)},q$=function(e,t){T$&&"__proto__"===t.name?T$(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},j$=function(e,t){if("__proto__"===t){if(!P$.call(e,t))return;if(O$)return O$(e,t).value}return e[t]},F$=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=j$(s,n),s!==(o=j$(t,n))&&(c&&o&&(N$(o)||(i=z$(o)))?(i?(i=!1,a=r&&z$(r)?r:[]):a=r&&N$(r)?r:{},q$(s,{name:n,newValue:e(c,a,o)})):void 0!==o&&q$(s,{name:n,newValue:o}));return s};function B$(e,t,n,r){if(!e)return-1;const o=n.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=o.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function $$(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function W$(e){let{cache:t,f:n,mainCell:r,p:o,page:i,rowIdx:a,row:s,sourceKey:l,target:u,targetProp:c,columnOrder:d}=e,p=r;if(o.field&&o.field!==n){const e=B$(o.field,i,{cache:t},d);if(-1===e)return;p=F$({qRow:a},e(s))}u[c]=$$(o,p,{key:l})}function H$(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),s=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:u,main:c}=r.normalizeConfig(o[e],t),d=Object.keys(u),p=!!o[e].trackBy,f=typeof o[e].trackBy,h={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const i=B$(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==i)for(let b=0;b<a.qDataPages[t].qMatrix.length;b++){const y=a.qDataPages[t].qArea.qTop+b,x=F$({qRow:y},i(a.qDataPages[t].qMatrix[b])),v=$$(c,x,{key:s});if(!(c.filter&&!c.filter(x))){for(let e=0;e<d.length;e++){const r=u[d[e]];let o=r.fields||[r];r.fields&&(v[d[e]]=[]);for(let i=0;i<o.length;i++)W$({cache:n,f:l,mainCell:x,p:o[i],prop:d[e],page:a.qDataPages[t],rowIdx:y,row:a.qDataPages[t].qMatrix[b],sourceKey:s,target:r.fields?v[d[e]]:v,targetProp:r.fields?i:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=v[d[e]].map((e=>e.value)),n=v[d[e]].map((e=>e.label));v[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(v[d[e]].value)}}}p&&r.track({cfg:o[e],itemData:x,obj:v,target:m,tracker:h,trackType:f}),g.push(v)}}}const b=p?r.collect(m,{main:c,propsArr:d,props:u}):g;i=[...i,...b]}return i}function G$(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function V$(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=U$)):void 0===t&&(t=Y$);for(var n,r,o,i,a,s=new J$(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new J$(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(X$)}function Y$(e){return e.children}function U$(e){return Array.isArray(e)?e[1]:null}function K$(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function X$(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function J$(e){this.data=e,this.depth=this.height=0,this.parent=null}function Z$(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}J$.prototype=V$.prototype={constructor:J$,count:function(){return this.eachAfter(G$)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;e=n.pop(),t=r.pop();for(;e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return V$(this).eachBefore(K$)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}};var Q$={depth:-1},eW={},tW={};function nW(e){return e.id}function rW(e){return e.parentId}function oW(){var e,t=nW,n=rW;function r(r){var o,i,a,s,l,u,c,d,p=Array.from(r),f=t,h=n,m=new Map;if(null!=e){const t=p.map(((t,n)=>function(e){e=`${e}`;let t=e.length;aW(e,t-1)&&!aW(e,t-2)&&(e=e.slice(0,-1));return"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(iW),o=new Set(t).add("");for(const e of n)o.has(e)||(o.add(e),t.push(e),n.push(iW(e)),p.push(tW));f=(e,n)=>t[n],h=(e,t)=>n[t]}for(a=0,o=p.length;a<o;++a)i=p[a],u=p[a]=new J$(i),null!=(c=f(i,a,r))&&(c+="")&&(d=u.id=c,m.set(d,m.has(d)?eW:u)),null!=(c=h(i,a,r))&&(c+="")&&(u.parent=c);for(a=0;a<o;++a)if(c=(u=p[a]).parent){if(!(l=m.get(c)))throw new Error("missing: "+c);if(l===eW)throw new Error("ambiguous: "+c);l.children?l.children.push(u):l.children=[u],u.parent=l}else{if(s)throw new Error("multiple roots");s=u}if(!s)throw new Error("no root");if(null!=e){for(;s.data===tW&&1===s.children.length;)s=s.children[0],--o;for(let e=p.length-1;e>=0&&(u=p[e]).data===tW;--e)u.data=null}if(s.parent=Q$,s.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(X$),s.parent=null,o>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=Z$(e),r):t},r.parentId=function(e){return arguments.length?(n=Z$(e),r):n},r.path=function(t){return arguments.length?(e=Z$(t),r):e},r}function iW(e){let t=e.length;if(t<2)return"";for(;--t>1&&!aW(e,t););return e.slice(0,t)}function aW(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function sW(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,o=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(o)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++){let n=sW(r,o[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(o)){const t=new Array(o.length);r=n.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=sW(r,o[e]);return t}n[e]in o&&(o=o[n[e]])}return o}function lW(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(r=[...r,...lW(e[o].children,t-1,n)]);return r}function uW(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>lW(e.children,r-1,n)}return!1}const cW=/^qDimensionInfo(?:\/(\d+))?/,dW=/^\/?qMeasureInfo\/(\d+)/,pW=/\/qAttrExprInfo\/(\d+)/,fW=/\/qAttrDimInfo\/(\d+)/;function hW(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function mW(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,s=-1,l=-1,u=-1,c=-1,d=r;const p=n.qEffectiveInterColumnSortOrder,f=hW(n);return cW.test(d)&&(o=!0,i=+cW.exec(d)[1],d=r.replace(cW,"")),dW.test(d)&&("K"===n.qMode?u=+dW.exec(d)[1]:p&&-1!==p.indexOf(-1)?(u=+dW.exec(d)[1],c=0):c=+dW.exec(d)[1],d=d.replace(dW,"")),d&&(fW.exec(d)?s=+fW.exec(d)[1]:pW.exec(d)&&(a=+pW.exec(d)[1])),l=o?"S"===n.qMode?f[i]:p?p.indexOf(i):i:p&&-1!==p.indexOf(-1)?p.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:u,measureIdx:c,attrDimIdx:s,attrIdx:a}}function gW(e,t){let n,r,o=uW(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:o,attrFn:r,valueFn:n}}function bW(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}function yW(e){let{propsArr:t,props:n,item:r,itemData:o,ret:i,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let u,c;s.fields&&(u=[],c=[]);for(let n=0;n<l.length;n++){const d=l[n];let p,f,h,m,g,b;if("primitive"===d.type?(h=d.value,b=String(d.value)):("function"==typeof d.value&&(p=e=>d.value(e,r)),"function"==typeof d.label&&(f=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),p&&(h=g.map(p),p=null),f&&(b=g.map(f),f=null),h=d.reduce?d.reduce(h):h,b=d.reduceLabel?d.reduceLabel(b,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),b=h)):(h=o,b=o)),s.fields){const e=p?p(h):h;u.push(e),c.push(f&&null!=b?f(b):null!=b?b:String(e))}else{const n=p?p(h):h;i[t[e]]={value:n,label:f?f(b):null!=b?b:String(n)},d.field&&(i[t[e]].source={field:d.field.key(),key:a})}}u&&(i[t[e]]={value:"function"==typeof s.value?s.value(u,r):u,label:"function"==typeof s.label?s.label(c,r):c})}}const xW=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=sW(r,e);return i&&i[0]?(t.tree=V$(i[0],n.children||(e=>e[o])),t.tree):null};const vW=e=>{let{propsArr:t,props:n,cube:r,cache:o,itemDepthObject:i,f:a}=e;for(let e=0;e<t.length;e++){const o=n[t[e]],s=o.fields?o.fields:[o];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=gW(i,mW(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function _W(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o=t.raw(),i=t.key(),a="S"===o.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),o=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),i=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<o.length;e++){var s;const t=n[o[e]],i="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[i]||(a[i]=L$({__id:i,__parent:r,qValues:[]},t),l=!0),r=i}if(l)for(let e=0;e<i.length;e++){const t=n[i[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e])),u=oW().id((e=>e.__id)).parentId((e=>e.__parent))(l);return u}(t):xW(o,n,e);if(!a)return null;const s=a.height,l=[];for(let i=0;i<=s;i++){let a=null;if(i>0)if("S"===o.qMode){let e=hW(o)[i-1];a=n.fields[e]}else{let e=o.qEffectiveInterColumnSortOrder[i-1];i>o.qEffectiveInterColumnSortOrder.length&&(e=o.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:u}=r.normalizeConfig(L$(L$({},e),{},{field:a?a.key():void 0}),t),c=Object.keys(s);l[i]={propsArr:c,props:s,main:u};const d=a?mW(a,{cube:o}):{fieldDepth:0};vW({propsArr:c,props:s,cube:o,cache:n,itemDepthObject:d,f:a})}const u=a.copy().descendants(),c=a.descendants();for(let e=0;e<c.length;e++){const t=l[c[e].depth].propsArr,n=l[c[e].depth].props,r=l[c[e].depth].main,o=u[e],a=o.data,s=bW(r,a,{key:i});yW({propsArr:t,props:n,item:o,itemData:a,ret:s,sourceKey:i}),c[e].data=s}return a}function wW(e,t,n,r){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const s=t.raw(),l=t.key();if(!xW(s,n,e))continue;const u="object"==typeof o[a].field?o[a].field:t.field(o[a].field),{props:c,main:d}=r.normalizeConfig(o[a],t),p=Object.keys(c),f=mW(u,{cube:s}),{nodeFn:h,attrFn:m,valueFn:g}=gW({fieldDepth:0},f);vW({propsArr:p,props:c,cube:s,cache:n,itemDepthObject:f,f:u});const b=!!o[a].trackBy,y=typeof o[a].trackBy,x={},v=[],_=h(n.tree),w=[];for(let e=0;e<_.length;e++){const t=_[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const i=bW(d,n,{key:l});yW({propsArr:p,props:c,item:t,itemData:n,ret:i,sourceKey:l}),b&&r.track({cfg:o[a],itemData:n,obj:i,target:v,tracker:x,trackType:y}),w.push(i)}const S=b?r.collect(v,{main:d,propsArr:p,props:c}):w;i=[...i,...S]}return i}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var SW=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){
188
188
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
189
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),x=b+("."===y||","===y?1:0),v=g>0?e.substring(x,p):"";if(n=(t="-"===(e=e.substring(f,x)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+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],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,x=0;x<p;x++)m+=d.charAt(x),!((x-b+1)%l)&&x<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+v}}));function CW(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const EW={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},kW=/%\)?$/,RW=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,MW=/^\(oct\)/i,AW=/^\(dec\)/i,IW=/^\(hex\)/i,LW=/^\(bin\)/i,PW=/^\(rom\)/i,DW=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,TW=/#|0/g;function OW(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function zW(e,t,n){let r;return RW.test(t)?e=OW(e,Number(/\d{2}/.exec(t)[0]),t,n):MW.test(t)?e=OW(e,8,t,n):AW.test(t)?e=OW(e,10,t,n):IW.test(t)?e=OW(e,16,t,n):LW.test(t)?e=OW(e,2,t,n):PW.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=s[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function NW(e,t,n){const r=CW(e);return n?r:new RegExp(r||"",t)}function qW(e,t,n,r){let o,i,a,s,l,u,c,d,p,f=e.pattern;var h,m;r&&(e.abbreviate=!0),h=t,(m=n)&&(m=CW(m)),h&&(h=CW(h)),p=new RegExp("(?:[#0]+".concat(h,")?[#0]+(?:").concat(m,"[#0]+)?")),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),u=t,t=/,/.test(n)?"¤":",",u&&(a=a.replace(NW(u,"g"),t)),c=n,n=".",c&&(a=a.replace(NW(c,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=f.split(c);let b;g[1]&&(b=g[1].match(TW)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=b?b.length:2,e.percentage=kW.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(NW(t,null,!0),"|").concat(NW(n,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=n,e.temp=d}class jW{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return EW;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new jW(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],DW.test(e[0])&&(r.positive.isFunctional=!0),e[1]?DW.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?DW.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||qW(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&qW(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&qW(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,s,l,u,c=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,i=c.d,a=c.t,c.isFunctional)e=zW(e,c.pattern,i);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,o,i=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&s<t.length;)s++,i=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=c.maxPrecision?o=i:r<=n&&!(i>0&&-n<=c.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,u||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let n=l.split(i)[0];if(n+=i,e=SW(n,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),n=u.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<n;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=SW(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===i?c.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+p+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function FW(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:o=e=>e}=t;let i,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return i=r?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(u>=n&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),i.get=e=>s[e],i.has=e=>e in s,i.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},i.size=()=>u,i}function BW(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new jW(...t)}(o,e,t,n,r),a=FW(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const $W="D",WW="T",HW="TS",GW="IV",VW=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],YW=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],UW=["January","February","March","April","May","June","July","August","September","October","November","December"],KW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function XW(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function JW(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function ZW(e,t){let n,r=function(e){const t=e,n=24*JW(t),r=60*JW(n),o=60*JW(r),i=1e3*JW(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,s=r.s,l=r.f,u=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=n?n.getDay()-1:0,u<0&&(u=6));let c="";return n&&(c=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:o,h:i,m:a,s:s,f:l,t:c}}class QW{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:VW,qDayNames:YW,qLongMonthNames:UW,qMonthNames:KW}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[WW]:r.qTimeFmt||"hh:mm:ss",[$W]:r.qDateFmt||"YYYY-MM-DD",[HW]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new QW(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=ZW(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:XW("".concat(t.year).slice(-2),2),YYY:XW("".concat(t.year).slice(-3),3),def:e=>XW("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:XW("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:XW("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>XW("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>XW("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>XW("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>XW("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function eH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new QW(...t)}function tH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=eH(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=FW(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==GW?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=eH(o,e,t),r=FW(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function nH(){let e,{meta:t,id:n,key:r,localeInfo:o,fieldExtractor:i,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return tH(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),BW(n,r,o,i,t)}(t,o),p="dimension"===s?"first":(e,t)=>d(t),f={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=i(f)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:p,formatter:()=>d,tags:()=>t.qTags};return f}function rH(e,t,n,r,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),s={instance:nH(F$({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=rH("qAttrDimInfo",t,n,a,F$({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=rH("qAttrExprInfo",t,n,a,F$({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=rH("qMeasureInfo",t,n,a,F$({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function oH(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const i=oH.util,a={cache:r,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,i),hierarchy:e=>a.hierarchy(e,s,r,i),_cache:()=>r};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(a.extractor=wW,a.hierarchy=_W,a.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(a.extractor=H$,a.pages=o.qDataPages,a.hierarchy=_W):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,i);const l="S"===o.qMode?e=>e.qElemNumber:void 0,u="S"===o.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...rH("qDimensionInfo",o,e,"",F$({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...rH("qMeasureInfo",o,e,"",F$({},a,{value:u,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const c=e=>{e.forEach((e=>{r.allFields.push(e.instance),c(e.measures),c(e.attrDims),c(e.attrExps)}))};return c(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),o=nH(L$({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,i),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(o)})),r.allFields.push(...r.virtualFields),s}const iH=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],aH=/\/qDimensionInfo(?:\/(\d+))?/,sH=/\/qMeasureInfo\/(\d+)/,lH=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,uH=/\/qAttrExprInfo\/(\d+)/,cH=/\/?qHyperCube/,dH=/\/?qTreeData/,pH=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),fH=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function hH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;cH.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=pH):dH.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=fH);let s=!0;if(aH.test(e)&&(r=+aH.exec(e)[1]),sH.test(e)&&(o=+sH.exec(e)[1]),lH.test(e)){o=-1,r=0;const e=+lH.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(uH.test(e)){const e=o;if(t){o=0;const a=sW(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),r=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+uH.exec(n)[1]}else r>-1?(r=-1,o=+uH.exec(n)[1]):o+=+uH.exec(n)[1]+1}return iH.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||s>=i)&&i>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var u;a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]});return a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i}function mH(e){oH.util=e.data("matrix").util,e.data("q",oH),e.formatter("q-number",BW),e.formatter("q-time",tH)}mH.qBrushHelper=hH,mH.selections=hH;var gH=Object.prototype.hasOwnProperty,bH=Object.prototype.toString,yH=Object.defineProperty,xH=Object.getOwnPropertyDescriptor,vH=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===bH.call(e)},_H=function(e){if(!e||"[object Object]"!==bH.call(e))return!1;var t,n=gH.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gH.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gH.call(e,t)},wH=function(e,t){yH&&"__proto__"===t.name?yH(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},SH=function(e,t){if("__proto__"===t){if(!gH.call(e,t))return;if(xH)return xH(e,t).value}return e[t]},CH=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=SH(s,n),s!==(o=SH(t,n))&&(c&&o&&(_H(o)||(i=vH(o)))?(i?(i=!1,a=r&&vH(r)?r:[]):a=r&&_H(r)?r:{},wH(s,{name:n,newValue:e(c,a,o)})):void 0!==o&&wH(s,{name:n,newValue:o}));return s},EH="2.8.2";function kH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RH(Object(n),!0).forEach((function(t){kH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AH(e){return!!e.changedTouches}function IH(e){return"number"==typeof e&&!isNaN(e)}function LH(e){return"number"!=typeof e||isNaN(e)}function PH(e){const t=e.length;let n=NaN,r=NaN,o=NaN,i=NaN;for(let a=0;a<t;a++)n=isNaN(n)?e[a].x:Math.min(n,e[a].x),r=isNaN(r)?e[a].x:Math.max(r,e[a].x),o=isNaN(o)?e[a].y:Math.min(o,e[a].y),i=isNaN(i)?e[a].y:Math.max(i,e[a].y);return[n,o,r,i]}function DH(e){return[{x:e.x1||0,y:e.y1||0},{x:e.x2||0,y:e.y2||0}]}function TH(e){return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}]}function OH(e){const[t,n,r,o]=PH(e);return{x:t,y:n,width:r-t,height:o-n}}function zH(e){return{x1:e[0].x,y1:e[0].y,x2:e[1].x,y2:e[1].y}}function NH(e){const{x:t,y:n,width:r,height:o,x1:i,x2:a,y1:s,y2:l,cx:u,cy:c,r:d,vertices:p}=e||{};return IH(u)&&IH(c)&&IH(d)?"circle":IH(i)&&IH(a)&&IH(s)&&IH(l)?"line":IH(t)&&IH(n)&&IH(r)&&IH(o)?"rect":IH(t)&&IH(n)?"point":Array.isArray(p)?p.every((e=>Array.isArray(e)))?"geopolygon":"polygon":null}function qH(e,t){return{x:t.x-e,y:t.y-e,width:t.width+e,height:t.height+e}}var jH=Math.PI,FH=2*jH,BH=1e-6,$H=FH-BH;function WH(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function HH(){return new WH}function GH(e){return function(){return e}}WH.prototype=HH.prototype={constructor:WH,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>BH)if(Math.abs(c*s-l*u)>BH&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,g=Math.sqrt(h),b=Math.sqrt(d),y=o*Math.tan((jH-Math.acos((h+d-m)/(2*g*b)))/2),x=y/b,v=y/g;Math.abs(x-1)>BH&&(this._+="L"+(e+x*u)+","+(t+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*f)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>BH||Math.abs(this._y1-u)>BH)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%FH+FH),d>$H?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>BH&&(this._+="A"+n+","+n+",0,"+ +(d>=jH)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var VH=Math.abs,YH=Math.atan2,UH=Math.cos,KH=Math.max,XH=Math.min,JH=Math.sin,ZH=Math.sqrt,QH=1e-12,eG=Math.PI,tG=eG/2,nG=2*eG;function rG(e){return e>=1?tG:e<=-1?-tG:Math.asin(e)}function oG(e){return e.innerRadius}function iG(e){return e.outerRadius}function aG(e){return e.startAngle}function sG(e){return e.endAngle}function lG(e){return e&&e.padAngle}function uG(e,t,n,r,o,i,a){var s=e-n,l=t-r,u=(a?i:-i)/ZH(s*s+l*l),c=u*l,d=-u*s,p=e+c,f=t+d,h=n+c,m=r+d,g=(p+h)/2,b=(f+m)/2,y=h-p,x=m-f,v=y*y+x*x,_=o-i,w=p*m-h*f,S=(x<0?-1:1)*ZH(KH(0,_*_*v-w*w)),C=(w*x-y*S)/v,E=(-w*y-x*S)/v,k=(w*x+y*S)/v,R=(-w*y+x*S)/v,M=C-g,A=E-b,I=k-g,L=R-b;return M*M+A*A>I*I+L*L&&(C=k,E=R),{cx:C,cy:E,x01:-c,y01:-d,x11:C*(o/_-1),y11:E*(o/_-1)}}function cG(){var e=oG,t=iG,n=GH(0),r=null,o=aG,i=sG,a=lG,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),p=o.apply(this,arguments)-tG,f=i.apply(this,arguments)-tG,h=VH(f-p),m=f>p;if(s||(s=l=HH()),d<c&&(u=d,d=c,c=u),d>QH)if(h>nG-QH)s.moveTo(d*UH(p),d*JH(p)),s.arc(0,0,d,p,f,!m),c>QH&&(s.moveTo(c*UH(f),c*JH(f)),s.arc(0,0,c,f,p,m));else{var g,b,y=p,x=f,v=p,_=f,w=h,S=h,C=a.apply(this,arguments)/2,E=C>QH&&(r?+r.apply(this,arguments):ZH(c*c+d*d)),k=XH(VH(d-c)/2,+n.apply(this,arguments)),R=k,M=k;if(E>QH){var A=rG(E/c*JH(C)),I=rG(E/d*JH(C));(w-=2*A)>QH?(v+=A*=m?1:-1,_-=A):(w=0,v=_=(p+f)/2),(S-=2*I)>QH?(y+=I*=m?1:-1,x-=I):(S=0,y=x=(p+f)/2)}var L=d*UH(y),P=d*JH(y),D=c*UH(_),T=c*JH(_);if(k>QH){var O,z=d*UH(x),N=d*JH(x),q=c*UH(v),j=c*JH(v);if(h<eG&&(O=function(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,p=d*l-c*u;if(!(p*p<QH))return[e+(p=(c*(t-i)-d*(e-o))/p)*l,t+p*u]}(L,P,q,j,z,N,D,T))){var F=L-O[0],B=P-O[1],$=z-O[0],W=N-O[1],H=1/JH(function(e){return e>1?0:e<-1?eG:Math.acos(e)}((F*$+B*W)/(ZH(F*F+B*B)*ZH($*$+W*W)))/2),G=ZH(O[0]*O[0]+O[1]*O[1]);R=XH(k,(c-G)/(H-1)),M=XH(k,(d-G)/(H+1))}}S>QH?M>QH?(g=uG(q,j,L,P,d,M,m),b=uG(z,N,D,T,d,M,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),M<k?s.arc(g.cx,g.cy,M,YH(g.y01,g.x01),YH(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,M,YH(g.y01,g.x01),YH(g.y11,g.x11),!m),s.arc(0,0,d,YH(g.cy+g.y11,g.cx+g.x11),YH(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,M,YH(b.y11,b.x11),YH(b.y01,b.x01),!m))):(s.moveTo(L,P),s.arc(0,0,d,y,x,!m)):s.moveTo(L,P),c>QH&&w>QH?R>QH?(g=uG(D,T,z,N,c,-R,m),b=uG(L,P,q,j,c,-R,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),R<k?s.arc(g.cx,g.cy,R,YH(g.y01,g.x01),YH(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,R,YH(g.y01,g.x01),YH(g.y11,g.x11),!m),s.arc(0,0,c,YH(g.cy+g.y11,g.cx+g.x11),YH(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,R,YH(b.y11,b.x11),YH(b.y01,b.x01),!m))):s.arc(0,0,c,_,v,m):s.lineTo(D,T)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-eG/2;return[UH(r)*n,JH(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:GH(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:GH(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:GH(+e),l):r},l.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:GH(+e),l):o},l.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:GH(+e),l):i},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:GH(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function dG(e){this._context=e}function pG(e){return new dG(e)}function fG(e){return e[0]}function hG(e){return e[1]}function mG(){var e=fG,t=null,n=GH(0),r=hG,o=GH(!0),i=null,a=pG,s=null;function l(l){var u,c,d,p,f,h=l.length,m=!1,g=new Array(h),b=new Array(h);for(null==i&&(s=a(f=HH())),u=0;u<=h;++u){if(!(u<h&&o(p=l[u],u,l))===m)if(m=!m)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(g[d],b[d]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+e(p,u,l),b[u]=+n(p,u,l),s.point(t?+t(p,u,l):g[u],r?+r(p,u,l):b[u]))}if(f)return s=null,f+""||null}function u(){return function(){var e=fG,t=hG,n=GH(!0),r=null,o=pG,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=HH())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,s,a),+t(l,s,a));if(u)return i=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:GH(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:GH(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:GH(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:GH(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:GH(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:GH(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:GH(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:GH(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}function gG(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function bG(e){return e}dG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var yG=Array.prototype.slice;function xG(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vG(e){this._context=e}function _G(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function wG(e,t){this._context=e,this._k=(1-t)/6}vG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xG(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xG(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_G(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_G(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var SG=function e(t){function n(e){return new wG(e,t)}return n.tension=function(t){return e(+t)},n}(0);function CG(e,t){this._context=e,this._alpha=t}CG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>QH){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>QH){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var EG=function e(t){function n(e){return t?new CG(e,t):new wG(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kG(e){return e<0?-1:1}function RG(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(kG(i)+kG(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function MG(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function AG(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function IG(e){this._context=e}function LG(e){this._context=new PG(e)}function PG(e){this._context=e}function DG(e){this._context=e}function TG(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function OG(e,t){this._context=e,this._t=t}function zG(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function NG(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function qG(e,t){return e[t]}function jG(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function FG(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}function BG(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unspecified",r=arguments.length>2?arguments[2]:void 0;const o={},i=e||{get:()=>{},has:()=>!1,default:()=>{}};function a(e,t){if(!e||"string"!=typeof e)throw new TypeError("Invalid argument: key must be a non-empty string");return!(e in o)&&(o[e]=t,!0)}function s(e){return o[e]||i.get(e)}function l(e,o){if(void 0!==o)return a(e,o);const i=s(e);return r&&void 0===i&&r.warn("".concat(e," does not exist in ").concat(n," registry")),i||s(t)}return t=i.default(),l.add=a,l.get=s,l.has=function(e){return!!o[e]||i.has(e)},l.remove=function(e){const t=o[e];return delete o[e],t},l.getKeys=function(){return Object.keys(o)},l.getValues=function(){return Object.keys(o).map((e=>o[e]))},l.default=function(e){return void 0!==e&&(t=e),t},l.register=a,l}function $G(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function WG(e){return(e=$G(Math.abs(e)))?e[1]:NaN}IG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:AG(this,this._t0,MG(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,AG(this,MG(this,n=RG(this,e,t)),n);break;default:AG(this,this._t0,n=RG(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(LG.prototype=Object.create(IG.prototype)).point=function(e,t){IG.prototype.point.call(this,t,e)},PG.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},DG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=TG(e),o=TG(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},OG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var HG,GG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function VG(e){if(!(t=GG.exec(e)))throw new Error("invalid format: "+e);var t;return new YG({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function YG(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function UG(e,t){var n=$G(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}VG.prototype=YG.prototype,YG.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var KG={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>UG(100*e,t),r:UG,s:function(e,t){var n=$G(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(HG=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+$G(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function XG(e){return e}var JG,ZG,QG,eV=Array.prototype.map,tV=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nV(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?XG:(t=eV.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?XG:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(eV.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=VG(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(m=!0,y="g"):KG[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var x="$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===p?i:/[%p]/.test(y)?l:"",_=KG[y],w=/[defgprs%]/.test(y);function S(e){var o,i,l,p=x,S=v;if("c"===y)S=_(e)+S,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),p=(C?"("===d?d:u:"-"===d||"("===d?"":d)+p,S=("s"===y?tV[8+HG/3]:"")+S+(C&&"("===d?")":""),w)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var E=p.length+e.length+S.length,k=E<h?new Array(h-E+1).join(t):"";switch(m&&f&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=p+e+S+k;break;case"=":e=p+k+e+S;break;case"^":e=k.slice(0,E=k.length>>1)+p+e+S+k.slice(E);break;default:e=k+p+e+S}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=VG(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(WG(t)/3))),o=Math.pow(10,-r),i=tV[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){JG=nV(e),ZG=JG.format,QG=JG.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const rV=new Date,oV=new Date;function iV(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>iV((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(rV.setTime(+t),oV.setTime(+r),e(rV),e(oV),Math.floor(n(rV,oV))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const aV=6e4,sV=864e5,lV=6048e5,uV=iV((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aV)/sV),(e=>e.getDate()-1));uV.range;const cV=iV((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sV),(e=>e.getUTCDate()-1));cV.range;const dV=iV((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sV),(e=>Math.floor(e/sV)));function pV(e){return iV((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aV)/lV))}dV.range;const fV=pV(0),hV=pV(1),mV=pV(2),gV=pV(3),bV=pV(4),yV=pV(5),xV=pV(6);function vV(e){return iV((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/lV))}fV.range,hV.range,mV.range,gV.range,bV.range,yV.range,xV.range;const _V=vV(0),wV=vV(1),SV=vV(2),CV=vV(3),EV=vV(4),kV=vV(5),RV=vV(6);_V.range,wV.range,SV.range,CV.range,EV.range,kV.range,RV.range;const MV=iV((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));MV.every=e=>isFinite(e=Math.floor(e))&&e>0?iV((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,MV.range;const AV=iV((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function IV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function PV(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=IV,n=(t,n)=>IV(e(t),n),r=(t,n)=>e(t)-n):(t=e===IV||e===LV?e:DV,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function DV(){return 0}AV.every=e=>isFinite(e=Math.floor(e))&&e>0?iV((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,AV.range;const TV=PV(IV).right;PV((function(e){return null===e?NaN:+e})).center;var OV=TV;class zV extends Map{constructor(e,t=qV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(NV(this,e))}has(e){return super.has(NV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function NV({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function qV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const jV=Math.sqrt(50),FV=Math.sqrt(10),BV=Math.sqrt(2);function $V(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=jV?10:i>=FV?5:i>=BV?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?$V(e,t,2*n):[s,l,u]}function WV(e,t,n){return $V(e=+e,t=+t,n=+n)[2]}function HV(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function GV(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function VV(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function YV(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=eY(o),c=tY(o),d=eY(i),p=tY(i),f=eY(a),h=tY(a),m=eY(s),g=tY(s),b=eY(l),y=tY(l),x={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:wY,e:wY,f:RY,g:qY,G:FY,H:SY,I:CY,j:EY,L:kY,m:MY,M:AY,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:uU,s:cU,S:IY,u:LY,U:PY,V:TY,w:OY,W:zY,x:null,X:null,y:NY,Y:jY,Z:BY,"%":lU},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:$Y,e:$Y,f:YY,g:oU,G:aU,H:WY,I:HY,j:GY,L:VY,m:UY,M:KY,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:uU,s:cU,S:XY,u:JY,U:ZY,V:eU,w:tU,W:nU,x:null,X:null,y:rU,Y:iU,Z:sU,"%":lU},_={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:pY,e:pY,f:yY,g:lY,G:sY,H:hY,I:hY,j:fY,L:bY,m:dY,M:mY,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:cY,Q:vY,s:_Y,S:gY,u:rY,U:oY,V:iY,w:nY,W:aY,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:lY,Y:sY,Z:uY,"%":xY};function w(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=UV[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,o,i=VV(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=GV(VV(i.y,0,1))).getUTCDay(),r=o>4||0===o?wV.ceil(r):wV(r),r=cV.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=HV(VV(i.y,0,1))).getDay(),r=o>4||0===o?hV.ceil(r):hV(r),r=uV.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?GV(VV(i.y,0,1)).getUTCDay():HV(VV(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,GV(i)):HV(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=_[o in UV?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),{format:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var UV={"-":"",_:" ",0:"0"},KV=/^\s*\d+/,XV=/^%/,JV=/[\\^$*+?|[\]().{}]/g;function ZV(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function QV(e){return e.replace(JV,"\\$&")}function eY(e){return new RegExp("^(?:"+e.map(QV).join("|")+")","i")}function tY(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function nY(e,t,n){var r=KV.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rY(e,t,n){var r=KV.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function oY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function iY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function aY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sY(e,t,n){var r=KV.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function uY(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cY(e,t,n){var r=KV.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function dY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fY(e,t,n){var r=KV.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function hY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function bY(e,t,n){var r=KV.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yY(e,t,n){var r=KV.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xY(e,t,n){var r=XV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vY(e,t,n){var r=KV.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _Y(e,t,n){var r=KV.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wY(e,t){return ZV(e.getDate(),t,2)}function SY(e,t){return ZV(e.getHours(),t,2)}function CY(e,t){return ZV(e.getHours()%12||12,t,2)}function EY(e,t){return ZV(1+uV.count(MV(e),e),t,3)}function kY(e,t){return ZV(e.getMilliseconds(),t,3)}function RY(e,t){return kY(e,t)+"000"}function MY(e,t){return ZV(e.getMonth()+1,t,2)}function AY(e,t){return ZV(e.getMinutes(),t,2)}function IY(e,t){return ZV(e.getSeconds(),t,2)}function LY(e){var t=e.getDay();return 0===t?7:t}function PY(e,t){return ZV(fV.count(MV(e)-1,e),t,2)}function DY(e){var t=e.getDay();return t>=4||0===t?bV(e):bV.ceil(e)}function TY(e,t){return e=DY(e),ZV(bV.count(MV(e),e)+(4===MV(e).getDay()),t,2)}function OY(e){return e.getDay()}function zY(e,t){return ZV(hV.count(MV(e)-1,e),t,2)}function NY(e,t){return ZV(e.getFullYear()%100,t,2)}function qY(e,t){return ZV((e=DY(e)).getFullYear()%100,t,2)}function jY(e,t){return ZV(e.getFullYear()%1e4,t,4)}function FY(e,t){var n=e.getDay();return ZV((e=n>=4||0===n?bV(e):bV.ceil(e)).getFullYear()%1e4,t,4)}function BY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ZV(t/60|0,"0",2)+ZV(t%60,"0",2)}function $Y(e,t){return ZV(e.getUTCDate(),t,2)}function WY(e,t){return ZV(e.getUTCHours(),t,2)}function HY(e,t){return ZV(e.getUTCHours()%12||12,t,2)}function GY(e,t){return ZV(1+cV.count(AV(e),e),t,3)}function VY(e,t){return ZV(e.getUTCMilliseconds(),t,3)}function YY(e,t){return VY(e,t)+"000"}function UY(e,t){return ZV(e.getUTCMonth()+1,t,2)}function KY(e,t){return ZV(e.getUTCMinutes(),t,2)}function XY(e,t){return ZV(e.getUTCSeconds(),t,2)}function JY(e){var t=e.getUTCDay();return 0===t?7:t}function ZY(e,t){return ZV(_V.count(AV(e)-1,e),t,2)}function QY(e){var t=e.getUTCDay();return t>=4||0===t?EV(e):EV.ceil(e)}function eU(e,t){return e=QY(e),ZV(EV.count(AV(e),e)+(4===AV(e).getUTCDay()),t,2)}function tU(e){return e.getUTCDay()}function nU(e,t){return ZV(wV.count(AV(e)-1,e),t,2)}function rU(e,t){return ZV(e.getUTCFullYear()%100,t,2)}function oU(e,t){return ZV((e=QY(e)).getUTCFullYear()%100,t,2)}function iU(e,t){return ZV(e.getUTCFullYear()%1e4,t,4)}function aU(e,t){var n=e.getUTCDay();return ZV((e=n>=4||0===n?EV(e):EV.ceil(e)).getUTCFullYear()%1e4,t,4)}function sU(){return"+0000"}function lU(){return"%"}function uU(e){return+e}function cU(e){return Math.floor(+e/1e3)}const dU=BG();dU("d3-number",(function(e,t,n){let r,o;function i(e){return o(e)}function a(){i.locale({decimal:n||".",thousands:t||",",grouping:[3],currency:["$",""]})}return i.locale=function(t){return r=nV(t),o=r.format(e),this},a(),i.format=function(e,o,i,s){return(i||s)&&(t=i,n=s,a()),r.format(e)(o)},i.pattern=function(t){return t&&(e=t,o=r.format(t)),e},i})),dU("d3-time",(function(e){let t=YV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n=t.format(e);function r(e){return n(e)}return r.format=function(e,n){return t.format(e)(n)},r.locale=function(){return t=YV(...arguments),n=t.format(e),this},r.parse=function(e,n){return t.parse(e)(n)},r.parsePattern=function(e){return t.parse(e)},r}));const pU={id:e=>"".concat(e.source,"/").concat(e.key||e.title),key:e=>String(e.key||e.title),tags:e=>e.tags,min:e=>e.min,max:e=>e.max,type:e=>e.type,title:e=>String(e.title),values:e=>e.values,value:e=>e,label:e=>e,formatter:e=>(e=>{if("function"==typeof e.formatter)return e.formatter();const t=e.formatter||{};return dU(t.type||"d3-number")(t.format||"")})(e)};function fU(e){let{id:t=pU.id,key:n=pU.key,min:r=pU.min,max:o=pU.max,type:i=pU.type,tags:a=pU.tags,title:s=pU.title,values:l=pU.values,value:u=pU.value,label:c=pU.label,formatter:d=pU.formatter}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:()=>t(e),key:()=>n(e),raw:()=>e,tags:()=>a(e),type:()=>i(e),min:()=>r(e),max:()=>o(e),title:()=>s(e),items:()=>l(e),formatter:()=>d(e),value:u,label:c}}const hU=e=>e.filter((e=>"number"==typeof e&&!isNaN(e))),mU=e=>e.reduce(((e,t)=>e+t),0),gU={first:e=>e[0],last:e=>e[e.length-1],min:e=>{const t=hU(e);return t.length?Math.min.apply(null,t):NaN},max:e=>{const t=hU(e);return t.length?Math.max.apply(null,t):NaN},sum:e=>{const t=hU(e);return t.length?t.reduce(((e,t)=>e+t),0):NaN},avg:e=>{const t=hU(e),n=t.length;return n?mU(t)/n:NaN}};function bU(e,t,n,r){const o={},i=r.field||(void 0!==e.field?t.field(e.field):null);return Object.keys(n).forEach((a=>{const s=n[a],l=o[a]={};-1!==["number","string","boolean"].indexOf(typeof s)?(l.type="primitive",l.value=s):"function"==typeof s?(l.type="function",l.value=s,l.label=s,l.field=i):"object"==typeof s&&(s.fields?l.fields=s.fields.map((n=>bU(e,t,{main:n},r).main)):void 0!==s.field?(l.type="field",l.field=t.field(s.field),l.value=l.field.value,l.label=l.field.label):i&&(l.value=i.value,l.label=i.label,l.field=i),"function"==typeof s.filter&&(l.filter=s.filter),void 0!==s.value&&(l.value=s.value),void 0!==s.label&&(l.label=s.label),"function"==typeof s.reduce?l.reduce=s.reduce:s.reduce?l.reduce=gU[s.reduce]:l.field&&l.field.reduce&&(l.reduce="string"==typeof l.field.reduce?gU[l.field.reduce]:l.field.reduce),"function"==typeof s.reduceLabel?l.reduceLabel=s.reduceLabel:s.reduceLabel?l.reduceLabel=gU[s.reduceLabel]:l.field&&l.field.reduceLabel&&(l.reduceLabel="string"==typeof l.field.reduceLabel?gU[l.field.reduceLabel]:l.field.reduceLabel))})),o}function yU(e,t){const{main:n}=bU(e,t,{main:{value:e.value,label:e.label,reduce:e.reduce,filter:e.filter}},{});return{props:bU(e,t,e.props||{},n),main:n}}function xU(e,t,n,r){const o=Array(e.length),i=Array(e.length);let a;for(let t=0;t<e.length;t++)a=r?e[t][r]:e[t],o[t]=a.value,i[t]=a.label;const s=t.reduce,l=t.reduceLabel,u=s?s(o):o,c={value:u,label:l?l(i,u):n?n(u):String(u)};return r&&e[0][r].source?(c.source=e[0][r].source,c):!r&&e[0].source?(c.source=e[0].source,c):c}function vU(e,t){let{main:n,propsArr:r,props:o}=t,i=[];const a=n.field.formatter(),s={};return r.forEach((e=>{s[e]=o[e].field?o[e].field.formatter():e=>e})),i.push(...e.map((e=>{const t=xU(e.items,n,a);return r.forEach((n=>{t[n]=xU(e.items,o[n],s[n],n)})),t}))),i}function _U(e){let{cfg:t,itemData:n,obj:r,target:o,tracker:i,trackType:a}=e;const s="function"===a?t.trackBy(n):n[t.trackBy];let l=i[s];l||(l=i[s]={items:[],id:s},o.push(l)),l.items.push(r)}function wU(e){if(e.length<1e4)return Math.max(...e);let t=-1/0;const n=e.length;for(let r=0;r<n;r++)t<e[r]&&(t=e[r]);return t}function SU(e){if(e.length<1e4)return Math.min(...e);let t=1/0;const n=e.length;for(let r=0;r<n;r++)t>e[r]&&(t=e[r]);return t}const CU={diverging:function(e,t){if((s=e.length)>0)for(var n,r,o,i,a,s,l=0,u=e[t[0]].length;l<u;++l)for(i=a=0,n=0;n<s;++n)(o=(r=e[t[n]][l])[1]-r[0])>=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},none:zG,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}zG(e,t)}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}zG(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],d=c[a][1]||0,p=(d-(c[a-1][1]||0))/2,f=0;f<s;++f){var h=e[t[f]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=d,u+=p*d}n[a-1][1]+=n[a-1][0]=i,l&&(i-=u/l)}n[a-1][1]+=n[a-1][0]=i,zG(e,t)}}},EU={ascending:function(e){var t=e.map(FG);return NG(e).sort((function(e,n){return t[e]-t[n]}))},insideout:function(e){var t,n,r=e.length,o=e.map(FG),i=function(e){var t=e.map(jG);return NG(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,s=0,l=[],u=[];for(t=0;t<r;++t)n=i[t],a<s?(a+=o[n],l.push(n)):(s+=o[n],u.push(n));return u.reverse().concat(l)},none:NG,reverse:function(e){return NG(e).reverse()}};function kU(e,t,n){const r={},o=t.stackKey,i=t.value,a=t.startProp||"start",s=t.endProp||"end",l=t.offset||"none",u=t.order||"none",c=t.valueRef||"";let d=0,p={};for(let t=0;t<e.items.length;t++){let n=e.items[t],i=c?n[c]:null;if(i&&i.source){let e="".concat(i.source.key||"","/").concat(i.source.field);p[e]||(p[e]=i.source)}let a=o(n);r[a]=r[a]||{items:[]},r[a].items.push(n),d=Math.max(d,r[a].items.length)}const f=Array.apply(null,{length:d}).map(Number.call,Number),h=Object.keys(r).map((e=>r[e].items)),m=function(){var e=GH([]),t=NG,n=zG,r=qG;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,u=s.length,c=new Array(u);for(i=0;i<u;++i){for(var d,p=s[i],f=c[i]=new Array(l),h=0;h<l;++h)f[h]=d=[0,+r(o[h],p,h,o)],d.data=o[h];f.key=p}for(i=0,a=t(c);i<u;++i)c[a[i]].index=i;return n(c,a),c}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:GH(yG.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:GH(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?NG:"function"==typeof e?e:GH(yG.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?zG:e,o):n},o}().keys(f).value(((e,t)=>e[t]?i(e[t]):0)).order(EU[u]).offset(CU[l]);let g=m(h),b=[];for(let e=0;e<g.length;e++){let t=g[e];for(let e=0;e<t.length;e++){let n=t[e],r=t[e].data[t.key];r&&(r[a]={value:n[0]},r[s]={value:n[1]},b.push(n[0],n[1]))}}let y=Object.keys(p).map((e=>{let t=n(p[e].key);return t?t.field(p[e].field):null})).filter((e=>!!e));const x=fU({title:y.map((e=>e.title())).join(", "),min:SU(b),max:wU(b),type:"measure",formatter:y[0]?y[0].formatter:void 0});e.fields.push(x)}function RU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).logger;if(Array.isArray(e))n.items=e.map((e=>({value:e,label:String(e)})));else if(e){if("collection"in e)n=MH({},t.collection(e.collection));else{const o=t.dataset?t.dataset(e.source):null;let i=e.value||(e=>e),a=e.label||(e=>e);if(e.groupBy||e.mapTo)r.warn('Deprecated "data" configuration',e),n.items=[];else if(e.hierarchy)n.root=o.hierarchy?o.hierarchy(e.hierarchy):null,n.fields=o.fields();else if(e.items)n.items=e.skipNormalize?e.items:e.items.map((e=>({value:i(e),label:String(a(e))})));else if(e.extract){const r=Array.isArray(e.extract)?e.extract:[e.extract];n.items=[];const i=[];r.forEach((e=>{const r=e.source?t.dataset(e.source):o;r&&(n.items=[...n.items,...r.extract(e)],void 0!==e.field&&i.push(r.field(e.field)))})),i.length&&(n.fields=i),e.amend&&Array.isArray(e.amend)&&(n.items=[...n.items,...e.amend])}else if(void 0!==e.field&&o){const t=o.field(e.field);t&&(n.fields||(n.fields=[]),n.fields.push(t),"value"in e||(i=t.value||(e=>e),a=t.label||(e=>e),n.value=i),n.items=t.items().map((t=>({value:i(t),label:String(a(t)),source:{field:e.field}}))))}else e.fields&&e.fields.forEach((e=>{const r="object"==typeof e&&e.source?t.dataset(e.source):o;if(!r)return;let i;i="object"==typeof e&&void 0!==e.field?r.field(e.field):r.field(e),i&&(n.fields||(n.fields=[]),n.fields.push(i))}));n.items&&e.map&&(n.items=n.items.map(e.map))}e&&e.stack&&kU(n,e.stack,t.dataset)}return e&&!Array.isArray(e)&&"function"==typeof e.filter&&n.items&&(n.items=n.items.filter(e.filter)),e&&!Array.isArray(e)&&"function"==typeof e.sort&&n.items&&(n.items=n.items.sort(e.sort)),n}function MU(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:RU;if(e.data){const r=o(e.data,t,n);if(r&&r.fields&&r.fields[0])return r.fields[0].formatter()}if(r=e.formatter?"".concat(e.formatter,"-").concat(e.type||"number"):e.type||"d3-number",n.formatter.has(r)){return n.formatter.get(r)(e.format||"")}throw new Error("Formatter of type '".concat(r,"' was not found"))}function AU(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const IU=Symbol("implicit");function LU(){var e=new zV,t=[],n=[],r=IU;function o(o){let i=e.get(o);if(void 0===i){if(r!==IU)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new zV;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return LU(t,n).unknown(r)},AU.apply(o,arguments),o}function PU(){var e,t,n=LU().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<i,p=d?a:i,f=d?i:a;e=(f-p)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),p+=(f-p-e*(n-l))*c,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return PU(r(),[i,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},AU.apply(d(),arguments)}function DU(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function TU(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function OU(){}var zU=.7,NU=1/zU,qU="\\s*([+-]?\\d+)\\s*",jU="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",FU="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BU=/^#([0-9a-f]{3,8})$/,$U=new RegExp(`^rgb\\(${qU},${qU},${qU}\\)$`),WU=new RegExp(`^rgb\\(${FU},${FU},${FU}\\)$`),HU=new RegExp(`^rgba\\(${qU},${qU},${qU},${jU}\\)$`),GU=new RegExp(`^rgba\\(${FU},${FU},${FU},${jU}\\)$`),VU=new RegExp(`^hsl\\(${jU},${FU},${FU}\\)$`),YU=new RegExp(`^hsla\\(${jU},${FU},${FU},${jU}\\)$`),UU={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 KU(){return this.rgb().formatHex()}function XU(){return this.rgb().formatRgb()}function JU(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BU.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ZU(t):3===n?new tK(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?QU(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?QU(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=$U.exec(e))?new tK(t[1],t[2],t[3],1):(t=WU.exec(e))?new tK(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HU.exec(e))?QU(t[1],t[2],t[3],t[4]):(t=GU.exec(e))?QU(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=VU.exec(e))?sK(t[1],t[2]/100,t[3]/100,1):(t=YU.exec(e))?sK(t[1],t[2]/100,t[3]/100,t[4]):UU.hasOwnProperty(e)?ZU(UU[e]):"transparent"===e?new tK(NaN,NaN,NaN,0):null}function ZU(e){return new tK(e>>16&255,e>>8&255,255&e,1)}function QU(e,t,n,r){return r<=0&&(e=t=n=NaN),new tK(e,t,n,r)}function eK(e,t,n,r){return 1===arguments.length?function(e){return e instanceof OU||(e=JU(e)),e?new tK((e=e.rgb()).r,e.g,e.b,e.opacity):new tK}(e):new tK(e,t,n,null==r?1:r)}function tK(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nK(){return`#${aK(this.r)}${aK(this.g)}${aK(this.b)}`}function rK(){const e=oK(this.opacity);return`${1===e?"rgb(":"rgba("}${iK(this.r)}, ${iK(this.g)}, ${iK(this.b)}${1===e?")":`, ${e})`}`}function oK(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function iK(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aK(e){return((e=iK(e))<16?"0":"")+e.toString(16)}function sK(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new uK(e,t,n,r)}function lK(e){if(e instanceof uK)return new uK(e.h,e.s,e.l,e.opacity);if(e instanceof OU||(e=JU(e)),!e)return new uK;if(e instanceof uK)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new uK(a,s,l,e.opacity)}function uK(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function cK(e){return(e=(e||0)%360)<0?e+360:e}function dK(e){return Math.max(0,Math.min(1,e||0))}function pK(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}DU(OU,JU,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:KU,formatHex:KU,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lK(this).formatHsl()},formatRgb:XU,toString:XU}),DU(tK,eK,TU(OU,{brighter(e){return e=null==e?NU:Math.pow(NU,e),new tK(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zU:Math.pow(zU,e),new tK(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tK(iK(this.r),iK(this.g),iK(this.b),oK(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:nK,formatHex:nK,formatHex8:function(){return`#${aK(this.r)}${aK(this.g)}${aK(this.b)}${aK(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rK,toString:rK})),DU(uK,(function(e,t,n,r){return 1===arguments.length?lK(e):new uK(e,t,n,null==r?1:r)}),TU(OU,{brighter(e){return e=null==e?NU:Math.pow(NU,e),new uK(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zU:Math.pow(zU,e),new uK(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new tK(pK(e>=240?e-240:e+120,o,r),pK(e,o,r),pK(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new uK(cK(this.h),dK(this.s),dK(this.l),oK(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=oK(this.opacity);return`${1===e?"hsl(":"hsla("}${cK(this.h)}, ${100*dK(this.s)}%, ${100*dK(this.l)}%${1===e?")":`, ${e})`}`}}));var fK=e=>()=>e;function hK(e){return 1==(e=+e)?mK:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):fK(isNaN(t)?n:t)}}function mK(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):fK(isNaN(e)?t:e)}var gK=function e(t){var n=hK(t);function r(e,t){var r=n((e=eK(e)).r,(t=eK(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=mK(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function bK(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function yK(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=EK(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function xK(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vK(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _K(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=EK(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var wK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,SK=new RegExp(wK.source,"g");function CK(e,t){var n,r,o,i=wK.lastIndex=SK.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=wK.exec(e))&&(r=SK.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:vK(n,r)})),i=SK.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function EK(e,t){var n,r=typeof t;return null==t||"boolean"===r?fK(t):("number"===r?vK:"string"===r?(n=JU(t))?(t=n,gK):CK:t instanceof JU?gK:t instanceof Date?xK:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?bK:Array.isArray(t)?yK:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?_K:vK)(e,t)}function kK(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function RK(e){return+e}var MK=[0,1];function AK(e){return e}function IK(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function LK(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=IK(o,r),i=n(a,i)):(r=IK(r,o),i=n(i,a)),function(e){return i(r(e))}}function PK(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=IK(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=OV(e,t,1,r)-1;return i[n](o[n](t))}}function DK(){var e,t,n,r,o,i,a=MK,s=MK,l=EK,u=AK;function c(){var e=Math.min(a.length,s.length);return u!==AK&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?PK:LK,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),vK)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,RK),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=kK,c()},d.clamp=function(e){return arguments.length?(u=!!e||AK,c()):u!==AK},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function TK(e,t,n,r){var o,i=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?WV(t,e,n):WV(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}(e,t,n);switch((r=VG(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(WG(t)/3)))-WG(Math.abs(e)))}(i,a))||(r.precision=o),QG(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,WG(t)-WG(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-WG(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return ZG(r)}function OK(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,i,a]=r?$V(t,e,n):$V(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(i-e)/-a;else for(let e=0;e<s;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(o+e)/-a;else for(let e=0;e<s;++e)l[e]=(o+e)*a;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return TK(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,l=i[a],u=i[s],c=10;for(u<l&&(o=l,l=u,u=o,o=a,a=s,s=o);c-- >0;){if((o=WV(l,u,n))===r)return i[a]=l,i[s]=u,t(i);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function zK(){var e=DK()(AK,AK);return e.copy=function(){return t=e,zK().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},AU.apply(e,arguments),OK(e)}function NK(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[OV(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return NK().domain(t).range(n).unknown(e)},AU.apply(o,arguments)}function qK(e){return void 0===e?e=>e:t=>e(t)}function jK(e){return Math.max(0,Math.min(1,e))}function FK(e){return"object"==typeof e}function BK(e,t,n){const r=Math.abs(t-n)/(e+1),o=[];for(let i=1;i<=e;i++){const e=i*r;o.push(t<n?t+e:t-e)}return o}function $K(e,t,n){if(1===e.length)return e;const r=e.concat([]);for(let o=0;o<e.length;o++){let i=e[o],a=e[o+1];0===o&&i!==n.start()?(r.push(...BK(t,i,a)),i-=a-i,a=e[o],r.push(...BK(t,i,a))):o===e.length-1&&a!==n.end()?(a=i+(i-e[o-1]),r.push(...BK(t,i,a))):r.push(...BK(t,i,a))}return r.filter((e=>e>=n.min()&&e<=n.max()))}function WK(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=LH(o)||LH(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a));let l=n.ticks(s);l.length<=1&&(l=n.ticks(s+1));const u=r>0?$K(l,r,n):l;u.sort(((e,t)=>e-t));const c=u.map(qK(i));return u.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:c[t],value:e,isMinor:-1===l.indexOf(e)}}))}function HK(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=LH(o)||LH(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a)),l=s>10?10:s;n.nice(l);const u=n.ticks(s),c=r>0?$K(u,r,n):u;c.sort(((e,t)=>e-t));const d=c.map(qK(i));return c.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:d[t],value:e,isMinor:-1===u.indexOf(e)}}))}function GK(e){let t,{settings:n,scale:r,distance:o,formatter:i=e=>e}=e;const a=n.minorTicks&&!LH(n.minorTicks.count)?Math.min(100,n.minorTicks.count):0;if(Array.isArray(n.ticks.values)){const e=n.ticks.values.filter((e=>"object"==typeof e?!LH(e.value):!LH(e)));t=function(e){let{values:t,scale:n,formatter:r=e=>e}=e;return t.sort(((e,t)=>(FK(e)?e.value:e)-(FK(t)?t.value:t))).filter(((e,t,r)=>{const o=FK(e)?e.value:e;return o<=n.max()&&o>=n.min()&&r.indexOf(e)===t})).map((e=>{const t=FK(e),o=t?e.value:e,i=n(o);return{position:i,value:o,label:t&&void 0!==e.label?e.label:r(o),isMinor:!!t&&!!e.isMinor,start:t&&!isNaN(e.start)?jK(n(e.start)):i,end:t&&!isNaN(e.end)?jK(n(e.end)):i}}))}({values:e,scale:r.copy(),formatter:i})}else if(LH(n.ticks.count)){t=(n.ticks.tight?HK:WK)({distance:o,minorCount:a,unitDivider:n.ticks.distance,scale:r,formatter:i}),n.ticks.forceBounds&&function(e,t,n){const r=e.map((e=>e.position)),o=t.range();-1===r.indexOf(o[0])?e.splice(0,0,{position:o[0],start:o[0],end:o[0],label:n(t.start()),isMinor:!1,value:t.start()}):e[0]&&e[0].isMinor&&(e[0].isMinor=!1);const i=e[e.length-1];-1===r.indexOf(o[1])?e.push({position:o[1],start:o[1],end:o[1],label:n(t.end()),isMinor:!1,value:t.end()}):i&&i.isMinor&&(i.isMinor=!1)}(t,r,i)}else{t=function(e){let{count:t,minorCount:n,scale:r,formatter:o}=e;return r.ticks((t-1)*n+t).map(((e,t)=>{const i=r(e);return{position:i,start:i,end:i,label:o(e),isMinor:t%(n+1)!=0,value:e}}))}({count:Math.min(1e3,n.ticks.count),minorCount:a,scale:r.copy(),formatter:i})}return t}function VK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={};return Object.keys(t).forEach((o=>{const i=typeof e[o];r[o]="function"===i?e[o](n):"undefined"===i?t[o]:e[o]})),r}const YK={min:NaN,max:NaN,expand:NaN,include:[],invert:!1},UK={tight:!1,forceBounds:!1,values:void 0,count:NaN,distance:100},KK={count:NaN};function XK(e,t){e.instance||(e.instance=t.copy(),e.instance.domain([t.start(),t.end()]),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}function JK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=zK(),o={instance:null,invert:!1},i={data:t,resources:n},a=VK(e,YK,i);let s;function l(e){return LH(e)?NaN:r(e)}a.ticks=VK(e.ticks,UK,i),a.minorTicks=VK(e.minorTicks,KK,i),l.data=()=>t,l.invert=function(e){return r.invert(e)},l.rangeRound=function(e){return r.rangeRound(e),l},l.clamp=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r.clamp(e),l},l.cachedTicks=function(){return s},l.clearTicksCache=function(){return s=void 0,this},l.ticks=function(e){return null!==e&&"object"==typeof e?(e.settings=e.settings||{},e.settings=CH(!0,{},a,e.settings),e.scale=l,s=GK(e),s):(s=r.ticks(e),s)},l.nice=function(e){return r.nice(e),l},l.tickFormat=function(e,t){return r.tickFormat(e,t)},l.interpolate=function(e){return r.interpolate(e),l},l.domain=function(e){return arguments.length?(r.domain(e),o.instance&&o.instance.domain([l.start(),l.end()]),l):r.domain()},l.range=function(e){return arguments.length?(r.range(e),l):r.range()},l.start=function(){return l.domain()[0]},l.end=function(){return l.domain()[this.domain().length-1]},l.min=function(){return Math.min(this.start(),this.end())},l.max=function(){return Math.max(this.start(),this.end())},l.classify=function(e){let t=(l.start()-l.end())/e,n=[l.end()],r=[],o=t/2;for(let i=0;i<e;i++){let e=n[n.length-1]||0,i=e+t,a=l(e+o);n.push(i,i),r.push(a,a)}return n.pop(),l.domain(n),l.range(r),l},l.copy=function(){const o=JK(e,t,n);return o.domain(l.domain()),o.range(l.range()),o.clamp(r.clamp()),o},l.norm=function(e){return XK(o,l),o.instance(e)},l.normInvert=function(e){return XK(o,l),o.instance.invert(e)};const{mini:u,maxi:c}=function(e,t){const n=+e.min,r=+e.max;let o=0,i=1;if(t&&t[0]){const n=t.map((e=>e.min())).filter((e=>!isNaN(e))),r=t.map((e=>e.max())).filter((e=>!isNaN(e)));if(o=n.length?Math.min(...n):Number.NaN,i=r.length?Math.max(...r):Number.NaN,isNaN(o)||isNaN(i))o=-1,i=1;else if(o===i&&0===o)o=-1,i=1;else if(o===i&&o)o-=Math.abs(.1*o),i+=Math.abs(.1*i);else if(!isNaN(e.expand)){const t=i-o;o-=t*e.expand,i+=t*e.expand}if(Array.isArray(e.include)){const t=e.include.filter((e=>!isNaN(e)));o=Math.min(...t,o),i=Math.max(...t,i)}}return{mini:isNaN(n)?o:n,maxi:isNaN(r)?i:r}}(a,t?t.fields:[]);return l.domain([u,c]),l.range(a.invert?[1,0]:[0,1]),o.invert=a.invert,l}const ZK={padding:0,paddingInner:NaN,paddingOuter:NaN,align:.5,invert:!1,maxPxStep:NaN,range:[0,1]};function QK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={data:t,resources:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},r=VK(e,ZK,n),o=t.items||[],i={},a=[],s=[];function l(e,n){e.data=()=>t,e.datum=e=>o[i[e]],e.start=function(){return e.domain()[0]},e.end=function(){return e.domain()[e.domain().length-1]},e.labels=()=>s,e.ticks=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.scale=e,function(e){let{scale:t}=e;const n=t.domain(),r=t.data().items,o=t.labels?t.labels():n,i=t.bandwidth();return n.map(((e,n)=>{const a=t(e);return{position:a+i/2,label:"".concat(o[n]),data:r?r[n]:void 0,start:a,end:a+i}}))}(t,n.trackBy)}}const u=PU();l(u,e),u.pxScale=function(t){const n=r.maxPxStep;if(isNaN(n))return u;const o=u.domain().length,i=Math.max(1,o-u.paddingInner()+2*u.paddingOuter());if(i*n>=t)return u;const a=u.copy();a.type=u.type,l(a,e);const s=i*n/t,c=(1-s)*u.align();return a.range(r.invert?[s+c,c]:[c,s+c]),a};const c="function"==typeof e.value?e.value:e=>e.datum.value,d="function"==typeof e.label?e.label:e=>e.datum.label;for(let e=0;e<o.length;e++){const t=CH({datum:o[e]},n),r=c(t,e);-1===a.indexOf(r)&&(a.push(r),s.push(d(t,e)),i[r]=e)}return u.domain(a),u.range(r.invert?r.range.slice().reverse():r.range),u.padding(isNaN(r.padding)?0:r.padding),isNaN(r.paddingInner)||u.paddingInner(r.paddingInner),isNaN(r.paddingOuter)||u.paddingOuter(r.paddingOuter),u.align(isNaN(r.align)?.5:r.align),u}const eX={depth:0};function tX(e,t,n){return e.ancestors().map((e=>t(CH({datum:e.data},n)))).reverse().slice(1).toString()}const nX=e=>e.min(),rX=e=>e.max();function oX(e,t){const n=e&&!isNaN(e.min),r=e&&!isNaN(e.max);let o=n?+e.min:0,i=r?+e.max:1;if(t&&t.length){if(!n){const e=t.map(nX).filter(IH);o=e.length?Math.min(...e):o}if(!r){const e=t.map(rX).filter(IH);i=e.length?Math.max(...e):i}}return[o,i]}const iX={domain:[],range:[],invert:!1,min:NaN,max:NaN};function aX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=JK(e,t,n).clamp(!0).interpolate(gK),o=VK(e,iX,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length,s=r;CH(!0,s,r);const[l,u]=oX(o,t?t.fields:[]),c=i?o.domain.length:-1,d=n.theme?n.theme.palette("sequential",c>0?c:2):[],p=a?o.range:d;return s.range(o.invert?p.slice().reverse():p.slice()),s.domain(i?o.domain:function(e,t,n){const r=e.length;if(2===r)return[t,n];const o=[],i=(n-t)/(r-1);o.push(t);for(let e=1;e<r-1;e++)o.push(t+i*e);return o.push(n),o}(s.range(),l,u)),s}const sX={domain:[],range:[],invert:!1,min:NaN,max:NaN,nice:!1};function lX(e){const t=[];for(let n=0;n<e.length-1;n++)t.push((e[n]+e[n+1])/2);return t}const uX={domain:[],range:[]};const cX={domain:[],range:[],unknown:void 0},dX={domain:[],range:[],override:!1};const pX=BG();function fX(e,t,n){let r=e.data;e.source&&(n.logger.warn("Deprecated: Scale data source configuration"),r={extract:[]},(Array.isArray(e.source)?e.source:[e.source]).forEach((e=>{r.extract.push({field:e})})));const o=RU(r,t,n);let i,a=e.type||function(e){return e.root?"h-band":e.fields&&e.fields[0]?function(e){const t=e.map((e=>"dimension"===e.type()?"band":"linear"));return-1!==t.indexOf("linear")?"linear":"band"}(e.fields):"linear"}(o);return"color"===a&&(a=o.fields&&o.fields[0]&&"dimension"===o.fields[0].type()?"categorical-color":"sequential-color"),n.scale.has(a)&&(i=n.scale.get(a),i=i(e,o,{theme:n.theme,logger:n.logger}),i.type=a),i}pX("linear",JK),pX("band",QK),pX("h-band",(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={data:n,resources:r},i=VK(t,ZK,o);i.ticks=VK(t.ticks,eX,o),i.value="function"==typeof t.value?t.value:e=>e.datum.value,i.label="function"==typeof t.label?t.label:e=>e.datum.value;let a=QK(i);const{values:s,labels:l,items:u,ticks:c}=function(e,t,n){const r=t.ticks.depth,o=t.value,i=t.label,a=[],s=[],l={},u=[];let c=0;if(!e)return{values:a,labels:s,items:l,ticks:u};e.eachAfter((e=>{if(e.depth>0){const t=tX(e,o,n),d=e.leaves()||[e],p=o(CH({datum:e.data},n)),f=i(CH({datum:e.data},n)),h=Array.isArray(e.children),m={key:t,count:d.length,value:p,label:f,leftEdge:tX(d[0],o,n),rightEdge:tX(d[Math.max(d.length-1,0)],o,n),node:e};h?(a.push("SPACER_".concat(c,"_SPACER")),c++):(a.push(t),s.push(f)),(r<=0&&!h||e.depth===r)&&u.push(m),l[t]=m}}));const d=e.height-1;return d>0&&a.splice(-d),{values:a,labels:s,items:l,ticks:u}}(n.root,i,o),d=function(e){const t=String(e),n=u[t];return a(n?i.invert?n.rightEdge:n.leftEdge:t)};CH(!0,d,a),d.bandwidth=function(e){const t=u[String(e)],n=a.bandwidth();if(t&&!t.isLeaf){const e=d(t.leftEdge),r=d(t.rightEdge);return Math.abs(e-r)+n}return n},d.step=function(e){const t=u[String(e)],n=t?t.count:1;let r=a.step();return r*=n,r},d.data=()=>n,d.datum=e=>{const t=u[String(e)];return t?t.node.data:null},d.copy=()=>e(t,n,r),d.labels=()=>l,d.ticks=()=>c.map((e=>{const t=d(e.key),n=d.bandwidth(e.key);return{position:t+n/2,label:e.label,data:e.node.data,start:t,end:t+n}}));const p=a.pxScale;return d.pxScale=function(e){return a=p(e),d},d.domain(s),d})),pX("sequential-color",aX),pX("threshold-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=NK(),o=VK(e,sX,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length;function s(e){return LH(e)?NaN:r(e)}Object.keys(r).forEach((e=>s[e]=r[e]));const l=t.fields,[u,c]=oX(o,l),d=i?o.domain.length:-1,p=n.theme?n.theme.palette("sequential",d>0?d:2):[];let f=a?o.range:p,h=[];return h=i?o.domain:o.nice?function(e,t,n){const r=2===e.length?10:Math.max(1,e.length),o=zK().domain([t,n]).nice(r).ticks(r);if(!e||!e.length)return o;const i=Math.max(0,e.length-1);for(;o.length>i;)o[0]-t<=n-o[o.length-1]?o.shift():o.pop();return o}(f,u,c):[u+(c-u)/2],f.length>h.length+1?h=function(e,t,n){const r=e.length;if(2===r)return[t+(n-t)/2];const o=[],i=(n-t)/r;for(let e=1;e<r;e++)o.push(t+i*e);return o}(f,u,c):f.length<h.length+1&&(f=function(e,t,n,r){n=e[0],r=e&&e.length>=2?e[e.length-1]:r;const o=aX().domain([n,r]).range(t);return[n,...lX(e),r].map((e=>o(e)))}(h,f,u,c)),s.data=()=>t,s.range(o.invert?f.slice().reverse():f),s.domain(h),s})),pX("categorical-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=LU(),o={data:t,resources:n},i=VK(e,uX,o),a="function"==typeof e.value?e.value:e=>e.datum.value,s="function"==typeof e.label?e.label:e=>e.datum.label,l=t.items||[],u={},c=[],d=[];for(let e=0;e<l.length;e++){const t=CH({datum:l[e]},o),n=a(t,e);-1===c.indexOf(n)&&(c.push(n),d.push(s(t,e)),u[n]=e)}return r.data=()=>t,r.labels=()=>d,r.label=e=>d[c.indexOf(e)],r.datum=e=>l[u[e]],r.range(i.range),Array.isArray(i.domain)&&i.domain.length?r.domain(i.domain):r.domain(c),r}(e,t,n),o=n.theme,i=VK(e,cX,{data:t,resources:n});let a;if(i.explicit=VK(e.explicit,dX,{data:t,resources:n}),a=Array.isArray(i.range)&&0!==i.range.length?i.range.slice():o?o.palette("categorical",r.domain().length).slice():[],i.unknown)r.unknown(i.unknown);else if(o&&o.palette("unknown")){let e=o.palette("unknown");r.unknown(e[0])}if(Array.isArray(i.explicit.domain)&&i.explicit.domain.length){const e=r.domain().slice(),t=i.explicit.domain,n=Array.isArray(i.explicit.range)?i.explicit.range:[],o=Math.floor(e.length/a.length);for(let e=1;e<o+1;e*=2)a=a.concat(a);if(i.explicit.override)for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);o>-1&&(a[o]=n[r])}else{const r=t.map(((t,r)=>[e.indexOf(t),t,n[r]])).sort(((e,t)=>e[0]-t[0]));r.forEach((t=>{const n=e.indexOf(t[1]);-1!==n&&a.splice(n,0,t[2])}))}a.length=e.length}return r.range(a),r}));var hX={};function mX(){mX.init.call(this)}hX.isObject=function(e){return"object"==typeof e&&null!==e},hX.isNumber=function(e){return"number"==typeof e},hX.isUndefined=function(e){return void 0===e},hX.isFunction=function(e){return"function"==typeof e};var gX=mX;mX.EventEmitter=mX,mX.prototype._events=void 0,mX.prototype._maxListeners=void 0,mX.defaultMaxListeners=10,mX.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},mX.prototype.setMaxListeners=function(e){if(!hX.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},mX.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],hX.isUndefined(n))return!1;if(hX.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(hX.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},mX.prototype.addListener=function(e,t){var n;if(!hX.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,hX.isFunction(t.listener)?t.listener:t),this._events[e]?hX.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,hX.isObject(this._events[e])&&!this._events[e].warned)&&((n=hX.isUndefined(this._maxListeners)?mX.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,hX.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),hX.isFunction(console.trace)&&console.trace()));return this},mX.prototype.on=mX.prototype.addListener,mX.prototype.once=function(e,t){if(!hX.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},mX.prototype.removeListener=function(e,t){var n,r,o,i;if(!hX.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||hX.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(hX.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},mX.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],hX.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},mX.prototype.listeners=function(e){return this._events&&this._events[e]?hX.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},mX.listenerCount=function(e,t){return e._events&&e._events[t]?hX.isFunction(e._events[t])?1:e._events[t].length:0};var bX={mixin:e=>(Object.keys(gX.prototype).forEach((t=>{e[t]=gX.prototype[t]})),gX.init(e),e)};function yX(){let e=0,t=0,n=0,r=0;n=n||e;const o={move(e){this.moveTo(n+e)},moveTo(i){const a=Math.max(e,Math.min(t-r,i));n!==a&&(n=a,o.emit("update"))},update(i){let a=!1;({min:e=e,max:t=t}=i),void 0!==i.viewSize&&i.viewSize!==r&&(r=i.viewSize,a=!0);const s=Math.max(e,Math.min(t-r,n));n!==s&&(n=s,a=!0),a&&o.emit("update")},getState:()=>({min:e,max:t,start:n,viewSize:r})};return bX.mixin(o),o}function xX(e,t){const n=e.min||0,r=e.max||0,o=e.viewSize||0,i=t||yX();return i.update({min:n,max:r,viewSize:o}),i}function vX(e,t){return e<=t}function _X(e,t){return e<t}function wX(e,t,n){let r=0;for(;r<e.length&&t>e[r];)++r;return e[r]===t&&n&&++r,r}function SX(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[];function o(){}return o.configure=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{includeMax:r=!0,includeMin:o=!0}=n;e=r?vX:_X,t=o?vX:_X},o.add=e=>{let{min:t,max:n}=e;const o=wX(r,t),i=wX(r,n,!0),a=[o,i-o];o%2==0&&a.push(t),i%2==0&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.remove=e=>{let{min:t,max:n}=e;const o=wX(r,t),i=wX(r,n,!0),a=[o,i-o];o%2==1&&a.push(t),i%2==1&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.set=e=>{const t=r.join(",");r=[],Array.isArray(e)?e.forEach(o.add):o.add(e);return t!==r.join(",")},o.clear=()=>{const e=r.length>0;return r=[],e},o.containsValue=n=>function(e,t,n,r){const o=e.length;for(let i=1;i<o;i+=2)if(n(e[i-1],t)&&r(t,e[i]))return!0;return!1}(r,n,t,e),o.containsRange=e=>{let{min:t,max:n}=e;const o=wX(r,t,!0),i=wX(r,n);return o===i&&i%2==1},o.toggle=e=>o.containsRange(e)?o.remove(e):o.add(e),o.ranges=()=>{const e=[];for(let t=1;t<r.length;t+=2)e.push({min:r[t-1],max:r[t]});return e},o.configure(n),o}function CX(){let e=[];function t(){}return t.add=t=>-1===e.indexOf(t)&&(e.push(t),!0),t.remove=t=>{const n=e.indexOf(t);return-1!==n&&(e.splice(n,1),!0)},t.contains=t=>-1!==e.indexOf(t),t.values=()=>e.slice(),t.clear=()=>e=[],t.toString=()=>e.join(";"),t}const EX={key:void 0,includeMin:!0,includeMax:!0};function kX(e){let{items:t,collection:n,vc:r}=e;const o={},i=[];let a,s;for(let e=0,i=t.length;e<i;e++){a=t[e].key,n[a]||(n[a]=r()),s=t[e].values||[t[e].value];for(let e=0;e<s.length;e++)n[a].add(s[e])&&(o[a]=o[a]||[],o[a].push(s[e]))}const l=Object.keys(o);for(let e=0,t=l.length;e<t;e++)a=l[e],i.push({id:a,values:o[a]});return i}function RX(e){let{items:t,collection:n}=e;const r={},o=[];let i,a;for(let e=0,o=t.length;e<o;e++)if(i=t[e].key,n[i]){a=t[e].values||[t[e].value];for(let e=0;e<a.length;e++)n[i].remove(a[e])&&(r[i]=r[i]||[],r[i].push(a[e]))}const s=Object.keys(r);for(let e=0,t=s.length;e<t;e++)i=s[e],o.push({id:i,values:r[i]});return o}function MX(e){const t={};let n,r;for(let o=0,i=e.length;o<i;o++){n=e[o].key,r=e[o].values||[e[o].value],t[n]||(t[n]=[]);for(let e=0;e<r.length;e++){-1===t[n].indexOf(r[e])&&t[n].push(r[e])}}return t}function AX(e){let{key:t,collection:n,obj:r,fn:o,value:i}=e;n[t]||(n[t]=o()),r[t]=r[t]||[],r[t].push(i),n[t].add(i)}function IX(e,t){const n=[],r=Object.keys(e);let o,i;const a=e=>-1===t[o].indexOf(e);for(let s=0,l=r.length;s<l;s++)o=r[s],t[o]?(i=e[o].filter(a),i.length&&n.push({id:o,values:i})):n.push({id:o,values:e[o]});return n}function LX(e,t,n){const r=function(e,t){if(!Object.keys(t).length)return e;const n=e.length,r=Array(n);for(let o=0;o<n;o++)r[o]=e[o].key in t?CH({},e[o],{key:t[e[o].key]}):e[o];return r}(t,n);return e&&e.length?e.reduce(((e,t)=>t(e)),r):r}function PX(e){return e.replace(/(-[a-z])/g,(e=>e.toUpperCase().replace("-","")))}function DX(e){return e.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase())))}function TX(e,t,n){let{ranges:r,interceptors:o,rc:i,aliases:a,rangeConfig:s}=n;const l=LX(o["".concat(t,"Ranges")],e,a);let u=!1;return l.forEach((e=>{const n=e.key;if(r[n]||(r[n]=i(s.sources[n]||s.default)),"set"===t)u=r[n][t](e.ranges||e.range)||u;else{const o=e.ranges||[e.range];for(let e=0;e<o.length;e++)u=r[n][t](o[e])||u}})),u}function OX(){let{vc:e=CX,rc:t=SX}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1,r={},o={},i={},a={sources:{},default:CH({},EX)};const s={addValues:[],removeValues:[],toggleValues:[],setValues:[],addRanges:[],setRanges:[],removeRanges:[],toggleRanges:[]},l=()=>{const e={values:{},ranges:{}};return Object.keys(o).forEach((t=>{e.values[t]=o[t].values()})),Object.keys(r).forEach((t=>{e.ranges[t]=r[t].ranges()})),e},u={ls:[],clear(){this.ls.forEach((e=>e.clear()))},start(){this.ls.forEach((e=>e.start()))},end(){this.ls.forEach((e=>e.end()))},update(){const e=l();this.ls.forEach((t=>t._state(e)))},updateValues(){const e=l();this.ls.forEach((t=>t._state({values:e.values})))},updateRanges(){const e=l();this.ls.forEach((t=>t._state({ranges:e.ranges})))}},c={configure:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e.ranges)&&e.ranges.length&&(a={sources:{},default:CH({},EX)},e.ranges.forEach((e=>{const t={};Object.keys(EX).filter((e=>"key"!==e)).forEach((n=>{t[n]=void 0!==e[n]?e[n]:EX[n]})),void 0!==e.key?a.sources[e.key]=t:a.default=t})),Object.keys(r).forEach((e=>r[e].configure(a.sources[e]||a.default))),c.emit("update",[],[]))},link:e=>{if(c===e)throw new Error("Can't link to self");u.ls.push(e),e._state(l())},_state:e=>{if(!e)return l();if(e.values){const t=[];Object.keys(e.values).forEach((n=>{o[n]&&e.values[n].join(";")===o[n].toString()||t.push({key:n,values:e.values[n]})})),Object.keys(o).forEach((n=>{e.values[n]||t.push({key:n,values:[]})})),t.length&&c.setValues(t)}if(e.ranges){const t=[];Object.keys(e.ranges).forEach((n=>{r[n]&&e.ranges[n].join(";")===r[n].toString()||t.push({key:n,ranges:e.ranges[n]})})),Object.keys(r).forEach((n=>{e.ranges[n]||t.push({key:n,ranges:[]})})),t.length&&c.setRanges(t)}},start:function(){if(!n){n=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];c.emit("start",...t),u.start()}},end:function(){if(n){n=!1,r={},o={};for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];c.emit("end",...t),u.end()}},isActive:()=>n,clear:()=>{const e=c.brushes().filter((e=>"value"===e.type&&e.brush.values().length)).map((e=>({id:e.id,values:e.brush.values()}))),t=Object.keys(r).length>0||e.length;r={},o={},t&&(c.emit("update",[],e),u.clear())},brushes:()=>{let e=[];return e=e.concat(Object.keys(r).map((e=>({type:"range",id:e,brush:r[e]})))),e=e.concat(Object.keys(o).map((e=>({type:"value",id:e,brush:o[e]})))),e},addValue:(e,t)=>{c.addValues([{key:e,value:t}])},addValues:t=>{const r=LX(s.addValues,t,i),a=kX({vc:e,collection:o,items:r});c.emit("add-values",r),a.length&&(n||(n=!0,c.emit("start")),c.emit("update",a,[]),u.updateValues())}};return c.setValues=t=>{const r=LX(s.setValues,t,i),a=function(e){let{items:t,vCollection:n,vc:r}=e;const o={},i=MX(t);let a,s=[],l=[];const u={},c=Object.keys(n);for(let e=0,t=c.length;e<t;e++)a=c[e],u[a]=n[a].values().slice(),delete n[a];const d=e=>{n[a]&&n[a].contains(e)||AX({key:a,value:e,collection:n,obj:o,fn:r})},p=Object.keys(i);for(let e=0,t=p.length;e<t;e++)a=p[e],i[a].forEach(d);return l=IX(u,o),s=IX(o,u),[s,l]}({items:r,vCollection:o,vc:e});c.emit("set-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.removeValue=(e,t)=>{c.removeValues([{key:e,value:t}])},c.removeValues=e=>{const t=LX(s.removeValues,e,i),n=RX({collection:o,items:t});c.emit("remove-values",t),n.length&&(c.emit("update",[],n),u.updateValues())},c.addAndRemoveValues=(t,r)=>{const a=LX(s.addValues,t,i),l=LX(s.removeValues,r,i),d=kX({vc:e,collection:o,items:a}),p=RX({collection:o,items:l});c.emit("add-values",a),c.emit("remove-values",l),(d.length||p.length)&&(n||(n=!0,c.emit("start")),c.emit("update",d,p),u.updateValues())},c.toggleValue=(e,t)=>{c.toggleValues([{key:e,value:t}])},c.toggleValues=t=>{const r=LX(s.toggleValues,t,i),a=function(e){let{items:t,values:n,vc:r}=e;const o={},i={},a=[],s=[],l=MX(t);let u,c,d;const p=Object.keys(l);for(let e=0,t=p.length;e<t;e++){u=p[e],d=l[u];for(let e=0,t=d.length;e<t;e++)c=d[e],n[u]&&n[u].contains(c)?n[u]&&n[u].contains(c)&&(i[u]=i[u]||[],i[u].push(c),n[u].remove(c)):AX({key:u,value:c,collection:n,obj:o,fn:r})}const f=Object.keys(o);for(let e=0,t=f.length;e<t;e++)u=f[e],a.push({id:u,values:o[u]});const h=Object.keys(i);for(let e=0,t=h.length;e<t;e++)u=h[e],s.push({id:u,values:i[u]});return[a,s]}({items:r,values:o,vc:e});c.emit("toggle-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.containsValue=(e,t)=>{let n=i[e]||e;return!!o[n]&&o[n].contains(t)},c.addRange=(e,t)=>{c.addRanges([{key:e,range:t}])},c.addRanges=e=>{TX(e,"add",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.removeRange=(e,t)=>{c.removeRanges([{key:e,range:t}])},c.removeRanges=e=>{TX(e,"remove",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.setRange=(e,t)=>{c.setRanges([{key:e,range:t}])},c.setRanges=e=>{TX(e,"set",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.toggleRange=(e,t)=>{c.toggleRanges([{key:e,range:t}])},c.toggleRanges=e=>{TX(e,"toggle",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.containsRangeValue=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsValue(t)},c.containsRange=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsRange(t)},c.containsMappedData=(e,t,n)=>{let a=[];const s=Object.keys(e);let l,u,c,d;for(let t=0,n=s.length;t<n;t++){if(l=s[t],"value"===l)u=e,a[t]={key:"",i:t,bool:!1};else{if("source"===l)continue;u=e[l],a[t]={key:l,i:t,bool:!1}}c=u.source&&u.source.field,void 0!==c&&(void 0!==u.source.key&&(c="".concat(u.source.key,"/").concat(c)),c in i&&(c=i[c]),d=u.value,r[c]?a[t].bool=Array.isArray(d)?r[c].containsRange({min:d[0],max:d[1]}):r[c].containsValue(d):o[c]&&o[c].contains(d)&&(a[t].bool=!0))}return t?(a=a.filter((e=>-1!==t.indexOf(e.key))),"and"===n?!!a.length&&!a.some((e=>!1===e.bool)):"xor"===n?!!a.length&&a.some((e=>e.bool))&&a.some((e=>!1===e.bool)):a.some((e=>e.bool))):a.some((e=>e.bool))},c.intercept=(e,t)=>{const n=PX(e);s[n]&&s[n].push(t)},c.removeInterceptor=(e,t)=>{const n=PX(e);if(!s[n])return;const r=s[n].indexOf(t);-1!==r&&s[n].splice(r,1)},c.removeAllInterceptors=e=>{const t=[];if(e){const n=PX(e);s[n]&&s[n].length&&t.push({name:e,handlers:s[n]})}else Object.keys(s).forEach((e=>{s[e].length&&t.push({name:DX(e),handlers:s[e]})}));t.forEach((e=>{e.handlers.slice().forEach((t=>c.removeInterceptor(e.name,t)))}))},c.addKeyAlias=(e,t)=>{i[e]=t},c.removeKeyAlias=e=>{delete i[e]},bX.mixin(c),c}function zX(e){return e*e*e}function NX(e){return--e*e*e+1}function qX(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}BG();const jX=["stroke","fill","color","backgroundColor","thumbColor"];function FX(e,t){const n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n);let a;for(a=0;a<r;++a)o[a]=BX(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(e){for(a=0;a<r;++a)i[a]=o[a](e);return i}}function BX(e,t,n){const r=typeof t;let o;return null==t||"boolean"===r?function(e){return()=>e}(t):("number"===r?vK:"string"===r?(o=JU(t))&&jX.includes(n)?(t=o,gK):CK:t instanceof JU?gK:t instanceof Date?xK:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?bK:Array.isArray(t)?FX:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?$X:vK)(e,t)}function $X(e,t){const n={},r={};let o;for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?n[o]=BX(e[o],t[o],o):r[o]=t[o];return function(e){for(o in n)r[o]=n[o](e);return r}}function WX(e,t){return e.data?e.data.value:"text"===e.type?e.text:t}const HX={fontFamily:"Arial",fontSize:"13px",color:"#595959",backgroundColor:"#ffffff",stroke:"#000000",strokeWidth:0,$fill:"#333333"},GX=/^\$/;function VX(e){const t=typeof e;return"object"!==t&&"function"!==t&&"undefined"!==t}function YX(e,t,n){const r=e[t];r&&r.scale&&r.scale.pxScale?r.scale=r.scale.pxScale(n):r&&r.pxScale&&(e[t]=r.pxScale(n))}function UX(e,t){return e.pxScale?e.pxScale(t):e}const KX={normalizeSettings:function(e,t,n){const r=CH({},e),o=CH({},t);return Object.keys(r).forEach((e=>{o[e]={};const i=r[e],a=typeof i;if("function"==typeof i)o[e].fn=i;else if(VX(i)){let n=t[e];"string"==typeof n&&GX.test(n)&&(n=HX[n]);const r=typeof n;o[e]="undefined"===r||r===a?i:n}else i&&"object"==typeof i&&("function"==typeof i.fn&&(o[e].fn=i.fn),void 0!==i.scale&&(o[e].scale=n.scale(i.scale)),"string"==typeof i.ref&&(o[e].ref=i.ref))})),Object.keys(t).forEach((e=>{if(e in r)return;const n=t[e];"string"===typeof n&&GX.test(n)?o[e]=HX[n]:o[e]=n})),o},resolveForItem:function(e,t,n){const r={},o=Object.keys(t),i=o.length,a=e.datum,s=e.datum;for(let l=0;l<i;l++){const i=o[l],u=t[i],c="object"==typeof s&&void 0!==u,d=c&&"string"==typeof u.ref,p=c&&i in s,f=d?s[u.ref]:p?s[i]:a;VX(u)?r[i]=u:c&&u.fn?(u.scale&&(e.scale=u.scale),r[i]=u.fn.call(null,e,n)):c&&u.scale&&f?(r[i]=u.scale(f.value),u.scale.bandwidth&&(r[i]+=u.scale.bandwidth()/2)):d&&f?r[i]=f.value:u.fn?r[i]=u.fn.call(null,e,n):r[i]=u}return r},updateScaleSize:YX};function XX(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>Array.isArray(t.children)?(e.push(...XX(t.children)),e):(e.push(t),e)),[])}function JX(e,t){let{context:n,data:r,style:o,filter:i,mode:a}=t;const s=e.chart.brush(n),l=r,u=o.active||{},c=o.inactive||{},d=[];Object.keys(u).forEach((e=>{d.push(e)})),Object.keys(c).forEach((e=>{-1===d.indexOf(e)&&d.push(e)}));const p=[];let f=!1;const h=()=>{let t=XX(e.nodes);return"function"==typeof i&&(t=t.filter(i)),t},m=()=>{const e=h(),t=e.length;let n,r=!1;const o="function"==typeof l?l({brush:s}):l;for(let r=0;r<t;r++){if(n=e[r].data,!n)continue;e[r].__style||(e[r].__style={},d.forEach((t=>{e[r].__style[t]=e[r][t]})));const t=s.containsMappedData(n,o,a),i=p.indexOf(e[r]);let l=!1;t&&-1===i?(p.push(e[r]),l=!0):t||-1===i||(p.splice(i,1),l=!0),e[r].needToUpdate=l||f,e[r].isActive=t}for(let o=0;o<t;o++)if(n=e[o].data,n){if(e[o].needToUpdate){const t=CH({},e[o],e[o].__style),n=e[o].isActive;d.forEach((r=>{e[o][r]=n&&r in u?"function"==typeof u[r]?u[r].call(null,t,p):u[r]:!n&&r in c?"function"==typeof c[r]?c[r].call(null,t,p):c[r]:e[o].__style[r]})),r=!0}delete e[o].needToUpdate}return f=!1,r},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].data&&(r[e].__style=r[e].__style||{},d.forEach((t=>{r[e].__style[t]=r[e][t],t in c&&(r[e][t]="function"==typeof c[t]?c[t].call(null,r[e]):c[t])})));f=!0,p.length=0,n||e.renderer.render(e.nodes)},b=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].__style&&(Object.keys(r[e].__style).forEach((t=>{r[e][t]=r[e].__style[t]})),r[e].__style=void 0);p.length=0,n||e.renderer.render(e.nodes)},y=()=>{if(m()){const t="function"==typeof e.config.sortNodes?e.config.sortNodes(e):e.nodes;"function"==typeof e.config.customRender?e.config.customRender({render:e.renderer.render,nodes:t}):e.renderer.render(t)}};return s.on("start",g),s.on("end",b),s.on("update",y),{isActive:()=>s.isActive(),update:()=>{p.length=0,f=!0,m()},cleanUp:function(){s.removeListener("start",g),s.removeListener("end",b),s.removeListener("update",y)}}}function ZX(e){let{nodes:t,action:n,chart:r,trigger:o}=e;const i=[];for(let e=0;e<t.length;e++){let n=t[e].data;null!==n&&i.push(n)}!function(e){let{dataPoints:t,action:n,chart:r,trigger:o}=e;if(!o)return;const i=o.data||[""];let a={items:[],actionFn:"toggleRanges"},s={items:[],actionFn:"toggleValues"};-1!==["add","remove","set","toggle"].indexOf(n)&&(a.actionFn="".concat(n,"Ranges"),s.actionFn="".concat(n,"Values"));for(let e=0;e<t.length;e++){const n=t[e];n&&i.forEach((e=>{let t=n&&!e?n:n[e];if(t){let e={key:t.source.field};void 0!==t.source.key&&(e.key="".concat(t.source.key,"/").concat(t.source.field)),Array.isArray(t.value)?(e.range={min:t.value[0],max:t.value[1]},a.items.push(e)):(e.value=t.value,s.items.push(e))}}))}o.contexts.forEach((e=>{a.items.length?r.brush(e)[a.actionFn](a.items):r.brush(e)[s.actionFn](s.items)}))}({dataPoints:i,action:n,chart:r,trigger:o})}function QX(e){let{collisions:t,t:n,config:r,action:o}=e,i=[],a=!1;t.length>0&&(i=t,a=!0,"stop"===n.propagation&&(i=[t[t.length-1]]));const s=i.map((e=>e.node));return ZX({nodes:s,action:o,chart:r.chart,data:r.data,trigger:n}),a}function eJ(e,t,n){const r=n.element().getBoundingClientRect();let o=AH(e)?function(e,t){return 1!==e.changedTouches.length?null:{x:e.changedTouches[0].clientX-t.left,y:e.changedTouches[0].clientY-t.top}}(e,r):function(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}(e,r);return null===o||o.x<0||o.y<0||o.x>r.width||o.y>r.height?[]:(t.touchRadius>0&&AH(e)?o={cx:o.x,cy:o.y,r:t.touchRadius}:t.mouseRadius>0&&!AH(e)&&(o={cx:o.x,cy:o.y,r:t.mouseRadius}),n.itemsAt(o))}function tJ(e,t,n){return e?"function"==typeof e?e(t):e:n}const nJ={fill:"fill",stroke:"stroke",opacity:"opacity",strokeWidth:"stroke-width",strokeLinejoin:"stroke-linejoin",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",textDecoration:"text-decoration",fontWeight:"font-weight",baseline:"dominant-baseline",dominantBaseline:"dominant-baseline",anchor:"text-anchor",textAnchor:"text-anchor",maxWidth:"maxWidth",transform:"transform",strokeDasharray:"stroke-dasharray",id:"id"};function rJ(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?"M".concat(r.x," ").concat(r.y):"L".concat(r.x," ").concat(r.y),n+=" "}return t&&(n+="Z"),n}function oJ(e,t,n,r){const o=n/2,i=e-r/2,a=t-r/2,s=e-o,l=t-o;return[{x:i,y:a},{x:i,y:l},{x:i+r,y:l},{x:i+r,y:a},{x:s+n,y:a},{x:s+n,y:a+r},{x:i+r,y:a+r},{x:i+r,y:l+n},{x:i,y:l+n},{x:i,y:a+r},{x:s,y:a+r},{x:s,y:a}]}function iJ(e){return-e/180*Math.PI}function aJ(e){return function(e){let t=(.5*(Math.floor(e/Math.PI*2)+2)+.25)*Math.PI,n=Math.cos(Math.abs(t-e))*Math.sqrt(2),r=n*Math.cos(e),o=n*Math.sin(e);return{x1:r<0?1:0,y1:o<0?1:0,x2:r>=0?r:r+1,y2:o>=0?o:o+1}}(iJ(e))}function sJ(e,t){return{x:e.x+t.x,y:e.y+t.y}}function lJ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uJ(e,t){return{x:e.x*t,y:e.y*t}}function cJ(e,t){return e.x-t.x}function dJ(e,t){return e.y-t.y}function pJ(e,t){return cJ(e,t)**2+dJ(e,t)**2}function fJ(e,t){return Math.sqrt(pJ(e,t))}function hJ(e,t){return e.x*t.x+e.y*t.y}function mJ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0};const r=Math.cos(t),o=Math.sin(t),i=lJ(e,n);return sJ({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}const gJ={up:0,down:180,left:90,right:-90};function bJ(e){let{x:t,y:n,size:r}=e;const o=r/2;return{type:"rect",x:t-o,y:n-o,width:r,height:r}}const yJ=BG();yJ.add("circle",(function(e){return{type:"circle",fill:"black",cx:e.x,cy:e.y,r:e.size/2}})),yJ.add("diamond",(function(e){const t=e.size,n=e.x-t/2,r=e.y-t/2;return{type:"path",fill:"black",d:rJ([{x:n,y:r+t/2},{x:n+t/2,y:r},{x:n+t,y:r+t/2},{x:n+t/2,y:r+t},{x:n,y:r+t/2}])}})),yJ.add("saltire",(function(e){const t=iJ(45),n=e.size/2,r=isNaN(e.width)?n/2:e.width,o=Math.min(r,n);let i=e.size;const a=Math.sin(Math.asin(-t))*(o/2);i+=2*(n/Math.sin(-t)-n),i-=2*a;const s={x:e.x,y:e.y},l=oJ(e.x,e.y,i,o).map((e=>mJ(e,t,s)));return{type:"path",fill:"black",d:rJ(l)}})),yJ.add("square",(function(e){const t=e.size;return{type:"rect",fill:"black",x:e.x-t/2,y:e.y-t/2,width:t,height:t}})),yJ.add("triangle",(function(e){const t=e.size,n={x:e.x,y:e.y},r=gJ[e.direction]||0,o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];const l=iJ(r);return s=s.map((e=>mJ(e,l,n))),{type:"path",fill:"black",d:rJ(s)}})),yJ.add("line",(function(e){const t="vertical"===e.direction,n=e.size/2,r=e.x,o=e.y;return{type:"line",stroke:"black",strokeWidth:1,x1:r-(t?0:n),y1:o-(t?n:0),x2:r+(t?0:n),y2:o+(t?n:0),collider:bJ(e)}})),yJ.add("star",(function(e){const t=e.size,n=[],r=t/2,o=e.points||5,i=Math.min(e.innerRadius||t/2,t)/2,a=isNaN(e.startAngle)?90:e.startAngle,s=360/o;for(let t=1;t<=o;t++){const o=s*t+a,l=iJ(o),u=iJ(o+s/2),c=Math.sin(l),d=Math.cos(l),p=Math.sin(u),f=Math.cos(u);n.push({x:e.x+d*r,y:e.y+c*r}),n.push({x:e.x+f*i,y:e.y+p*i})}return{type:"path",fill:"black",d:rJ(n)}})),yJ.add("n-polygon",(function(e){const t=[],n=e.size/2,r=Math.max(isNaN(e.sides)?6:e.sides,3),o=360/r,i=isNaN(e.startAngle)?0:e.startAngle;for(let a=1;a<=r;a++){const r=iJ(o*a+i),s=Math.sin(r),l=Math.cos(r);t.push({x:e.x+l*n,y:e.y+s*n})}return{type:"path",fill:"black",d:rJ(t)}})),yJ.add("cross",(function(e){const t=e.x,n=e.y,r=e.size/2,o=isNaN(e.width)?r/2:e.width,i=Math.min(o,r);return{type:"path",fill:"black",d:rJ(oJ(t,n,e.size,i))}})),yJ.add("bar",(function(e){const t={x:e.x,y:e.y},n="vertical"===e.direction,r=e.size/2,o=r/2/2;let i=[{x:t.x-r,y:t.y+o},{x:t.x-r,y:t.y-o},{x:t.x+r,y:t.y-o},{x:t.x+r,y:t.y+o}];if(n){const e=iJ(90);i=i.map((n=>mJ(n,e,t)))}const a=OH(i);return a.type="rect",a.fill="black",a})),yJ.add("rect",(function(e){const{x:t,y:n,size:r}=e,o=void 0===e.width?r:e.width,i=void 0===e.height?r:e.height;return{type:"rect",fill:"black",x:t-o/2,y:n-i/2,width:o,height:i}}));const xJ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yJ;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.get(t.type);if(n){const e=n(t);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((n=>{void 0!==nJ[n]&&"transform"!==n&&(e[n]=t[n])}))}(e,t),void 0!==t.data&&(e.data=t.data),e}return n}};function vJ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dock:n="center",displayOrder:r=0,prioOrder:o=0,preferredSize:i=0,minimumLayoutMode:a,show:s=!0}=e;n=n||"center";return{computePreferredSize(e){let{inner:n,outer:r,children:o}=e;return"function"==typeof i?i({inner:n,outer:r,children:o,dock:this.dock()},t):i},dock(e){return void 0!==e?(n=e,this):"function"==typeof n?n(t):n},displayOrder(e){return void 0!==e?(r=e,this):"function"==typeof r?r(t):r},prioOrder(e){return void 0!==e?(o=e,this):"function"==typeof o?o(t):o},minimumLayoutMode(e){return void 0!==e?(a=e,this):"function"==typeof a?a(t):a},show(e){return void 0!==e?(s=e,this):"function"==typeof s?s(t):s}}}function _J(e,t,n){const{require:r=[]}=t,o=t.mediator||{},{settings:i,formatter:a,scale:s,data:l,renderer:u,chart:c,dockConfig:d,mediator:p,instance:f,rect:h,style:m,registries:g,resolver:b,update:y,_DO_NOT_USE_getInfo:x,symbol:v,isVisible:_}=n;e.emit=()=>{},_&&(e.isVisible=_),Object.defineProperty(e,"settings",{get:i}),Object.defineProperty(e,"data",{get:l}),Object.defineProperty(e,"formatter",{get:a}),Object.defineProperty(e,"scale",{get:s}),Object.defineProperty(e,"mediator",{get:p}),Object.defineProperty(e,"style",{get:m}),Object.defineProperty(e,"registries",{get:g}),h&&Object.defineProperty(e,"rect",{get:h}),x&&(e._DO_NOT_USE_getInfo=x),Object.keys(t).forEach((n=>{var r;r=n,["on","preferredSize","created","beforeMount","mounted","resize","beforeUpdate","updated","beforeRender","render","beforeUnmount","beforeDestroy","destroyed","defaultSettings","data","settings","formatter","scale","chart","dockConfig","mediator","style","resolver","registries","_DO_NOT_USE_getInfo","symbol","isVisible"].some((e=>e===r))||("function"==typeof t[n]?e[n]=t[n].bind(e):e[n]=t[n])})),r.forEach((t=>{"renderer"===t?Object.defineProperty(e,"renderer",{get:u}):"chart"===t?Object.defineProperty(e,"chart",{get:c}):"dockConfig"===t?Object.defineProperty(e,"dockConfig",{get:d}):"instance"===t?Object.defineProperty(e,"instance",{get:f}):"update"===t&&y?Object.defineProperty(e,"update",{get:y}):"resolver"===t?Object.defineProperty(e,"resolver",{get:b}):"symbol"===t&&Object.defineProperty(e,"symbol",{get:v})})),Object.keys(o).forEach((t=>{e.mediator.on(t,o[t].bind(e))}))}function wJ(e,t,n){const r=t=>e[t]?(n.warn("Deprecation Warning the ".concat(t," property should be moved into layout: {} property")),e[t]):e.layout?e.layout[t]:void 0,o={};return o.displayOrder=r("displayOrder"),o.dock=r("dock"),o.prioOrder=r("prioOrder"),o.minimumLayoutMode=r("minimumLayoutMode"),e.layout=e.layout||{},e.layout.displayOrder=void 0!==o.displayOrder?o.displayOrder:e.layout.displayOrder,e.layout.prioOrder=void 0!==o.prioOrder?o.prioOrder:e.layout.prioOrder,e.layout.dock=o.dock||e.layout.dock,e.layout.minimumLayoutMode=o.minimumLayoutMode||e.layout.minimumLayoutMode,o.show=e.show,o.preferredSize=t,o}function SJ(e,t,n){Object.keys(n.on||{}).forEach((r=>{e.eventListeners=e.eventListeners||[];const o=n.on[r].bind(e);e.eventListeners.push({event:r,listener:o}),t.on(r,o)})),e.emit=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.emit(e,...r)}}function CJ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultSettings:n={},_DO_NOT_USE_getInfo:r=()=>({})}=e,{chart:o,container:i,mediator:a,registries:s,theme:l,renderer:u}=t,c=bX.mixin({});let d,p,f,h,m,g=t.settings||{},b=CH(!0,{},n,g),y=[],x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:KX,n={};return{resolve:function(r){let{data:o,settings:i,defaults:a={},scaled:s}=r;const l=n.norm=t.normalizeSettings(i,a,e.chart),u={scale:e.chart.scale,formatter:e.chart.formatter};s&&Object.keys(s).forEach((e=>{l[e]&&t.updateScaleSize(l,e,s[e])}));const c=[];if(!o||!Array.isArray(o.items)){const e={data:o,resources:u};let r=t.resolveForItem(e,n.norm,-1);return{settings:n.norm,item:r}}{let e;for(let r=0,i=o.items.length;r<i;r++){e={datum:o.items[r],data:o,resources:u};let i=t.resolveForItem(e,n.norm,r);i.data=o.items[r],c.push(i)}}return{settings:n.norm,items:c}}}}({chart:o}),v=!1;const _={nodes:[],chart:o,config:b.brush||{},renderer:null},w={tap:[],over:[]},S=[],C={},E=CH({},g);function k(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){const o=void 0!==e[t],i=void 0!==g[t];let a;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o&&("function"==typeof e[t]?a=e[t].call(C,...l):r&&(a=e[t])),i&&("function"==typeof g[t]?a=g[t].call(E,...l):r&&(a=g[t])),o||i||(a=n.call(C,...l)),a}}const R=k("preferredSize",(()=>0),!0),M=k("resize",(e=>{let{inner:t}=e;return t})),A=k("created"),I=k("beforeMount"),L=k("mounted"),P=k("beforeUnmount"),D=k("beforeUpdate"),T=k("updated"),O=k("beforeRender"),z=k("beforeDestroy"),N=k("destroyed"),q=e.render,j=()=>{b.brush&&(b.brush.consume||[]).forEach((e=>{e.context&&e.style&&S.push(JX(_,e))}))},F=()=>{b.brush&&(b.brush.trigger||[]).forEach((e=>{"over"===e.on?w.over.push(e):w.tap.push(e)}))};Object.defineProperty(_,"data",{get:()=>y});const B=b.renderer||e.renderer,$=B?u||s.renderer(B)():u||s.renderer()();"function"==typeof $.settings&&$.settings(b.rendererSettings),_.renderer=$;const W={resources:o.logger?{logger:o.logger()}:{}};let H=vJ(wJ(b,R,o.logger()),W);const G=e=>{e.key=b.key,e.element=$.element()},V=()=>{};V.dockConfig=()=>H,V.set=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.settings&&(g=e.settings,b=CH(!0,{},n,e.settings),H=vJ(wJ(b,R,o.logger()),W),_.config=b.brush||{}),b.scale&&(d=o.scale(b.scale)),b.data){const{rendererSettings:e}=b,t="function"==typeof(null==e?void 0:e.progressive)&&e.progressive(),n=RU(b.data,{dataset:o.dataset,collection:o.dataCollection},{logger:o.logger()},o.dataCollection);t?t.isFirst?(y=n,y.items&&(y.items=[...n.items])):y.items&&(y.items=[...y.items,...n.items||[]]):y=n}else y=d?d.data():[];"string"==typeof b.formatter||"object"==typeof b.formatter?p=o.formatter(b.formatter):d&&d.data().fields&&(p=d.data().fields[0].formatter()),m=l.style(b.style||{})},V.resize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=M({inner:e,outer:t});h=n?$.size(n):$.size(e),E.rect=CH(!0,{computedPhysical:h.computedPhysical,computedOuter:t.computed||t,computedInner:e.computed||e},e),h=CH(!0,{computedOuter:t.computed||t,computedInner:e.computed||e},h)},V.getRect=()=>E.rect;const Y=()=>{const e=$.renderArgs?$.renderArgs.slice(0):[],{rendererSettings:t}=b;let n=y;const r="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();return y.items&&r&&(n=MH(MH({},y),{},{items:y.items.slice(r.start,r.end)})),e.push({data:n}),e};let U,K,X;function J(e){const{rendererSettings:t}=b,n="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();n?n.isFirst?_.nodes=[...e||[]]:_.nodes&&(_.nodes=[..._.nodes,...e||[]]):_.nodes=e}V.beforeMount=I,V.beforeRender=()=>{O({size:h})},V.render=()=>{const e=q.call(C,...Y());J(e),$.render(e),U=e,K=E.rect.computed},V.hide=()=>{V.unmount(),$.size({x:0,y:0,width:0,height:0}),$.clear()},V.beforeUpdate=()=>{D({settings:b,data:y})},V.update=()=>{X&&X.stop();const{rendererSettings:e,brush:t,animations:n}=b;if("function"==typeof(null==e?void 0:e.transform)&&e.transform())return $.render(),void(U=null);const r=q.call(C,...Y());J(r),S.forEach((e=>e.cleanUp())),S.length=0,w.tap=[],w.over=[],t&&(j(),F()),S.forEach((e=>{e.isActive()&&e.update()})),U&&n&&("function"==typeof n.enabled?n.enabled():n.enabled)?(n.compensateForLayoutChanges&&n.compensateForLayoutChanges({currentNodes:U,currentRect:E.rect.computed,previousRect:K}),X=function(e,t,n,r){let o,{old:i,current:a}=e,{renderer:s}=t,l=[],u={nodes:[],ips:[]},c={nodes:[],ips:[]},d={nodes:[],ips:[]},p=[],f=null;const h=n.trackBy||WX,m={start(){let e={};if(i.forEach(((t,n)=>{let r=h(t,n);e[r]=t})),a.forEach(((t,n)=>{let r=h(t,n);if(e[r]){if("path"===t.type&&t.points&&t.points.length>0&&"trend"!==t.data.source.key){const n=function(e,t){const n=e.points.filter((e=>!e.dummy)),r=t.points.filter((e=>!e.dummy)),o=r.map((e=>e.data.major.value)),i=n.filter((e=>o.includes(e.data.major.value))).map((e=>e.data.major.value)),a=n.filter((e=>i.includes(e.data.major.value))),s=r.filter((e=>i.includes(e.data.major.value)));return{old:a,current:s}}(e[r],t);d.ips.push($X(CH({},e[r],{points:n.old}),CH({},t,{points:n.current}))),l.push(CH({},e[r],{commonPoints:n.old}))}else d.ips.push($X(e[r],t)),l.push(e[r]);d.nodes.push(t),e[r]=!1}else u.nodes.push(t),u.ips.push($X(CH({},t,{r:.001,opacity:0}),t))})),Object.keys(e).forEach((t=>{e[t]&&(c.nodes.push(e[t]),c.ips.push($X(e[t],CH({},e[t],{r:1e-4,opacity:0}))))})),p.push({name:"exiting",easing:zX,duration:200,tweens:c.ips,nodes:[...l]}),p.push({name:"updating",easing:qX,duration:400,tweens:d.ips,nodes:[]}),p.push({name:"entering",easing:NX,duration:200,tweens:u.ips,nodes:[...d.nodes]}),n.isMainComponent){var t;const e=null===(t=n.isMainComponent)||void 0===t?void 0:t.filterFn,o=e?l.filter(e).length:l.length,{isInit:i,shouldBeRemoved:a}=r.getValue("animations.updatingStageMeta");!1===i?(r.setValue("animations.updatingStageMeta.shouldBeRemoved",0===o),r.setValue("animations.updatingStageMeta.isInit",!0)):r.setValue("animations.updatingStageMeta.shouldBeRemoved",a&&0===o)}p.length&&(f=s.getScene(a),p[0].started=Date.now(),"undefined"!=typeof window&&(o=window.requestAnimationFrame(m.tick)))},tick(){let e=p[0];e||m.stop(),e.started||(e.started=Date.now());let t=(Date.now()-e.started)/e.duration,i=[],a=e.tweens.map((n=>n(e.easing(Math.min(1,t)))));const{adjustTweenedNodes:l}=n;if(l&&l(a),i.push(...a),i.push(...e.nodes),s.render(i),t>=1){p.shift();const{isInit:e,shouldBeRemoved:t}=r.getValue("animations.updatingStageMeta");p.length?"updating"===p[0].name&&t&&p.shift():(!0===e&&r.setValue("animations.updatingStageMeta.isInit",!1),m.stop())}o&&(o=window.requestAnimationFrame(m.tick))},stop(){o&&(window.cancelAnimationFrame(o),o=!1)},inProgress:()=>!!o,get targetScene(){return f}};return m}({old:U,current:r},{renderer:$},n,o.storage),X.start()):$.render(r),U=r,K=E.rect.computed,$.setKey&&"string"==typeof g.key&&$.setKey(g.key)},V.updated=T,V.destroy=()=>{V.unmount(),z(f),$.destroy(),N(),f=null};const Z=e=>{_.nodes=e,S.forEach((e=>{e.isActive()&&e.update()})),$.render(e)};return _J(C,e,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,instance:()=>E,rect:()=>E.rect,style:()=>m,update:()=>Z,registries:()=>s,resolver:()=>x,symbol:()=>xJ(s.symbol)}),_J(E,g,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,style:()=>m,_DO_NOT_USE_getInfo:r.bind(C),isVisible:()=>v}),V.getBrushedShapes=function(e,t,n){const r=[];if(b.brush&&b.brush.consume){const i=o.brush(e),a=$.findShapes("*");b.brush.consume.filter((t=>t.context===e)).forEach((e=>{for(let o=0;o<a.length;o++){const s=a[o];s.data&&i.containsMappedData(s.data,n||e.data,t)&&(G(s),r.push(s),a.splice(o,1),o--)}}))}return r},V.findShapes=e=>{var t;const n=(null!==(t=X)&&void 0!==t&&t.inProgress()?X.targetScene:$).findShapes(e);for(let e=0,t=n.length;e<t;e++)G(n[e]);return n},V.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$.itemsAt(e);let r;r=t&&"stop"===t.propagation&&n.length>0?[n.pop().node]:n.map((e=>e.node));for(let e=0,t=r.length;e<t;e++)G(r[e]);return r},V.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.contexts=Array.isArray(t.contexts)?t.contexts:[];ZX({nodes:e,action:t.action||"toggle",trigger:t,chart:o,data:_.data})},V.mount=()=>{f=$.element&&$.element()?f:$.appendTo(i),$.setKey&&"string"==typeof g.key&&$.setKey(g.key),b.brush&&(j(),F()),SJ(E,c,g),SJ(C,c,e),v=!0},V.mounted=()=>L(f),V.unmount=()=>{[E,C].forEach((e=>{!function(e,t){e.eventListeners&&(e.eventListeners.forEach((e=>{let{event:n,listener:r}=e;t.removeListener(n,r)})),e.eventListeners.length=0),e.emit=()=>{}}(e,c)})),w.tap=[],w.over=[],S.forEach((e=>{e.cleanUp()})),S.length=0,P(),v=!1},V.onBrushTap=e=>{w.tap.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return QX({collisions:eJ(t,n,r.renderer),t:n,config:r,action:tJ(n.action,t,"toggle")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.onBrushOver=e=>{w.over.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return QX({collisions:eJ(t,n,r.renderer),t:n,config:r,action:tJ(n.action,t,"set")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.def=C,V.ctx=E,V.renderer=()=>$,V.set({settings:g}),A(),V}function EJ(e){const t=CH(!0,{},e),n={getAll:()=>t,getValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}(t,e,n),setValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}(t,e,n)};return n}function kJ(e,t,n){const r=sJ(function(e,t){const n=hJ(e,t)/hJ(t,t)||1;return{x:t.x*n,y:t.y*n}}(lJ(n,e),lJ(t,e)),e);return r}function RJ(e,t,n){return fJ(e,n)+fJ(t,n)-fJ(e,t)<1e-12}function MJ(e,t){return e.x>=t.x&&e.x+e.width<=t.x+t.width&&e.y>=t.y&&e.y+e.height<=t.y+t.height}function AJ(e){return e.x1===e.x2&&e.y1===e.y2}function IJ(e){return e.width<=0||e.height<=0}function LJ(e){return e.r<=0}function PJ(e){return e.edges.length<=2}function DJ(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=FJ(e,zH(t.edges[r])),!0===n)return!0;return!1}function TJ(e,t){let n=!1;const{numPolygons:r,polygons:o}=t;for(let t=0;t<r;t++){if(n=KJ(e,o[t]),!0===n)return!0}return!1}function OJ(e,t){if(LJ(e))return!1;return pJ({x:e.cx,y:e.cy},t)<=e.r**2}function zJ(e,t){if(IJ(t)||LJ(e))return!1;const n=t.width/2,r=t.height/2,o=t.x+n,i=t.y+r,a=e.r,s=e.cx,l=e.cy,u=Math.abs(s-o),c=Math.abs(l-i);if(u>n+a||c>r+a)return!1;if(u<=n||c<=r)return!0;return(u-n)**2+(c-r)**2<=a**2}function NJ(e,t){if(LJ(e)||AJ(t))return!1;const[n,r]=DH(t);if(OJ(e,n)||OJ(e,r))return!0;const o={x:e.cx,y:e.cy},i=kJ(n,r,o);return pJ(i,o)<=e.r**2&&RJ(n,r,i)}function qJ(e,t){if(PJ(t)||LJ(e))return!1;if(jJ(t,{x:e.cx,y:e.cy}))return!0;const n=t.edges.length;for(let r=0;r<n;r++){if(NJ(e,zH(t.edges[r])))return!0}return!1}function jJ(e,t){if(PJ(e)||!HJ(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.vertices;let i,a,s,l,u;for(i=!1,l=-1,a=o.length,s=a-1;++l<a;s=l){if(o[l].x===n&&o[l].y===r)return!0;if(o[l].y===o[s].y&&o[l].y===r&&(n-o[l].x)*(n-o[s].x)<=0)return!0;if(o[l].y<r&&r<=o[s].y||o[s].y<r&&r<=o[l].y){if(u=(o[s].x-o[l].x)*(r-o[l].y)/(o[s].y-o[l].y)+o[l].x,n===u)return!0;n<u&&(i=!i)}}return i}function FJ(e,t){if(PJ(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(VJ(t,zH(e.edges[n])))return!0}const[n,r]=DH(t);return jJ(e,n)||jJ(e,r)}function BJ(e,t){if(PJ(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(GJ(t,zH(e.edges[n])))return!0}const[n,r,o,i]=TH(t);return jJ(e,n)||jJ(e,r)||jJ(e,o)||jJ(e,i)}function $J(e,t){return!IJ(e)&&!IJ(t)&&(e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height)}function WJ(e,t){if(IJ(e)||IJ(t))return!1;return[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}].every((t=>HJ(e,t)))}function HJ(e,t){return!IJ(e)&&(t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height)}function GJ(e,t){if(AJ(t)||IJ(e))return!1;const[n,r]=DH(t);if(HJ(e,n)||HJ(e,r))return!0;const o=TH(e);let i=o.length;for(let e=0;e<i;e++){if(VJ(zH([o[e],o[3!==e?e+1:0]]),t))return!0}return!1}function VJ(e,t){const[n,r]=DH(e),[o,i]=DH(t),a=cJ(r,n),s=dJ(r,n),l=cJ(i,o),u=dJ(i,o),c=cJ(n,o),d=dJ(n,o);let p=u*a-l*s;const f=l*d-u*c,h=a*d-s*c;let m,g;if(0===a&&0===s)return!1;if(0===l&&0===u)return!1;if(0===p){if(0===f&&0===h){if(0===a){if(0===s)return n.x===r.x&&n.y===r.y;m=dJ(o,n)/s,g=dJ(i,n)/s}else m=(o.x-n.x)/a,g=(i.x-n.x)/a;return!(m<0&&g<0||m>1&&g>1)}return!1}const b=f/p;return p=h/p,b>=0&&b<=1&&p>=0&&p<=1}function YJ(e,t){if(AJ(e))return!1;const[n,r]=DH(e);return RJ(n,r,t)}function UJ(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!$J(n,r)&&(WJ(n,r)?DJ(e,t):DJ(t,e))}function KJ(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!$J(n,r)&&(WJ(r,n)?function(e,t){let n=!1;const{numPolygons:r,polygons:o}=e;for(let e=0;e<r;e++)if(n=UJ(t,o[e]),!0===n)return!0;return!1}(e,t):function(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=ZJ(e,zH(t.edges[r])),!0===n)return!0;return!1}(e,t))}function XJ(e,t){if(LJ(e))return!1;if(JJ(t,{x:e.cx,y:e.cy}))return!0;const{numPolygons:n,polygons:r}=t;for(let t=0;t<n;t++){const n=r[t],o=n.edges.length;for(let t=0;t<o;t++){if(NJ(e,zH(n.edges[t])))return!0}}return!1}function JJ(e,t){if(!HJ(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.numPolygons;let i,a,s,l,u,c,d=!1;for(a=0;a<o;a++)for(i=e.vertices[a],u=-1,s=i.length,l=s-1;++u<s;l=u){if(i[u].x===n&&i[u].y===r)return!0;if(i[u].y===i[l].y&&i[u].y===r&&(n-i[u].x)*(n-i[l].x)<=0)return!0;if(i[u].y<r&&r<=i[l].y||i[l].y<r&&r<=i[u].y){if(c=(i[l].x-i[u].x)*(r-i[u].y)/(i[l].y-i[u].y)+i[u].x,n===c)return!0;n<c&&(d=!d)}}return d}function ZJ(e,t){const[n,r]=DH(t);if(JJ(e,n)||JJ(e,r))return!0;const{numPolygons:o,polygons:i}=e;for(let e=0;e<o;e++){const n=i[e];for(let e=0,r=n.edges.length;e<r;e++){if(VJ(t,zH(n.edges[e])))return!0}}return!1}function QJ(e,t){const[n,r,o,i]=TH(t);if(JJ(e,n)||JJ(e,r)||JJ(e,o)||JJ(e,i))return!0;const{numPolygons:a,polygons:s}=e;for(let e=0;e<a;e++){const n=s[e];for(let e=0,r=n.edges.length;e<r;e++){if(GJ(t,zH(n.edges[e])))return!0}}return!1}const eZ=/^\$/,tZ="@extend";function nZ(e){throw new Error('Cyclical reference for "'.concat(e,'"'))}function rZ(e,t,n){if("string"==typeof e){let r=t[e];return-1!==n.indexOf(e)&&nZ(e),eZ.test(r)?(n.push(e),rZ(r,t,n)):r}let r=e;const o=CH(!0,{},t,e),i={};if(e[tZ]){const i=e[tZ];-1!==n.indexOf(i)&&nZ(i);let a=n.slice();a.push(i),r=CH(!0,{},rZ(o[i],t,a),e)}return Object.keys(r).forEach((e=>{let t=n.slice();if(e===tZ||eZ.test(e))return;i[e]=r[e];let a=i[e];eZ.test(a)&&a in o?(-1!==n.indexOf(a)&&nZ(a),t.push(a),a=o[a],"object"==typeof a||eZ.test(a)&&a in o?i[e]=rZ(a,o,t):i[e]=a):"object"==typeof a&&(i[e]=rZ(a,o,t))})),i}function oZ(e,t){return rZ(e,t,[])}function iZ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=e;const r=e=>{e.forEach((e=>{const n=Array.isArray(e.colors[0])?e.colors:[e.colors];t[e.key]={colors:n,sizes:n.map((e=>e?e.length:0))}}))},o={palette:(e,n)=>((e,n)=>{const r=t[e];if(!r)return[];const o=r.sizes;for(let e=0;e<o.length;e++)if(n<=o[e])return r.colors[e];return r.colors[o.length-1]})(e,n),setPalettes:r,style:e=>oZ(e,n),setStyle:t=>{n=CH({},e,t)}};return r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),o}function aZ(e){e.x=Math.floor(e.x),e.y=Math.floor(e.y),e.width=Math.floor(e.width),e.height=Math.floor(e.height)}function sZ(e){const t={center:{minWidthRatio:.5,minHeightRatio:.5,minWidth:0,minHeight:0}};return CH(!0,t,e),t.center.minWidthRatio=Math.min(Math.max(t.center.minWidthRatio,0),1),t.center.minHeightRatio=Math.min(Math.max(t.center.minHeightRatio,0),1),t.center.minWidth=Math.max(t.center.minWidth,0),t.center.minHeight=Math.max(t.center.minHeight,0),t}function lZ(e,t,n,r,o){return{x:isNaN(e)?0:e,y:isNaN(e)?0:t,width:isNaN(e)?0:n,height:isNaN(e)?0:r,margin:isNaN(o)?0:o}}function uZ(e,t,n){if(void 0===e.cachedSize){const r=e.config.dock();let o,i=e.comp.preferredSize({inner:t,outer:n,dock:r});isNaN(i)?i&&!isNaN(i.size)&&(i.width=i.size,i.height=i.size):i={width:i,height:i},o="top"===r||"bottom"===r?i.height:"right"===r||"left"===r?i.width:Math.max(i.width,i.height),e.cachedSize=Math.ceil(o),e.edgeBleed=i.edgeBleed||0}return e.cachedSize}function cZ(e,t){switch(t.config.dock()){case"top":e.y+=t.cachedSize,e.height-=t.cachedSize;break;case"bottom":e.height-=t.cachedSize;break;case"left":e.x+=t.cachedSize,e.width-=t.cachedSize;break;case"right":e.width-=t.cachedSize}}function dZ(e,t){const n=t.edgeBleed;n&&(e.left=Math.max(e.left,n.left||0),e.right=Math.max(e.right,n.right||0),e.top=Math.max(e.top,n.top||0),e.bottom=Math.max(e.bottom,n.bottom||0))}function pZ(e,t,n){t.x<n.left&&(t.width-=n.left-t.x,t.x=n.left);const r=e.width-(t.x+t.width);r<n.right&&(t.width-=n.right-r),t.y<n.top&&(t.height-=n.top-t.y,t.y=n.top);const o=e.height-(t.y+t.height);o<n.bottom&&(t.height-=n.bottom-o)}function fZ(e,t,n,r,o){const i=CH({},t),a=CH({},n);cZ(i,r),dZ(a,r),pZ(e,i,a);const s=function(e,t,n){const r=Math.min(n.center.minWidth,e.width)||Math.max(e.width*n.center.minWidthRatio,1),o=Math.min(n.center.minHeight,e.height)||Math.max(e.height*n.center.minHeightRatio,1);return t.width>=r&&t.height>=o}(e,i,o);return!!s&&(cZ(t,r),dZ(n,r),!0)}function hZ(e){return{x:e.margin.left+e.x*e.scaleRatio.x,y:e.margin.top+e.y*e.scaleRatio.y,width:e.width*e.scaleRatio.x,height:e.height*e.scaleRatio.y}}function mZ(e){return OH([].concat(...e.map(TH)))}function gZ(e){let{visible:t,layoutRect:n,reducedRect:r,containerRect:o,translation:i}=e;const a=lZ(r.x,r.y,r.width,r.height),s=lZ(r.x,r.y,r.width,r.height),l={},u=t.slice(),c=u.slice().sort(((e,t)=>e.config.displayOrder()-t.config.displayOrder()));return t.sort(((e,t)=>{if(e.referencedDocks.length>0&&t.referencedDocks.length>0)return 0;if(t.referencedDocks.length>0)return-1;if(e.referencedDocks.length>0)return 1;const n=e.config.displayOrder()-t.config.displayOrder();return 0===n?u.indexOf(e)-u.indexOf(t):n})).forEach((e=>{let t={},u={};switch(e.config.dock()){case"top":t.height=u.height=e.cachedSize,t.width=n.width,u.width=a.width,t.x=n.x,u.x=a.x,t.y=u.y=a.y-e.cachedSize,a.y-=e.cachedSize,a.height+=e.cachedSize;break;case"bottom":t.x=n.x,u.x=a.x,t.y=u.y=a.y+a.height,t.width=n.width,u.width=a.width,t.height=u.height=e.cachedSize,a.height+=e.cachedSize;break;case"left":t.x=u.x=s.x-e.cachedSize,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.x-=e.cachedSize,s.width+=e.cachedSize;break;case"right":t.x=u.x=s.x+s.width,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.width+=e.cachedSize;break;case"center":t.x=u.x=r.x,t.y=u.y=r.y,t.width=u.width=r.width,t.height=u.height=r.height;break;default:if(e.referencedDocks.length>0){const n=e.referencedDocks.map((e=>l[e])).filter((e=>!!e));n.length>0&&(t=mZ(n.map((e=>e.outerRect))),u=mZ(n.map((e=>e.r))))}}e.key&&(l[e.key]={r:u,outerRect:t}),function(e,t,n,r){const o={x:r.width/n.width,y:r.height/n.height},i={left:0,top:0};if(n.preserveAspectRatio){const e=o.x<o.y,t=Math.min(o.x,o.y);o.x=t,o.y=t;const a=e?"height":"width",s=(r[a]-n[a]*o.x)*n.align;i.left=e?0:s,i.top=e?s:0}e.scaleRatio=o,e.margin=i,t.scaleRatio=o,t.margin=i,n.scaleRatio=o,n.margin=i}(u,t,n,o),u.edgeBleed=e.edgeBleed,u.computed=hZ(u),t.edgeBleed=e.edgeBleed,t.computed=hZ(t),u.x+=i.x,u.y+=i.y,t.x+=i.x,t.y+=i.y,e.comp.resize(u,t),e.cachedSize=void 0,e.edgeBleed=void 0})),c}function bZ(e,t,n){const r=e.layoutModes||{},o=t.minimumLayoutMode();let i=t.show();return i&&"object"==typeof o?i=r[o.width]&&r[o.height]&&n.width>=r[o.width].width&&n.height>=r[o.height].height:i&&void 0!==o&&(i=r[o]&&n.width>=r[o].width&&n.height>=r[o].height),i}function yZ(e){if(!e.resize||"function"!=typeof e.resize)throw new Error("Component is missing resize function");if(!e.dockConfig&&!e.preferredSize)throw new Error("Component is missing preferredSize function")}function xZ(e){let t=sZ(e);const n={};return n.layout=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.width)||isNaN(e.height))throw new Error("Invalid rect");if(!n.length)return{visible:[],hidden:[],ordered:[]};const{logicalContainerRect:r,containerRect:o}=function(e,t){const n={x:0,y:0,width:0,height:0},r={x:0,y:0,width:0,height:0};return n.width=e.width||0,n.height=e.height||0,void 0!==t.size&&(n.width=isNaN(t.size.width)?n.width:t.size.width,n.height=isNaN(t.size.height)?n.height:t.size.height),void 0!==t.logicalSize?(r.width=isNaN(t.logicalSize.width)?n.width:t.logicalSize.width,r.height=isNaN(t.logicalSize.height)?n.height:t.logicalSize.height,r.align=isNaN(t.logicalSize.align)?.5:Math.min(Math.max(t.logicalSize.align,0),1),r.preserveAspectRatio=t.logicalSize.preserveAspectRatio):(r.width=n.width,r.height=n.height,r.preserveAspectRatio=!1),aZ(r),aZ(n),{logicalContainerRect:r,containerRect:n}}(e,t),[i,a]=function(e,t,n){const r=[],o=[];for(let i=0;i<e.length;++i){const a=e[i];yZ(a);let s=a.dockConfig;const l=a.key,u=s.dock(),c=/@/.test(u)?u.split(",").map((e=>e.replace(/^\s*@/,""))):[];bZ(t,s,n)?r.push({comp:a,key:l,config:s,referencedDocks:c}):o.push({comp:a,key:l,config:s,referencedDocks:c})}return[r,o]}(n,t,r),s=function(e){let{layoutRect:t,visible:n,hidden:r,settings:o}=e;const i=lZ(t.x,t.y,t.width,t.height),a={left:0,right:0,top:0,bottom:0},s=n.slice();s.sort(((e,t)=>e.config.prioOrder()-t.config.prioOrder()));for(let e=0;e<s.length;++e){const n=s[e];uZ(n,i,t),fZ(t,i,a,n,o)||(r.push(s.splice(e,1)[0]),--e)}!function(e,t){if(0!==t.length)for(let n=0;n<e.length;++n){let r=e[n];if(r.referencedDocks.length){const o=r.referencedDocks.every((e=>t.some((t=>t.key===e))));o&&t.push(e.splice(n,1)[0])}}}(n,r);const l=n.filter((e=>-1!==s.indexOf(e)));return n.length=0,n.push(...l),pZ(t,i,a),i}({layoutRect:r,visible:i,hidden:a,settings:t}),l=gZ({visible:i,layoutRect:r,reducedRect:s,containerRect:o,translation:{x:e.x,y:e.y}});return a.forEach((e=>{e.comp.visible=!1;const t=lZ();e.comp.resize(t,t)})),{visible:i.map((e=>e.comp)),hidden:a.map((e=>e.comp)),ordered:l.map((e=>e.comp))}},n.settings=function(e){t=sZ(e)},n}const vZ=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.hasKey&&r.key===t)return e[n]}return null},_Z=e=>null==e?void 0:e.map((e=>{const t=e.instance.dockConfig();return{preferredSize:n=>t.computePreferredSize(MH(MH({},n),{},{children:_Z(e.children)}))}})),wZ=(e,t)=>({visible:[],hidden:t,ordered:[]}),SZ=e=>(t,n)=>{var r;const o=n.map(((e,t)=>{const n=e.instance.dockConfig();return{index:t,key:e.key,dockConfig:n,resize:e.instance.resize,preferredSize:t=>n.computePreferredSize(MH(MH({},t),{},{children:_Z(e.children)}))}})),i=e=>n[e.index],{visible:a=o,hidden:s=[],ordered:l=a}=null!==(r=e(t,o))&&void 0!==r?r:{};return{visible:a.map(i),hidden:s.map(i),ordered:l.map(i)}},CZ=e=>"function"==typeof e?SZ(e):(e=>{const t=xZ(e);return SZ(((e,n)=>t.layout(e,n)))})(e);function EZ(e,t,n){const r=t.left-n.left,o=t.top-n.top,i=NH(e),a=CH(!0,{},e);switch(i){case"circle":a.cx+=r,a.cy+=o;break;case"polygon":for(let e=0,t=a.vertices.length;e<t;e++){const t=a.vertices[e];t.x+=r,t.y+=o}break;case"geopolygon":for(let e=0;e<a.vertices.length;e++){const t=a.vertices[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n.x+=r,n.y+=o}}break;case"line":a.x1+=r,a.y1+=o,a.x2+=r,a.y2+=o;break;case"point":case"rect":a.x+=r,a.y+=o}return a}function kZ(e,t){const n=[];let r=0;t.forEach((e=>{n.push(r),r++;const t=e.instance.def.additionalElements&&e.instance.def.additionalElements();t&&(r+=t.length)})),t.forEach(((t,r)=>((e,t,n)=>{const r=t.instance.renderer().element();if(isNaN(n)||!r||!e||!e.children)return;const o=e.children[Math.max(0,n)];if(r===o)return;const i=t.instance.def.additionalElements&&t.instance.def.additionalElements().filter(Boolean);e.insertBefore&&void 0!==o?(e.insertBefore(r,o),i&&i.forEach((t=>{e.insertBefore(t,r)}))):(i&&i.forEach((t=>{e.appendChild(t,r)})),e.appendChild(r))})(e,t,n[r])))}function RZ(e,t){let{element:n,data:r=[],settings:o={},on:i={}}=e;const a=t.registries,s=t.logger,l=iZ(t.style,t.palettes),u=[],c=CH({},e),d=function(){const e={};return bX.mixin(e),e}();let p=[],f=null,h=null,m=null,g=[],b=()=>{},y=()=>{};const x={};let v=!1;const _=function(e){let{createComponent:t}=e;const n={};let r=[],o=[];const i=e=>{const n=t(e);return n&&(r.push(n),e.components&&(n.children=e.components.map((e=>i(e))).filter((e=>!!e)))),n},a=e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)},s=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n],o=t.find((e=>r.hasKey&&r.key===e.key));o?r.children&&o.components&&s(r.children,o.components):(e.splice(n,1),a(r),r.children&&s(r.children,[]),r.instance.destroy())}},l=e=>{let{compList:t,data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:s}=e;return s.map((e=>{const s=vZ(t,e.key);return r.indexOf(e.key)>-1?(delete s.updateWith,s):s?(e.rendererSettings&&"function"==typeof s.instance.renderer().settings&&s.instance.renderer().settings(e.rendererSettings),e.rendererSettings&&"function"==typeof e.rendererSettings.transform&&e.rendererSettings.transform()?(s.applyTransform=!0,s):(s.updateWith={formatters:o,scales:a,data:n,settings:e},e.components&&(s.children=l({compList:s.children||[],data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:e.components})),s)):i(e)})).filter((e=>!!e))},u=e=>{let{components:t,hidden:n,layoutFn:r,ordered:o,rect:i,visible:a}=e;const{visible:s,hidden:l,ordered:c}=r(i,t);a.push(...s),n.push(...l),o.push(...c),s.forEach((e=>{if(e.children){var t,r;const i=CZ(null!==(t=null===(r=e.settings)||void 0===r?void 0:r.strategy)&&void 0!==t?t:{});u({components:e.children,hidden:n,layoutFn:i,ordered:o,rect:e.instance.getRect(),visible:a})}})),l.forEach((e=>{e.children&&u({components:e.children,hidden:n,layoutFn:wZ,ordered:o,rect:null,visible:a})}))};return n.destroy=()=>{r.forEach((e=>e.instance.destroy())),r=[],o=[]},n.findComponentByKey=e=>vZ(r,e),n.forEach=e=>{r.forEach(e)},n.layout=e=>{let{layoutSettings:t,rect:n}=e;const r=[],i=[],a=[],s=CZ(t);return u({components:o,hidden:i,layoutFn:s,ordered:a,rect:n,visible:r}),{visible:r,hidden:i,ordered:a}},n.set=e=>{let{components:t}=e;o=t.map((e=>i(e))).filter((e=>!!e))},n.update=e=>{let{components:t,data:n,excludeFromUpdate:r,formatters:i,scales:a}=e;s(o,t),o=l({compList:o,data:n,excludeFromUpdate:r,formatters:i,scales:a,settingsList:t})},n}({createComponent:e=>{if(!a.component.has(e.type))return s.warn("Unknown component: ".concat(e.type)),!1;return{instance:CJ(a.component(e.type),{settings:e,chart:c,mediator:d,registries:a,theme:l,container:n}),settings:CH(!0,{},e),key:e.key,hasKey:void 0!==e.key}}});function w(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){const r="function"==typeof e[t];let o;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r?e[t].call(c,...a):n.call(c,...a),o}}const S=()=>{let e;o.dockLayout?(s.warn('Deprecation Warning: "dockLayout" property should be renamed to "strategy"'),e=o.dockLayout):e=o.strategy;const t=function(e){if("function"==typeof e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();return{x:0,y:0,width:t,height:n}}return{x:0,y:0,width:0,height:0}}(n);return _.layout({layoutSettings:e,rect:t})},C=w("created"),E=w("beforeMount"),k=w("mounted"),R=w("beforeUpdate"),M=w("updated"),A=w("beforeRender"),I=w("beforeDestroy"),L=w("destroyed"),P=function(e,t){let{partialData:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{formatters:r={},scales:o={},scroll:i={}}=t;b=function(e,t){let{types:n,logger:r}=t;const o={},i=[];return Array.isArray(e)?i.push(...e):(r.warn('Deprecated: "data-source" configuration"'),i.push(e)),i.forEach(((e,t)=>{let i=n(e.type);if(i){let n=e.key;void 0===e.key&&(r.warn("Missing key for dataset. Using index '".concat(t,"' as key.")),n=t);let a=i({key:n,data:e.data,config:e.config});o[n]=a}})),e=>e?o[e]:o[Object.keys(o)[0]]}(e,{logger:s,types:a.data}),n||Object.keys(x).forEach((e=>x[e].clear())),t.palettes&&l.setPalettes(t.palettes),t.style&&l.setStyle(t.style),y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:RU;const o={};return(e||[]).forEach((e=>{if(!e.key)throw new Error('Data collection is missing "key" property');if("object"==typeof e.data&&"collection"in e.data)throw new Error("Data config for collections may not reference other collections");o[e.key]=()=>r(e.data,t,n)})),e=>{let t,n;if("string"==typeof e?t=e:"object"==typeof e&&(t=e.key,n=e),!(t in o))throw new Error("Unknown data collection: ".concat(t));"function"==typeof o[t]&&(o[t]=o[t]());let r=o[t];if(n&&n.fields&&n.fields.filter){let e=r.fields.filter(n.fields.filter);r.fields.length!==e.length&&(r=CH(r,{fields:e}))}return r}}(t.collections,{dataset:b},{logger:s});const u={theme:l,logger:s};f=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fX;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"scale"in i&&e[i.scale]&&(a=i.scale),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i,t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(o,{dataset:b,collection:y},MH(MH({},u),{},{scale:a.scale})),h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:MU;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"formatter"in i&&e[i.formatter]?a=i.formatter:"object"==typeof i&&"type"in i&&e[i.type]&&(a=i.type),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i||{},t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(r,{dataset:b,collection:y},MH(MH({},u),{},{formatter:a.formatter})),m=function(e,t){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=xX(e[r],t?t[r]:null));return n}(i,m)};function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},r=e.filter((e=>!!e.key)).map((e=>e.key));g.forEach((e=>{e.key&&-1!==r.indexOf(e.key)?t[e.key]=e:e.destroy()})),g=e.map((e=>{const r=e.key&&t[e.key]?t[e.key]:a.interaction(e.type)(c,d,n);return r.set(e),r}))}const T=e=>{const t=n.getBoundingClientRect(),r="clientX"in e?e.clientX:e.x,o="clientY"in e?e.clientY:e.y,i={x:r-t.left,y:o-t.top},a=[];return p.forEach((e=>{const t=e.instance.getRect();HJ(t.computedPhysical?t.computedPhysical:{x:t.margin.left+t.x*t.scaleRatio.x,y:t.margin.top+t.y*t.scaleRatio.y,width:t.width*t.scaleRatio.x,height:t.height*t.scaleRatio.y},i)&&a.push(e)})),a},O=()=>{if(u.length||!n)return;Object.keys(i).forEach((e=>{const t=i[e].bind(c);n.addEventListener(e,t),u.push({key:e,listener:t})}));const e={},t=t=>{t.touches?(e.x=t.touches[0].clientX,e.y=t.touches[0].clientY,e.multiTouch=t.touches.length>1):(e.x=t.clientX,e.y=t.clientY,e.multiTouch=!1),e.time=Date.now(),e.comps=T(e)},r=t=>{const n=e.comps||T(t);if(!n.every((e=>e.instance.def.disableTriggers))&&("touchend"===t.type&&t.preventDefault(),function(e,t){const n=AH(e),r=n?e.changedTouches[0]:e,o=Date.now()-t.time,i=isNaN(t.x)?0:Math.abs(r.clientX-t.x),a=isNaN(t.y)?0:Math.abs(r.clientY-t.y);return(0===e.button||n)&&!t.multiTouch&&i<=12&&a<=12&&o<=300}(t,e)))for(let e=n.length-1;e>=0;e--){if(n[e].instance.onBrushTap(t),v){v=!1;break}}},o=[];o.push({key:"mousedown",listener:t}),o.push({key:"mouseup",listener:r}),function(e){return"ontouchstart"in e&&"ontouchend"in e||navigator.maxTouchPoints>1}(n)&&(o.push({key:"touchstart",listener:t}),o.push({key:"touchend",listener:r})),o.push({key:"mousemove",listener:e=>{const t=T(e);for(let n=t.length-1;n>=0;n--){if(t[n].instance.onBrushOver(e),v){v=!1;break}}}}),o.forEach((e=>{n.addEventListener(e.key,e.listener),u.push(e)}))},z=()=>{u.forEach((e=>{let{key:t,listener:r}=e;return n.removeEventListener(t,r)})),u.length=0},N=()=>{n.innerHTML="",(()=>{const{components:e=[]}=o;A(),P(r,o),_.set({components:e});const{visible:t,hidden:i,ordered:a}=S();p=t,i.forEach((e=>{e.instance.hide(),e.visible=!1})),t.forEach((e=>e.instance.beforeMount())),t.forEach((e=>e.instance.mount())),t.forEach((e=>e.instance.beforeRender())),t.forEach((e=>e.instance.render())),t.forEach((e=>e.instance.mounted())),t.forEach((e=>{e.visible=!0})),kZ(n,a)})(),O(),D(o.interactions)};return c.layoutComponents=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{excludeFromUpdate:t=[]}=e;e.data&&(r=e.data),e.settings&&(o=e.settings,D(e.settings.interactions)),R(),P(r,o);const{formatters:n,scales:i,components:a=[]}=o;_.update({components:a,data:r,excludeFromUpdate:t,formatters:n,scales:i}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()})),S()},c.update=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{partialData:t,excludeFromUpdate:i=[]}=e;let a;e.data&&(r=e.data),e.settings&&(o=e.settings,D(e.settings.interactions)),R(),P(r,o,{partialData:t});const{formatters:s,scales:l,components:u=[]}=o;_.update({components:u,data:r,excludeFromUpdate:i,formatters:s,scales:l}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()}));const c=[],d=[];let f;if(t)_.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible&&c.push(e)})),f=c;else{const{visible:e,hidden:t,ordered:n}=S();p=e,f=e,a=n,e.forEach((e=>{e.updateWith&&e.visible?c.push(e):d.push(e)})),t.forEach((e=>{e.instance.hide(),e.visible=!1,delete e.updateWith,e.applyTransform=!1}))}d.forEach((e=>e.instance.beforeMount())),d.forEach((e=>e.instance.mount())),f.forEach((e=>e.instance.beforeRender())),f.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible?e.instance.update():e.instance.render()})),t||kZ(n,a),d.forEach((e=>e.instance.mounted())),c.forEach((e=>e.instance.updated())),p.forEach((e=>{delete e.updateWith,e.visible=!0,e.applyTransform=!1})),M()},c.destroy=()=>{I(),_.destroy(),z(),D(),delete c.update,delete c.destroy,L()},c.getAffectedShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"and",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=[];return p.filter((e=>null==r||e.key===r)).forEach((r=>{const i=r.instance.getBrushedShapes(e,t,n);o=[...o,...i]})),o},c.findShapes=e=>{let t=[];return p.forEach((n=>{const r=n.instance.findShapes(e);t=[...t,...r]})),t},c.componentsFromPoint=e=>T(e).map((e=>e.instance.ctx)),c.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const o=n.getBoundingClientRect();let i=p;if(Array.isArray(t.components)&&t.components.length>0){const e=t.components.map((e=>e.key));i=p.filter((t=>-1!==e.indexOf(t.key))).map((n=>({instance:n.instance,opts:t.components[e.indexOf(n.key)]})))}for(let n=i.length-1;n>=0;n--){const a=i[n],s=EZ(e,o,a.instance.renderer().element().getBoundingClientRect()),l=a.instance.shapesAt(s,a.opts),u=l.length>0&&"stop"===t.propagation;if(r=[...r,...l],r.length>0&&u)return r}return r},c.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{components:[]};for(let n=0;n<t.components.length;n++){const r=t.components[n].key;p.filter((e=>r===e.key)).forEach((r=>{let o=e.filter((e=>e.key===r.key));r.instance.brushFromShapes(o,t.components[n])}))}},c.scroll=function(){return function(e,t){return t[e]||(t[e]=yX()),t[e]}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",m)},c.dataset=e=>b(e),c.dataCollection=e=>y(e),c.scales=function(){return f.all()},c.formatters=function(){return h.all()},c.brush=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return x[e]||(x[e]=OX()),x[e]},c.scale=function(e){return f.get(e)},c.formatter=function(e){return h.get(e)},c.toggleBrushing=function(e){v=void 0!==e?e:!v},c.component=e=>{const t=_.findComponentByKey(e);return null==t?void 0:t.instance.ctx},c.logger=()=>s,c.theme=()=>l,c.storage=EJ({animations:{updatingStageMeta:{isInit:!1,shouldBeRemoved:!1}}}),Object.defineProperty(c,"interactions",{get:()=>({instances:g,on(){O(),g.forEach((e=>e.on()))},off(){z(),g.forEach((e=>e.off()))}})}),C(),n&&(E(),N(),k(n),c.element=n),c}const MZ=e=>{let t=BG(e);return t.prio=e=>e?t.default(e[0]):[t.default()],t.types=()=>t.getKeys(),t};var AZ=BG();function IZ(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}const LZ=e=>e.filter((e=>"number"==typeof e&&!isNaN(e)));const PZ=e=>{let{key:t,data:n,cache:r,config:o}=e;if(!n)return;let i=n;"string"==typeof i&&(i=(e=>{let{data:t,config:n}=e;const r=t.split("\n"),o=r[0],i=r[1];let a=",";if(n&&n.parse&&n.parse.delimiter)a=n.parse.delimiter;else if(o){const e=[/,/,/\t/,/;/];for(let t=0;t<e.length;t++){const n=e[t];if(o&&i){if(n.test(o)&&n.test(i)&&o.split(n).length===i.split(n).length){a=n;break}}else n.test(o)&&(a=n)}}return r.map((e=>e.split(a)))})({data:n,config:o})),Array.isArray(i)&&function(e){let t,{source:n,data:r,cache:o,config:i}=e,a=r;const s=i&&i.parse;Array.isArray(r[0])?s&&!1===s.headers?t=r[0].map(((e,t)=>t)):(t=r[0],a=r.slice(1)):t=Object.keys(r[0]);const l=!!s&&"function"==typeof s.row&&s.row;let u,c=t;c=s&&"function"==typeof s.fields?s.fields(c.slice()):t.map((e=>({key:e,title:e}))),Array.isArray(r[0])?u=c.map((()=>[])):(u={},c.forEach((e=>{u[e.key]=[]})));for(let e=0;e<a.length;e++){const t=l?l(a[e],e,c):a[e];if(t)if(Array.isArray(t))for(let e=0;e<c.length;e++)u[e].push(t[e]);else for(let e=0;e<c.length;e++)u[c[e].key].push(t[c[e].key])}const d=Array.isArray(u)?e=>u[e]:e=>u[c[e].key];for(let e=0;e<c.length;e++){const t=d(e),r=LZ(t),i=r.length>0,a=i?"measure":"dimension",s=i?Math.min(...r):NaN,l=i?Math.max(...r):NaN;o.fields.push(fU(CH({source:n,key:e,title:c[e].title,values:t,min:s,max:l,type:a},c[e]),{value:c[e].value,label:c[e].label}))}}({data:i,cache:r,source:t,config:o})};function DZ(){let{key:e,data:t,config:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[]},o={key:()=>e,raw:()=>t,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];for(let t=0;t<n.fields.length;t++)if(n.fields[t].key()===e)return n.fields[t];for(let t=0;t<n.fields.length;t++)if(n.fields[t].title()===e)return n.fields[t];return null}(e,{cache:r}),fields:()=>r.fields.slice(),extract:e=>function(e,t){const n=Array.isArray(e)?e:[e];let r=[];return n.forEach((e=>{if(void 0!==e.field){const n=t.field(e.field),o=t.key();if(!n)throw Error("Field '".concat(e.field,"' not found"));const{props:i,main:a}=yU(e,t),s=Object.keys(i),l=!!e.trackBy,u=typeof e.trackBy,c={},d=[],p=n.items(),f=[];for(let t=0;t<p.length;t++){const n=p[t];if(a.filter&&!a.filter(n))continue;const r=IZ(a,n,{key:o});s.forEach((e=>{const a=i[e];let s=a.field?a.field.items()[t]:n;r[e]=IZ(a,s,{key:o})})),l&&_U({cfg:e,itemData:n,obj:r,target:d,tracker:c,trackType:u}),f.push(r)}r=l?[...r,...vU(d,{main:a,propsArr:s,props:i})]:[...r,...f]}})),r}(e,o),hierarchy:()=>null};return PZ({key:e,data:t,config:n,cache:r}),o}DZ.util={normalizeConfig:yU,collect:vU,track:_U};const TZ=BG();TZ.default("matrix"),TZ("matrix",DZ),TZ("default",DZ);const OZ=BG();function zZ(e,t,n){return Math.max(e,Math.min(t,n))}function NZ(e){let{item:t,value:n,boxCenter:r,rendWidth:o,rendHeight:i,flipXY:a,symbol:s}=e,l="x",u="y",c=o,d=i,p=n<.5?90:-90;return a&&(l="y",u="x",c=i,d=o,p=n<.5?180:0),s(CH({},t.oob,{[l]:r*c,[u]:Math.max(t.oob.size/2,Math.min(n*d,d-t.oob.size/2)),startAngle:p}))}function qZ(e){let{item:t,boxWidth:n,boxPadding:r,rendWidth:o,rendHeight:i,flipXY:a}=e,s="x",l="y",u="width",c="height",d=o,p=i;a&&(s="y",l="x",u="height",c="width",d=i,p=o);const{actualDiff:f,actualLow:h}=function(e){let{start:t,end:n,minPx:r=.1,maxPx:o=1}=e;const i=Math.max(t,n),a=Math.min(t,n),s=zZ(-.1,1.2,i),l=zZ(-.1,1.2,a),u=s*o-l*o,c=Math.max(r,u),d=(c-u)/2;return{actualDiff:c,startModifier:d,actualLow:l*o-d}}({start:t.start,end:t.end,minPx:t.box.minHeightPx,maxPx:p});return CH({},t.box,{type:"rect",[s]:(r+t.major)*d,[l]:h,[c]:f,[u]:n*d,data:t.data||{},collider:{type:null}})}function jZ(e){let{item:t,from:n,to:r,boxCenter:o,rendWidth:i,rendHeight:a,flipXY:s}=e,l="x1",u="y1",c="x2",d="y2",p=i,f=a;return s&&(l="y1",u="x1",c="y2",d="x2",p=a,f=i),CH({},t.line,{type:"line",[d]:Math.floor(n*f),[l]:o*p,[u]:Math.floor(r*f),[c]:o*p,data:t.data||{},collider:{type:null}})}function FZ(e){let{item:t,key:n,position:r,width:o,boxCenter:i,rendWidth:a,rendHeight:s,flipXY:l}=e,u="x1",c="y1",d="x2",p="y2",f=a,h=s;l&&(u="y1",c="x1",d="y2",p="x2",f=s,h=a);const m=o/2;return CH({type:"line"},t[n],{[c]:Math.floor(r*h),[u]:(i-m)*f,[p]:Math.floor(r*h),[d]:(i+m)*f,r:m*f,cx:i*f,cy:r*h,width:o*f,data:t.data||{},collider:{type:null}})}function BZ(e,t,n){const{width:r,maxWidthPx:o,minWidthPx:i}=t.box,a=e>=0?1:-1;let s=Math.min(a*e*r,isNaN(o)?n:o/n);return s=isNaN(i)?s:Math.max(i/n,s),s*a}OZ("native",(function(e,t,n){let r,o,i={chart:e,mediator:t,element:n},a=[],s=!0;function l(){"function"==typeof r.enable&&(r.enable=r.enable.bind(i)()),r.enable&&Object.keys(r.events).forEach((e=>{const t=r.events[e].bind(i);n.addEventListener(e,t),a.push({key:e,listener:t})}))}function u(){a.forEach((e=>{let{key:t,listener:r}=e;n.removeEventListener(t,r)})),a=[]}return{get key(){return o},set(e){!function(e){o=e.key,r=e,r.events=r.events||[],void 0===r.enable&&(r.enable=!0)}(e),u(),s&&l()},off(){s=!1,u()},on(){s=!0,0===a.length&&l()},destroy(){u(),i=null,r=null}}}));const $Z={oob:{show:!0,type:"n-polygon",fill:"#999",stroke:"#000",strokeWidth:0,size:10,sides:3,startAngle:-90},box:{show:!0,fill:"#fff",stroke:"#000",strokeWidth:1,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1},line:{show:!0,stroke:"#000",strokeWidth:1},median:{show:!0,stroke:"#000",strokeWidth:1},whisker:{show:!0,stroke:"#000",strokeWidth:1,fill:"",type:"line",width:1}},WZ=Object.keys($Z),HZ={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},style:{box:"$shape",line:"$shape-guide",whisker:"$shape-guide",median:"$shape-guide--inverted"}},created(){this.state={}},render(e){let{data:t}=e;const{width:n,height:r}=this.rect,o="horizontal"===this.settings.settings.orientation,{style:i,resolver:a,symbol:s}=this,l=WZ.filter((e=>!this.settings.settings[e]||!1!==this.settings.settings[e].show)),u={};l.forEach((e=>u[e]=$Z[e]));const c=function(e){let{keys:t,data:n,defaultSettings:r,style:o,settings:i,width:a,height:s,resolver:l}=e;const u=CH(!0,{},r||{},o||{}),c={major:"horizontal"===i.orientation?s:a,minor:"horizontal"===i.orientation?a:s},d=i.major;let p;p="object"==typeof d&&"object"==typeof d.ref&&void 0!==d.ref.start&&void 0!==d.ref.end?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:CH(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof d&&void 0!==d.binStart&&void 0!==d.binEnd?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:CH(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):l.resolve({data:n,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{},h={};["start","end","min","max","med"].forEach((e=>{(f[e]||n.items&&n.items.length&&n.items[0][e])&&(h[e]={scale:f.scale,ref:e})}));let m,g={major:p,minor:l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:CH(!0,{},h,f)})};for(let e=0,r=t.length;e<r;e++)i[m]&&!1===i[m].show||(m=t[e],g[m]=l.resolve({data:n,defaults:u[m],settings:i[m],scaled:c}));return g}({keys:l,data:t,defaultSettings:u,style:i,settings:this.settings.settings,width:n,height:r,resolver:a}),{settings:d,items:p}=c,f=function(e){let{width:t,height:n,flipXY:r,resolved:o,keys:i,symbol:a}=e;const s=[],l=o.major.items;if(!l.length)return s;const u=t,c=n,d=r?n:t,p=o.major.settings,f=["start","end","min","max","med"].filter((e=>void 0!==o.minor.settings[e])),h=f.length,m=i.filter((e=>"oob"!==e));let g,b,y,x,v,_,w,S,C;const E=i?i.length:0,k=m?m.length:0,R={box:function(){y.box&&IH(y.start)&&IH(y.end)&&g.push(qZ({item:y,boxWidth:x,boxPadding:v,rendWidth:u,rendHeight:c,flipXY:r}))},line:function(){IH(y.min)&&IH(y.start)&&g.push(jZ({item:y,from:y.min,to:y.start,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),IH(y.max)&&IH(y.end)&&g.push(jZ({item:y,from:y.max,to:y.end,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},median:function(){y.median&&IH(y.med)&&g.push(FZ({item:y,key:"median",position:y.med,width:x,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},whisker:function(){if(y.whisker){const e=x*y.whisker.width;IH(y.min)&&g.push(FZ({item:y,key:"whisker",position:y.min,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),IH(y.max)&&g.push(FZ({item:y,key:"whisker",position:y.max,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))}}};function M(){let e,t=-Number.MAX_VALUE,n=Number.MAX_VALUE;for(let r=0;r<h;r++)e=y[f[r]],IH(e)&&(t<e&&(t=e),n>e&&(n=e));w=t<0&&t!==-Number.MAX_VALUE,S=n>1&&n!==Number.MAX_VALUE,C=w||S}for(let e=0,t=l.length;e<t;e++){g=[],b=null;const t=l[e],n=t.data;let f=null,h=null;void 0!==p.binStart?(f=t.binStart,h=t.binEnd,b=p.binStart.scale):(b=p.major.scale,f=b?t.major:0);let A=0;b?b.bandwidth?(A=b.bandwidth(),f-=A/2):A=h-f:A=1,y=CH({},{major:f,majorEnd:h},o.minor.items[e]);for(let t=0;t<E;t++)y[i[t]]=o[i[t]].items[e];if(x=BZ(A,y,d),v=(A-x)/2,_=v+y.major+x/2,M(),C)y.oob&&(w?g.push(NZ({item:y,value:0,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})):S&&g.push(NZ({item:y,value:1,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})));else for(let e=0;e<k;e++)y[m[e]]&&!1===y[m[e]].show||R[m[e]]();const I={type:"container",data:n,collider:{type:"bounds"},children:g};s.push(I)}return s}({width:n,height:r,flipXY:o,resolved:c,keys:l,symbol:s});return f}};const GZ={shape:"saltire",width:2,size:.5,fill:"#333",stroke:"#333",strokeWidth:0},VZ=/px$/,YZ={shape:"circle",label:"",fill:"#333",stroke:"#ccc",strokeDasharray:"",strokeWidth:0,strokeLinejoin:"miter",opacity:1,x:.5,y:.5,size:1,show:!0},UZ={maxPx:1e4,minPx:1,maxRelExtent:.1,minRelExtent:.01,maxRelDiscrete:1,minRelDiscrete:.1};function KZ(e,t){return e&&"function"==typeof e.bandwidth?{isBandwidth:!0,value:Math.max(1,e.bandwidth()*t)}:{isBandwidth:!1,value:Math.max(1,t)}}function XZ(e,t,n,r){let{width:o,height:i}=t;return e.filter((e=>!1!==e.show&&!isNaN(e.x+e.y))).map((e=>{let t=e,a=VZ.test(e.size)?parseInt(e.size,10):n.min+t.size*(n.max-n.min);LH(a)&&(t=GZ,a=n.min+t.size*(n.max-n.min));const[s,l]=function(e){let t=YZ.shape,n={};return"object"==typeof e.shape&&"string"==typeof e.shape.type?(t=e.shape.type,n=e.shape):"string"==typeof e.shape&&(t=e.shape),[t,n]}(t),u=MH(MH({},l),{},{type:s,label:e.label,x:e.x*o,y:e.y*i,fill:t.fill,size:Math.min(n.maxGlobal,Math.max(n.minGlobal,a)),stroke:t.stroke,strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray,opacity:t.opacity});t===e.errorShape&&(u.width=t.width);const c=r(u);return c.data=e.data,c}))}const JZ={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},animations:{enabled:!1,trackBy:e=>e.data.value},style:{item:"$shape"}},render(e){let{data:t}=e;const n=this.resolver.resolve({data:t,defaults:CH({},YZ,this.style.item),settings:this.settings.settings,scaled:{x:this.rect.width,y:this.rect.height}}),{width:r,height:o}=this.rect,i=CH({},UZ,this.settings.settings.sizeLimits),a=n.items,s=function(e,t,n,r,o){const i=KZ(e?e.scale:void 0,n),a=KZ(t?t.scale:void 0,r);let s=Math.min(i.value*o[i.isBandwidth?"maxRelDiscrete":"maxRelExtent"],a.value*o[a.isBandwidth?"maxRelDiscrete":"maxRelExtent"]),l=Math.min(i.value*o[i.isBandwidth?"minRelDiscrete":"minRelExtent"],a.value*o[a.isBandwidth?"minRelDiscrete":"minRelExtent"]);return{min:Math.max(1,Math.floor(l)),max:Math.max(1,Math.floor(s)),maxGlobal:o.maxPx,minGlobal:o.minPx}}(n.settings.x,n.settings.y,r,o,i);return XZ(a,this.rect,s,this.settings.shapeFn||this.symbol)}};const ZZ={label:"",arc:1,show:!0,fill:"#333",stroke:"#ccc",strokeWidth:1,strokeLinejoin:"round",opacity:1,innerRadius:0,outerRadius:.8,cornerRadius:0,offset:0};function QZ(e,t,n,r){let{x:o,y:i,width:a,height:s}=t;const l=cG(),u={x:o+a/2,y:i+s/2},c=Math.min(a,s)/2,d=Math.min(a,s)/2,p=d/100;return e.map(((e,t)=>{const o=n[t];o.type="path";const i=d*o.outerRadius,a=c*o.innerRadius,s=p*o.cornerRadius;l.innerRadius(a),l.outerRadius(i),l.cornerRadius(s),o.arcDatum=e;const f=l.centroid(e),h=o.offset?function(e,t,n,r){let[o,i]=e;const a=Math.sqrt(o*o+i*i);o/=a,i/=a;const s=n-r;return{x:o*t*s,y:i*t*s}}(f,o.offset,i,a):{x:0,y:0};return o.transform="translate(".concat(h.x,", ").concat(h.y,") translate(").concat(u.x,", ").concat(u.y,")"),o.desc={share:e.value/r,slice:{start:e.startAngle,end:e.endAngle,innerRadius:a,outerRadius:i,cornerRadius:s,offset:{x:u.x+h.x,y:u.y+h.y}}},o}))}function eQ(e,t){return e.slice&&"arc"in e.slice?t.arc:t.data.value}const tQ={require:["chart","resolver"],defaultSettings:{settings:{startAngle:0,endAngle:2*Math.PI,padAngle:0,slice:{}},style:{slice:"$shape"},data:{}},render(e){let{data:t}=e;const n=[],r=[],o=this.settings.settings,{items:i}=this.resolver.resolve({data:t,defaults:CH({},ZZ,this.style.slice),settings:o.slice});let a=0;for(let e=0,t=i.length;e<t;e++){const t=eQ(o,i[e]);t>0&&i[e].outerRadius>=i[e].innerRadius&&(n.push(t),r.push(i[e]),a+=t)}const s=function(){var e=bG,t=gG,n=null,r=GH(0),o=GH(nG),i=GH(0);function a(a){var s,l,u,c,d,p=a.length,f=0,h=new Array(p),m=new Array(p),g=+r.apply(this,arguments),b=Math.min(nG,Math.max(-nG,o.apply(this,arguments)-g)),y=Math.min(Math.abs(b)/p,i.apply(this,arguments)),x=y*(b<0?-1:1);for(s=0;s<p;++s)(d=m[h[s]=s]=+e(a[s],s,a))>0&&(f+=d);for(null!=t?h.sort((function(e,n){return t(m[e],m[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),s=0,u=f?(b-p*x)/f:0;s<p;++s,g=c)l=h[s],c=g+((d=m[l])>0?d*u:0)+x,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:GH(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:GH(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:GH(+e),a):i},a}().sortValues(null);s.startAngle(o.startAngle),s.endAngle(o.endAngle),s.padAngle(o.padAngle);return QZ(s(n),CH({},this.rect,{x:0,y:0}),r,a)}};const nQ=function(e){function t(t){if(e[t.type]&&e[t.type].condition(t)){const n=e[t.type],r=void 0===n.conditionAppend||n.conditionAppend(t);n.items.forEach((e=>{const n=Math.round(t[e.key]),o=t[e.key]-n;t[e.key]=n,r&&"append"===e.type&&(o>0?t[e.key]+=.5:t[e.key]-=.5)}))}}return void 0===e&&((e={}).line={append:["x1","x2","y1","y2"],round:[],condition:e=>e.x1===e.x2||e.y1===e.y2,conditionAppend:e=>e.strokeWidth%2!=0},e.rect={append:["x","y"],round:["width","height"],condition:()=>!0,conditionAppend:e=>e.strokeWidth%2!=0}),Object.keys(e).forEach((t=>{const n=e[t];n.items=[],n.append.forEach((e=>{n.items.push({key:e,type:"append"})})),n.round.forEach((e=>{n.items.push({key:e,type:"round"})}))})),t.multiple=e=>e.forEach((e=>t(e))),t}();class rQ{constructor(){this.reset(),this.push(...arguments)}static evaluateKey(e,t){if(t){const t=e.substring(0,1),n=e.substring(1);if("x"===t)return"y".concat(n);if("y"===t)return"x".concat(n);if("cx"===e)return"cy";if("cy"===e)return"cx";if("width"===e)return"height";if("height"===e)return"width"}return e}transposeCoordinate(e,t,n){if("number"==typeof t&&isFinite(t)){const r=e.substring(0,1);if("x"===r||"cx"===e)return t*this.width;if("width"===e)return t*this.width;if("r"===e)return t*(n?this.height:this.width);if("y"===r||"cy"===e)return t*this.height;if("height"===e)return t*this.height}return t}push(){return this.storage.push(...arguments),this}processItem(e){let t={};const n=void 0!==e.flipXY?e.flipXY:this.flipXY,r=void 0!==e.crisp?e.crisp:this.crisp;if(e.fn&&"function"==typeof e.fn){let r=n?this.height:this.width,o=n?this.width:this.height;e=e.fn({width:r,height:o,flipXY:n});const i=Object.keys(e);for(let r=0,o=i.length;r<o;r++){let o=i[r];t[rQ.evaluateKey(o,n)]=e[o]}}else{const r=Object.keys(e);for(let o=0,i=r.length;o<i;o++){let i=r[o];const a=rQ.evaluateKey(i,n),s=this.transposeCoordinate(a,e[i],n);t[a]=s}}return r&&nQ(t),t}output(){let e=[];for(let t=0,n=this.storage.length;t<n;t++){let n=this.processItem(this.storage[t]);e.push(n)}return e}reset(){this.storage=[],this.flipXY=!1,this.crisp=!1,this.width=0,this.height=0}}function oQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new rQ(...t)}function iQ(e,t){return e&&t?e.cachedTicks&&e.cachedTicks()||e.ticks({distance:t}):[]}const aQ={created(){},require:["chart","renderer","resolver"],defaultSettings:{layout:{displayOrder:0},style:{ticks:"$guide-line",minorTicks:"$guide-line--minor"}},beforeRender(){this.blueprint=oQ(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){if(this.x=this.settings.x?this.chart.scale(this.settings.x):null,this.y=this.settings.y?this.chart.scale(this.settings.y):null,YX(this,"x",this.rect.width),YX(this,"y",this.rect.height),!this.x&&!this.y)return[];this.settings.ticks=CH({show:!0},this.style.ticks,this.settings.ticks||{}),this.settings.minorTicks=CH({show:!1},this.style.minorTicks,this.settings.minorTicks||{}),this.lines={x:[],y:[]},this.lines.x=iQ(this.x,this.rect.width),this.lines.y=iQ(this.y,this.rect.height),this.lines.y=this.lines.y.map((e=>CH(e,{flipXY:!0})));let e=e=>{let{dir:t,isMinor:n}=e,r=this.lines[t].filter((e=>!!e.isMinor===n)),o=n?this.settings.minorTicks:this.settings.ticks;this.resolver.resolve({settings:o,data:{items:r,dir:t}}).items.forEach((e=>{let n=e.data;var r,o;e.show&&this.blueprint.push({type:"line",x1:n.position,y1:0,x2:n.position,y2:1,stroke:e.stroke||"black",strokeWidth:void 0!==e.strokeWidth?e.strokeWidth:1,strokeDasharray:void 0!==e.strokeDasharray?e.strokeDasharray:void 0,flipXY:n.flipXY||!1,value:null!==(r=n.value)&&void 0!==r?r:null===(o=n.data)||void 0===o?void 0:o.value,dir:t})}))};return e({dir:"x",isMinor:!1}),e({dir:"x",isMinor:!0}),e({dir:"y",isMinor:!1}),e({dir:"y",isMinor:!0}),this.blueprint.output()}};function sQ(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.8,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e," ").concat(t-n,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?0:1,", ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return"\n M ".concat(e-n," ").concat(t,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?1:0,", ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function lQ(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.75,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e+=o?1.5*n:-1.5*n," ").concat(t-n,"\n L ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return t+=o?1.5*n:-1.5*n,"\n M ".concat(e-n," ").concat(t,"\n L ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function uQ(e,t,n){return e<t||e>n}function cQ(e,t){if("string"==typeof e.formatter)return t.formatter(e.formatter);if("object"==typeof e.formatter)return t.formatter(e.formatter);if(void 0!==e.scale&&e.scale.data){const t=e.scale.data()&&e.scale.data().fields;return t&&t[0]?t[0].formatter():null}return null}function dQ(e){if(void 0===e)return 0;if("number"==typeof e&&isFinite(e))return e;if("string"==typeof e)switch(e){case"center":case"middle":return.5;case"bottom":case"right":return 1;default:return 0}return 0}function pQ(e){var t,n;let{chart:r,blueprint:o,renderer:i,p:a,settings:s,items:l,slopeLine:u}=e,c=!0,d=!1,p=!1,f=!1,h=!1,m=CH(!0,{},s.style.line,a.line||{}),g=CH(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke});if(d=u?o.processItem({type:"line",x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:!1,value:a.valueInfo?a.valueInfo.id:a.value}):o.processItem({type:"line",x1:a.position,y1:0,x2:a.position,y2:1,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:a.flipXY||!1,value:a.valueInfo?a.valueInfo.id:a.value}),a.label&&!1!==a.label.show&&(null==u||!u.slope||0===u.slope)){const e=CH(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke},a.label);let t,n={width:0,height:0},u="";t=cQ(a,r),!1!==a.label.showValue&&(t?u=" (".concat(t(a.value),")"):a.scale&&(u=" (".concat(a.value,")"))),u&&(n=i.measureText({text:u,fontFamily:e.fontFamily,fontSize:e.fontSize}));let d=i.measureText({text:e.text||"",fontFamily:e.fontFamily,fontSize:e.fontSize}),g={width:d.width+n.width,height:Math.max(d.height,n.height)},b=e.padding,y=dQ(a.flipXY?e.vAlign:e.align),x=dQ(a.flipXY?e.align:e.vAlign),v=Math.min(1+g.width+2*b,e.maxWidth*o.width,e.maxWidthPx),_=g.height+2*b,w=a.flipXY?_:v,S=a.flipXY?v:_;if(p=o.processItem({fn:t=>{let{width:n,height:r}=t,i=a.position*n-(a.flipXY?_:v)*(1-y);i=a.flipXY?i:Math.max(i,0);return{type:"rect",x:i,y:Math.max(Math.abs(x*r-S*x),0),width:a.flipXY?w:Math.min(w,o.width-i),height:S,stroke:e.background.stroke,strokeWidth:e.background.strokeWidth,fill:e.background.fill,opacity:e.background.opacity}},flipXY:a.flipXY||!1}),p.x<-1||p.x+p.width>o.width+1||p.y<-1||p.y+p.height>o.height+1)p=void 0;else{f={type:"text",text:e.text||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:p.x+b,y:p.y+p.height/2+g.height/3,maxWidth:p.width-2*b-n.width,anchor:"start"},u&&(h={type:"text",text:u||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:f.x+3+(p.width-(n.width+2*b)),y:f.y});for(let e=0,t=l.length;e<t;e++){let t=l[e];"rect"===t.type?$J(p,t)&&(c=!1):"line"===t.type&&a.flipXY===t.flipXY&&GJ(p,t)&&(c=!1)}}}if(d&&l.push(d),u&&0!==u.slope&&(!1!==(null===(t=u.label)||void 0===t?void 0:t.show)||!1!==(null===(n=u.label)||void 0===n?void 0:n.showValue))){var b,y,x;let e,t;const n=120;let s=!1!==(null===(b=u.label)||void 0===b?void 0:b.show)?null===(y=u.label)||void 0===y?void 0:y.text:"";if(!1!==(null===(x=u.label)||void 0===x?void 0:x.showValue)){var v;const t=cQ(a,r),n=t?t(u.value):u.value;e="(".concat(u.slope,"x + ").concat(n,")"),s+=null!==(v=u.label)&&void 0!==v&&v.text?" ".concat(e):e}if(s.length>1){var _,w,S;const e=i.measureText({text:s,fontFamily:g.fontFamily,fontSize:g.fontSize});e.width=e.width>n?n:e.width;const a=function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});if(t>0){if(r.max()*t+n>=o.max())return!0}else if(t<0&&r.min()*t+n>=o.max())return!0;return!1}(r,u.slope,u.value)?function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});return r((o.max()-n)/t)}(r,u.slope,u.value):void 0,c=void 0===a||u.isRtl?g.padding:3*g.padding,p=void 0!==a||u.slope>0?3*g.padding:g.padding,f=function(e,t,n,r,o,i){let a=0;if(void 0!==n){if(n<.8)return a=e.slope<0||e.isRtl?3*i.padding:2*i.padding,e.isRtl,n*o.width+a;if(1===n)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding);if(n>.8)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding)}else if(e.slope>0)return t.x2-(r.width+2*i.padding);return e.isRtl?t.x1-(r.width+2*i.padding):t.x1}(u,d,a,e,o,g),h=Math.min(d.y1,d.y2);null!==(_=u.label)&&void 0!==_&&_.stroke&&(t={type:"rect",x:u.isRtl?Math.max(f,c)-2:Math.max(f,c)+2,y:Math.abs(Math.max(h,p)-e.height),rx:3,ry:3,width:e.width+g.padding,height:e.height-2,stroke:m.stroke,fill:m.stroke});const b={type:"text",text:s,fill:null!==(w=null===(S=u.label)||void 0===S?void 0:S.stroke)&&void 0!==w?w:m.stroke,opacity:g.opacity,fontFamily:g.fontFamily,fontSize:g.fontSize,x:t?t.x+2:Math.max(f,c)+2,y:t?t.y+e.height-g.padding:Math.abs(Math.max(h,p)-g.padding/2),anchor:"start",title:s,maxWidth:n,width:e.width};(function(e,t,n,r,o){for(let i=0,a=e.length;i<a;i++){const a=e[i];if("text"===(null==a?void 0:a.type)&&Math.abs(a.x-t.x)<Math.max(a.width+r,t.width+r)&&Math.abs(a.y-t.y)<n.height+o)return!0}return!1})(l,b,e,c,p)||(t&&l.push(t),l.push(b))}}c&&p&&f&&(l.push(p,f),h&&l.push(h))}function fQ(e){const t={value:e.value};return e.label&&(t.label=e.label.text),t}function hQ(e){return void 0!==("function"==typeof e.value?e.value():e.value)}function mQ(e,t){const n=e.min();if(n===e.max()){const r=function(e){const t=e.range();return 2===(null==t?void 0:t.length)&&t[0]>t[1]}(e);if(t<n)return r?2:-1;if(t>n)return r?-1:2}return e(t)}function gQ(e,t){return e&&t&&Math.abs(e.x-t.x)<1e-15&&Math.abs(e.y-t.y)<1e-15}const bQ={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:0},style:{oob:{show:!0,width:10,fill:"#1A1A1A",stroke:"transparent",strokeWidth:0,opacity:1,text:{fontFamily:"Arial",stroke:"transparent",fill:"#fff",strokeWidth:0,opacity:1},triangle:{fill:"#4D4D4D",stroke:"transparent",strokeWidth:0,opacity:1},padding:{x:28,y:5}},line:{stroke:"#000"},label:{strokeWidth:0}}},preferredSize:()=>30,beforeRender(){this.blueprint=oQ(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){let e=this.settings;if(this.lines={x:[],y:[]},this.lines.x=e.lines&&e.lines.x||[],this.lines.y=e.lines&&e.lines.y||[],0===this.lines.x.length&&0===this.lines.y.length)return[];const t={x0:[],x1:[],y0:[],y1:[]};this.lines.x=this.lines.x.filter(hQ).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=mQ(t,e.value);return CH(e,{scale:t,position:n})}return CH(e,{position:e.value})})),this.lines.y=this.lines.y.filter(hQ).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=mQ(t,e.value);return CH(e,{scale:t,position:n,flipXY:!0})}return CH(e,{position:e.value,flipXY:!0})})),this.lines.x=this.lines.x.filter((e=>!(e.position<0||e.position>1)||(t["x".concat(e.position>1?1:0)].push(fQ(e)),!1))),this.lines.y=this.lines.y.filter((e=>!(!e.slope||0===e.slope)||(!(e.position<0||e.position>1)||(t["y".concat(e.position>1?1:0)].push(fQ(e)),!1))));let n=[];return[...this.lines.x,...this.lines.y].forEach((r=>{if(!0===r.show||void 0===r.show){let o;if(r.slope&&0!==r.slope){const e=this.chart.scale({scale:"x"}),n=this.chart.scale({scale:"y"}),i=e.min(),a=e.max(),s=n.min(),l=n.max();o=MH(MH({},r),{},{x1:void 0,y1:void 0,x2:void 0,y2:void 0});const u=i*r.slope+r.value,c=a*r.slope+r.value,d=(s-r.value)/r.slope,p=(l-r.value)/r.slope;let f=[];uQ(u,s,l)||(f[0]={x:mQ(e,i),y:mQ(n,u)}),uQ(d,i,a)||(f[1]={x:mQ(e,d),y:1}),uQ(c,s,l)||(f[2]={x:mQ(e,a),y:mQ(n,c)}),uQ(p,i,a)||(f[3]={x:mQ(e,p),y:0});const h=f.filter((e=>!!e)).length;if(h>2&&function(e){gQ(e[0],e[1])&&(e[1]=void 0),gQ(e[1],e[2])&&(e[2]=void 0),gQ(e[2],e[3])&&(e[3]=void 0),gQ(e[3],e[0])&&(e[3]=void 0)}(f),f=f.filter((e=>!!e)),f.length<2)return void t["y".concat(u>l?0:1)].push(fQ(r));o.x1=f[0].x,o.y1=f[0].y,o.x2=f[1].x,o.y2=f[1].y}else o=void 0;pQ({chart:this.chart,blueprint:this.blueprint,renderer:this.renderer,p:r,settings:e,items:n,slopeLine:o})}})),e.style.oob.show&&function(e){let{blueprint:t,oob:n,settings:r,items:o}=e;const i=Object.keys(n);let a=r.style.oob||{};for(let e=0,r=i.length;e<r;e++){const r=i[e],s=n[r];if(s.length>0){let e=r.charAt(1),n="y"===r.charAt(0),i=a.padding.x+a.width,l=a.padding.y+a.width,u="bottom";u=n?"1"===e?"bottom":"top":"1"===e?"right":"left";let c=t.processItem({fn:t=>{let{width:r,height:o}=t,c=e*r+("1"===e?-i:i),d=n?l:o-l;return"arc"===a.type?{type:"path",d:sQ(n?d:c,n?c:d,a.width,u),x:c,y:d,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0}:{type:"circle",cx:c,cy:d,r:a.width,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0,opacity:a.opacity,data:s}},flipXY:n}),d=c.cx||c.x,p=c.cy||c.y;const f=s.map((e=>e.label?"".concat(e.label," (").concat(e.value,")"):"(".concat(e.value,")"))),h=f.reduce(((e,t,n)=>0===n?t:"".concat(e,"\n\n").concat(t)),"");let m={type:"text",text:s.length||"",title:h,x:d-.4*a.width,y:p+.4*a.width,fontFamily:a.text.fontFamily,fontSize:"".concat(1.3*a.width,"px"),stroke:a.text.stroke,fill:a.text.fill,strokeWidth:a.text.strokeWidth||0,opacity:a.text.opacity},g={type:"path",d:lQ(d,p,a.width,u),x:d,y:p,stroke:a.triangle.stroke,fill:a.triangle.fill,strokeWidth:a.triangle.strokeWidth||0,opacity:a.triangle.opacity};o.push(c,m,g)}}}({blueprint:this.blueprint,oob:t,settings:e,items:n}),n}};function yQ(e){const t={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null}};return"top"===e.align||"bottom"===e.align?(t.x1=e.innerRect.x-e.outerRect.x,t.x2=t.x1+e.innerRect.width,t.y1=t.y2="top"===e.align?e.innerRect.height-e.padding:e.padding):(t.x1=t.x2="left"===e.align?e.innerRect.width-e.padding:e.padding,t.y1=e.innerRect.y-e.outerRect.y,t.y2=t.y1+e.innerRect.height),function(e,t){CH(e,t.style)}(t,e),t}function xQ(e){return"string"==typeof e||"number"==typeof e?e:"-"}function vQ(e,t,n){n.layered||!n.stepSize?function(e,t){t.collider={type:"polygon",vertices:[{x:t.boundingRect.x,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y+t.boundingRect.height},{x:t.boundingRect.x,y:t.boundingRect.y+t.boundingRect.height}]}}(0,t):n.tilted?function(e,t,n){const r=n.angle*(Math.PI/180),o=Math.max(n.stepSize/2,t.boundingRect.height/2),i="start"===t.anchor,a="end"===t.anchor&&r<0,s="start"===t.anchor&&r>=0,l=t.boundingRect.y+(s||a?t.boundingRect.height:0),u=[{x:t.x-o,y:l},{x:t.x+o,y:l}].map((e=>mJ(e,r,{x:t.x,y:t.y}))),c={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y+t.boundingRect.height},d={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y},p=r>=0?[c,d]:[d,c];u.push(...p),t.collider={type:"polygon",vertices:u}}(0,t,n):function(e,t,n){if("bottom"===n.align||"top"===n.align){const r=e.position*n.innerRect.width+(n.innerRect.x-n.outerRect.x-n.stepSize/2);t.collider={type:"rect",x:r,y:0,width:r<0?n.stepSize+r:n.stepSize,height:n.innerRect.height}}else{const r=e.position*n.innerRect.height+(n.innerRect.y-n.outerRect.y-n.stepSize/2);t.collider={type:"rect",x:0,y:r,width:n.innerRect.width,height:r<0?n.stepSize+r:n.stepSize}}const r=t.collider;r.x=Math.max(r.x,0),r.y=Math.max(r.y,0);const o=r.x+r.width-(n.outerRect.x+n.outerRect.width);r.width=o>0?r.width-o:r.width;const i=r.y+r.height-(n.outerRect.y+n.outerRect.height);r.height=i>0?r.height-i:r.height}(e,t,n)}function _Q(e,t){const n=isNaN(e.style.align)?.5:Math.min(Math.max(e.style.align,0),1);let r=0;if(e.tilted)r=e.stepSize*n;else{const o=t?e.textRect.height:e.textRect.width;r=Math.max(0,e.stepSize-o)*n}return r}function wQ(e,t){var n,r;const o={type:"text",text:xQ(e.label),x:0,y:0,maxWidth:t.maxWidth,maxHeight:t.maxHeight,tickValue:null!==(n=e.value)&&void 0!==n?n:null===(r=e.data)||void 0===r?void 0:r.value};return"top"===t.align||"bottom"===t.align?(o.x=e.start*t.innerRect.width+(t.innerRect.x-t.outerRect.x)+_Q(t,!1),o.y="top"===t.align?t.innerRect.height:0,o.anchor=t.stepSize?"start":"middle",o.x+=isNaN(t.style.offset)?0:+t.style.offset):(o.y=e.start*t.innerRect.height+(t.innerRect.y-t.outerRect.y)+_Q(t,!0),o.x="left"===t.align?t.innerRect.width:0,o.anchor="left"===t.align?"end":"start",o.baseline=t.stepSize?"text-before-edge":"central",o.y+=isNaN(t.style.offset)?0:+t.style.offset),function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(o,t),function(e,t){if(!t.tilted&&!t.stepSize)if("top"===t.align||"bottom"===t.align){const n=0,r=t.outerRect.width,o=Math.min(t.maxWidth/2,t.textRect.width/2),i=e.x-o,a=e.x+o;i<n?(e.anchor="start",e.x=t.innerRect.x-t.outerRect.x):a>r&&(e.anchor="end",e.x=t.innerRect.width+t.innerRect.x)}else{const n=0,r=t.outerRect.height,o=t.maxHeight/2,i=e.y-o,a=e.y+o;i<n?(e.y=t.innerRect.y-t.outerRect.y,e.baseline="text-before-edge"):a>r&&(e.y=t.innerRect.height+(t.innerRect.y-t.outerRect.y),e.baseline="text-after-edge")}}(o,t),function(e,t){"top"===t.align?e.y-=t.padding:"bottom"===t.align?e.y+=t.padding+t.maxHeight:"left"===t.align?e.x-=t.padding:"right"===t.align&&(e.x+=t.padding)}(o,t),function(e,t){if(t.tilted){const n=-t.angle,r=n*(Math.PI/180);"bottom"===t.align?(e.x-=t.maxHeight*Math.sin(r)/2,e.y-=t.maxHeight,e.y+=t.maxHeight*Math.cos(r)/2):e.x-=t.maxHeight*Math.sin(r)/3,e.transform="rotate(".concat(n,", ").concat(e.x,", ").concat(e.y,")"),e.anchor="bottom"===t.align==t.angle<0?"start":"end";const o=Math.cos(r)*t.maxWidth;if("bottom"===t.align==t.angle<0){const n=t.outerRect.width-t.paddingEnd;e.x+o>n&&(e.maxWidth=(n-e.x-10)/Math.cos(r))}else{const n=t.paddingEnd;e.x-o<n&&(e.maxWidth=(e.x-n-10)/Math.cos(r))}}}(o,t),function(e,t){e.boundingRect=t.textBounds(e)}(o,t),vQ(e,o,t),o}function SQ(e,t){const n={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null},tickValue:e.value};return"top"===t.align||"bottom"===t.align?(n.x1=n.x2=e.position*t.innerRect.width+(t.innerRect.x-t.outerRect.x),n.y1="top"===t.align?t.innerRect.height:0,n.y2="top"===t.align?n.y1-t.tickSize:n.y1+t.tickSize):(n.y1=n.y2=e.position*t.innerRect.height+(t.innerRect.y-t.outerRect.y),n.x1="left"===t.align?t.innerRect.width:0,n.x2="left"===t.align?n.x1-t.tickSize:n.x1+t.tickSize),function(e,t){CH(e,t.style)}(n,t),function(e,t){"top"===t.align?(e.y1-=t.padding,e.y2-=t.padding):"bottom"===t.align?(e.y1+=t.padding,e.y2+=t.padding):"left"===t.align?(e.x1-=t.padding,e.x2-=t.padding):"right"===t.align&&(e.x1+=t.padding,e.x2+=t.padding)}(n,t),function(e,t){const n=e.strokeWidth/2;e.x1===t.innerRect.width?(e.x1-=n,e.x2-=n):0===e.x1?(e.x1+=n,e.x2+=n):e.y1===t.innerRect.height?(e.y1-=n,e.y2-=n):0===e.y1&&(e.y1+=n,e.y2+=n)}(n,t),n}function CQ(e){return!e.isMinor&&e.position>=0&&e.position<=1}function EQ(e){let{rect:t,state:n,majorTicks:r,measure:o,horizontal:i}=e;return i?function(e){let{majorTicks:t,measureText:n,rect:r,state:o}=e;const i="layered"===o.labels.activeMode?2:1,a=r.width,s=t.map((e=>e.label)).map((e=>"".concat(e.slice(0,1)).concat(e.length>1?"…":""))).map(n).map((e=>e.width));for(let e=0;e<t.length;++e){const n=t[e];if(i*a*Math.abs(n.start-n.end)<s[e])return!0}return!1}({majorTicks:r,measureText:o,rect:t,state:n}):function(e){let{majorTicks:t,measureText:n,rect:r}=e;const o=r.height,i=n("M").height;return!(t.length<2)&&o*Math.abs(t[0].position-t[1].position)<i}({majorTicks:r,measureText:o,rect:t})}function kQ(e){let{value:t,maxValue:n,minValue:r,range:o,modifier:i}=e;return isNaN(o)||isNaN(i)||(t=o*i),t>n&&(t=n),t<r&&(t=r),t}function RQ(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const u={left:0,top:0,right:0,bottom:0},{maxLengthPx:c,minLengthPx:d}=a.labels;if(a.labels.show){const e=a.align,p="top"===e||"bottom"===e,f=p?n.inner.width:n.inner.height,h=i.ticks({settings:a,distance:f,formatter:r}).filter(CQ),m=e=>{const t=o({text:e,fontSize:a.labels.fontSize,fontFamily:a.labels.fontFamily});return t.width=kQ({value:t.width,maxValue:c,minValue:d}),t};if(t&&p&&"auto"===a.labels.mode&&(!function(e){let{majorTicks:t,measure:n,rect:r,state:o,settings:i}=e;const a=i.labels.maxGlyphCount,s="layered"===o.labels.activeMode?2:1,l=i.labels.tiltThreshold?i.labels.tiltThreshold:.7,u=n("…").width,c=r.width;let d=0,p=0;if(isNaN(a))for(let e=0;e<t.length;e++){const r=t[e],o=r.label,i=n(o).width*(o.length>1?l:1);if(p=s*c*Math.abs(r.start-r.end),i+u>p)return!0}else{const e=t.reduce(((e,t)=>Math.min(Math.abs(t.start-t.end),e)),1/0);if(p=s*c*e,d=n("M").width*l*a,d+u>p)return!0}return!1}({majorTicks:h,measure:m,rect:n.inner,state:s,settings:a})?s.labels.activeMode="horizontal":s.labels.activeMode="tilted"),!a.labels.filterOverlapping&&"tilted"!==s.labels.activeMode&&EQ({rect:n.inner,state:s,majorTicks:h,measure:m,horizontal:p})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}let g,b;if("tilted"===s.labels.activeMode){const e=Math.abs(a.labels.tiltAngle)*(Math.PI/180);g=t=>kQ({value:t.width,maxValue:c,minValue:d})*Math.sin(e)+t.height*Math.cos(e)}else g=p?e=>e.height:e=>kQ({value:e.width,maxValue:c,minValue:d});if(p&&"tilted"!==s.labels.activeMode)b=["M"];else if(isNaN(a.labels.maxGlyphCount))b=h.map((e=>e.label));else{let e="";for(let t=0;t<a.labels.maxGlyphCount;t++)e+="M";b=[e]}const y=b.map(m),x=y.map(g),v=Math.max(...x,0);if(l+=v,l+=a.labels.margin,"layered"===s.labels.activeMode&&(l*=2),"tilted"===s.labels.activeMode){const e="bottom"===a.align==a.labels.tiltAngle>=0,t=Math.abs(a.labels.tiltAngle)*(Math.PI/180),r=(v-m("M").height*Math.cos(t))/Math.sin(t),o=e=>Math.min(r,e.width)*Math.cos(t)+e.height,i=(t,r)=>{const o=h[r]?h[r].position:0;return e?t-o*n.inner.width:t-(1-o)*n.inner.width},s=Math.min(a.labels.maxEdgeBleed,Math.max(...y.map(o).map(i),0))+a.paddingEnd;if(u[e?"left":"right"]=s,!a.labels.filterOverlapping&&function(e){let{majorTicks:t,measureText:n,rect:r,bleedSize:o,angle:i}=e;if(t.length<2)return!1;if(0===i)return!0;const a=Math.abs(i),s=1/(Math.min(r.outer.width-o,r.inner.width)*Math.abs(t[0].position-t[1].position));return n("M").height>Math.sin(a*(Math.PI/180))/s}({majorTicks:h,measureText:m,rect:n,bleedSize:s,angle:a.labels.tiltAngle})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}}}return{size:l,edgeBleed:u}}const MQ=(e,t,n)=>e.width*Math.abs(t.position-n.position);function AQ(e){let{layered:t,major:n,innerRect:r,outerRect:o,tick:i,index:a}=e;const s=t?2:1,l=n[a-s],u=n[a+s],c=l?MQ(r,i,l)/2-2:1/0,d=u?MQ(r,i,u)/2-2:1/0;return n.length<2?r.width:l?u?2*Math.min(c,d):(e=>{let{innerRect:t,outerRect:n,tick:r,prevWidth:o}=e;const i=t.x-n.x,a=n.width-t.width-i,s=t.width-t.width*r.position+a,l=2*Math.min(o,s),u=1===r.position?t.width/2-2:0;return Math.max(o,l,u)})({innerRect:r,outerRect:o,tick:i,prevWidth:c}):(e=>{let{innerRect:t,outerRect:n,tick:r,nextWidth:o}=e;const i=t.x-n.x,a=t.width*r.position+i,s=2*Math.min(o,a),l=0===r.position?t.width/2-2:0;return Math.max(o,s,l)})({innerRect:r,outerRect:o,tick:i,nextWidth:d})}function IQ(e){const t=e.innerRect,n={cx:t.width/2,cy:t.height/2},r=Math.min(t.height,t.width)/2*e.radius,o=r+e.style.strokeWidth,i={visible:!0,type:"path",arcDatum:{startAngle:e.startAngle,endAngle:e.endAngle},transform:"translate(0, 0) translate(".concat(n.cx,", ").concat(n.cy,")"),desc:{share:1,slice:{cornerRadius:0,innerRadius:r,outerRadius:o}},ticks:[]};return function(e,t){CH(e,t.style)}(i,e),i}function LQ(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}function PQ(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i;let u=a-e.position*l;u-=Math.PI/2;const c=LQ(r.cx,r.cy,o+s,u),d=LQ(r.cx,r.cy,o,u),p={type:"line",x1:c.x,y1:c.y,x2:d.x,y2:d.y,value:e.value};return function(e,t){const n=MH({},t.style);CH(e,n)}(p,t),p}function DQ(e){return"string"==typeof e||"number"==typeof e?e:"-"}function TQ(e,t,n){let r;return r="left"===t?n.x:"right"===t?e.outerRect.width-n.x:Math.max(n.x,e.outerRect.width-n.x),r}function OQ(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i,u=.2;let c,d;c="top"===t.align||"bottom"===t.align?a-e.position*l:i+e.position*l,d=c<-.2&&c>-Math.PI+u?"left":c>.2&&c<Math.PI-u?"right":"center",c-=Math.PI/2;const p=function(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}(r.cx,r.cy,o+s+6,c);let f;f="left"===d?"end":"right"===d?"start":"middle";const h={type:"text",text:DQ(e.label),align:d,x:p.x,y:p.y,maxHeight:t.maxHeight,maxWidth:TQ(t,d,p),anchor:f,baseline:"middle"};return function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(h,t),function(e,t){e.boundingRect=t.textBounds(e)}(h,t),function(e,t,n){let r,o;const i=parseFloat(n.fontSize)||0;r=t.y-i/2,o=e.innerRect.height-(t.y+i/2),(r<0||o<0)&&(n.text="")}(t,p,h),h}function zQ(e){let t=0;return t+=e.paddingStart,t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function NQ(e){let t=0;return t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function qQ(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=zQ(e)+e.labels.margin,t}function jQ(e,t){return e.map((e=>SQ(e,t)))}function FQ(e,t){return t?Math.abs(t.end-t.start):e.bandwidth()}function BQ(e){let{textMetrics:t,settings:n,innerRect:r,scale:o,tilted:i,layered:a,tick:s}=e;const l=t.height,u=FQ(o,s),c={width:0,height:l};if("left"===n.align||"right"===n.align)c.width=r.width-qQ(n)-n.paddingEnd;else if(a)c.width=u*r.width*2;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);c.width=(r.height-qQ(n)-n.paddingEnd-l*Math.cos(e))/Math.sin(e)}else c.width=u*r.width;return c.width=kQ({value:c.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),c}function $Q(e){let{textMetrics:t,settings:n,innerRect:r,outerRect:o,tilted:i,layered:a,tick:s,index:l,major:u}=e;const c=t.height,d={width:0,height:c};if("left"===n.align||"right"===n.align)d.width=r.width-qQ(n)-n.paddingEnd;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);d.width=(r.height-qQ(n)-n.paddingEnd-c*Math.cos(e))/Math.sin(e)}else d.width=AQ({layered:a,major:u,innerRect:r,outerRect:o,tick:s,index:l});return d.width=kQ({value:d.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),d}function WQ(e){let t;function n(){return t=$Q,n}function r(){return t=BQ,r}function o(e){let{settings:n,scale:r,innerRect:o,outerRect:i,measureText:a,ticks:s,state:l,textBounds:u}=e;const c=[],d=function(e){return e.filter((e=>!e.isMinor))}(s),p=function(e){return e.filter((e=>e.isMinor))}(s),f={innerRect:o,align:n.align,outerRect:i},h="tilted"===l.labels.activeMode,m="layered"===l.labels.activeMode;let g;if(n.arc&&(f.startAngle=n.arc.startAngle,f.endAngle=n.arc.endAngle,f.radius=n.arc.radius),n.line.show&&(f.style=n.line,f.padding=n.paddingStart,n.arc?c.push(IQ(f)):c.push(yQ(f))),n.ticks.show&&(f.style=n.ticks,f.tickSize=n.ticks.tickSize,f.padding=zQ(n),n.arc?(f.padding=NQ(n),g=function(e,t){return e.map((e=>PQ(e,t)))}(d,f)):g=jQ(d,f)),n.labels.show){const e=qQ(n);f.style=n.labels,f.padding=e,f.tilted=h,f.layered=m,f.angle=n.labels.tiltAngle,f.paddingEnd=n.paddingEnd,f.textBounds=u;const s=(e,s)=>{f.textRect=function(e){let{style:t,measureText:n,tick:r}=e;return n({text:r.label,fontSize:t.fontSize,fontFamily:t.fontFamily})}({tick:e,measureText:a,style:f.style});const l=t({textMetrics:f.textRect,settings:n,innerRect:o,outerRect:i,scale:r,tilted:h,layered:m,tick:e,major:d,index:s});f.maxWidth=l.width,f.maxHeight=l.height,f.stepSize=function(e){let{innerRect:t,scale:n,settings:r,tick:o}=e;return("top"===r.align||"bottom"===r.align?t.width:t.height)*FQ(n,o)}({innerRect:o,scale:r,settings:n,tick:e})};let l=[];n.arc?(f.padding=function(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=NQ(e)+e.labels.margin,t}(n),l=function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=OQ(e,t);return o.data=e.data,o}))}(d,f,s)):l=!m||"top"!==n.align&&"bottom"!==n.align?function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=wQ(e,t);return o.data=e.data,o}))}(d,f,s):function(e,t,n,r){const o=t.padding,i=qQ(n);return e.map(((e,a)=>{r(e,a);const s=i+t.maxHeight+n.labels.margin;t.layer=a%2,t.padding=a%2==0?o:s;const l=wQ(e,t);return l.data=e.data,l}))}(d,f,n,s),n.labels.filterOverlapping&&function(e,t,n){let r=(t,n)=>$J(qH(1,e[t].boundingRect),qH(1,e[n].boundingRect));if(n&&n.tilted){const t=Math.abs(n.angle);r=(n,r)=>{const o=1/Math.abs(e[n].x-e[r].x),i=Math.sin(t*(Math.PI/180))/o;return e[n].boundingRect.height>i}}for(let n=0;n<=e.length-1;n++)for(let o=n+1;o<=Math.min(n+5,n+(e.length-1));o++)e[n]&&e[o]&&r(n,o)&&(o===e.length-1?(e.splice(n,1),t&&t.splice(n,1)):(e.splice(o,1),t&&t.splice(o,1)),o--,n--)}(l,g,f),c.push(...l)}return n.minorTicks&&n.minorTicks.show&&p.length>0&&(f.style=n.minorTicks,f.tickSize=n.minorTicks.tickSize,f.padding=function(e){return e.line.strokeWidth+e.minorTicks.margin}(n),c.push(...jQ(p,f))),g&&c.push(...g),c}return n.build=o,r.build=o,e?r():n()}const HQ={labels:{show:!0,tiltAngle:40,tiltThreshold:.7,maxEdgeBleed:1/0,margin:4,maxLengthPx:150,minLengthPx:0,mode:"auto",maxGlyphCount:NaN,align:.5,offset:0,filterOverlapping:!1},ticks:{show:!1,margin:0,tickSize:4},line:{show:!1},paddingStart:0,paddingEnd:10,align:"auto"},GQ={labels:{show:!0,margin:4,maxLengthPx:150,minLengthPx:0,align:.5,offset:0,filterOverlapping:!0},ticks:{show:!0,margin:0,tickSize:8},minorTicks:{show:!1,tickSize:3,margin:0},line:{show:!0},paddingStart:0,paddingEnd:10,align:"auto"};const VQ={require:["chart","renderer","dockConfig"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{},style:{labels:"$label",ticks:"$guide-line",minorTicks:"$guide-line--minor",line:"$guide-line"}},created(){this.state={isDiscrete:!!this.scale.bandwidth,isHorizontal:!1,labels:{activeMode:"horizontal"},ticks:[],innerRect:{width:0,height:0,x:0,y:0},outerRect:{width:0,height:0,x:0,y:0},defaultDock:void 0,concreteNodeBuilder:void 0,settings:void 0},this.state.isDiscrete?this.state.defaultDock="bottom":this.state.defaultDock="left",this.setState(this.settings)},setState(){this.state.isDiscrete=!!this.scale.bandwidth,this.state.settings=function(e){let{state:t,style:n,settings:r}=e;const o=CH(!0,{},t.isDiscrete?HQ:GQ,n),i=CH(!0,{},o,r.settings),a=r.layout.dock||t.defaultDock;i.dock=a,i.align=function(e,t){const n=["top","bottom"],r=["left","right"];return-1!==n.indexOf(e)&&-1===r.indexOf(t)||-1!==r.indexOf(e)&&-1===n.indexOf(t)?e:t}(r.settings.align,a),i.labels.tiltAngle=Math.max(-90,Math.min(i.labels.tiltAngle,90));const{paddingStart:s,paddingEnd:l}=i;return i.paddingStart="function"==typeof s?s.call(null):s,i.paddingEnd="function"==typeof l?l.call(null):l,i}(this),this.state.concreteNodeBuilder=WQ(this.state.isDiscrete),this.dockConfig.dock(this.state.settings.dock),this.state.isHorizontal="top"===this.state.settings.align||"bottom"===this.state.settings.align,this.state.labels.activeMode=function(e,t,n){const r=t.labels.mode;return n&&e.isHorizontal?"auto"===r?e.labels.activeMode:-1!==["layered","tilted"].indexOf(t.labels.mode)&&-1!==["top","bottom"].indexOf(t.dock)?r:"horizontal":"horizontal"}(this.state,this.state.settings,this.state.isDiscrete)},preferredSize(e){const{formatter:t,state:n,scale:r}=this,o=this.state.isHorizontal?e.inner.width:e.inner.height;this.state.pxScale=UX(r,o);const i=function(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const{size:u,edgeBleed:c,isToLarge:d}=RQ({isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s});if(l+=u,d)return{size:l};if(a.ticks.show&&(l+=a.ticks.margin,l+=a.ticks.tickSize),a.minorTicks&&a.minorTicks.show){const e=a.minorTicks.margin+a.minorTicks.tickSize;e>l&&(l=e)}if(a.line.show){const e=a.line.strokeWidth/2;l+=e,c[function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left";default:return e}}(a.align)]=Math.ceil(e)}return l+=a.paddingStart,l+=a.paddingEnd,{size:l,edgeBleed:c}}({isDiscrete:this.state.isDiscrete,rect:{inner:e.inner,outer:e.outer},formatter:t,measureText:this.renderer.measureText,scale:this.state.pxScale,settings:this.state.settings,state:n});return i},beforeUpdate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{settings:t}=e;this.setState(t)},resize(e){const{inner:t,outer:n}=e,r=CH({},t,function(e){let{align:t,inner:n}=e;return"left"===t?{x:n.width+n.x}:"right"===t||"bottom"===t?n:{y:n.y+n.height}}({align:this.state.settings.align,inner:t})),o=n||r;return CH(this.state.innerRect,r),CH(this.state.outerRect,o),n},beforeRender(){const{scale:e,formatter:t}=this,n=this.state.isHorizontal?this.state.innerRect.width:this.state.innerRect.height;this.state.pxScale=UX(e,n),this.state.ticks=this.state.pxScale.ticks({distance:n,formatter:t}).filter((e=>e.position>=0&&e.position<=1))},render(){const{state:e}=this,t=[];return t.push(...this.state.concreteNodeBuilder.build({settings:this.state.settings,scale:this.state.pxScale,innerRect:this.state.innerRect,outerRect:this.state.outerRect,measureText:this.renderer.measureText,textBounds:this.renderer.textBounds,ticks:this.state.ticks,state:e})),nQ.multiple(t),t}};const YQ={render:()=>[]};function UQ(e,t,n){let r="";if("function"==typeof e)r=e();else if("string"==typeof e)r=e;else if(n){const e=(n.data().fields||[]).map((e=>e.title()));r=e.join(t)}return r}function KQ(e,t){let n="middle";return"left"===e?"top"===t?n="end":"bottom"===t&&(n="start"):"right"===e?"top"===t?n="start":"bottom"===t&&(n="end"):"left"===t?n="start":"right"===t&&(n="end"),n}const XQ={require:["renderer","chart"],defaultSettings:{layout:{dock:"bottom",displayOrder:0,prioOrder:0},settings:{paddingStart:5,paddingEnd:5,paddingLeft:0,paddingRight:0,anchor:"center",join:", ",maxLengthPx:NaN},style:{text:"$title"}},created(){this.definitionSettings=this.settings.settings;const e=this.settings.text,t=this.definitionSettings.join;this.title=UQ(e,t,this.scale)},preferredSize(){return this.renderer.measureText({text:this.title,fontSize:this.style.text.fontSize,fontFamily:this.style.text.fontFamily}).height+this.definitionSettings.paddingStart+this.definitionSettings.paddingEnd},render(){const{title:e,definitionSettings:t,rect:n}=this,r=[];return r.push(function(e){let{title:t,definitionSettings:n,dock:r,rect:o,measureText:i,style:a}=e;const s={type:"text",text:t,x:0,y:0,dx:0,dy:0,anchor:KQ(r,n.anchor),baseline:"alphabetical",stroke:"transparent",strokeWidth:0,fontWeight:"normal"};CH(s,a.text);const l=i(s);if("top"===r||"bottom"===r){let e=o.width/2;"left"===n.anchor?e=n.paddingLeft||0:"right"===n.anchor&&(e=o.width-(n.paddingRight||0)),s.x=e,s.y="top"===r?o.height-n.paddingStart:n.paddingStart+l.height,s.dy="top"===r?-l.height/6:-l.height/3,s.maxWidth=.8*o.width}else{let e=o.height/2;"top"===n.anchor?e=n.paddingStart:"bottom"===n.anchor&&(e=o.height-n.paddingStart),s.y=e,s.x="left"===r?o.width-n.paddingStart:n.paddingStart,s.dx="left"===r?-l.height/3:l.height/3;const t="left"===r?270:90;s.transform="rotate(".concat(t,", ").concat(s.x+s.dx,", ").concat(s.y+s.dy,")"),s.maxWidth=.8*o.height}return isNaN(n.maxLengthPx)||(s.maxWidth=Math.min(s.maxWidth,n.maxLengthPx)),s}({title:e,dock:this.settings.layout.dock,definitionSettings:t,rect:n,measureText:this.renderer.measureText,style:this.style})),r},beforeUpdate(e){e.settings&&(CH(this.settings,e.settings),this.definitionSettings=e.settings.settings);const t=this.settings.text,n=this.definitionSettings.join;this.title=UQ(t,n,this.scale)}};function JQ(e,t){const n=e.settings.layout.dock,r=e.settings.settings.invert,o="top"===n||"bottom"===n,i=o?"width":"height",a=e.rect[i],s=e.chart.scroll(e.settings.scroll);let l;{let e=t[o?"x":"y"];r&&(e=a-e);const n=s.getState();l={startOffset:e,startScroll:n.start,swipe:!1};const i=e/a*(n.max-n.min)+n.min;i<n.start?l.startScroll=i:i>n.start+n.viewSize&&(l.startScroll=i-n.viewSize)}return{update:e=>{let t=e[o?"x":"y"];if(r&&(t=a-t),!l.swipe){if(Math.abs(l.startOffset-t)<=1)return;l.swipe=!0}const n=s.getState(),i=(t-l.startOffset)/a*(n.max-n.min),u=l.startScroll+i;s.moveTo(u)},end:e=>{let t=e[o?"x":"y"];r&&(t=a-t);const n=s.getState();if(l.swipe){const e=(t-l.startOffset)/a*(n.max-n.min),r=l.startScroll+e;s.moveTo(r)}else{const e=t/a*(n.max-n.min)+n.min-n.viewSize/2;s.moveTo(e)}}}}function ZQ(e,t){const n=t.element().getBoundingClientRect();return{x:e.center.x-n.left,y:e.center.y-n.top}}const QQ={require:["chart","renderer"],on:{panStart(e){const t=ZQ(e,this.renderer),n={x:t.x-e.deltaX,y:t.y-e.deltaY};this.currentMove=JQ(this,n),this.currentMove.update(t)},panMove(e){if(!this.currentMove)return;const t=ZQ(e,this.renderer);this.currentMove.update(t)},panEnd(e){if(!this.currentMove)return;const t=ZQ(e,this.renderer);this.currentMove.end(t),this.currentMove=null},panCancel(){this.currentMove=null},tap(e){const t=ZQ(e,this.renderer);JQ(this,t).end(t)}},defaultSettings:{settings:{backgroundColor:"#eee",thumbColor:"#ccc",width:16}},preferredSize:function(e){const t=this.chart.scroll(this.settings.scroll).getState();if(t.viewSize>=t.max-t.min){return Math.max(e.width,e.height)}return this.settings.settings.width},render:function(e){const t=this.settings.layout.dock,n=this.settings.settings.invert,r="top"===t||"bottom"===t,o=r?"width":"height",i=this.rect[o],a=this.chart.scroll(this.settings.scroll).getState();let s=i*(a.start-a.min)/(a.max-a.min);const l=i*a.viewSize/(a.max-a.min);return n&&(s=i-s-l),e("div",{style:{position:"relative",width:"100%",height:"100%",background:this.settings.settings.backgroundColor,pointerEvents:"auto"}},[].concat(e("div",{class:"scroller",style:{position:"absolute",[r?"left":"top"]:"".concat(s,"px"),[r?"top":"left"]:"25%",[r?"height":"width"]:"50%",[o]:"".concat(Math.max(1,l),"px"),background:this.settings.settings.thumbColor}})))},renderer:"dom"};function e0(e){let{h:t,isVertical:n,value:r,pos:o,align:i,borderHit:a,state:s,idx:l}=e;const u="end"!==i,c=u?{left:"0",top:"0"}:{right:"0",bottom:"0"};let d=0,p="100%",f="100%";return s.targetRect&&"start"===s.settings.bubbles.align?(p="".concat(s.targetRect.x+s.targetRect.width,"px"),f="".concat(s.targetRect.y+s.targetRect.height,"px")):s.targetRect&&"end"===s.settings.bubbles.align&&(d=n?s.targetRect.x:s.targetRect.y,p="".concat(s.rect.width-d,"px"),f="".concat(s.rect.height-d,"px")),u||(o-=a),t("div",{onmouseover(e){e.srcElement.children[0].style.backgroundColor="#000",e.srcElement.children[0].style[n?"height":"width"]="2px"},onmouseout(e){e.srcElement.children[0].style.backgroundColor=s.style.line.stroke,e.srcElement.children[0].style[n?"height":"width"]="1px"},"data-value":r,"data-key":[s.key,"edge",l].join("-"),style:{cursor:n?"ns-resize":"ew-resize",position:"absolute",left:"".concat(n?d:o,"px"),top:"".concat(n?o:d,"px"),height:n?"".concat(a,"px"):f,width:n?p:"".concat(a,"px"),pointerEvents:"auto"}},[t("div",{style:CH({backgroundColor:s.style.line.stroke,position:"absolute",height:n?"".concat(1,"px"):"100%",width:n?"100%":"".concat(1,"px"),pointerEvents:"none"},c)})])}function t0(e){let{h:t,isVertical:n,label:r,otherValue:o,rangeIdx:i,idx:a,pos:s,align:l,state:u,value:c}=e;const d="end"!==l,p="outside"===u.settings.bubbles.placement;let f,h="none";n?(f=d?"left":"right",p&&(h=d?"translate(-100%, 0px)":"translate(100%, 0px)")):(f=d?"top":"bottom",p&&(h=d?"translate(0px, -100%)":"translate(0px, 100%)"));let m=u.edit&&u.edit.rangeIdx===i&&u.edit.bubbleIdx===a;const g={position:"relative",borderRadius:"".concat(u.style.bubble.borderRadius,"px"),border:"".concat(u.style.bubble.strokeWidth,"px solid ").concat(u.style.bubble.stroke),backgroundColor:u.style.bubble.fill,color:u.style.bubble.color,fontFamily:u.style.bubble.fontFamily,fontSize:u.style.bubble.fontSize,padding:"4px 8px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px",minWidth:"50px",minHeight:"1em",pointerEvents:"auto",transform:n?"translate(0,-50%)":"translate(-50%,0)",cursor:n?"ns-resize":"ew-resize"};let b=u.style.bubble.stroke;const y=m?t("input",{type:"text",value:c,style:MH(MH({},g),{},{textAlign:"start",textOverflow:"",fontSize:"13px"}),onkeyup(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();const t=parseFloat(e.target.value);isNaN(t)?(b="rgba(230, 78, 78, 0.6)",e.target.style.border="".concat(u.style.bubble.strokeWidth,"px solid ").concat(b)):u.onEditConfirmed(i,t,o)}else"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),u.onEditCanceled())}}):t("div",{"data-key":[u.key,"bubble",i,a].join("-"),"data-other-value":o,"data-idx":i,"data-bidx":a,style:g},[r]);return t("div",{style:{position:"absolute",[f]:"0",[n?"top":"left"]:"".concat(s,"px"),transform:h}},[y])}function n0(e){let{h:t,isVertical:n,top:r,height:o,color:i,on:a,opacity:s}=e;return t("div",CH({style:{backgroundColor:i,opacity:s,position:"absolute",left:n?0:"".concat(r,"px"),top:n?"".concat(r,"px"):0,height:n?"".concat(o,"px"):"100%",width:n?"100%":"".concat(o,"px"),pointerEvents:"auto"}},a),[])}function r0(e){let{borderHit:t,els:n,isVertical:r,state:o,vStart:i,vEnd:a,idx:s}=e,l=0;o.targetRect&&(l=r?o.targetRect.y:o.targetRect.x);const u=!!o.scale,c=u?o.scale.norm(i)*o.size:i,d=u?o.scale.norm(a)*o.size:a,p=Math.abs(c-d),f=Math.min(c,d)+l,h=f+p;if(o.targetRect){const e=o.targetFillRect||o.targetRect,t=r?e.height:e.width,s=u?o.scale.norm(i)*t:i,l=u?o.scale.norm(a)*t:a,c=Math.abs(s-l),d=Math.min(s,l),p={h:o.h,isVertical:r,top:d,height:c,color:o.style.target.fill,opacity:o.style.target.opacity};o.style.target.opacity<.8&&(p.on={onmouseover(e){e.srcElement.style.opacity=o.style.target.opacity+.1},onmouseout(e){e.srcElement.style.opacity=o.style.target.opacity}}),n.push(o.h("div",{style:{position:"absolute",left:"".concat(e.x,"px"),top:"".concat(e.y,"px"),height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}},[n0(p)]))}const m=c<d?i:a,g=c<d?a:i,[b,y]=u?o.scale.domain():[Math.min(i,a),Math.max(i,a)],x=m+1e-5>=b&&m-1e-5<=y,v=g-1e-5<=y&&g+1e-5>=b;x&&n.push(e0({h:o.h,isVertical:r,borderHit:t,value:m,pos:f,align:"start",state:o,idx:s})),v&&n.push(e0({h:o.h,isVertical:r,borderHit:t,value:g,pos:h,align:"end",state:o,idx:s}));const _=o.settings.bubbles;if(_&&_.show){_.fontSize,_.fontFamily,_.fill;const e=[i,a];x&&n.push(t0({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:0,otherValue:g,value:m,label:"".concat(o.format(m,e)),pos:f,state:o})),v&&n.push(t0({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:1,otherValue:m,value:g,label:"".concat(o.format(g,e)),pos:h,state:o}))}}function o0(e){const t=e.active.limitHigh-e.active.end,n=e.active.limitLow-e.active.start;let r=e.current-e.start;return r=r<0?Math.max(r,n):Math.min(r,t),r}function i0(e){let t=[];const n=0===e.direction;if(Array.isArray(e.ranges)&&e.ranges.forEach(((r,o)=>{e.active&&o===e.active.idx||r0({borderHit:5,els:t,isVertical:n,state:e,vStart:Math.min(r.min,r.max),vEnd:Math.max(r.min,r.max),idx:o})})),e.active){let r=e.start,o=e.current;if(-1!==e.active.idx)if("foo"===e.active.mode)r=Math.min(e.active.start,e.active.end),o=Math.max(e.active.start,e.active.end);else if("modify"===e.active.mode)r=Math.min(e.start,e.current),o=Math.max(e.start,e.current);else{const t=o0(e);r=e.active.start+t,o=e.active.end+t}r0({borderHit:5,els:t,isVertical:n,state:e,vStart:r,vEnd:o,idx:e.active.idx})}return t}function a0(e){return{min:e.scale.min(),max:e.scale.max()}}function s0(e){return{min:0,max:e.direction?e.rect.width:e.rect.height}}function l0(e,t,n){let r,o,i=e.ranges,a=-1;for(r=0;r<i.length;r++){if(i[r].min<=t&&t<=i[r].max){a=r,n.min=r?i[r-1].max:n.min,n.max=r+1<i.length?i[r+1].min:n.max;break}if(t<i[r].min){n.max=i[r].min,n.min=r?i[r-1].max:n.min;break}}-1===a&&i.length&&r>=i.length&&(n.min=i[i.length-1].max),-1!==a&&(o={idx:a,start:i[a].min,end:i[a].max,limitLow:n.min,limitHigh:n.max,mode:"foo"}),e.active=o}function u0(e){e.renderer.render(i0(e))}function c0(e,t){if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}function d0(e,t){let n,r=1/0;const o=t.domain(),i=t.bandwidth()/2;for(let a=0;a<o.length;++a){const s=Math.abs(e-i-t(o[a]));s<r&&(r=s,n=o[a])}return n}function p0(e,t){return Math.min(...e)<=Math.max(...t)&&Math.max(...e)>=Math.min(...t)}function f0(e){const t=e.reduce(((e,t)=>(e.push(...TH(t.bounds)),e)),[]);return OH(t)}const h0={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{rangeStart(e){this.start(e)},rangeMove(e){this.move(e)},rangeEnd(e){this.end(e)},rangeClear(e){this.clear(e)},bubbleStart(e){this.bubbleStart(e)}},created(){this.state={key:this.settings.key||"brush-range"}},beforeRender(e){this.state.rect=e.size.computedInner},renderRanges(){this.state.started||(this.state.ranges=c0(this.state,this.state.brushInstance),this.state.active=null,u0(this.state))},render(e){const t=this.settings.settings;this.state.direction="vertical"===t.direction?0:1;const n=this.renderer.element().getBoundingClientRect(),r=this.state.rect[0===this.state.direction?"height":"width"];let o=UX(this.chart.scale(t.scale),r);const i=function(e){const t={targetRect:null,targetFillRect:null,scale:null,size:null},n=e.settings.settings,r=n.target&&(n.target.components||(n.target.component?[n.target.component]:[])).map((t=>e.chart.component(t))).filter((e=>!!e&&!!e.rect)),o=n.target&&n.target.selector?e.chart.findShapes(n.target.selector):[],i=n.target&&n.target.fillSelector?e.chart.findShapes(n.target.fillSelector):[];if(o.length>0){const r=f0(o);if(t.size=r[0===e.state.direction?"height":"width"],t.scale=UX(e.chart.scale(n.scale),t.size),t.targetRect=r,i.length>0){const e=f0(i);t.targetFillRect=e}}else if(r&&r.length>0){const n=r.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.computedInner.x),y0:Math.min(e.y0,t.rect.computedInner.y),x1:Math.max(e.x1,t.rect.computedInner.x+t.rect.computedInner.width),y1:Math.max(e.y1,t.rect.computedInner.y+t.rect.computedInner.height)})),{x0:r[0].rect.computedInner.x,y0:r[0].rect.computedInner.y,x1:r[0].rect.computedInner.x+r[0].rect.computedInner.width,y1:r[0].rect.computedInner.y+r[0].rect.computedInner.height});t.targetRect={x:n.x0-e.state.rect.x,y:n.y0-e.state.rect.y,width:n.x1-n.x0,height:n.y1-n.y0}}return t}(this);if(o=i.scale?i.scale:o,this.state.targetRect=i.targetRect,this.state.targetFillRect=i.targetFillRect,this.state.size=null===i.size?r:i.size,this.state.settings=t,this.state.style=this.style,this.state.offset=n,this.state.brush="object"==typeof t.brush?t.brush.context:t.brush,this.state.brushInstance=this.chart.brush(this.state.brush),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.onEditConfirmed=(e,t,n)=>{this.state.edit=null,function(e,t,n,r){let o=e.ranges.map((e=>({min:e.min,max:e.max})));const i=e.scale.min(),a=e.scale.max();o[t]={min:Math.max(i,Math.min(n,r)),max:Math.min(a,Math.max(n,r))},e.ranges[t]=MH({},o[t]);const s=e.scale.data();s&&s.fields&&s.fields.forEach((t=>{e.fauxBrushInstance||e.brushInstance.setRange(t.id(),o)}))}(this.state,e,t,n),this.emit("bubbleEnd"),u0(this.state)},this.state.onEditCanceled=()=>{this.state.edit=null,u0(this.state)},this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX"},this.state.format="function"==typeof t.bubbles.label&&((e,n)=>t.bubbles.label.call(void 0,{datum:e,data:n,scale:o,resources:{scale:this.chart.scale,formatter:this.chart.formatter}})),{}.hasOwnProperty.call(o,"norm")){this.state.editable=!0,this.state.observeBrush="object"==typeof t.brush&&t.brush.observe,this.state.fauxBrushInstance=null,this.state.findValues=null,this.state.scale=o;const e=this.state.scale.data();!this.state.format&&e&&e.fields&&e.fields[0]&&(this.state.format=e.fields[0].formatter())}else this.state.editable=!1,this.state.scale=JK(),this.state.scale.data=o.data,this.state.format||(this.state.format=(e,t)=>p0(o.range(),t)?function(e,t){const n=t.ticks(),r=t.domain().indexOf(d0(e,t));return-1!==r?n[r].label:"-"}(e,o):"-"),this.state.fauxBrushInstance=OX(),this.state.findValues=e=>function(e,t){const n=t.domain(),r=t.range(),o=[];return e.forEach((e=>{if(!p0(r,[e.min,e.max]))return;const i=n.indexOf(d0(e.min,t)),a=n.indexOf(d0(e.max,t));o.push.apply(o,n.slice(Math.min(i,a),Math.max(i,a)+1))})),o}(e,o);return this.state.ranges=c0(this.state,this.state.brushInstance),this.state.observeBrush||this.state.sourcedFromThisComponent?[i0(this.state)]:[]},mounted(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.on("update",this.renderRanges)},beforeDestroy(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.removeListener("update",this.renderRanges)},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;t.edit=null;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=CH({},r.element().getBoundingClientRect());const c=a-t.offset.left,d=s-t.offset.top;t.offset.left+=t.targetRect?t.targetRect.x:0,t.offset.top+=t.targetRect?t.targetRect.y:0,t.ranges=o(t,t.fauxBrushInstance||t.brushInstance);const p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];u.current=t.scale.normInvert(f/t.size),u.start=t.scale.normInvert(p/t.size);let h=t.ranges;const m=a0(t);let g,b,y=-1;if(l&&l.hasAttribute("data-idx"))y=parseInt(l.getAttribute("data-idx"),10),m.min=y>0?h[y-1].max:m.min,m.max=y+1<h.length?h[y+1].min:m.max;else{for(g=0;g<h.length;g++){if(h[g].min<=u.start&&u.start<=h[g].max){y=g,m.min=g?h[g-1].max:m.min,m.max=g+1<h.length?h[g+1].min:m.max;break}if(u.start<h[g].min){m.max=h[g].min,m.min=g?h[g-1].max:m.min;break}}-1===y&&h.length&&g>=h.length&&(m.min=h[h.length-1].max)}if(-1!==y||t.multi||(u.ranges=[],m.min=t.scale.min(),m.max=t.scale.max()),-1!==y)if(b={idx:y,start:h[y].min,end:h[y].max,limitLow:m.min,limitHigh:m.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),b.mode="modify";else{let e=t.scale.norm(b.start)*t.size,n=t.scale.norm(b.end)*t.size;Math.abs(p-e)<=i?(u.start=b.end,b.mode="modify"):Math.abs(p-n)<=i&&(u.start=b.start,b.mode="modify")}else b={idx:-1,start:u.start,end:u.current,limitLow:m.min,limitHigh:m.max,mode:"current"};u.active=b,"modify"!==b.mode&&t.targetRect&&!HJ(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:c0,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e,e.fauxBrushInstance||e.brushInstance);const n=a0(e);l0(e,e.current,n)}(this.state,c0),u0(this.state),this.state.sourcedFromThisComponent=!0,this.state.active=null)},move(e){this.state.started&&(!function(e,t){const n=(t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset])/e.size,r=e.scale.normInvert(n);e.current=Math.max(Math.min(r,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){let t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=o0(e);t[e.active.idx].min+=n,t[e.active.idx].max+=n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});const n=e.scale.data();n&&n.fields&&n.fields.forEach((n=>{if(e.fauxBrushInstance){let r=c0(e,e.fauxBrushInstance),o=e.findValues(r),i=e.findValues(t),a=i.filter((e=>-1===o.indexOf(e))),s=o.filter((e=>-1===i.indexOf(e))),l=a.map((e=>({key:n.id(),value:e}))),u=s.map((e=>({key:n.id(),value:e})));e.brushInstance.addAndRemoveValues(l,u),e.fauxBrushInstance.setRange(n.id(),t)}else e.brushInstance.setRange(n.id(),t)}))}(this.state),u0(this.state))},clear(){this.state.fauxBrushInstance&&this.state.fauxBrushInstance.clear(),this.state.renderer.render([]),this.state.started=!1,this.state.active=null,this.state.sourcedFromThisComponent=!1},bubbleStart(e){if(!this.state.editable)return;const t=e.srcEvent||e,n=t.target,r={rangeIdx:parseInt(n.getAttribute("data-idx"),10),bubbleIdx:parseInt(n.getAttribute("data-bidx"),10)};if(isNaN(r.rangeIdx)||JSON.stringify(r)===JSON.stringify(this.state.edit))return;this.state.edit=r,t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault();const o=n.parentNode;u0(this.state);const i=o.querySelector("input");i.focus(),i.select()}};function m0(e){e.renderer.render(i0(e))}function g0(e){return e.rc.ranges()}function b0(e,t){const n={x:e.direction?t.min+e.rect.x:e.rect.x,y:e.direction?e.rect.y:t.min+e.rect.y,width:e.direction?t.max-t.min:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:t.max-t.min};return e.chart.shapesAt(n,e.settings.brush)}const y0={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaClear(e){this.clear(e)}},created(){this.state={key:this.settings.key||"brush-area-dir"}},render(e){this.state.rect=this.rect;const t=this.settings.settings,n="vertical"===t.direction?0:1,r=this.state.rect[0===n?"height":"width"],o=this.renderer.element().getBoundingClientRect(),i=(t.target?t.target.components||[t.target.component]:[]).map((e=>this.chart.component(e))).filter((e=>!!e&&!!e.rect)),a=i[0]?i.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.x),y0:Math.min(e.y0,t.rect.y),x1:Math.max(e.x1,t.rect.x+t.rect.width),y1:Math.max(e.y1,t.rect.y+t.rect.height)})),{x0:i[0].rect.x,y0:i[0].rect.y,x1:i[0].rect.x+i[0].rect.width,y1:i[0].rect.y+i[0].rect.height}):null;return this.state.targetRect=a?{x:a.x0-this.rect.x,y:a.y0-this.rect.y,width:a.x1-a.x0,height:a.y1-a.y0}:null,this.state.style=this.style,this.state.chart=this.chart,this.state.direction=n,this.state.settings=t,this.state.offset=o,this.state.rc=SX(),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.size=r,this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX",area:0===this.state.direction?"height":"width"},this.state.format=function(e,t){return function(e,t,n){const r=Math.min(...n),o=Math.max(...n),i={x:e.direction?r+e.rect.x:e.rect.x,y:e.direction?e.rect.y:r+e.rect.y,width:e.direction?o-r:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:o-r},a=e.chart.shapesAt(i,e.settings.brush);if(0===a.length)return"-";const s=a.reduce(((n,o)=>{const i=n.bounds,a=o.bounds;return t===r?i[e.cssCoord.coord]<=a[e.cssCoord.coord]?n:o:i[e.cssCoord.coord]+i[e.cssCoord.area]>=a[e.cssCoord.coord]+a[e.cssCoord.area]?n:o})),l=e.settings.brush.components.reduce(((e,t)=>e.key===s.key?e:t));return"function"==typeof e.settings.bubbles.label?e.settings.bubbles.label(s.data):Array.isArray(l.data)&&l.data.length?s.data[l.data[0]].label:s.data&&s.data.label?s.data.label:"-"}(this,e,t)},[]},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=r.element().getBoundingClientRect(),t.ranges=o(t);const c=a-t.offset.left,d=s-t.offset.top,p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];let h=f,m=p;u.start=p,u.current=f;let g=t.ranges;const b=s0(t);let y,x,v=-1;if(l&&l.hasAttribute("data-idx"))v=parseInt(l.getAttribute("data-idx"),10),b.min=v>0?g[v-1].max:b.min,b.max=v+1<g.length?g[v+1].min:b.max;else{for(y=0;y<g.length;y++){if(g[y].min<=m&&m<=g[y].max){v=y,b.min=y?g[y-1].max:b.min,b.max=y+1<g.length?g[y+1].min:b.max;break}if(m<g[y].min){b.max=g[y].min,b.min=y?g[y-1].max:b.min;break}}-1===v&&g.length&&y>=g.length&&(b.min=g[g.length-1].max)}if(-1!==v||t.multi||(u.ranges=[],b.min=0,b.max=t.direction?t.rect.width:t.rect.height),-1!==v)if(x={idx:v,start:g[v].min,end:g[v].max,limitLow:b.min,limitHigh:b.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),x.mode="modify";else{let e=x.start,t=x.end;Math.abs(p-e)<=i?(u.start=x.end,x.mode="modify"):Math.abs(p-t)<=i&&(u.start=x.start,x.mode="modify")}else x={idx:-1,start:m,end:h,limitLow:b.min,limitHigh:b.max,mode:"current"};u.active=x,"modify"!==x.mode&&t.targetRect&&!HJ(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:g0,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e);const n=s0(e);l0(e,e.current,n)}(this.state,g0),m0(this.state))},move(e){this.state.started&&(!function(e,t){const n=t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset];e.current=Math.max(Math.min(n,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){const t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=o0(e);t[e.active.idx].min=e.active.start+n,t[e.active.idx].max=e.active.end+n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});e.rc.set(t);let n=[];t.forEach((t=>{n=[...n,...b0(e,t)]})),function(e,t){e.chart.brushFromShapes(t,e.settings.brush)}(e,n)}(this.state),m0(this.state))},clear(){this.state.rc&&this.state.rc.clear(),this.state.renderer.render([])}};function x0(e){const t="vertical"===e.direction,n=e.rect[t?"height":"width"],r=e.rect[t?"width":"height"];return function(e){const t=e.brush;if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}(e).map((o=>{const i=e.scale(o.min)*n,a=e.scale(o.max)*n,s=Math.min(i,a),l=Math.abs(i-a);return{type:"rect",fill:e.fill,opacity:e.opacity,x:t?0:s,width:t?r:l,y:t?s:0,height:t?l:r}}))}function v0(e,t,n,r){function o(){!function(e){e.renderer.render(x0(e))}(e)}function i(){!function(e){e.renderer.render(x0(e))}(e)}function a(){!function(e){e.renderer.render(x0(e))}(e)}e.brush=t,t&&(t.on("start",o),t.on("update",i),t.on("end",a),e.start=o,e.update=i,e.end=a,e.brush=t,e.scale=n,e.renderer=r)}function _0(e){e.brush&&(e.brush.removeListener("start",e.start),e.brush.removeListener("update",e.update),e.brush.removeListener("end",e.end)),e.start=void 0,e.update=void 0,e.end=void 0,e.brush=void 0,e.scale=void 0,e.renderer=void 0}const w0={require:["chart","settings","renderer"],defaultSettings:{settings:{}},preferredSize:()=>50,created(){this.state={}},render(){const e=this.settings.settings,t=this.chart.brush(e.brush),n=e.direction||"horizontal",r="horizontal"===n?this.rect.width:this.rect.height,o=UX(this.chart.scale(e.scale),r);return _0(this.state),v0(this.state,t,o,this.renderer),this.state.rect=this.rect,this.state.fill=e.fill||"#ccc",this.state.opacity=void 0!==e.opacity?e.opacity:1,this.state.direction=n,x0(this.state)},beforeDestroy(){_0(this.state)}};function S0(e,t){const n=t.center.x,r=t.center.y;return{x:n-e.left,y:r-e.top}}function C0(e,t,n){return pJ(e,t.points[0])<n.settings.snapIndicator.threshold**2}function E0(e,t){null==e.path.d?e.path.d="M".concat(t.x," ").concat(t.y," "):e.path.d+="L".concat(t.x," ").concat(t.y," "),e.points.push(t)}function k0(e){let{state:t,start:n=null,end:r=null}=e;null!==n&&(t.snapIndicator.x1=n.x,t.snapIndicator.y1=n.y),null!==r&&(t.snapIndicator.x2=r.x,t.snapIndicator.y2=r.y)}function R0(e,t){e.snapIndicator.visible=t}const M0={require:["chart","renderer","settings"],defaultSettings:{layout:{displayOrder:0},settings:{brush:{components:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.5},lasso:{fill:"transparent",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:"20, 10"},startPoint:{r:10,fill:"green",stroke:"black",strokeWidth:1,opacity:1}}},on:{lassoStart(e){this.start(e)},lassoEnd(e){this.end(e)},lassoMove(e){this.move(e)},lassoCancel(){this.cancel()}},created(){this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}}},start(e){var t;this.state.active=!0,this.state.path={visible:!0,type:"path",d:null,fill:(t=this.settings.settings.lasso).fill,stroke:t.stroke,strokeWidth:t.strokeWidth,opacity:t.opacity,strokeDasharray:t.strokeDasharray,collider:{type:null}},this.state.snapIndicator=function(e){return{visible:!1,type:"line",x1:0,y1:0,x2:0,y2:0,strokeDasharray:e.strokeDasharray,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity,collider:{type:null}}}(this.settings.settings.snapIndicator),this.state.startPoint=function(e){return{visible:!0,type:"circle",cx:0,cy:0,r:e.r,fill:e.fill,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,collider:{type:null}}}(this.settings.settings.startPoint),this.state.rendererBounds=this.renderer.element().getBoundingClientRect(),this.state.componentDelta=function(e,t){const n=e.element.getBoundingClientRect();return{x:t.left-n.left,y:t.top-n.top}}(this.chart,this.state.rendererBounds),this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts||["lassoBrush"],data:e.data||[""],action:e.action||"add"})))}(this.settings);const n=S0(this.state.rendererBounds,e);E0(this.state,n),k0({state:this.state,start:n}),function(e,t){e.startPoint.cx=t.x,e.startPoint.cy=t.y}(this.state,n)},move(e){if(!this.state.active)return;const t=S0(this.state.rendererBounds,e);C0(t,this.state,this.settings)?R0(this.state,!0):R0(this.state,!1),E0(this.state,t),k0({state:this.state,end:t}),function(e,t){const n=[e.startPoint,e.path,e.snapIndicator].filter((e=>e.visible));t.render(n)}(this.state,this.renderer),function(e,t){if(e.active){const n=e.points[e.points.length-2],r=e.points[e.points.length-1];e.lineBrushShape.x1=n.x+e.componentDelta.x,e.lineBrushShape.y1=n.y+e.componentDelta.y,e.lineBrushShape.x2=r.x+e.componentDelta.x,e.lineBrushShape.y2=r.y+e.componentDelta.y;const o=t.shapesAt(e.lineBrushShape,{components:e.brushConfig});t.brushFromShapes(o,{components:e.brushConfig})}}(this.state,this.chart)},end(e){if(!this.state.active)return;R0(this.state,!1);C0(S0(this.state.rendererBounds,e),this.state,this.settings)&&function(e,t){if(e.active){const n=e.componentDelta.x,r=e.componentDelta.y,o=e.points.map((e=>({x:e.x+n,y:e.y+r}))),i=t.shapesAt({vertices:o},{components:e.brushConfig});t.brushFromShapes(i,{components:e.brushConfig})}}(this.state,this.chart),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([])},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([]))},render(){}};function A0(e,t,n,r,o){let i,a=0,s=t.length-1;for(;a<s;){let l=Math.floor((a+s)/2);i=o(t[l]),i[n]+i[r]<e[n]?a=l+1:s=l}return a}function I0(e){let{orientation:t,targetNodes:n,labels:r,container:o}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A0;const a=[],s="v"===t?"x":"y",l="v"===t?"width":"height",u=e=>e.textBounds,c=e=>e.node.localBounds;return(e,t)=>{const{textBounds:d,node:p}=r[t];if(d[s]<o[s]||d[s]+d[l]>o[s]+o[l])return!1;for(let e=i(d,a,s,l,u);e<a.length;e++)if($J(d,a[e].textBounds))return!1;const f=i(d,n,s,l,c),h=d[s]+d[l];for(let e=f;e<n.length;e++){const t=n[e].node;if(h<t.localBounds[s])break;if($J(d,t.localBounds)&&p!==t)return!1}return a.push(r[t]),!0}}const L0=4;function P0(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function D0(e){const t=typeof e;return("string"===t||"number"===t)&&""!==e}function T0(e){return MH(MH({type:"rect",rx:2,ry:2,fill:e.backgroundColor},e.backgroundBounds),{},{data:"".concat(e.data," ").concat(e.text),rotation:e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal"})}function O0(e,t,n){return n?e.width>=t.height:e.width>=t.width}function z0(e,t,n){return n?e.height>=t.width:e.height>=t.height}function N0(e,t,n,r,o){let i,a;return"v"===e?(i=r||o||O0(t,n,!0),a=z0(t,n,!r)):(i=O0(t,n),a=o||z0(t,n,!1)),i&&a}function q0(e,t,n,r){return e+.5*t+(r-.5)*(t-n)-.5*n}function j0(e,t,n){const r={type:"text",text:t,maxWidth:n.rotate?e.height:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:n.rotate?"end":"start",baseline:"central",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(!n.overflow&&!function(e,t,n){return O0(e,t,n.rotate)&&z0(e,t,n.rotate)}(e,o,n))return!1;const i=.5*o.height;return n.rotate?(r.x=q0(e.x,e.width,o.height,n.align)+i,r.y=q0(e.y,e.height,o.width,n.justify),"right"===n.dock?r.transform="rotate(90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,") translate(").concat(o.width,", 0)"):r.transform="rotate(-90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,")")):(r.x=q0(e.x,e.width,o.width,n.align),r.y=q0(e.y,e.height,o.height,n.justify)+i),r}function F0(e){let{bar:t,view:n,direction:r,position:o,padding:i=L0,measured:a}=e;const s={};if(CH(s,t),o&&"inside"!==o)if("up"===r||"down"===r){const e=Math.max(0,Math.min(t.y,n.height)),i=Math.max(0,Math.min(t.y+t.height,n.height));"outside"===o&&"up"===r||"opposite"===o&&"down"===r?(s.y=0,s.height=e):("outside"===o&&"down"===r||"opposite"===o&&"up"===r)&&(s.y=i,s.height=n.height-i)}else{const e=Math.max(0,Math.min(t.x,n.width)),i=Math.max(0,Math.min(t.x+t.width,n.width));"outside"===o&&"left"===r||"opposite"===o&&"right"===r?(s.x=0,s.width=e):("outside"===o&&"right"===r||"opposite"===o&&"left"===r)&&(s.x=i,s.width=n.width-i)}else;return function(e,t){const n=Math.max(0,Math.min(e.y,t.height)),r=Math.max(0,Math.min(e.y+e.height,t.height)),o=Math.max(0,Math.min(e.x,t.width)),i=Math.max(0,Math.min(e.x+e.width,t.width));e.x=o,e.width=i-o,e.y=n,e.height=r-n}(s,n),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{top:r=L0,bottom:o=L0,left:i=L0,right:a=L0}=n,s="function"==typeof i?i(t):i,l="function"==typeof a?a(t):a,u="function"==typeof r?r(t):r,c="function"==typeof o?o(t):o;e.x+=s,e.width-=s+l,e.y+=u,e.height-=u+c}(s,a,i),s}function B0(e){let t,n,r,o,i,{direction:a,fitsHorizontally:s,measured:l,node:u,orientation:c,placementSettings:d,rect:p}=e,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F0;const h=[],m="h"===c?"width":"height";for(i=0;i<d.length;i++)if(r=d[i],o=f({bar:u.localBounds,view:p,direction:a,position:r.position,padding:r.padding,measured:l}),h.push(o),t=!i||o[m]>t[m]?o:t,N0(c,o,l,s,r.overflow)){n=o;break}return n||(n=t,i=h.indexOf(n)),r=d[i],{bounds:n,placement:r}}function $0(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{top:i=L0,bottom:a=L0,left:s=L0,right:l=L0}=o,u="function"==typeof s?s(t):s,c="function"==typeof l?l(t):l,d="function"==typeof i?i(t):i,p="function"==typeof a?a(t):a,f=e.x+e.dx,h=e.y+e.dy,m=n?Math.min(t.width,r.height):Math.min(t.height,r.width),g=n?Math.min(t.height,r.height):Math.min(t.width,r.width),b=.5*t.height,y=1e-9;return{x:(n?f-b:f)-u-y,y:(n?h:h-b)-d-y,width:g+(u+c)-y,height:m+(d+p)-y}}function W0(e){let{chart:t,targetNodes:n,rect:r,fitsHorizontally:o,collectiveOrientation:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I0;const u=[],c={container:r,targetNodes:n,labels:[],orientation:i};let d,p,f,h,m,g,b,y,x,v,_,w,S,C;for(let e=0,l=n.length;e<l;e++){g=null,p=n[e],f=p.node,S=P0(f,t),x=p.direction,C="left"===x||"right"===x?"h":"v";for(let t=0;t<p.texts.length;t++){if(h=p.texts[t],!D0(h))continue;v=p.labelSettings[t],y=p.measurements[t],w=v.placements;const n=a({direction:x,fitsHorizontally:o,lblStngs:v,measured:y,node:f,orientation:C,placements:w,placementSettings:p.placementSettings[t],rect:r});if(g=n.bounds,_=n.placement,g&&_){var E;m=_.justify;const t="function"==typeof v.linkData?v.linkData(S,e):void 0,n="function"==typeof _.overflow?_.overflow(S,e):_.overflow;"up"===x&&(m=1-m),"opposite"===_.position&&(m=1-m),"left"===x&&(m=1-m);const r=!("h"===i||o);if(d=s(g,h,{justify:"h"===C?_.align:m,align:"h"===C?m:_.align,fontSize:v.fontSize,fontFamily:v.fontFamily,textMetrics:y,rotate:r,overflow:!!n,dock:null!==(E=v.dock)&&void 0!==E?E:"left"}),d){const n=$0(d,y,r,g,_.padding);b="function"==typeof _.fill?_.fill(MH(MH({},S),{},{textBounds:n}),e):_.fill,d.fill=b,void 0!==t&&(d.data=t),"object"==typeof _.background&&(d.backgroundColor="function"==typeof _.background.fill?_.background.fill(MH(MH({},S),{},{textBounds:n}),e):_.background.fill,void 0!==d.backgroundColor&&(d.backgroundBounds=$0(d,y,r,g,_.background.padding))),u.push(d),c.labels.push({node:f,textBounds:n})}}}}const k=u.filter(l(c));return[...k.filter((e=>void 0!==e.backgroundBounds)).map(T0),...k]}function H0(e){const t=2*Math.PI;return(e%t+t)%t}function G0(e,t){e.x+=t,e.width-=2*t,e.y+=t,e.height-=2*t}function V0(e){return{x:e.x,y:e.y-e.height/2,width:e.width,height:e.height}}function Y0(e,t,n){let{x:r,y:o}=t;if(r*r+o*o>e*e)return null;let i=Math.sin(n),a=Math.cos(n),s=r*a-o*i,l=e*e-s*s;if(l<0)return null;let u=Math.sqrt(l);return{x:s*a+i*u,y:-s*i+a*u}}function U0(e){let t,n,{radius:r,size:o,angle:i}=e,{width:a,height:s}=o,l={x:a/2,y:s/2};switch(Math.floor(i/(Math.PI/2))){case 0:if(t=Y0(r,l,i),!t)return null;t.y*=-1,n={x:-a,y:0};break;case 1:if(t=Y0(r,l,Math.PI-i),!t)return null;n={x:-a,y:-s};break;case 2:if(t=Y0(r,l,i-Math.PI),!t)return null;t.x*=-1,n={x:0,y:-s};break;case 3:if(t=Y0(r,l,2*Math.PI-i),!t)return null;t.x*=-1,t.y*=-1,n={x:0,y:0};break;default:throw new Error("invalid angle")}return{x:t.x+n.x,y:t.y+n.y,width:a,height:s}}function K0(e){let{slice:t,measured:n,padding:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t,l=s-a-2*r,u=i-o;if(u<Math.PI){let e=(n.height/2+r)/Math.tan(u/2);e>a&&(l=s-e-2*r)}if(l<0||l<n.minReqWidth)return null;const c=H0((o+i)/2);let d=s-r,p={x:Math.sin(c)*d,y:-Math.cos(c)*d,width:l,height:n.height};return c<Math.PI?(p.angle=c-Math.PI/2,p.anchor="end"):(p.angle=c+Math.PI/2,p.anchor="start"),p}function X0(e){let{context:t,node:n,bounds:r}=e;let{start:o,end:i}=n.desc.slice;const a=H0((o+i)/2);switch(Math.floor(a/(Math.PI/2))){case 0:t.q1maxY=r.y-2,void 0===t.q2minY&&(t.q2minY=r.y+r.height+2);break;case 1:t.q2minY=r.y+r.height+2;break;case 2:t.q3minY=r.y+r.height+2;break;case 3:t.q4maxY=r.y-2,void 0===t.q3minY&&(t.q3minY=r.y+r.height+2)}}function J0(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function Z0(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:e.x,y:e.y+("top"===e.baseline?e.height/2:0),fill:n.fill,anchor:e.anchor||"start",baseline:"middle",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily};if(!isNaN(e.angle)){let t=e.angle*(360/(2*Math.PI));r.transform="rotate(".concat(t,", ").concat(r.x,", ").concat(r.y,")")}return r}function Q0(e){let t,n,{slice:r,direction:o,position:i,padding:a,measured:s,view:l,context:u,store:c}=e,{start:d,end:p,innerRadius:f,offset:h}=r;switch(i){case"into":t="rotate"===o?K0({slice:r,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t;const l=H0((o+i)/2);let u=U0({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",GJ(u,{x1:0,y1:0,x2:Math.sin(o)*s,y2:-Math.cos(o)*s})||GJ(u,{x1:0,y1:0,x2:Math.sin(i)*s,y2:-Math.cos(i)*s})||zJ({cx:0,cy:0,r:a},u)?null:(G0(u,n),u)):null}({slice:r,measured:s,padding:a});break;case"inside":n={start:d,end:p,innerRadius:0,outerRadius:f},t="rotate"===o?K0({slice:n,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r,store:o}=e;const{start:i,end:a,outerRadius:s}=t,l=H0((i+a)/2);let u=U0({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",G0(u,n),o.insideLabelBounds.some((e=>$J(e,u)))?null:(o.insideLabelBounds.push({x:u.x-4,y:u.y,width:u.width+8,height:u.height}),u)):null}({slice:n,measured:s,padding:a,store:c});break;case"outside":t="rotate"===o?function(e){let{slice:t,measured:n,padding:r,view:o}=e,{start:i,end:a,outerRadius:s,offset:l}=t,u=s+r,c=a-i;if(c<Math.PI&&(n.height/2+r)/Math.tan(c/2)>u)return null;const d=H0((i+a)/2);let p=Math.sin(d)*u,f=-Math.cos(d)*u,h=n.width+1,m=d%Math.PI;if(m>Math.PI/2&&(m=Math.PI-m),Math.cos(m)>.001){let e=f<0?o.y:o.y+o.height,t=Math.abs(e-l.y)/Math.cos(m)-Math.tan(m)*(n.height/2)-2*r-s;t<h&&(h=t)}if(Math.sin(m)>.001){let e=p<0?o.x:o.x+o.width,t=Math.abs(e-l.x)/Math.sin(m)-n.height/2/Math.tan(m)-2*r-s;t<h&&(h=t)}if(h<=0||h<n.minReqWidth)return null;let g={x:p,y:f,width:h,height:n.height};return d<Math.PI?(g.angle=d-Math.PI/2,g.anchor="start"):(g.angle=d+Math.PI/2,g.anchor="end"),g}({slice:r,measured:s,padding:a,view:l}):function(e){let{slice:t,measured:n,padding:r,view:o,context:i}=e,{start:a,end:s,outerRadius:l,offset:u}=t;const c=H0((a+s)/2);if(function(e,t,n){switch(t){case 0:return e.q1maxY<0;case 1:return e.q2minY>n.height;case 2:return e.q3minY>n.height;case 3:return e.q4maxY<0;default:return!0}}(i,Math.floor(c/(Math.PI/2)),o))return null;let d=l+r+n.height/2,p=Math.sin(c)*d,f=-Math.cos(c)*d,h=n.width+1;if(c<Math.PI){let e=Math.abs(o.x+o.width-(p+u.x));e<h&&(h=e)}else{let e=Math.abs(o.x-(p+u.x));e<h&&(h=e)}if(h<n.minReqWidth)return null;let m={x:p,y:f,width:h,height:n.height};return c<Math.PI?m.anchor="start":m.anchor="end",m}({slice:r,measured:s,padding:a,view:l,context:u});break;default:throw new Error("not implemented")}return t&&(t.x+=h.x,t.y+=h.y,"outside"===i&&"rotate"!==o&&function(e,t,n){const{start:r,end:o,offset:i,outerRadius:a}=n,s=H0((r+o)/2);switch(Math.floor(s/(Math.PI/2))){case 0:if(void 0!==t.q1maxY){let n=Math.min(e.y,t.q1maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 1:if(void 0!==t.q2minY){let n=Math.max(e.y,t.q2minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 2:if(void 0!==t.q3minY){let n=Math.max(e.y,t.q3minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 3:if(void 0!==t.q4maxY){let n=Math.min(e.y,t.q4maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}}}(t,u,r)),t}function e1(e){let{context:t,direction:n,measured:r,node:o,placementSettings:i,rect:a,store:s}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q0;for(let e=0;e<i.length;e++){let u=i[e],c=l({context:t,slice:o.desc.slice,view:a,direction:n,position:u.position,measured:r,padding:u.padding,store:s});if(c)return{bounds:c,placement:u}}return{bounds:null,placement:null}}function t1(e,t,n){const r=t.fontFamily,o="".concat(t.fontSize,"px"),i=n.measureText({text:e,fontFamily:r,fontSize:o});return i.minReqWidth=Math.min(i.width,n.measureText({text:"".concat(e[0],"…"),fontFamily:r,fontSize:o}).width),i}const n1=/\n+|\r+|\r\n/,r1=/\s/,o1=/[a-zA-Z\u00C0-\u00F6\u00F8-\u00FF\u00AD]/;function i1(e){return"string"==typeof e?-1!==e.search(n1):-1!==String(e).search(n1)}function a1(e){return-1!==e.search(r1)}function s1(e){return-1!==e.search(o1)}function l1(e,t,n){return Math.max(t,Math.min(n,e))}function u1(){let{string:e,separator:t="",reverse:n=!1,measureText:r=e=>({width:e.length,height:1}),mandatoryBreakIdentifiers:o=[i1],noBreakAllowedIdentifiers:i=[],suppressIdentifier:a=[a1,i1,e=>""===e],hyphenationIdentifiers:s=[s1]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=String(e).split(t);!function(e){""===e[0]&&e.shift(),""===e[e.length-1]&&e.pop()}(l);const u=l.length,c=n?e=>e>=0:e=>e<u;let d=n?u:-1;function p(e){const t=l1(e,0,u-1),n=l[t],c=r(n),d=function(e,t,n,r,o){return r.some((r=>r(e,t,n)))?1:o.some((r=>r(e,t,n)))?0:2}(n,t,l,o,i);return{index:t,value:n,breakOpportunity:d,suppress:a.some((e=>e(n,t,l))),hyphenation:s.some((e=>e(n,t,l))),width:c.width,height:c.height,done:!1}}return{next:function(e){return isNaN(e)?n?d--:d++:d=l1(e,0,u-1),c(d)?p(d):{done:!0}},peek:p,length:u}}const c1="…",d1=/^\s*\d+(\.\d+)?px\s*$/i;function p1(e){return"string"===typeof e&&d1.test(e)}function f1(e){const t=e["font-size"]||e.fontSize;return p1(t)?parseFloat(t)*Math.max(isNaN(e.lineHeight)?1.2:e.lineHeight,0):19.2}function h1(e){const t=e.maxHeight,n=Math.max(e.maxLines,1)||1/0;if(isNaN(t))return n;const r=f1(e);return Math.max(1,Math.min(Math.floor(t/r),n))}function m1(e,t){return{lines:[],line:"",width:0,maxLines:h1(e),maxWidth:e.maxWidth,hyphens:{enabled:"auto"===e.hyphens,char:"‐",metrics:t("‐")}}}function g1(e){e.lines.push(e.line),e.line="",e.width=0}function b1(e,t){e.line+=t.value,e.width+=t.width}function y1(e,t,n){if(t.width>e.maxWidth)return t;const r=t.index;for(let o=1;o<5;o++){const i=n.peek(t.index-1);if(!t.hyphenation||!i.hyphenation||0===t.index)return t;if(e.width+e.hyphens.metrics.width<=e.maxWidth)return e.line+=e.hyphens.char,t;if(1===e.line.length)return t;t=n.next(r-o),e.line=e.line.slice(0,-1),e.width-=t.width}return t}function x1(e,t,n){const r=u1({string:t.value,measureText:n});for(;e.lines.length<e.maxLines;){let t=r.next();if(t.done)break;e.width+t.width>e.maxWidth&&2===t.breakOpportunity&&e.line.length>0?(t=e.hyphens.enabled?y1(e,t,r):t,g1(e),b1(e,t)):b1(e,t)}}function v1(e,t){const n=u1({string:e.text,separator:"",measureText:t,noBreakAllowedIdentifiers:[(e,t)=>0===t]}),r=m1(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){g1(r),o=!1;break}1===e.breakOpportunity?g1(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?r.width+=e.width:(e=r.hyphens.enabled?y1(r,e,n):e,g1(r),b1(r,e)):b1(r,e)}return{lines:r.lines,reduced:o}}function _1(e,t){const n=u1({string:e.text,separator:/(\s|-|\u2010)/,measureText:t}),r=m1(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){g1(r),o=!1;break}1===e.breakOpportunity?g1(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?g1(r):e.width>r.maxWidth?x1(r,e,t):(g1(r),b1(r,e)):b1(r,e)}return{lines:r.lines,reduced:o}}function w1(e){return{"break-all":v1,"break-word":_1}[e.wordBreak]}function S1(e){return t=>{const n=t.node;if(function(e){return"text"===e.type&&!e._lineBreak}(n)){const r=w1(n);if(!r)return;const o=e(n);if(o.width>n.maxWidth||i1(n.text)){const i=(f1(n)-o.height)/2,a=r(n,function(e,t){return n=>t({text:n,fontSize:e.fontSize,fontFamily:e.fontFamily})}(n,e));t.node=function(e,t,n,r){const o={type:"container",children:[]};void 0!==t.id&&(o.id=t.id);let i=0;return e.lines.forEach(((a,s)=>{const l=CH({},t);l.text=a,l._lineBreak=!0,i+=n,e.reduced&&s===e.lines.length-1?l.text+=c1:delete l.maxWidth,l.dy=isNaN(l.dy)?i:l.dy+i,i+=r,i+=n,o.children.push(l)})),o}(a,n,i,o.height)}}}}function C1(e,t){const n=e["font-family"]||e.fontFamily,r=e["font-size"]||e.fontSize,o="string"==typeof e.text?e.text:"".concat(e.text),{maxWidth:i}=e;if(void 0===i)return o;let a=t({text:o,fontSize:r,fontFamily:n}).width;if(a<=i)return o;let s=0,l=o.length-1;for(;s<=l;){let e=Math.floor((s+l)/2);a=t({text:o.substr(0,e)+c1,fontSize:r,fontFamily:n}).width,a<=i?s=e+1:l=e-1}return o.substr(0,l)+c1}function E1(e){const t=e.baseline||e["dominant-baseline"];let n=0;const r=parseInt(e.fontSize||e["font-size"],10)||0;switch(t){case"hanging":n=.75*r;break;case"text-before-edge":n=.85*r;break;case"middle":n=.25*r;break;case"central":n=.35*r;break;case"mathemetical":n=r/2;break;case"text-after-edge":case"ideographic":n=.2*-r;break;default:n=0}return n}const k1={},R1={},M1={fontSize:void 0,fontFamily:void 0};let A1;function I1(e,t){return!e&&!t||e===t}function L1(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;const i="".concat(t," ").concat(n," ").concat(r," ").concat(o);return"number"!=typeof R1[i]&&(A1=A1||document.createElement("canvas").getContext("2d"),function(e){let{fontWeight:t,fontSize:n,fontFamily:r}=e;I1(M1.fontWeight,t)&&I1(M1.fontSize,n)&&I1(M1.fontFamily,r)||(A1.font=[t,n,r].filter((e=>!!e)).join(" "),M1.fontWeight=t,M1.fontSize=n,M1.fontFamily=r)}({fontWeight:n,fontSize:r,fontFamily:o}),R1[i]=A1.measureText(t).width),R1[i]}function P1(e){return"number"!=typeof k1[e]&&(k1[e]=function(e){if(p1(e)){const t=parseFloat(e);return t+4*Math.ceil((t+1e-12)/24)}return 16}(e)),k1[e]}function D1(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;return{width:L1({text:t,fontWeight:n,fontSize:r,fontFamily:o}),height:P1(r)}}function T1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D1;const n=e["font-size"]||e.fontSize,r=e["font-family"]||e.fontFamily,o=t({text:e.text,fontFamily:r,fontSize:n}),i=Math.min(e.maxWidth||o.width,o.width),a=e.x||0,s=e.y||0,l=e.dx||0,u={x:0,y:s+((e.dy||0)+E1(e))-.75*o.height,width:i,height:o.height},c=e["text-anchor"]||e.anchor;return u.x="middle"===c?a+l-i/2:"end"===c?a+l-i:a+l,u}function O1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D1;const n=w1(e),r=e["font-size"]||e.fontSize,o=e["font-family"]||e.fontFamily,i=t({text:e.text,fontFamily:o,fontSize:r});if(n&&(i.width>e.maxWidth||i1(e.text))){const i=n(e,(e=>t({text:e,fontFamily:o,fontSize:r}))),a=CH({},e);let s=0,l="";for(let e=0,n=i.lines.length;e<n;e++){let a=i.lines[e];a+=e===n-1&&i.reduced?c1:"";const u=t({text:a,fontSize:r,fontFamily:o}).width;u>=s&&(s=u,l=a)}a.text=l;const u=T1(a,t);return u.height=f1(e)*i.lines.length,u}return T1(e,t)}function z1(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function N1(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:"start",baseline:"alphabetical",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(e.width<n.fontSize)return!1;const i=Math.max(0,e.width-o.width);return r.x=e.x+n.align*i,r.y=e.y+o.height/1.2,r}function q1(e){let{cx:t,cy:n,r:r}=e;return{type:"circle",bounds:{cx:t,cy:n,r:r}}}function j1(e){return e.desc&&e.desc.slice?function(e){let{start:t,end:n,innerRadius:r,outerRadius:o,offset:i}=e;if(Math.abs(t+2*Math.PI-n)>1e-12)return{type:null,bounds:null};let a=0!==r?r:o;return q1({cx:i.x,cy:i.y,r:a})}(e.desc.slice):"circle"===e.type?q1(e.attrs):"rect"===e.type?{type:"rect",bounds:e.bounds}:{type:null,bounds:null}}var F1={bar:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W0;const l=CH({fontSize:12,fontFamily:"Arial",align:.5,justify:0,fill:"#333"},a.label);l.fontSize=parseInt(l.fontSize,10);const u=t.labels.map((e=>CH({},l,t,e))),c=t.labels.map((e=>e.placements.map((n=>CH({},l,t,e,n))))),{fitsHorizontally:d,hasHorizontalDirection:p,targetNodes:f}=function(e){let{nodes:t,rect:n,chart:r,labelSettings:o,placementSettings:i,settings:a,renderer:s}=e;const l={},u=[];let c,d,p,f,h,m,g,b=!0,y=!1;for(let e=0;e<t.length;e++){if(d=t[e],f=d.localBounds,!$J(f,n))continue;let x=P0(d,r);c={node:d,texts:[],measurements:[],labelSettings:[],placementSettings:[]};for(let t=0;t<o.length;t++)m=o[t],p="function"==typeof m.label?m.label(x,e):void 0,D0(p)&&(g="function"==typeof a.direction?a.direction(x,e):a.direction||"up",y=y||"left"===g||"right"===g,l.fontFamily=m.fontFamily,l.fontSize="".concat(m.fontSize,"px"),l.text=p,h=s.measureText(l),c.measurements.push(h),c.texts.push(p),c.labelSettings.push(m),c.placementSettings.push(i[t]),c.direction=g,b=b&&h.width<=f.width-2*L0);u.push(c)}return{targetNodes:u,fitsHorizontally:b,hasHorizontalDirection:y}}({nodes:r,chart:n,renderer:i,settings:t,rect:o,labelSettings:u,placementSettings:c}),h=function(e){let{orientation:t="auto",defaultOrientation:n="h"}=e;switch(t.toLocaleLowerCase()){case"vertical":return"v";case"horizontal":return"h";default:return n}}({orientation:t.orientation,defaultOrientation:p?"h":"v"}),m="h"===h?"y":"x",g="h"===h?"height":"width";return f.sort(((e,t)=>e.node.localBounds[m]+e.node.localBounds[g]-(t.node.localBounds[m]+t.node.localBounds[g]))),s({chart:n,targetNodes:f,stngs:t,rect:o,fitsHorizontally:d,collectiveOrientation:h})},slice:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e1,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z0;const u=CH({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,position:"into"},a.label);u.fontSize=parseInt(u.fontSize,10);const c=t.labels.map((e=>CH({},u,t,e))),d=t.labels.map((e=>e.placements.map((n=>CH({},u,t,e,n))))),p=[],f={insideLabelBounds:[]};r=function(e){const t=[],n=[],r=[],o=[];for(let i=0;i<e.length;++i){const{start:a,end:s}=e[i].desc.slice,l=H0((a+s)/2);switch(Math.floor(l/(Math.PI/2))){case 0:t.push(e[i]);break;case 1:n.push(e[i]);break;case 2:r.push(e[i]);break;case 3:o.push(e[i])}}const i=(e,t)=>H0((e.desc.slice.start+e.desc.slice.end)/2)-H0((t.desc.slice.start+t.desc.slice.end)/2),a=(e,t)=>i(t,e);return t.sort(a),n.sort(i),r.sort(a),o.sort(i),t.concat(n,o,r)}(r);const h={};for(let e=0,t=r.length;e<t;e++){const t=r[e],a=J0(t,n);for(let n=0;n<c.length;n++){const r=c[n],u="function"==typeof r.label?r.label(a,e):"";if(!u)continue;const m="function"==typeof r.direction?r.direction(a,e):r.direction||"horizontal",g="function"==typeof r.linkData?r.linkData(a,e):void 0,b=t1(u,r,i),y=s({context:h,direction:m,lblStngs:r,measured:b,node:t,placementSettings:d[n],rect:o,store:f}),x=y.bounds,v=y.placement;if(x&&v){if("outside"===v.position&&"rotate"!==m){X0({context:h,node:t,bounds:x});if(!MJ(V0(x),o))continue}const n="function"==typeof v.fill?v.fill(a,e):v.fill,i=l(x,u,{fill:n,fontSize:r.fontSize,fontFamily:r.fontFamily,textMetrics:b});i&&(void 0!==g&&(i.data=g),p.push(i),x.line&&(x.line.stroke=n,p.push(x.line)))}}}return p},rows:function(e){let{settings:t,chart:n,nodes:r,renderer:o,style:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N1;const s=CH({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,align:.5,justify:.5},i.label);s.fontSize=parseInt(s.fontSize,10);const l=CH({},s,t),u=t.labels.map((e=>CH({},l,e))),c={},d=[];for(let e=0,t=r.length;e<t;e++){let t=r[e],i=z1(t,n),{type:s,bounds:p}=j1(t);if(!p)continue;let f,h=0,m=[],g=[],b="circle"===s?2*p.r*.9:p.height;for(h+=l.padding,f=0;f<u.length;f++){let t=u[f],n="function"==typeof t.label?t.label(i,e):"";c.fontFamily=t.fontFamily,c.fontSize="".concat(t.fontSize,"px"),c.text=n;let r=o.measureText(c);if(h+=r.height+t.padding,h>b)break;g.push(n),m.push(r)}const y=f,x=Math.max(0,b-h);let v;for(v="circle"===s?p.cy-.9*p.r:p.y,v+=l.justify*x+l.padding,f=0;f<y;f++){let t,n=u[f];if("circle"===s){let e=Math.max(Math.abs(v-p.cy),Math.abs(v+m[f].height-p.cy)),n=Math.sqrt(p.r*p.r-e*e);t={x:p.cx-n+l.padding,y:v,width:2*n-2*l.padding,height:m[f].height}}else t={x:p.x+l.padding,y:v,width:p.width-2*l.padding,height:m[f].height};v+=m[f].height+l.padding;let r="function"==typeof n.fill?n.fill(i,e):n.fill;const c="function"==typeof n.linkData?n.linkData(i,e):void 0;let h=a(t,g[f],{fill:r,align:n.align,fontSize:n.fontSize,fontFamily:n.fontFamily,textMetrics:m[f]});if(h){if(h.text&&h.text!==c1){const e=C1(h,o.measureText);if(c1===e)continue;h.ellipsed=e}void 0!==c&&(h.data=c),d.push(h)}}}return d}};const B1={require:["chart","renderer","settings"],defaultSettings:{settings:{},style:{label:"$label"}},render(){const e=this.settings.settings,t=[];return(e.sources||[]).forEach((e=>{e.strategy&&F1[e.strategy.type]&&e.component&&t.push(...function(e,t){let{chart:n,source:r,rect:o,renderer:i,style:a}=e;if(!n.component(r.component))return[];const s=n.findShapes(r.selector).filter((e=>e.key===r.component));return t({chart:n,settings:r.strategy.settings,nodes:s,rect:{x:0,y:0,width:o.width,height:o.height},renderer:i,style:a})}({chart:this.chart,rect:this.rect,renderer:this.renderer,source:e,style:this.style},F1[e.strategy.type]))})),t}};const $1={layout:{size:1,direction:"ltr",scrollOffset:0},item:{show:!0,label:{fontSize:"12px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:136,lineHeight:1.2},shape:{type:"square",size:12}},title:{show:!0,text:void 0,anchor:"start",fontSize:"16px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:156,lineHeight:1.25}};function W1(e){let{x:t=0,y:n,item:r,globalMetrics:o,createSymbol:i,direction:a="ltr"}=e,s=r.label.displayObject,l=r.label.bounds,u=r.symbol.meta;const c="rtl"===a;let d={x:c?t+o.maxLabelBounds.width:t+o.maxSymbolSize+o.spacing,y:n,width:o.maxLabelBounds.width,height:Math.max(o.maxSymbolSize,o.maxLabelBounds.height)},p=function(e,t,n){const r=Math.max(0,e.width-t),o=Math.max(0,e.height-t);return{x:e.x+t/2+n.align*r,y:e.y+t/2+n.justify*o}}({x:c?t+o.maxLabelBounds.width+o.spacing:t,y:n,width:o.maxSymbolSize,height:d.height},u.size,{align:void 0===u.align?.5:u.align,justify:void 0===u.justify?.5:u.justify});const f=i(CH({},u,p));return delete f.collider,s.anchor=c?"end":"start",function(e,t,n){const r=n.textMetrics;if(e.height<r.height)return!1;const o=Math.max(0,e.width-r.width);t.baseline="text-before-edge";const i=Math.max(0,e.height-r.height);t.x=e.x+n.align*o,t.y=e.y+n.justify*i+.175*parseInt(t.fontSize,10)}(d,s,{textMetrics:l,fontSize:parseInt(s.fontSize,10),align:0,justify:.5}),{item:{type:"container",data:r.label.displayObject.data,children:[f,s],collider:{type:"rect",x:t,y:n,width:o.maxItemBounds.width,height:o.maxItemBounds.height}},metrics:d}}function H1(e,t){const n=e.items.length,r=Math.ceil(n/t),o="horizontal"===e.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[o]*r+(r-1)*e.layout.margin[i]}function G1(e,t){let n,r,o,i,{onScroll:a=()=>{}}=t,s=null,l=0;const u={itemize:t=>{n=function(e,t){let n,r,{resolved:o,dock:i}=e,a=[],s=o.items.items,l=o.symbols.items,u=o.labels.items,c=0,d=0,p=0;for(let e=0;e<s.length;e++){if(!1===s[e].show)continue;const o=void 0!==u[e].text?u[e].text:u[e].data.label||"";n=CH({},u[e],{type:"text",fontSize:"".concat(parseInt(u[e].fontSize,10),"px"),text:o,title:o}),r={symbol:{meta:l[e]},label:{displayObject:n,bounds:t.textBounds(n)}},a.push(r),c=Math.max(l[e].size,c),d=Math.max(r.label.bounds.width,d),p=Math.max(r.label.bounds.height,p)}return{items:a,globalMetrics:{spacing:8,maxSymbolSize:c,maxItemBounds:{height:Math.max(c,p),width:c+8+d},maxLabelBounds:{width:d,height:p}},layout:{margin:{vertical:void 0!==o.layout.item.vertical?o.layout.item.vertical:4,horizontal:void 0!==o.layout.item.horizontal?o.layout.item.horizontal:4},mode:o.layout.item.mode,size:o.layout.item.size,orientation:"top"===i||"bottom"===i?"horizontal":"vertical",direction:o.layout.item.direction,scrollOffset:o.layout.item.scrollOffset}}}(t,e.renderer),s=isNaN(n.layout.scrollOffset)?s:n.layout.scrollOffset},getItemsToRender:t=>{o=t.viewRect,l=u.getContentOverflow(o);const a=u.extent();s=Math.max(0,Math.min(s,l)),i=CH({},o);const c="horizontal"===u.orientation()?"x":"y";return i[c]-=s,i["x"===c?"width":"height"]=a,function(e,t,n){let{viewRect:r}=e,{itemized:o,create:i=W1,parallels:a,createSymbol:s}=n;const l=o.layout.direction,u=o.globalMetrics,c=o.items,d="horizontal"===o.layout.orientation;let p=0;const f=[],h=u.maxItemBounds.height,m=u.maxItemBounds.width,g=o.layout.margin.vertical+h,b=o.layout.margin.horizontal+m;let y=t.x,x=t.y,v=r.x-t.x;for(let e=0;e<c.length;e++){let n=i({y:x,x:"rtl"===l?r.x+v+r.width-m-(y-t.x):y,item:c[e],globalMetrics:u,direction:l,createSymbol:s});if((d&&y>=r.x-m||!d&&x>=r.y-h)&&f.push(n.item),p++,p>=a?(p=0,d?(y+=b,x=t.y):(x+=g,y=t.x)):d?x+=g:y+=b,!d&&x>r.y+r.height)break;if(d&&y>r.x+r.width)break}return f}(t,i,{itemized:n,parallels:r,createSymbol:e.symbol})},parallelize:(e,t)=>(r=function(e,t,n){const r=n.items.length,o="horizontal"===n.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical",a=n.globalMetrics.maxItemBounds[o]*r+(r-1)*n.layout.margin[i];let s=Math.ceil(a/e);if(null!=t){const e="horizontal"===n.layout.orientation?"height":"width",r="width"===e?"horizontal":"vertical",o=n.layout.margin[r]||4,i=Math.floor((t+o)/(o+n.globalMetrics.maxItemBounds[e]));s=Math.min(s,i)}const l=isNaN(n.layout.size)?1:n.layout.size;return Math.max(1,Math.min(s,l))}(e,t,n),r),hasContentOverflow:()=>{const e="horizontal"===n.layout.orientation?"width":"height";return H1(n,r)>o[e]},getContentOverflow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;const t="horizontal"===n.layout.orientation?"width":"height";return Math.max(0,H1(n,r)-e[t])},getNextSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},getPrevSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},hasNext:()=>"horizontal"===u.orientation()?o.x+o.width<i.x+i.width:o.y+o.height<i.y+i.height,hasPrev:()=>"horizontal"===u.orientation()?i.x<o.x:i.y<o.y,next:()=>{u.scroll(-u.getNextSize())},prev:()=>{u.scroll(u.getPrevSize())},scroll:e=>{const t=Math.max(0,Math.min(l,s-e));t!==s&&(s=t,a())},offset:()=>s,orientation:()=>n.layout.orientation,direction:()=>n.layout.direction,extent:()=>H1(n,r),spread:()=>function(e,t){const n=t,r="horizontal"===e.layout.orientation?"height":"width",o="width"===r?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[r]*n+(n-1)*e.layout.margin[o]}(n,r)};return u}function V1(e){return Object.keys(e).filter((t=>e[t])).join(" ")}const Y1={up:"▲",right:"▶",down:"▼",left:"◀"};function U1(e,t){let{size:n,isActive:r,direction:o,nav:i,attrs:a}=t,s={},l="";const u=a;i&&i.button&&("function"==typeof i.button.class?s=i.button.class({direction:o}):i.button.class&&(s=i.button.class),"function"==typeof i.button.content&&(l=i.button.content(e,{direction:o})),void 0!==i.button.tabIndex&&(u.tabindex=i.button.tabIndex));const c={width:"".concat(n,"px"),minWidth:"".concat(n,"px"),height:"".concat(n,"px")};return Object.keys(s).length||(c.border="0",c.background="none"),(!r||i&&i.disabled)&&(u.disabled="disabled"),e("button",CH({class:V1(s),style:c},u),[l||e("span",{style:{pointerEvents:"none"}},[Y1[o]])])}function K1(e){let t;const n={itemize:e=>{t=function(e){let{dock:t,navigation:n}=e;return{layout:{orientation:"top"===t||"bottom"===t?"vertical":"horizontal"},navigation:n}}(e)},render:r=>function(e,t,n,r){let{rect:o,itemRenderer:i}=t;if(!e||!e.renderArgs)return;e.size(o);const a=e.renderArgs[0],s="vertical"===n.layout.orientation,l="rtl"===i.direction(),u=i.hasNext(),c=i.hasPrev();if(!c&&!u)return void e.render([]);const d=s?["right","left"]:["down","up"];l&&s&&d.reverse();const p=[a("div",{style:{position:"relative",display:"flex","flex-direction":s?"column":"row","justify-content":"center",height:"100%",pointerEvents:"auto"},dir:l&&!s?"rtl":"ltr"},[U1(a,{size:32,isActive:u,direction:d[0],attrs:{"data-action":"next","data-component-key":r.settings.key},nav:n.navigation}),U1(a,{size:32,isActive:c,direction:d[1],attrs:{"data-action":"prev","data-component-key":r.settings.key},nav:n.navigation})])];e.render(p)}(n.renderer,r,t,e),extent:()=>32,spread:()=>64};return n}function X1(e){let t;const n={itemize:n=>{t=function(e,t){let{resolved:n}=e;if(!1===n.title.item.show)return null;const r=CH({},n.title.item,{type:"text"});if("rtl"===n.layout.item.direction&&(r.anchor&&"start"!==r.anchor?"end"===r.anchor&&(r.anchor="start"):r.anchor="end"),void 0===n.title.settings.text){const e=t.scale.data().fields;r.text=e&&e[0]?e[0].title():""}return{displayObject:r,bounds:t.renderer.textBounds(r)}}(n,e)},render:e=>{!function(e,t,n){let{rect:r}=e;if(!t)return;const o=[];if(t.size(r),n){const e={start:0,end:r.width,middle:r.width/2};o.push(CH({},n.displayObject,{x:e[n.displayObject.anchor]||0,y:0,baseline:"text-before-edge",title:n.displayObject.text}))}t.render(o)}(e,n.renderer,t)},spread:()=>t?t.bounds.height:0,extent:()=>t?t.bounds.width:0};return n}function J1(e,t,n,r){let o,i,a,{itemRenderer:s,navigationRenderer:l,titleRenderer:u,isPreliminary:c=!1}=r,d=0;const p={x:t.spacing,y:t.spacing,width:e.width-2*t.spacing,height:e.height-2*t.spacing};if(o={x:p.x,y:p.y,width:p.width,height:u.spread()},"horizontal"===n){o={x:p.x,y:p.y,width:u.extent(),height:u.spread()};const e=p.width-o.width-(o.width?t.spacing:0),n=p.height;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0,f=s.spread(),h=r?l.spread():0;i={x:o.x+o.width+(o.width?t.spacing:0),y:p.y+Math.max(0,(h-f)/2),width:p.width-r-o.width-(r?t.spacing:0)-(o.width?t.spacing:0),height:n},a={x:i.x+i.width+(r?t.spacing:0),y:p.y,width:r,height:p.height},o.y=i.y;"rtl"===s.direction()&&(a.x=p.x,i.x=a.x+a.width+(a.width?t.spacing:0),o.x=i.x+i.width+(o.width?t.spacing:0)),d=Math.max(o.height,h,s.spread())}else{const e=p.height-o.height-(o.height?t.spacing:0),n=p.width;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0;a={x:p.x,y:p.y+p.height-r,width:p.width,height:r},i={x:p.x,y:o.y+o.height+(o.height?t.spacing:0),width:p.width,height:p.height-o.height-(o.height?t.spacing:0)-a.height-(a.height?t.spacing:0)},d=Math.max(u.extent(),r?l.spread():0,s.spread())}return i=CH({},e,{x:e.x+i.x,y:e.y+i.y,width:i.width,height:i.height}),a.x+=e.x,a.y+=e.y,o.x+=e.x,o.y+=e.y,{title:CH({},e,o),content:CH({},e,i),navigation:CH({},e,a),orientation:n,preferredSize:d}}function Z1(e){e.state.resolved=function(e){const t=e.scale.domain();let n={items:[]};const r=e.settings.layout.dock;if("threshold-color"===e.scale.type){const o=e.scale.data().fields[0];let i=e=>String(e);e.settings.formatter?i=e.chart.formatter(e.settings.formatter):o&&(i=o.formatter());for(let e=0;e<t.length-1;e++){const r={value:t[e],label:"".concat(i(t[e])," - < ").concat(i(t[e+1]))};o&&(r.source={field:o.id()}),n.items.push(r)}"vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")&&n.items.reverse()}else{const r=e.scale.labels?e.scale.labels():null;n.items=t.map(((t,n)=>{const o=e.scale.datum?CH({},e.scale.datum(t)):{value:t};return o.value=t,e.scale.label?o.label=e.scale.label(t):r&&(o.label=r[n]),o}))}const o=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:CH(!0,{},$1.title,e.style.title),settings:e.settings.settings.title}),i=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:$1.layout,settings:e.settings.settings.layout}),a=e.resolver.resolve({data:n,defaults:CH(!0,{},$1.item.label,e.style.item.label),settings:(e.settings.settings.item||{}).label}),s=CH(!0,{},(e.settings.settings.item||{}).shape);void 0===s.fill&&e.settings.scale&&(s.fill={scale:e.settings.scale});const l=e.resolver.resolve({data:n,defaults:CH(!0,{},$1.item.shape,e.style.item.shape),settings:s}),u=e.resolver.resolve({data:n,defaults:CH(!0,{},{show:$1.item.show}),settings:{show:(e.settings.settings.item||{}).show}});function c(e,n){let r=e.data.value,o=t[n+1];e.data.value=[r,o]}"threshold-color"===e.scale.type&&("vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")?(u.items.reverse().forEach(c),u.items.reverse()):u.items.forEach(c));return{title:o,labels:a,symbols:l,items:u,layout:i}}(e),e.titleRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.itemRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.navigationRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center",navigation:e.settings.settings.navigation}),e.state.display={spacing:8}}function Q1(e){const{rect:t,settings:n,state:r,itemRenderer:o,navigationRenderer:i,titleRenderer:a}=e,s=n.layout.dock,l="top"===s||"bottom"===s?"horizontal":"vertical",u=J1(t,r.display,l,{itemRenderer:o,navigationRenderer:i,titleRenderer:a});e.renderer.size(u.content);let c=o.getItemsToRender({viewRect:CH({},u.content,{x:0,y:0})});return i.render({rect:u.navigation,itemRenderer:o}),a.render({rect:u.title}),e.state.views={layout:u},c}const e2={require:["chart","settings","renderer","update","resolver","registries","symbol"],defaultSettings:{settings:{},style:{item:{label:"$label",shape:"$shape"},title:"$title"}},mounted(e){e&&e.parentNode&&(this.navigationRenderer.renderer.appendTo(e.parentNode),this.titleRenderer.renderer.appendTo(e.parentNode),e.parentNode.insertBefore(this.navigationRenderer.renderer.element(),e),e.parentNode.insertBefore(this.titleRenderer.renderer.element(),e)),this.navigationRenderer.render({rect:this.state.views.layout.navigation,itemRenderer:this.itemRenderer}),this.titleRenderer.render({rect:this.state.views.layout.title})},beforeUnmount(){this.navigationRenderer.renderer.clear(),this.titleRenderer.renderer.clear()},on:{panstart(){if(this.state.interaction.started)return;this.itemRenderer.getContentOverflow()&&(this.state.interaction.started=!0,this.state.interaction.delta=0)},panmove(e){if(!this.state.interaction.started)return;const t="horizontal"===this.itemRenderer.orientation()?("rtl"===this.itemRenderer.direction()?-1:1)*e.deltaX:e.deltaY;this.itemRenderer.scroll(t-this.state.interaction.delta),this.state.interaction.delta=t},panend(){this.state.interaction.started=!1},scroll(e){this.itemRenderer.scroll(-e)},next(){this.itemRenderer.next()},prev(){this.itemRenderer.prev()}},created(){this.state={interaction:{}},this.onScroll=()=>{const e=Q1(this);this.update(e)},this.itemRenderer=G1(this,{onScroll:this.onScroll}),this.navigationRenderer=K1(this),this.titleRenderer=X1(this),this.navigationRenderer.renderer=this.registries.renderer("dom")(),this.titleRenderer.renderer=this.registries.renderer(this.settings.renderer)(),Z1(this)},preferredSize(e){return function(e,t){let n=0;const r=e.settings.layout.dock||"center",o="top"===r||"bottom"===r?"horizontal":"vertical",i=e.state.display,a=J1(t.inner,i,o,{itemRenderer:e.itemRenderer,navigationRenderer:e.navigationRenderer,titleRenderer:e.titleRenderer,isPreliminary:!0});return n+=i.spacing,n+=a.preferredSize,n+=i.spacing,n}(this,e)},beforeUpdate(){Z1(this)},render(){return Q1(this)},beforeDestroy(){this.navigationRenderer.renderer.destroy(),this.titleRenderer.renderer.destroy()},additionalElements(){return[this.titleRenderer.renderer.element(),this.navigationRenderer.renderer.element()]},_DO_NOT_USE_getInfo(){return{offset:this.itemRenderer.offset()}}};function t2(e,t){let n=0;const r=e.state.isVertical?"justify":"align",o=e.state.isVertical?"y":"x",i=e.state.isVertical?"height":"width",a=e.state.isVertical?"requiredHeight":"requiredWidth";n=e.state.rect[i]-e.state.legend.length()-e.state.title[a](),n*=Math.min(1,Math.max(e.stgns[r],0)),t[o]+=n}function n2(e,t,n){const r=n[e];return"object"==typeof r?-1!==r.valid.indexOf(t)?t:r.default:n.default}function r2(e){return n2(e.layout.dock,e.settings.title.anchor,{left:{valid:["top"],default:"top"},right:{valid:["top"],default:"top"},top:{valid:["left","right"],default:"left"},bottom:{valid:["left","right"],default:"left"},default:"top"})}function o2(e,t){const n={x:0,y:0,width:0,height:0},r=e.stgns.padding;return n.x=r.left,n.y=r.top,n.width=t.width-r.left-r.right,n.height=t.height-r.top-r.bottom,n}function i2(e){const t="top"!==e.settings.layout.dock&&"bottom"!==e.settings.layout.dock,n=e.stgns.title,r=e.chart.scale(e.stgns.fill),o=e.chart.scale(e.stgns.major),i=function(e,t){const n=t.domain();let r=n,o=e.stgns.tick.label;!o&&e.formatter?o=e.formatter:!o&&t.data().fields&&(o=t.data().fields[0].formatter()),"function"==typeof o&&(r=n.map(o).map(String));const i=n.map(((n,o)=>{const i=r[o];return{value:n,label:i,pos:t.norm(parseFloat(n,10)),textMetrics:e.renderer.measureText({text:i,fontSize:e.stgns.tick.fontSize,fontFamily:e.stgns.tick.fontFamily})}}));return i}(e,o),a=function(e){return n2(e.layout.dock,e.settings.tick.anchor,{left:{valid:["left","right"],default:"left"},right:{valid:["left","right"],default:"right"},top:{valid:["top","bottom"],default:"top"},bottom:{valid:["top","bottom"],default:"bottom"},default:"right"})}(e.settings);if(void 0===n.text){const e=o.data().fields;n.text=e&&e[0]?e[0].title():""}const s=e.renderer.measureText({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily}),l=e.renderer.textBounds({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily,maxLines:n.maxLines,maxWidth:n.maxLengthPx,wordBreak:n.wordBreak,hyphens:n.hyphens,lineHeight:n.lineHeight}),u={isVertical:t,nodes:[],title:{anchor:r2(e.settings),textMetrics:s,textBounds:l,requiredWidth:()=>{if(!n.show)return 0;let e=l.width,r=n.maxLengthPx;return t||(e+=n.padding,r+=n.padding),Math.min(e,r,u.rect.width)},requiredHeight:()=>{if(!n.show)return 0;let e=l.height;return t&&(e+=n.padding),Math.min(e,u.rect.height)}},ticks:{values:i,anchor:a,length:Math.min(Math.max(...i.map((e=>e.textMetrics.width))),e.stgns.tick.maxLengthPx),requiredHeight:()=>"top"===a?Math.max(...u.ticks.values.map((e=>e.textMetrics.height)))+e.stgns.tick.padding:0,height:Math.max(...i.map((e=>e.textMetrics.height)))},legend:{fillScale:r,majorScale:o,length:()=>{const n=t?"height":"width",r=t?"requiredHeight":"requiredWidth",o=Math.min(u.rect[n],u.rect[n]*e.stgns.length)-u.title[r]();return Math.max(0,Math.min(o,e.stgns.maxLengthPx))}}};return u}const a2={require:["chart","settings","renderer"],defaultSettings:{layout:{displayOrder:0,dock:"right"},settings:{size:15,length:.5,maxLengthPx:250,align:.5,justify:0,padding:{left:5,right:5,top:5,bottom:5},tick:{label:null,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,anchor:null,padding:5},title:{show:!0,text:void 0,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,padding:5,maxLines:2,wordBreak:"none",lineHeight:1.2,hyphens:"auto",anchor:null}}},preferredSize(e){const t=this.state;t.rect=o2(this,e.inner);let n=this.stgns.size;const r=t.isVertical?this.stgns.padding.left+this.stgns.padding.right:this.stgns.padding.top+this.stgns.padding.bottom;n+=r;const o=Math.max(e.inner.width,e.inner.height);if("left"===t.ticks.anchor||"right"===t.ticks.anchor){const e=t.ticks.values.reduce(((e,t)=>e+t.textMetrics.height),0);if(e>this.state.legend.length())return o;n+=t.ticks.length}else{if(t.ticks.length>this.state.legend.length())return o;n+=Math.max(...t.ticks.values.map((e=>e.textMetrics.height)))}return n+=this.stgns.tick.padding,this.stgns.title.show&&(n="left"===t.title.anchor||"right"===t.title.anchor?Math.max(t.title.textBounds.height+r,n):Math.max(n,t.title.requiredWidth()+r)),this.state.preferredSize=n,n},created(){this.stgns=this.settings.settings,this.state=i2(this)},beforeUpdate(e){this.stgns=e.settings.settings,this.state=i2(this)},beforeRender(e){if(this.state.nodes=[],this.state.rect=o2(this,e.size),this.stgns.title.show){const e=function(e){const t=e.state,n=e.stgns,r="left"===t.ticks.anchor,o="top"===t.ticks.anchor;let i=t.rect.x,a=t.rect.y,s="start";"left"===t.title.anchor?(i+=t.title.requiredWidth()-n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0,s="end"):"right"===t.title.anchor?(i+=t.legend.length(),i+=n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0):"top"===t.title.anchor&&(i+=r?t.rect.width:0,a+=t.title.textMetrics.height,s=r?"end":"start");const l={tag:"legend-title",type:"text",x:i,y:Math.min(a,t.rect.y+t.rect.height),text:n.title.text,fill:n.title.fill,fontSize:n.title.fontSize,fontFamily:n.title.fontFamily,maxWidth:n.title.maxLengthPx,maxLines:n.title.maxLines,wordBreak:n.title.wordBreak,hyphens:n.title.hyphens,lineHeight:n.title.lineHeight,anchor:s,title:n.title.text};return t2(e,l),l}(this);this.state.nodes.push(e)}const t=function(e){const t=e.state.legend.fillScale,n=e.state.legend.majorScale,r=t.domain().map((e=>({type:"stop",color:t(e),offset:Math.min(1,Math.max(0,n.norm(e)))})));return r.sort(((e,t)=>e.offset-t.offset))}(this),n=function(e,t){const n=e.state,r=e.stgns,o=n.rect;let i=o.x,a=o.y,s=n.isVertical?r.size:n.legend.length(),l=n.isVertical?n.legend.length():r.size;"left"===n.ticks.anchor?i+=n.rect.width-r.size:"top"===n.ticks.anchor&&(a+=n.rect.height-r.size),"top"===n.title.anchor?a+=n.title.requiredHeight():"left"===n.title.anchor&&(i+=n.title.requiredWidth());const u={type:"rect",x:i,y:a,width:s,height:l,fill:{type:"gradient",stops:t,degree:n.isVertical?90:180}};return t2(e,u),u}(this,t),r=function(e,t){const n=e.state,r=e.stgns;let o="start";const i={type:"rect",x:t.x,y:t.y,width:n.isVertical?0:t.width,height:n.isVertical?t.height:0,fill:"transparent"},a=n.ticks.values.map((a=>{let s=0,l=0,u=0,c="alphabetical";return n.isVertical?(l=t.y+t.height*a.pos,c=0===a.pos?"text-before-edge":"text-after-edge"):s=t.x+t.width*a.pos,"right"===n.ticks.anchor?(s=t.x+r.size+r.tick.padding,i.x=t.x+t.width):"left"===n.ticks.anchor?(s=t.x-r.tick.padding,o="end"):"top"===n.ticks.anchor?(l=t.y-r.tick.padding,u-=.25*a.textMetrics.height,o=0===a.pos?"start":"end"):"bottom"===n.ticks.anchor&&(l=t.y+t.height+r.tick.padding,u=.8*a.textMetrics.height,o=0===a.pos?"start":"end",i.y=t.y+t.height),{type:"text",x:s,y:l,dx:0,dy:u,text:a.label,fontSize:r.tick.fontSize,fontFamily:r.tick.fontFamily,fill:r.tick.fill,maxWidth:n.isVertical?r.tick.maxLengthPx:Math.min(r.tick.maxLengthPx,n.legend.length()/2),anchor:o,textBoundsFn:e.renderer.textBounds,title:a.label,baseline:c}}));return{type:"container",id:"legend-seq-ticks",children:[...a,i]}}(this,n),o={id:"legend-seq-target",type:"container",children:[n,r]};this.state.nodes.push(o)},render(){return this.state.nodes}};const s2={coordinates:{minor:.5,major:.5,layerId:0,defined:!0},layers:{curve:"linear",show:!0,line:{stroke:"#ccc",strokeWidth:1,strokeLinejoin:"miter",strokeDasharray:void 0,opacity:1,show:!0,showMinor0:!0},area:{fill:"#ccc",opacity:.8,show:!0}}};function l2(e,t){let{generatorType:n,item:r,data:o,major:i,minor:a,layerObj:s,stngs:l}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const c={type:"path",points:e,generatorType:n,major:i,minor:a,layerObj:s,stngs:l,opacity:r.opacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeLinejoin:r.strokeLinejoin,fill:u||r.fill,data:o};return r.strokeDasharray&&(c.strokeDasharray=r.strokeDasharray),c}function u2(e){const{metaLayers:t,coordinates:n,layers:r,lines:o,areas:i}=function(e){let{data:t,stngs:n,rect:r,resolver:o,style:i,domain:a}=e;const{width:s,height:l}=r,u=o.resolve({data:t,defaults:s2.coordinates,settings:n.coordinates||{},scaled:{major:"vertical"===n.orientation?l:s,minor:"vertical"===n.orientation?s:l}}),c=!n.connect&&a.length>2&&("function"==typeof n.coordinates.layerId||"object"==typeof n.coordinates.layerId),d={};let p=0;for(let e=0;e<u.items.length;e++){let t=u.items[e],n=t.layerId;if(c){const e=d[n]?d[n].items[d[n].items.length-1]:null,r=e?a.indexOf(e.data.major?e.data.major.value:e.data.value):null;e&&a.indexOf(t.data.major?t.data.major.value:t.data.value)-1!==r&&d[n].items.push({dummy:!0})}d[n]=d[n]||{order:p++,id:n,items:[],dataItems:[],consumableData:{}},d[n].dataItems.push(t.data),d[n].items.push(t)}const f=Object.keys(d).map((e=>(d[e].consumableData=MH({points:d[e].dataItems},d[e].dataItems[0]),d[e]))),h={items:f.map((e=>e.consumableData))},m=n.layers||{};return{coordinates:u,metaLayers:f,layers:o.resolve({data:h,defaults:{curve:s2.layers.curve,show:s2.layers.show},settings:{curve:m.curve,show:m.show}}),lines:o.resolve({data:h,defaults:CH({},s2.layers.line,i.line),settings:m.line}),areas:o.resolve({data:h,defaults:CH({},s2.layers.area,i.area),settings:m.area})}}(e),a=[];return t.forEach(((t,s)=>{const l=r.items[s];if(!1===l.show)return;l.datum=l.data,l.data=[],l.id=t.id;const u=[],c=[];let d,p;for(let r=0;r<t.items.length;r++){if(d=t.items[r],p=d.data,!d.dummy){if(isNaN(d.major))continue;e.missingMinor0&&(d.minor0=n.settings.minor.scale?n.settings.minor.scale(p.minor0?p.minor0.value:0):0),isNaN(d.minor)||u.push(d.minor),l.data.push(d.data)}c.push(d)}const f=u.sort(((e,t)=>e-t))[Math.floor((u.length-1)/2)];a.push({layerObj:l,lineObj:o.items[s],areaObj:i.items[s],median:f,points:c,consumableData:t.consumableData})})),a}const c2={require:["chart","resolver"],defaultSettings:{style:{area:"$shape",line:"$shape-outline"}},created(){},render(e){let{data:t}=e;const{width:n,height:r}=this.rect;this.stngs=this.settings.settings||{};const o=!this.stngs.coordinates||void 0===this.stngs.coordinates.minor0,i=u2({data:t,stngs:this.stngs,rect:this.rect,resolver:this.resolver,style:this.style,missingMinor0:o,domain:this.stngs.coordinates&&this.stngs.coordinates.major&&this.stngs.coordinates.major.scale?this.chart.scale(this.stngs.coordinates.major.scale).domain():[]});if(this.stngs.layers&&this.stngs.layers.sort){const e=i.map((e=>({id:e.layerObj.id,data:e.layerObj.data}))).sort(this.stngs.layers.sort).map((e=>e.id));i.sort(((t,n)=>e.indexOf(t.layerObj.id)-e.indexOf(n.layerObj.id)))}else i.sort(((e,t)=>e.median-t.median));return function(e,t){let{width:n,height:r,missingMinor0:o,stngs:i}=t;const a=[],s=i.layers||{};return e.forEach((e=>{const{lineObj:t,layerObj:l,areaObj:u,points:c}=e;let d={size:r,p:"y"},p={size:n,p:"x"};if("vertical"===i.orientation){const e=CH(!0,{},p);p=CH(!0,{},d),d=CH(!0,{},e)}s.area&&!1!==u.show&&a.push(l2(c,{data:e.consumableData,item:u,generatorType:"area",major:p,minor:d,layerObj:l,stngs:i})),t&&!1!==t.show&&(a.push(l2(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"1"),major:p,minor:d,layerObj:l,stngs:i},"none")),!o&&s.area&&!1!==u.show&&!1!==t.showMinor0&&a.push(l2(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"0"),major:p,minor:d,layerObj:l,stngs:i},"none")))})),a}(i,{width:n,height:r,missingMinor0:o,stngs:this.stngs})}};function d2(e,t){let n,r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"object"==typeof t.center?(n=t.center.x,r=t.center.y):(n=t.clientX,r=t.clientY);const i=n-e.state.boundingRect.left,a=r-e.state.boundingRect.top;return{x:o?Math.max(0,Math.min(i,e.rect.width)):i,y:o?Math.max(0,Math.min(a,e.rect.height)):a}}function p2(e,t){return{x:t.x+e.rect.x,y:t.y+e.rect.y}}function f2(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x,t.x)-n,height:Math.max(e.y,t.y)-r}}const h2={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:99},settings:{brush:{components:[]}},style:{area:"$selection-area-target"}},on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaCancel(){this.cancel()}},created(){this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1}},preferredSize:()=>0,render(){},start(e){this.state.boundingRect=this.renderer.element().getBoundingClientRect();const t=d2(this,e,!1);HJ({x:0,y:0,width:this.rect.width,height:this.rect.height},t)&&(this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts,data:e.data,action:e.action||"set"})))}(this.settings),this.state.start=d2(this,e),this.state.active=!0)},move(e){var t;this.state.active&&(this.state.end=d2(this,e),function(e){if(e.state.active){const t=p2(e,e.state.start),n=p2(e,e.state.end),r=e.chart.shapesAt(f2(t,n),{components:e.state.brushConfig});e.chart.brushFromShapes(r,{components:e.state.brushConfig})}}(this),(t=this).renderer.render([CH({type:"rect"},f2(t.state.start,t.state.end),t.style.area)]))},end(){this.state.active&&(this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{Array.isArray(e.contexts)&&e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))}};function m2(e,t,n){let{renderer:r,style:o,props:i,h:a}=n;const s=function(e,t){return{tooltip:"function"==typeof e.tooltipClass?e.tooltipClass({dock:t.dock}):e.tooltipClass,content:"function"==typeof e.contentClass?e.contentClass({dock:t.dock}):e.contentClass,arrow:"function"==typeof e.arrowClass?e.arrowClass({dock:t.dock}):e.arrowClass}}(i,t),l=function(e,t,n,r){return r.content({h:e,style:n,data:t})}(a,e,o,i),u=a("div",{dir:i.direction,class:V1(CH({"pic-tooltip":!0},s.tooltip)),style:CH({position:"relative",display:"inline-block"},t.computedTooltipStyle)},a("div",{style:o.content,class:V1(CH({"pic-tooltip-content":!0},s.content))},l),a("div",{class:V1(CH({"pic-tooltip-arrow":!0},s.arrow)),style:CH({},o.arrow,o["arrow-".concat(t.dock)],t.computedArrowStyle)}));return r.render(u),r.element().children[0]}function g2(e){let{defaultDuration:t,defaultDelay:n}=e,r=null,o=null,i=!1;const a=function(){const e=function(){},t={pending:[],debounced:[],active:[],cancelled:[],rejected:[],fulfilled:[]};let n;return e.set=e=>{n=e,t[n].forEach((t=>t(e)))},e.on=(e,n)=>{Array.isArray(e)?e.forEach((e=>t[e].push(n))):t[e].push(n)},e.destroy=()=>{Object.keys(t).forEach((e=>{t[e].length=0}))},e}(),s=function(){},l=()=>{r=null,o=null,i=!1,a.set("fulfilled")};return s.invoke=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;r&&(clearTimeout(r),a.set("debounced")),a.set("pending"),r=setTimeout((()=>{e(),i=!0,r=null,a.set("active")}),u),s>0&&(o&&clearTimeout(o),o=setTimeout(l,s+Math.max(u,0)))},s.clear=()=>{i?a.set("cancelled"):r&&(clearTimeout(r),a.set("rejected")),o&&clearTimeout(o),r=null,o=null,i=!1},s.on=(e,t)=>{a.on(e,t)},s.destroy=()=>{s.clear(),a.destroy()},s}function b2(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{left:"translate(-100%,-50%) translateX(".concat(-e,"px)"),right:"translate(".concat(e,"px, -50%)"),top:"translate(-50%, -100%) translateY(".concat(-e,"px)"),bottom:"translate(-50%, ".concat(e,"px)"),inside:"translate(-50%, -50%)"}}function y2(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{left:{x:-e-n,y:-t/2},right:{x:n,y:-t/2},top:{x:-e/2,y:-t-n},bottom:{x:-e/2,y:n},inside:{x:-e/2,y:-t/2}}}function x2(e,t){const n=e>0?"-":"+";return e=Math.abs(e),void 0===t&&(t=e),{left:{left:"100%",top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},right:{left:"".concat(2*-e,"px"),top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},top:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"100%",borderWidth:"".concat(t,"px")},bottom:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"".concat(2*-e,"px"),borderWidth:"".concat(t,"px")},inside:{left:"0px",top:"0px",borderWidth:"0px"}}}function v2(e,t,n,r,o,i){const a=t+i.x,s=n+i.y,l=o;return!(a<0||s<0)&&!(a+r>e.width||s+l>e.height)}function _2(e){let{area:t,vx:n,vy:r,width:o,height:i,offset:a}=e;const s=n+a.x,l=r+a.y,u=o,c=i;let d=s<0?-s:0,p=l<0?-l:0;return d+=s+u>t.width?-(s+u-t.width):0,p+=l+c>t.height?-(l+c-t.height):0,{x:d,y:p}}function w2(e){let{options:t,pointer:n,width:r,height:o,dockOrder:i,x:a,y:s}=e;const{targetBounds:l}=n,u=b2(t.offset),c=u[t.dock];if(c)return{computedTooltipStyle:{left:"".concat(a,"px"),top:"".concat(s,"px"),transform:c},computedArrowStyle:x2(t.offset)[t.dock],dock:t.dock};const d={width:"target"===t.area?l.width:window.innerWidth,height:"target"===t.area?l.height:window.innerHeight},p=y2(r,o,t.offset),f=[],h="target"===t.area?a:l.left+a,m="target"===t.area?s:l.top+s;for(let e=0;e<i.length;e+=1){const n=i[e],l=_2({area:d,vx:h,vy:m,width:r,height:o,offset:p[n]}),c={left:"".concat(a,"px"),top:"".concat(s,"px"),transform:u[n]},g=x2(t.offset)[n];0!==l.x&&(c.width="".concat(r-20-Math.abs(l.x),"px"),"top"!==n&&"bottom"!==n||(c.left="".concat(a+l.x,"px"),g.left="calc(50% ".concat(l.x>0?"-":"+"," ").concat(Math.abs(l.x),"px)")));const b={computedTooltipStyle:c,computedArrowStyle:g,dock:n,rect:{width:r,height:o}};if(0===l.x&&0===l.y)return b;b.offset=l,f.push(b)}return f.sort(((e,t)=>Math.abs(e.offset.x)-Math.abs(t.offset.x))),f[0]}function S2(e,t,n){const r=e.key?n.component(e.key):n.componentsFromPoint({x:t.clientX,y:t.clientY})[0];if(!r)return{x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1}};const o=r.rect;return CH({scaleRatio:o.scaleRatio},o.computedInner)}const C2={bounds:function(e){let{resources:t,nodes:n,pointer:r,width:o,height:i,options:a}=e;const{targetBounds:s}=r,{x:l,y:u,width:c,height:d}=t.getNodeBoundsRelativeToTarget(n[0]),p={left:{x:l,y:u+d/2},right:{x:l+c,y:u+d/2},top:{x:l+c/2,y:u},bottom:{x:l+c/2,y:u+d},inside:{x:l+c/2,y:u+d/2}},f=b2(a.offset),h=f[a.dock];if(h)return{computedTooltipStyle:{left:"".concat(p[a.dock].x,"px"),top:"".concat(p[a.dock].y,"px"),transform:h},computedArrowStyle:x2(a.offset)[a.dock],dock:a.dock};const m={width:"target"===a.area?s.width:window.innerWidth,height:"target"===a.area?s.height:window.innerHeight},g=y2(o,i,a.offset),b=["top","left","right","bottom","inside"];for(let e=0;e<b.length;e+=1){const t=b[e];if(v2(m,"target"===a.area?p[t].x:s.left+p[t].x,"target"===a.area?p[t].y:s.top+p[t].y,o,i,g[t]))return{computedTooltipStyle:{left:"".concat(p[t].x,"px"),top:"".concat(p[t].y,"px"),transform:f[t]},computedArrowStyle:x2(a.offset)[t],dock:t}}const y=function(e){let{options:t,docks:n,dockOffsets:r,targetBounds:o,area:i,width:a}=e;const s="top",l="target"===t.area?n[s].x:o.left+n[s].x,u=("target"===t.area?n[s].y:(o.top,n[s].y),r[s]),c=l+u.x,d=(u.y,a);let p=n.top.x;return c<0&&c+d>i.width||(c<0?p-=c:c+d>i.width&&(p-=c+d-i.width)),p}({options:a,docks:p,dockOffsets:g,targetBounds:s,area:m,width:o});return{computedTooltipStyle:{left:"".concat(y,"px"),top:"".concat(p.top.y,"px"),transform:f.top},computedArrowStyle:x2(a.offset+y-p.top.x,a.offset).top,dock:"top"}},pointer:function(e){let{options:t,pointer:n,width:r,height:o}=e;const{x:i,y:a}=n;return w2({x:i,y:a,pointer:n,width:r,height:o,options:t,dockOrder:["top","left","right","bottom"]})},slice:function(e){let{options:t,pointer:n,width:r,height:o,nodes:i,resources:a}=e;const s=i[0],{dx:l,dy:u}=n,c=a.getComponentBoundsFromNode(s),d=l+c.x+c.width/2,p=u+c.y+c.height/2,{start:f,end:h,outerRadius:m}=s.desc.slice,g=(f+h)/2-Math.PI/2,b=2*Math.PI,y=(g%b+b)%b;let x=["top","left","right","bottom"];return"auto"===t.dock&&(x=y<=Math.PI/4||y>=7*Math.PI/4?["right","top","bottom","left"]:y<=3*Math.PI/4?["bottom","left","right","top"]:y<=5*Math.PI/4?["left","top","bottom","right"]:["top","left","right","bottom"]),w2({x:d+m*c.scaleRatio.x*Math.cos(y),y:p+m*c.scaleRatio.y*Math.sin(y),pointer:n,width:r,height:o,options:t,dockOrder:x})}};function E2(e,t){let{width:n,height:r}=e,{chart:o,state:i,props:a}=t;const s={resources:{formatter:o.formatter,scale:o.scale,component:o.component,getComponentBoundsFromNode:e=>S2(e,i.pointer,o),getNodeBoundsRelativeToTarget:e=>function(e,t,n){const r=S2(e,t,n),o=e.bounds;return{x:r.x+t.dx+o.x,y:r.y+t.dy+o.y,width:o.width,height:o.height}}(e,i.pointer,o)},nodes:i.activeNodes,pointer:i.pointer,width:n,height:r},l=typeof a.placement;if("object"===l&&"function"==typeof a.placement.fn)return a.placement.fn(s);let u={type:"pointer",offset:8,dock:"auto",area:"viewport"};"function"===l&&(u=CH(u,a.placement(s))),"object"===l&&C2[a.placement.type]?u=CH(u,a.placement):"string"===l&&C2[a.placement]&&(u=CH(u,{type:a.placement})),s.options=u;const c=C2[u.type](s);let{x:d,y:p,width:f,height:h}=s.resources.getComponentBoundsFromNode(s.nodes[0]);return d+=s.pointer.dx,f+=d,p+=s.pointer.dy,h+=p,c.computedTooltipStyle.left="".concat(Math.min(Math.max(0,d,parseFloat(c.computedTooltipStyle.left)),f),"px"),c.computedTooltipStyle.top="".concat(Math.min(Math.max(0,p,parseFloat(c.computedTooltipStyle.top)),h),"px"),c}let k2;function R2(){k2=null}const M2={duration:8e3,delay:500,filter:e=>e.filter((e=>e.data&&void 0!==e.data.value)),extract:e=>e.node.data.value,content:e=>{let{h:t,data:n}=e;return n.map((e=>t("div",{},e)))},isEqual:(e,t)=>e.length&&e.length===t.length&&e.every(((e,n)=>t[n]&&JSON.stringify(e.data)===JSON.stringify(t[n].data))),placement:{type:"pointer",dock:"auto",offset:8,area:"viewport"},tooltipClass:{},contentClass:{},arrowClass:{},direction:"ltr",appendTo:void 0,beforeShow:void 0,afterShow:void 0,beforeHide:void 0,onHide:void 0,afterHide:void 0};const A2={require:["chart","renderer"],defaultSettings:{settings:M2,style:{tooltip:{},content:{backgroundColor:"$gray-25",color:"$font-color--inverted",fontFamily:"$font-family",fontSize:"$font-size",lineHeight:"$line-height",borderRadius:"4px",padding:"8px",opacity:.9},arrow:{position:"absolute",width:"0px",height:"0px",borderStyle:"solid",color:"$gray-25",opacity:.9},"arrow-bottom":{borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-top":{borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-right":{borderTopColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"},"arrow-left":{borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent"}}},renderer:"dom",on:{hide(){this.hide()},show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.show(e,t)},prevent(e){this.prevent(e)}},hide(){this.dispatcher.clear(),this.state.activeNodes=[],this.state.pointer={}},show(e){let t,{nodes:n,duration:r,delay:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.state.prevent&&this.state.targetElement&&(this.state.pointer=function(e,t){let{chart:n,state:r}=t,o=0,i=0;e.center?(o+=e.center.x,i+=e.center.y):(o+=e.clientX,i+=e.clientY);const a=n.element.getBoundingClientRect(),s=r.targetElement.getBoundingClientRect(),l=o,u=i,c=a.left-s.left,d=a.top-s.top,p=o-a.left,f=i-a.top;return o-=s.left,i-=s.top,{x:o,y:i,dx:c,dy:d,cx:p,cy:f,clientX:l,clientY:u,targetBounds:s,chartBounds:a}}(e,this),t=Array.isArray(n)?this.props.filter(n):this.props.filter(this.chart.shapesAt({x:this.state.pointer.cx,y:this.state.pointer.cy})),this.props.isEqual(this.state.activeNodes,t)||(this.dispatcher.clear(),this.state.activeNodes=t,this.state.activeNodes.length&&this.dispatcher.invoke((()=>this.invokeRenderer(this.state.activeNodes)),r,o)))},prevent(e){this.state.prevent=!!e},init(e){this.state={activeNodes:[],pointer:{},targetElement:null,prevent:!1},this.props=e.settings,this.dispatcher=g2({defaultDuration:this.props.duration,defaultDelay:this.props.delay});const t=this.dispatcher.clear;this.dispatcher.on("pending",(()=>{!function(e){k2&&k2!==e&&k2()}(t),k2=t,"function"==typeof this.props.beforeShow&&this.props.beforeShow.call(void 0,{resources:{formatter:this.chart.formatter,scale:this.chart.scale}})})),this.dispatcher.on(["cancelled","fulfilled"],(()=>{const e={resources:{formatter:this.chart.formatter,scale:this.chart.scale}};"function"==typeof this.props.beforeHide&&this.props.beforeHide.call(void 0,CH({element:this.state.tooltipElm},e)),"function"==typeof this.props.onHide?this.props.onHide.call(void 0,CH({element:this.state.tooltipElm},e)):this.renderer.clear([]),"function"==typeof this.props.afterHide&&this.props.afterHide.call(void 0,e),k2===t&&(k2=null),this.state.tooltipElm=void 0})),this.dispatcher.on("active",(()=>{"function"==typeof this.props.afterShow&&this.props.afterShow.call(void 0,{element:this.state.tooltipElm,resources:{formatter:this.chart.formatter,scale:this.chart.scale}})}))},created(){this.init(this.settings)},beforeUpdate(e){let{settings:t}=e;this.dispatcher&&(this.dispatcher.destroy(),R2()),this.init(t)},render(e){return this.h=e,[]},beforeDestroy(){this.dispatcher.destroy(),R2()},appendTo(){if(this.props.appendTo){this.state.targetElement="function"==typeof this.props.appendTo?this.props.appendTo({resources:{formatter:this.chart.formatter,scale:this.chart.scale}}):this.props.appendTo;const{width:e,height:t}=this.state.targetElement.getBoundingClientRect();this.renderer.destroy(),this.renderer.size({width:e,height:t}),this.renderer.appendTo(this.state.targetElement)}else this.state.targetElement=this.renderer.element()},mounted(){this.appendTo()},updated(){this.appendTo()},invokeRenderer(e){const t=function(e,t){let{chart:n,scale:r,props:o,h:i}=t;const a={resources:{dataset:n.dataset,scale:n.scale,formatter:n.formatter},scale:r,h:i},s=[];return e.forEach((e=>{if("function"==typeof o.extract){const t=CH({node:e},a);s.push(o.extract(t))}})),s}(e,this),n=E2(m2(t,{},this).getBoundingClientRect(),this);this.state.tooltipElm=m2(t,n,this)}};const I2={require:["renderer","chart"],defaultSettings:{settings:{target:"",selector:"*",fill:"rgba(0, 255, 0, 0.1)",stroke:"lime",opacity:1,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes(this.props.selector).filter((e=>e.key===this.props.target)),t=e.filter((e=>e.collider)).map((e=>e.collider));t.forEach((e=>{e.fill=this.props.fill,e.stroke=this.props.stroke,e.opacity=this.props.opacity,e.collider={type:null}})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var L2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},P2=/([astvzqmhlc])([^astvzqmhlc]*)/gi,D2=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function T2(e){const t=[],n=String(e).trim();return"M"!==n[0]&&"m"!==n[0]||n.replace(P2,((e,n,r)=>{const o=function(e){const t=e.match(D2);return t?t.map(Number):[]}(r);let i=n.toLowerCase(),a=n;if("m"===i&&o.length>2&&(t.push([a,...o.splice(0,2)]),i="l",a="m"===a?"l":"L"),o.length<L2[i])return"";for(t.push([a,...o.splice(0,L2[i])]);o.length>=L2[i]&&o.length&&L2[i];)t.push([a,...o.splice(0,L2[i])]);return""})),t}const O2=2*Math.PI;function z2(e,t){return{x:.5*(e.x+t.x),y:.5*(e.y+t.y)}}function N2(e,t,n,r,o){const i=1-e;return i**3*t+3*i**2*e*n+3*i*e**2*r+e**3*o}function q2(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;if(i<1||function(e,t,n,r){return Math.abs(e.x+n.x-(t.x+t.x))+Math.abs(e.y+n.y-(t.y+t.y))+Math.abs(t.x+r.x-(n.x+n.x))+Math.abs(t.y+r.y-(n.y+n.y))}(e,t,n,r)<=10)return o[o.length-1]!==e&&o.push(e),o.push(r),o;const a=z2(e,t),s=z2(t,n),l=z2(n,r),u={x:N2(.5,e.x,t.x,n.x,r.x),y:N2(.5,e.y,t.y,n.y,r.y)},c=z2(a,s),d=z2(s,l);return q2(e,a,c,u,o,i-1),q2(u,d,l,r,o,i-1),o}function j2(e,t,n){const{cp1:r,cp2:o}=function(e,t,n){return{cp1:{x:e.x+2/3*(t.x-e.x),y:e.y+2/3*(t.y-e.y)},cp2:{x:n.x+2/3*(t.x-n.x),y:n.y+2/3*(t.y-n.y)}}}(e,t,n);return q2(e,r,o,n)}function F2(e,t,n){const r=[],o=!!e[4],i=!!e[5],a=e[3];let s,l,u,c,d=e[6],p=e[7],f=e[1],h=e[2];if("a"===e[0]&&(d+=t,p+=n),t===p&&n===p)return r;if(!f||!h)return r.push({x:d,y:p}),r;({cx:s,cy:l,rx:f,ry:h,sweepAngle:u,startAngle:c}=function(e,t,n,r,o,i,a,s,l){let u,c,d,p,f,h;const m=iJ(n%360),g=Math.cos(m),b=Math.sin(m),y=(s-i)/2,x=(l-a)/2,v=g*y+b*x,_=g*x-b*y;h=v**2/(e=Math.abs(e))**2+_**2/(t=Math.abs(t))**2,h>1&&(h=Math.sqrt(h),e*=h,t*=h);const w=e*_,S=t*v,C=w**2+S**2,E=(e*t)**2-C;let k=Math.sqrt(Math.max(E/C,0));r===o&&(k=-k);const R=k*(w/t),M=k*(-S/e);p=g*R-b*M+(s+i)/2,f=b*R+g*M+(l+a)/2;const A=(v-R)/e,I=(_-M)/t,L=(-v-R)/e,P=(-_-M)/t;return u=Math.atan2(I,A),u+=u<0?O2:0,c=Math.atan2(P,L),c+=c<0?O2:0,d=c-u,!o&&u<c?d-=O2:o&&c<u&&(d+=O2),d%=O2,{startAngle:u,sweepAngle:d,cx:p,cy:f,rx:e,ry:t}}(f,h,a,o,i,d,p,t,n));const m=Math.abs(u*Math.sqrt((f**2+h**2)/2)),g=Math.ceil(m/10),b=u/g;for(let e=1;e<=g;e++){const t=(c+b*e)%O2,n=Math.cos(t),o=Math.sin(t);r.push({x:s+n*f+-o*n,y:l+o*h+n*o})}return r}function B2(e){const t=T2(e),n=[],r=[];let o=0,i=0,a=null,s=null,l=null,u=null;for(let e=0;e<t.length;++e){const c=t[e],d=c[0];switch("S"!==d&&"s"!==d&&"C"!==d&&"c"!==d&&(a=null,s=null),"T"!==d&&"t"!==d&&"Q"!==d&&"q"!==d&&(l=null,u=null),d){case"m":r.length&&n.push(r.splice(0));case"l":o+=c[1],i+=c[2],r.push({x:o,y:i});break;case"M":r.length&&n.push(r.splice(0));case"L":o=c[1],i=c[2],r.push({x:o,y:i});break;case"H":o=c[1],r.push({x:o,y:i});break;case"h":o+=c[1],r.push({x:o,y:i});break;case"V":i=c[1],r.push({x:o,y:i});break;case"v":i+=c[1],r.push({x:o,y:i});break;case"a":r.push(...F2(c,o,i)),o+=c[6],i+=c[7];break;case"A":r.push(...F2(c,o,i)),o=c[6],i=c[7];break;case"c":r.push(...q2({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i},{x:c[5]+o,y:c[6]+i})),a=c[3]+o,s=c[4]+i,o+=c[5],i+=c[6];break;case"C":r.push(...q2({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]},{x:c[5],y:c[6]})),a=c[3],s=c[4],o=c[5],i=c[6];break;case"s":null!==a&&null!==a||(a=o,s=i),r.push(...q2({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),a=c[1]+o,s=c[2]+i,o+=c[3],i+=c[4];break;case"S":null!==a&&null!==a||(a=o,s=i),r.push(...q2({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),a=c[1],s=c[2],o=c[3],i=c[4];break;case"Q":r.push(...j2({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),l=c[1],u=c[2],o=c[3],i=c[4];break;case"q":r.push(...j2({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),l=c[1]+o,u=c[2]+i,o+=c[3],i+=c[4];break;case"T":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...j2({x:o,y:i},{x:l,y:u},{x:c[1],y:c[2]})),o=c[1],i=c[2];break;case"t":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...j2({x:o,y:i},{x:l,y:u},{x:c[1]+o,y:c[2]+i})),o+=c[1],i+=c[2];break;case"z":case"Z":r.length&&r.push({x:r[0].x,y:r[0].y})}}return function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];Math.abs(n.x-r.x)<1e-12&&Math.abs(n.y-r.y)<1e-12&&(e.splice(t,1),t--)}}(r),n.push(r.splice(0)),n}const $2={require:["renderer","chart"],defaultSettings:{settings:{target:"",fill:"transparent",stroke:"lime",opacity:1,radius:2,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes("path").filter((e=>e.key===this.props.target)),t=[];e.forEach((e=>{B2(e.attrs.d).forEach((e=>{e.forEach((e=>{t.push({type:"circle",cx:e.x,cy:e.y,r:this.props.radius,fill:this.props.fill,stroke:this.props.stroke,opacity:this.props.opacity,collider:{type:null}})}))}))})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var W2=[function(e){e.component("box",HZ),e.component("box-marker",HZ)},function(e){e.component("point",JZ),e.component("point-marker",JZ)},function(e){e.component("pie",tQ)},function(e){e.component("grid-line",aQ)},function(e){e.component("ref-line",bQ)},function(e){e.component("axis",VQ)},function(e){e.component("container",YQ)},function(e){e.component("text",XQ)},function(e){e.component("scrollbar",QQ)},function(e){e.component("brush-range",h0),e.component("brush-area-dir",y0)},function(e){e.component("range",w0)},function(e){e.component("brush-lasso",M0)},function(e){e.component("labels",B1)},function(e){e.component("legend-cat",e2)},function(e){e.component("legend-seq",a2)},function(e){e.component("line",c2)},function(e){e.component("brush-area",h2)},function(e){e.component("tooltip",A2)},function(e){e.component("debug-collider",I2)},function(e){e.component("debug-path-to-points",$2)}];let H2=class{constructor(e){this._parent=null,this._children=[],this._ancestors=null,this.type=e,this.data=null}detach(){return this._parent&&this._parent.removeChild(this),this}get parent(){return this._parent}get isBranch(){return this._children&&this._children.length}get children(){return this._children}get ancestors(){return this._ancestors||(this._ancestors=[],this.parent&&this._ancestors.push(this.parent,...this.parent.ancestors)),this._ancestors}get descendants(){let e=[];const t=this.children.length;let n,r;for(n=0;n<t;n++)r=this.children[n],e.push(r),r.children.length&&(e=[...e,...r.descendants]);return e}equals(e){const t=this.children,n=e.children;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].equals(n[e]))return!1;return!0}toJSON(){return{type:this.type,children:this.children.map((e=>e.toJSON()))}}};class G2{constructor(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x:e,y:t,width:n,height:r,minWidth:o,minHeight:i})}set(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="rect",n>=0?(this.x=e,this.width=Math.max(n,o)):(this.x=e+Math.min(n,-o),this.width=-Math.min(n,-o)),r>=0?(this.y=t,this.height=Math.max(r,i)):(this.y=t+Math.min(r,-i),this.height=-Math.min(r,-i))}containsPoint(e){return HJ(this,e)}intersectsLine(e){return GJ(this,zH(e))}intersectsRect(e){return $J(this,OH(e))}intersectsCircle(e){return zJ(e,this)}intersectsPolygon(e){return BJ(e,this)}intersectsGeoPolygon(e){return QJ(e,this)}points(){return[{x:this.x,y:this.y},{x:this.x+this.width,y:this.y},{x:this.x+this.width,y:this.y+this.height},{x:this.x,y:this.y+this.height}]}}class V2{constructor(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({cx:e,cy:t,r:n,minRadius:r})}set(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="circle",this.cx=e,this.cy=t,this.r=Math.max(n,r),this.vector={x:this.cx,y:this.cy}}containsPoint(e){return OJ(this,e)}intersectsLine(e){return NJ(this,zH(e))}intersectsRect(e){return zJ(this,OH(e))}intersectsCircle(e){return n=e,!LJ(t=this)&&!LJ(n)&&(t.cx-n.cx)**2+(t.cy-n.cy)**2<=(t.r+n.r)**2;var t,n}intersectsPolygon(e){return qJ(this,e)}intersectsGeoPolygon(e){return XJ(this,e)}points(){return[{x:this.cx,y:this.cy}]}}class Y2{constructor(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x1:e,y1:t,x2:n,y2:r,tolerance:o})}set(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="line",this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.tolerance=Math.max(0,Math.round(o)),this.vectors=this.points(),this.zeroSize=e===n&&t===r}containsPoint(e){if(this.tolerance>0){return NJ({cx:e.x,cy:e.y,r:this.tolerance},this)}return YJ(this,e)}intersectsLine(e){return VJ(this,zH(e))}intersectsRect(e){return GJ(OH(e),this)}intersectsCircle(e){return NJ(e,this)}intersectsPolygon(e){return FJ(e,this)}intersectsGeoPolygon(e){return ZJ(e,this)}points(){return[{x:this.x1,y:this.y1},{x:this.x2,y:this.y2}]}}class U2{constructor(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polygon",this.vertices=e.slice(),this.edges=[],function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}(this.vertices),!(this.vertices.length<=2)){!function(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}(this.vertices),this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.vertices.length;e++)e<this.vertices.length-1&&this.edges.push([this.vertices[e],this.vertices[e+1]]),this.xMin=isNaN(this.xMin)?this.vertices[e].x:Math.min(this.xMin,this.vertices[e].x),this.xMax=isNaN(this.xMax)?this.vertices[e].x:Math.max(this.xMax,this.vertices[e].x),this.yMin=isNaN(this.yMin)?this.vertices[e].y:Math.min(this.yMin,this.vertices[e].y),this.yMax=isNaN(this.yMax)?this.vertices[e].y:Math.max(this.yMax,this.vertices[e].y);this._bounds=null,this._boundingRect=null}}containsPoint(e){return jJ(this,e)}intersectsCircle(e){return qJ(e,this)}intersectsLine(e){return FJ(this,zH(e))}intersectsRect(e){return BJ(this,OH(e))}intersectsPolygon(e){return UJ(this,e)}intersectsGeoPolygon(e){return KJ(e,this)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function K2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new U2(...t)}function X2(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}function J2(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}class Z2{constructor(){let{vertices:e=[[]]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="geopolygon",this.vertices=e.slice(),this.numPolygons=this.vertices.length,this.polygons=[],this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.numPolygons;e++)J2(this.vertices[e]),this.vertices[e].length>2&&X2(this.vertices[e]),this.polygons[e]=K2({vertices:this.vertices[e]}),this.xMin=isNaN(this.xMin)?this.polygons[e].xMin:Math.min(this.xMin,this.polygons[e].xMin),this.xMax=isNaN(this.xMax)?this.polygons[e].xMax:Math.max(this.xMax,this.polygons[e].xMax),this.yMin=isNaN(this.yMin)?this.polygons[e].yMin:Math.min(this.yMin,this.polygons[e].yMin),this.yMax=isNaN(this.yMax)?this.polygons[e].yMax:Math.max(this.yMax,this.polygons[e].yMax);this._bounds=null,this._boundingRect=null}containsPoint(e){return JJ(this,e)}intersectsCircle(e){return XJ(e,this)}intersectsLine(e){return ZJ(this,zH(e))}intersectsRect(e){return QJ(this,OH(e))}intersectsPolygon(e){return KJ(this,e)}intersectsGeoPolygon(e){return function(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!$J(n,r)&&(WJ(r,n)?TJ(t,e):TJ(e,t))}(this,e)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function Q2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Z2(...t)}class e5{constructor(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({points:e})}set(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polyline",this.segments=[],this._points=e.slice(),this._points.length>1)for(let e=0,r=this._points.length-1;e<r;e++)t=this._points[e],n=this._points[e+1],(t.x!==n.x||t.y!==n.y)&&this.segments.push({x1:this._points[e].x,y1:this._points[e].y,x2:this._points[e+1].x,y2:this._points[e+1].y});var t,n}containsPoint(e){return this.segments.some((t=>YJ(t,e)))}intersectsCircle(e){return this.segments.some((t=>NJ(e,t)))}intersectsLine(e){const t=zH(e);return this.segments.some((e=>VJ(e,t)))}intersectsRect(e){const t=OH(e);return this.segments.some((e=>GJ(t,e)))}intersectsPolygon(e){return this.segments.some((t=>FJ(e,t)))}intersectsGeoPolygon(e){return this.segments.some((t=>ZJ(e,t)))}points(){return this._points}}const t5=BG();function n5(e,t){return t5.get(e)(t)}t5.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new G2(...t)})),t5.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new V2(...t)})),t5.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Y2(...t)})),t5.add("polygon",K2),t5.add("geopolygon",Q2),t5.add("polyline",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new e5(...t)}));class r5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.geometries=[],e.forEach((e=>{const t=n5(e.type,e);t&&this.geometries.push(t)}))}containsPoint(e){return this.geometries.some((t=>t.containsPoint(e)))}intersectsLine(e){return this.geometries.some((t=>t.intersectsLine(e)))}intersectsRect(e){return this.geometries.some((t=>t.intersectsRect(e)))}intersectsCircle(e){return this.geometries.some((t=>t.intersectsCircle(e)))}intersectsPolygon(e){return this.geometries.some((t=>t.intersectsPolygon(e)))}intersectsGeoPolygon(e){return this.geometries.some((t=>t.intersectsGeoPolygon(e)))}}class o5{constructor(){this._elements=[[1,0,0],[0,1,0],[0,0,1]],this._stack=[]}clone(){return(new o5).multiply(this)}set(e){return this._elements=e,this}save(){return this._stack.push(this.elements),this}restore(){return this._stack.length&&(this._elements=this._stack.pop()),this}add(e){let t,n;for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]+=e;return this}translate(e,t){return this.multiply([[1,0,e],[0,1,t],[0,0,1]]),this}rotate(e){let t=Math.cos(-e),n=Math.sin(-e);return this.multiply([[t,n,0],[-n,t,0],[0,0,1]]),this}multiply(e){let t,n,r,o;if(e instanceof o5&&(e=e._elements),Array.isArray(e)){for(r=[[0,0,0],[0,0,0],[0,0,0]],t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)for(o=0;o<3;o++)r[t][n]+=this._elements[t][o]*e[o][n];this._elements=r}else for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]*=e;return this}scale(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.multiply([[e,0,0],[0,t,0],[0,0,1]]),this}transform(e,t,n,r,o,i){return this.multiply([[e,n,o],[t,r,i],[0,0,1]]),this}determinant(){let e=this._elements[0][0],t=this._elements[0][1],n=this._elements[0][2],r=this._elements[1][0],o=this._elements[1][1],i=this._elements[1][2],a=this._elements[2][0],s=this._elements[2][1],l=this._elements[2][2],u=0;return u=e*o*l+t*i*a+n*r*s-n*o*a-t*r*l-e*i*s,u}invert(){let e=this.determinant(),t=this._elements[0][0],n=this._elements[0][1],r=this._elements[0][2],o=this._elements[1][0],i=this._elements[1][1],a=this._elements[1][2],s=this._elements[2][0],l=this._elements[2][1],u=this._elements[2][2];return this._elements=[[i*u-a*l,r*l-n*u,n*a-r*i],[a*s-o*u,t*u-r*s,r*o-t*a],[o*l-i*s,s*n-t*l,t*i-n*o]],this.multiply(1/e),this}transpose(){const e=Object.create(this._elements);return this._elements=[[e[0][0],e[1][0],e[2][0]],[e[0][1],e[1][1],e[2][1]],[e[0][2],e[1][2],e[2][2]]],this}identity(){return this._elements=[[1,0,0],[0,1,0],[0,0,1]],this}toString(){return"".concat(this._elements.map((e=>e.join("\t"))).join("\n"))}isIdentity(){const e=this._elements;return 1===e[0][0]&&0===e[0][1]&&0===e[0][2]&&0===e[1][0]&&1===e[1][1]&&0===e[1][2]&&0===e[2][0]&&0===e[2][1]&&1===e[2][2]}transformPoint(e){let t,n,r=[e.x,e.y,1],o=this._elements,i=[0,0,0];for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)i[t]+=r[n]*o[t][n];return{x:i[0],y:i[1]}}transformPoints(e){let t,n,r,o,i,a=this._elements,s=[];for(o=0;o<e.length;o++){for(t=[e[o].x,e[o].y,1],i=[0,0,0],n=0;n<this._elements.length;n++)for(r=0;r<this._elements[n].length;r++)i[n]+=t[r]*a[n][r];s.push({x:i[0],y:i[1]})}return s}get elements(){const e=this._elements;return[[e[0][0],e[0][1],e[0][2]],[e[1][0],e[1][1],e[1][2]],[e[2][0],e[2][1],e[2][2]]]}}const i5=/(translate|scale|rotate|matrix)\(([0-9,.eE+-\s]+)(?:,|\s?)+\)/g;function a5(e,t){const n=t.args[0]*(Math.PI/180);if(t.args.length>2){const r=t.args[1],o=t.args[2];e.translate(r,o),e.rotate(n),e.translate(-r,-o)}else 1===t.args.length&&e.rotate(n)}function s5(e,t){const n=t.args[0],r=isNaN(t.args[1])?t.args[0]:t.args[1];e.scale(n,r)}function l5(e,t){const n=t.args[0],r=isNaN(t.args[1])?0:t.args[1];e.translate(n,r)}function u5(e,t){t.args.length>=6&&e.transform(...t.args)}function c5(e,t){const n=function(e){let t,n=[];for(;null!==(t=i5.exec(e));){const e=t[2].trim(),r=-1===e.indexOf(",")?e.split(" "):e.split(",");n.push({cmd:t[1],args:r.filter((e=>e.trim().length>0)).map((e=>Number(e)))})}return n}(e);let r;for(let e=0,o=n.length;e<o;e++)r=n[e],"rotate"===r.cmd?a5(t,r):"scale"===r.cmd?s5(t,r):"matrix"===r.cmd?u5(t,r):"translate"===r.cmd&&l5(t,r)}const d5={type:/^\w[\w-]+/,attr:/^\[\w(?:[\w\._-]+)?(?:[!]?=['\"][\w\s*#_-]*['\"])?\]/,universal:/^(\*)/,tag:/^\.(\w+)/},p5={type:(e,t)=>t.filter((t=>{const n=t.type;return!!n&&n.toLowerCase()===e.toLowerCase()})),attr:(e,t,n,r)=>r.filter((r=>{const o=r.attrs[e];if(!t)return void 0!==o;if(void 0===o)return!1;switch(t){case"=":return n===String(o);case"!=":return n!==String(o);default:return!1}})),universal:e=>e,tag:(e,t)=>t.filter((t=>{const n=t.tag;return!!n&&-1!==n.trim().split(/\s+/).indexOf(e.replace(".",""))}))};function f5(e,t){if(!t||!t.length||!e||"function"!=typeof p5[e.type])return[];switch(e.type){case"type":case"tag":return p5[e.type](e.value,t);case"attr":return p5[e.type](e.attribute,e.operator,e.attributeValue,t);case"universal":return p5[e.type](t);default:return[]}}var h5={find:function(e,t){const n=[],r=[];let o,i;if(t.isBranch){let a;o=function(e){const t=[];let n,r,o,i;return e.split(/\s*,\s*/).forEach((e=>{e=e.trim(),n=[];const a=t=>{o=e.match(d5[t]),o&&(i=!0,e=e.slice(o[0].length),r={type:t,value:o[0]},"attr"===t&&(o=o[0].match(/\[(\w[\w\._-]+)?(?:([!]?=)['\"]([\w\s#_-]*)['\"])?\]/),r.attribute=o[1],r.operator=o[2],r.attributeValue=o[3]),n.push(r))};for(;e&&(i=!1,o=e.match(/^\s*([>+~]|\s)\s*/),o&&(i=!0,n.push({type:" ",value:o[0]}),e=e.slice(o[0].length)),Object.keys(d5).forEach(a),n&&n.length&&t.indexOf(n)<0&&t.push(n),i););})),t}(e),i=t.descendants;for(let e=0,t=o.length;e<t;e++){a=o[e];const t=[];let n=i.slice(),s=!1;a.reverse().forEach((e=>{if(" "===e.type)return t.push(n),n=i.slice(),void(s=!1);n=f5(e,n),s=!0})),s&&t.push(n);const l=t[0].filter((e=>{let n,r=e.parent;for(let e=1;e<t.length;e++){for(n=t[e].indexOf(r);r&&n<0;)r=r.parent,n=t[e].indexOf(r);if(n<0)return!1}return!0}));r.push(l)}for(let e=0,t=r.length;e<t;e++)for(let t=0,o=r[e].length;t<o;t++)n.indexOf(r[e][t])<0&&n.push(r[e][t])}return n||[]}};function m5(e,t,n){const r=e.type;let o=e.points();n&&(o=o.every((e=>Array.isArray(e)))?o.map((e=>n.transformPoints(e))):n.transformPoints(o)),function(e,t){for(let n=0,r=e.length;n<r;n++)e[n].x/=t,e[n].y/=t}(o,t);let i=null;if("rect"===r||"bounds"===r)i=OH(o),i.type=r;else if("circle"===r)i=function(e,t){return{cx:e[0].x,cy:e[0].y,r:t}}(o,e.r),i.type=r;else if("line"===r)i=zH(o),i.type=r;else if("polygon"===r||"polyline"===r){i={type:"path",d:rJ(o,"polygon"===r)}}else if("geopolygon"===r){let e="";for(let t=0;t<o.length;t++)e+=rJ(o[t],!0);i={type:"path",d:e}}return i}class g5{constructor(e){this._bounds=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{x:n,y:r,width:o,height:i}=e.boundingRect?e.boundingRect(t):{x:0,y:0,width:0,height:0};return{x:n,y:r,width:o,height:i}},this._attrs=e.attrs,this._type=e.type,this._data=e.data,this._dpi=e.stage?e.stage.dpi:1,this._collider=()=>function(e,t){if(e.collider){const n=e.modelViewMatrix;return"collection"===e.colliderType?{type:"container",children:e.collider.geometries.map((e=>m5(e,t,n)))}:m5(e.collider,t,n)}return null}(e,this._dpi),this._desc=e.desc,this._tag=e.tag,this._children=()=>e.children.map((e=>new g5(e))),this._parent=()=>e.parent?new g5(e.parent):null,this._cache={elementBoundingRect:null},this._getElementBoundingRect=()=>(!this._cache.elementBoundingRect&&this.element&&(this._cache.elementBoundingRect=this.element.getBoundingClientRect()),this._cache.elementBoundingRect||{left:0,top:0})}get children(){return this._children()}get parent(){return this._parent()}get type(){return this._type}get data(){return this._data}get attrs(){return this._attrs}set element(e){this._cache.elementBoundingRect=null,this._element=e}get element(){return this._element}set key(e){this._key=e}get key(){return this._key}get bounds(){const e=this._bounds();return e.x/=this._dpi,e.y/=this._dpi,e.width/=this._dpi,e.height/=this._dpi,e}get localBounds(){return this._bounds(!1)}boundsRelativeTo(e){const t=typeof e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.bounds:this.localBounds,r=this._getElementBoundingRect();let o=r.left,i=r.top;if("object"===t&&null!==e&&"function"==typeof e.getBoundingClientRect){const{left:t=0,top:n=0}=e.getBoundingClientRect();o-=t,i-=n}return n.x+=o,n.y+=i,n}get collider(){return this._collider()}get desc(){return this._desc}get tag(){return this._tag}}function b5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new g5(...t)}class y5{constructor(e){this._node=b5(e),this._parent=null,this._input=null}get node(){return this._node}set parent(e){this._parent=e}get parent(){return this._parent}set input(e){this._input=e}get input(){return this._input}}function x5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new y5(...t)}function v5(e,t){const n=e.parent;if(n&&"stage"!==n.type){t.parent=x5(n);const e=n.parent;e&&"stage"!==e.type&&v5(e,t.parent)}}function _5(e,t,n){if(null===e.colliderType)return null;const r=function(e,t){let n={};if(e.modelViewMatrix)if(Array.isArray(t))n=e.inverseModelViewMatrix.transformPoints(t);else if(isNaN(t.r))Array.isArray(t.vertices)?n.vertices=e.inverseModelViewMatrix.transformPoints(t.vertices):n=e.inverseModelViewMatrix.transformPoint(t);else{const r={x:t.cx,y:t.cy};({x:n.cx,y:n.cy}=e.inverseModelViewMatrix.transformPoint(r)),n.r=t.r}else n=t;return Array.isArray(n.vertices)&&(n=n.vertices.every((e=>Array.isArray(e)))?Q2(n):K2(n)),n}(e,n);return"frontChild"===e.colliderType?function(e,t,n){for(let r=e.descendants.length-1;r>=0;r--){const o=e.descendants[r];if(null!==o.collider&&o.collider[t](n)){const e=x5(o);return v5(o,e),e}}return null}(e,t,r):function(e,t,n){if(e.collider[t](n)){const t=x5(e);return v5(e,t),t}return null}(e,t,r)}function w5(e,t,n,r){const o=e.length;for(let i=0;i<o;i++){const o=e[i],a=_5(o,t,r);a&&n.push(a),!o.children||a||o.collider||w5(o.children,t,n,r)}}function S5(e,t,n){const r=e.length;for(let o=0;o<r;o++){const r=e[o];if(null!==_5(r,t,n))return!0;if(r.children&&!r.collider)return S5(r.children,t,n)}return!1}function C5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;let n={};switch(NH(e)){case"circle":return n.cx=e.cx*t,n.cy=e.cy*t,n.r=e.r,["intersectsCircle",n];case"rect":return n=TH(e).map((e=>uJ(e,t))),["intersectsRect",n];case"line":return n=DH(e).map((e=>uJ(e,t))),["intersectsLine",n];case"point":return n=uJ(e,t),["containsPoint",n];case"polygon":return n.vertices=e.vertices.map((e=>uJ(e,t))),["intersectsPolygon",n];case"geopolygon":return n.vertices=e.vertices.map((e=>e.map((e=>uJ(e,t))))),["intersectsGeoPolygon",n];default:return[]}}function E5(e,t){const[n,r]=C5(t,e.dpi),o=[];return n&&(w5([e],n,o,r),function(e,t){for(let n=0,r=t.length;n<r;n++)t[n].input=e}(t,o)),o}function k5(e,t){const[n,r]=C5(t,e.dpi);return S5([e],n,r)}class R5 extends H2{constructor(e){super(e),this._stage=null,this._collider={type:null,definition:null,fn:null},this._attrs={},this._node=null}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.node=e;const{data:t,desc:n,tag:r,strokeReference:o,fillReference:i}=e;var a,s;a=this.attrs,s=e,Object.keys(nJ).forEach((e=>{const t=s[e];void 0!==t&&(a[nJ[e]]=t)})),void 0!==t&&(this.data=t),"object"==typeof n&&(this.desc=CH(!0,{},n)),"string"==typeof r&&(this.tag=r),"string"==typeof o&&(this.strokeReference=o),"string"==typeof i&&(this.fillReference=i)}findShapes(e){return h5.find(e,this).map((e=>b5(e)))}getItemsFrom(e){return E5(this,e)}containsPoint(e){return k5(this,e)}intersectsLine(e){return k5(this,e)}intersectsRect(e){return k5(this,e)}intersectsCircle(e){return k5(this,e)}intersectsPolygon(e){return k5(this,e)}intersectsGeoPolygon(e){return k5(this,e)}resolveLocalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o5;void 0!==this.attrs.transform&&c5(this.attrs.transform,e),this.modelViewMatrix=e.clone()}resolveGlobalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o5;const t=this.ancestors;if(t.length>0)for(let n=t.length-1;n>=0;n--)t[n].resolveLocalTransform(e),e=t[n].modelViewMatrix;this.resolveLocalTransform(e)}attr(e){return this.attrs[e]}equals(e){const t=this.attrs,n=Object.keys(t),r=e.attrs,o=Object.keys(r);if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){const o=n[e];if(!Object.hasOwnProperty.call(r,o))return!1;if(t[o]!==r[o])return!1}return super.equals(e)}toJSON(){const e=super.toJSON();return e.attrs=this.attrs,e}get attrs(){return this._attrs}get stage(){return this._parent&&!this._stage?this._stage=this._parent.stage:this._parent||this._stage===this||(this._stage=null),this._stage}set modelViewMatrix(e){this._mvm=e,this._imvm=null}get modelViewMatrix(){return this._mvm}get inverseModelViewMatrix(){return this._imvm=this._imvm?this._imvm:this._mvm.clone().invert(),this._imvm}set node(e){this._node=e}get node(){return this._node}set collider(e){const t=Array.isArray(e)?"collection":e&&e.type;return"string"!=typeof t?(this._collider.type=null,this._collider.definition=null,void(this._collider.fn=null)):null!==this._collider&&this._collider.type===t&&null!==this._collider.fn?(this._collider.fn.set(e),void(this._collider.definition=e)):(this._collider.type=t,void(this._collider.definition=e))}get collider(){if(null!==this._collider.fn)return this._collider.fn;switch(this._collider.type){case"collection":this._collider.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new r5(...t)}(this._collider.definition);break;case"frontChild":return!0;case"bounds":this._collider.fn=n5("rect",this.boundingRect());break;case"line":case"rect":case"circle":case"polygon":case"geopolygon":case"polyline":this._collider.fn=n5(this._collider.type,this._collider.definition);break;default:return null}return this._collider.fn}get colliderType(){return this._collider.type}}class M5 extends H2{addChild(e){if(!(e&&e instanceof H2))throw new TypeError("Expecting a Node as argument, but got ".concat(e));if(e===this)throw new Error("Can not add itself as child!");if(e._children&&e._children.length&&this.ancestors.indexOf(e)>=0)throw new Error("Can not add an ancestor as child!");return e._parent&&e._parent!==this&&e._parent.removeChild(e),this._children.push(e),e._parent=this,e._ancestors=null,this}addChildren(e){let t,n=e?e.length:0;for(t=0;t<n;t++)this.addChild(e[t]);return this}removeChild(e){const t=this._children.indexOf(e);return t>=0&&(this._children.splice(t,1),e._parent=null,e._ancestors=null),this}removeChildren(e){let t,n;if(!this._children)return this;if(e)for(n=e.length,t=0;t<n;t++)this.removeChild(e[t]);else for(;this._children.length;)this.removeChild(this._children[0]);return this}}const A5=M5.prototype;class I5 extends R5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const{collider:t}=e,n=CH({type:null},t);this.collider=n,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}appendChildRect(e,t){if(void 0!==e.bounds){const n=this.__boundingRect[t]||{},[r,,o]=e.bounds(t),{x:i,y:a}=r,{x:s,y:l}=o,u=isNaN(n.width)?s:Math.max(s,n.width+n.x),c=isNaN(n.height)?l:Math.max(l,n.height+n.y);n.x=isNaN(n.x)?i:Math.min(i,n.x),n.y=isNaN(n.y)?a:Math.min(a,n.y),n.width=u-n.x,n.height=c-n.y,this.__boundingRect[t]=n}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.children.length;for(let n=0;n<t;n++)this.appendChildRect(this.children[n],e);return this.__boundingRect[e]=CH({x:0,y:0,width:0,height:0},this.__boundingRect[e]),this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}addChild(e){const t=A5.addChild.call(this,e);if(this._collider&&"bounds"===this._collider.type){this.appendChildRect(e,!0);const t=CH({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}addChildren(e){const t=A5.addChildren.call(this,e),n=e.length;if(this._collider&&"bounds"===this._collider.type&&n>0){for(let t=0;t<n;t++)this.appendChildRect(e[t],!0);const t=CH({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;if(A5.removeChild.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=CH(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}removeChildren(e){if(A5.removeChildren.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=CH(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}}function L5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new I5(...t)}class P5 extends I5{constructor(e){super("stage"),this._stage=this,this._dpiRatio=e||1}get dpi(){return this._dpiRatio}}const D5=M5.prototype,T5=["x1","x2","y1","y2","id","offset","style"];class O5 extends R5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=T5.length;r!==o;r++)n=T5[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return D5.addChild.call(this,e)}addChildren(e){return D5.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return D5.removeChild.call(this,e),this}removeChildren(e){return D5.removeChildren.call(this,e),this}}function z5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new O5(...t)}const N5=M5.prototype,q5=["patternUnits","x","y","width","height","id"];class j5 extends R5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=q5.length;r!==o;r++)n=q5[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return N5.addChild.call(this,e)}addChildren(e){return N5.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return N5.removeChild.call(this,e),this}removeChildren(e){return N5.removeChildren.call(this,e),this}}class F5 extends R5{constructor(){super("rect"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,width:r=0,height:o=0,rx:i=0,ry:a=0,collider:s}=e,l=CH({type:"rect",x:t,y:n,width:r,height:o},s);super.set(e),r>=0?(this.attrs.x=t,this.attrs.width=r):(this.attrs.x=t+r,this.attrs.width=-r),o>=0?(this.attrs.y=n,this.attrs.height=o):(this.attrs.y=n+o,this.attrs.height=-o),i>0&&(this.attrs.rx=i),a>0&&(this.attrs.ry=a),this.collider=l,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=TH(this.attrs),n=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(t):t,[r,o,i,a]=PH(n);return this.__boundingRect[e]={x:r,y:o,width:i-r,height:a-o},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}class B5 extends R5{constructor(){super("circle"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cx:t=0,cy:n=0,r:r=0,collider:o}=e,i=CH({type:"circle",cx:t,cy:n,r:r},o);super.set(e),this.attrs.cx=t,this.attrs.cy=n,this.attrs.r=r,this.collider=i,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.bounds(e);return this.__boundingRect[e]={x:t[0].x,y:t[0].y,width:t[2].x-t[0].x,height:t[2].y-t[0].y},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const{cx:t,cy:n,r:r,r:o}=this.attrs,i=t-r,a=n-o;let s=2*r,l=2*o,u=[{x:i,y:a},{x:i+s,y:a},{x:i+s,y:a+l},{x:i,y:a+l}];if(e&&this.modelViewMatrix){u=this.modelViewMatrix.transformPoints(u);const[t,n,r,o]=PH(u);s=r-t,l=o-n,this.__bounds[e]=[{x:t,y:n},{x:t+s,y:n},{x:t+s,y:n+l},{x:t,y:n+l}]}else this.__bounds[e]=u;return this.__bounds[e]}}class $5 extends R5{constructor(){super("line"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x1:t=0,y1:n=0,x2:r=0,y2:o=0,collider:i}=e;super.set(e),this.attrs.x1=t,this.attrs.y1=n,this.attrs.x2=r,this.attrs.y2=o;const a={type:"line",x1:t,y1:n,x2:r,y2:o};this.collider=CH(a,i),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];let t=DH(this.attrs);e&&this.modelViewMatrix&&(t=this.modelViewMatrix.transformPoints(t));const[n,r,o,i]=PH(t),a=n!==o||r!==i;return this.__boundingRect[e]={x:n,y:r,width:a?Math.max(1,o-n):0,height:a?Math.max(1,i-r):0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}const W5=Math.PI/2;function H5(e,t){const n=Math.atan2(t.y-e.y,t.x-e.x);return n<0?n+2*Math.PI:n}function G5(e,t,n){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}const V5={step:function(e){return new OG(e,.5)},stepAfter:function(e){return new OG(e,1)},stepBefore:function(e){return new OG(e,0)},linear:pG,basis:function(e){return new vG(e)},cardinal:SG.tension(0),catmullRom:EG,monotonex:function(e){return new IG(e)},monotoney:function(e){return new LG(e)},natural:function(e){return new DG(e)}};function Y5(e){if(e.length<2)return!1;const t=e[0],n=e[e.length-1];return Math.abs(t.x-n.x)<1e-12&&Math.abs(t.y-n.y)<1e-12}class U5 extends R5{constructor(){super("path"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super.set(e),this.segments=[],this.points=[],e.arcDatum){const t=cG();t.innerRadius(e.desc.slice.innerRadius),t.outerRadius(e.desc.slice.outerRadius),t.cornerRadius(e.desc.slice.cornerRadius);const n=t(e.arcDatum);this.attrs.d=n}else if(e.points){const{major:t,minor:n,layerObj:r,points:o,stngs:i,generatorType:a}=e,s=mG(),l=i.coordinates?i.coordinates.defined:null;s[t.p]((e=>e.major*t.size))["".concat(n.p,"1")]((e=>e.minor*n.size))["".concat(n.p,"0")]((e=>e.minor0*n.size)).curve(V5["monotone"===r.curve?"monotone".concat(t.p):r.curve]),l?s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)&&e.defined)):s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)));const u=i.connect?o.filter(s.defined()):o,c=("area"===a?s:s[a]())(u);this.attrs.d=c}else e.d&&(this.attrs.d=e.d);if(this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null},Array.isArray(e.collider)||"object"==typeof e.collider&&void 0!==e.collider.type)this.collider=e.collider;else if(this.attrs.d){if(this.segments=B2(this.attrs.d),this.segments.length>1&&this.segments.every((e=>Y5(e))))return void(this.collider=CH({type:"geopolygon",vertices:this.segments},e.collider));this.segments.forEach((t=>{if(t.length<=1);else if(Y5(t))this.collider=CH({type:"polygon",vertices:t},e.collider);else if("object"==typeof e.collider&&e.collider.visual){const n=this.attrs["stroke-width"]/2;this.collider=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=[],o=[];if("h"===n.forceOrientation){const t=e[0].x<e[1].x?-1:1,n=e[e.length-1].x>e[e.length-2].x?1:-1;e.unshift({x:e[0].x+t,y:e[0].y}),e.push({x:e[e.length-1].x+n,y:e[e.length-1].y})}else if("v"===n.forceOrientation){const t=e[0].y<e[1].y?-1:1,n=e[e.length-1].y>e[e.length-2].y?1:-1;e.unshift({x:e[0].x,y:e[0].y+t}),e.push({x:e[e.length-1].x,y:e[e.length-1].y+n})}const i=e.length-1;for(let n=1;n<i;n++){const a=e[n-1],s=e[n],l=e[n+1],u=H5(s,a),c=H5(s,l),d=(u+c)/2,p=d+Math.PI,f=Math.max(d,p),h=Math.min(d,p),m=u>c;if(1===n){const e=H5(a,s);r.push(G5(a,e-W5,t)),o.unshift(G5(a,e+W5,t))}const g=m?f:h,b=m?h:f;if(r.push(G5(s,g,t)),o.unshift(G5(s,b,t)),n===i-1){const e=H5(l,s);r.push(G5(l,e+W5,t)),o.unshift(G5(l,e-W5,t))}}return{type:"polygon",vertices:[...r,...o]}}(t,n,e.collider)}else this.collider=CH({type:"polyline",points:t},e.collider)}))}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];this.points.length||(this.segments=this.segments.length?this.segments:B2(this.attrs.d),this.points=function(e){const t=[];let n,r=e.length;for(let o=0;o<r;o++){n=e[o];for(let e=0;e<n.length;e++)t.push(n[e])}return t}(this.segments));const t=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(this.points):this.points,[n,r,o,i]=PH(t);return this.__boundingRect[e]={x:n||0,y:r||0,width:o-n||0,height:i-r||0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}function K5(e){let{data:t,_boundingRect:n,_textBoundsFn:r}=e;return null!=t&&(n||r)}let X5=class extends R5{constructor(){super("text"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,dx:r=0,dy:o=0,textBoundsFn:i,text:a,title:s,collider:l,boundingRect:u,ellipsed:c}=e;super.set(e),this.attrs.x=t,this.attrs.y=n,this.attrs.dx=r,this.attrs.dy=o,this.attrs.text=a,void 0!==s&&(this.attrs.title=String(s)),"object"==typeof u?this._textBoundsFn=()=>u:"function"==typeof i&&(this._textBoundsFn=i),"string"==typeof c&&(this.ellipsed=c),this.collider=CH({type:K5(this)?"bounds":null},l),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[t])return this.__boundingRect[t];if("function"!=typeof this._textBoundsFn)return{x:0,y:0,width:0,height:0};e=this._textBoundsFn(this.attrs);const n=TH(e),r=t&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(n):n,[o,i,a,s]=PH(r);return this.__boundingRect[t]={x:o,y:i,width:a-o,height:s-i},this.__boundingRect[t]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}};const J5=BG();function Z5(e,t){return J5.get(e)(t)}J5.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new F5(...t)})),J5.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new B5(...t)})),J5.add("text",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new X5(...t)})),J5.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new $5(...t)})),J5.add("path",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new U5(...t)})),J5.add("stage",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new P5(...t)})),J5.add("container",L5),J5.add("defs",L5),J5.add("linearGradient",z5),J5.add("radialGradient",z5),J5.add("conicGradient",z5),J5.add("stop",z5),J5.add("pattern",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new j5(...t)}));const Q5=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[{}];function n(){return t[t.length-1]}return n.save=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=n(),i={};let a="";for(let t=0;t<e.length;t++)a=e[t],void 0!==o[a]&&(i[a]=o[a]);return CH(i,r),t.push(i),n()},n.restore=function(){t.splice(t.length-1,1)},n}(["stroke","fill","strokeWidth","opacity","fontFamily","fontSize","baseline"]);function e3(e,t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n](e)}function t3(e,t,n){e.node=n[t],e.index=t}function n3(e,t,n,r){let o=!1;const i={siblings:e,node:null,index:0};for(let a=0,s=e.length;a<s;a++){if(t3(i,a,e),e3(i,r.create),o="function"==typeof i.node.disabled?i.node.disabled():i.node.disabled,o)continue;i.node=Q5.save(i.node);const s=Z5(i.node.type,i.node);s&&(i.node.transform&&(n.save(),c5(i.node.transform,n)),n.isIdentity()||(s.modelViewMatrix=n.clone()),t.addChild(s),i.node.children&&n3(i.node.children,s,n,r),i.node.transform&&n.restore()),Q5.restore()}}function r3(e){let{items:t,stage:n,dpi:r,on:o={}}=e;return n||(n=Z5("stage",r)),n3(t,n,new o5,o),n}function o3(e,t,n){const{orientation:r,degree:o,stops:i=[]}=n;let a=null;if("radial"===r){const n=t.boundingRect();a=e.createRadialGradient(n.x+n.width/2,n.y+n.height/2,1e-5,n.x+n.width/2,n.y+n.height/2,Math.max(n.width,n.height)/2)}else if("conic"===r){const t=n.startAngle||0,r=n.x||0,o=n.y||0;a=e.createConicGradient(t,r,o)}else{const r=aJ(o);["x1","x2","y1","y2"].forEach((e=>{e in n&&(r[e]=n[e])}));const i=t.boundingRect();a=e.createLinearGradient(i.x+r.x1*i.width,i.y+r.y1*i.height,i.x+r.x2*i.width,i.y+r.y2*i.height)}for(let e=0,t=i.length;e<t;e++){let t=i[e];a.addColorStop(t.offset,t.color)}return a}function i3(e,t,n){return t.width=e.width,t.height=e.height,n.save(),n.fillStyle=e.fill,e.shapes.forEach((e=>{if("rect"===e.type)n.rect(e.x,e.y,e.width,e.height)})),n.fill(),n.restore(),n.createPattern(t,"repeat")}function a3(){let{x:e,y:t,width:n,height:r,scaleRatio:o,margin:i,edgeBleed:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0},edgeBleed:{left:0,right:0,top:0,bottom:0,bool:!1}};return s.x=isNaN(e)?s.x:e,s.y=isNaN(t)?s.y:t,s.width=isNaN(n)?s.width:n,s.height=isNaN(r)?s.height:r,void 0!==o&&(s.scaleRatio.x=isNaN(o.x)?s.scaleRatio.x:o.x,s.scaleRatio.y=isNaN(o.y)?s.scaleRatio.y:o.y),void 0!==i&&(s.margin.left=isNaN(i.left)?0:i.left,s.margin.top=isNaN(i.top)?0:i.top),"object"==typeof a&&["left","right","top","bottom"].forEach((e=>{!isNaN(a[e])&&a[e]>0&&(s.edgeBleed[e]=a[e],s.edgeBleed.bool=!0)})),s.computedPhysical={x:Math.round(s.margin.left+(s.x-s.edgeBleed.left)*s.scaleRatio.x),y:Math.round(s.margin.top+(s.y-s.edgeBleed.top)*s.scaleRatio.y),width:Math.round((s.width+s.edgeBleed.left+s.edgeBleed.right)*s.scaleRatio.x),height:Math.round((s.height+s.edgeBleed.top+s.edgeBleed.bottom)*s.scaleRatio.y)},s}function s3(){const e={element:()=>{},root:()=>{},settings:()=>{},appendTo:()=>{},getScene:()=>[],render:()=>!1,itemsAt:()=>[],findShapes:()=>[],clear:()=>{},destory:()=>{},size:()=>{},measureText:D1,textBounds:O1,setKey:t=>{e.element().setAttribute("data-key",t)}};return e}function l3(e){return t=>{let{node:n}=t;"text"!==n.type||null==n.data||n.textBoundsFn||(n.textBoundsFn=e.textBounds)}}const u3=200,c3=200;class d3{constructor(e){this.targetCanvas=e,this.bufferCanvas=e.cloneNode()}updateSize(e){let t,{rect:n,dpiRatio:r,canvasBufferSize:o}=e;t=o?"function"==typeof o?o(n):o:{width:n.computedPhysical.width+2*u3,height:n.computedPhysical.height+2*c3},this.bufferCanvas.style.width="".concat(t.width,"px"),this.bufferCanvas.style.height="".concat(t.height,"px"),this.bufferCanvas.width=Math.round(t.width*r),this.bufferCanvas.height=Math.round(t.height*r)}apply(){this.targetCanvas.getContext("2d").drawImage(this.bufferCanvas,0,0)}clear(){this.bufferCanvas.width=this.bufferCanvas.width}getContext(){return this.bufferCanvas.getContext("2d")}}const p3=BG();function f3(e){return Array.isArray(e)?e:"string"==typeof e?-1!==e.indexOf(",")?e.split(","):e.split(" "):[]}function h3(e){return("undefined"==typeof window?1:window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}function m3(e,t){t.setTransform(e[0][0],e[1][0],e[0][1],e[1][1],e[0][2],e[1][2])}function g3(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Object.keys(r);for(let o=0,i=n.length;o<i;o++){let i=n[o];const a=i[0],s=i[1],l=i[2];if(a in t.attrs&&!(s in r)&&e[s]!==t.attrs[a]){const n=l?l(t.attrs[a]):t.attrs[a];"function"==typeof e[s]?e[s](n):e[s]=n}}for(let t=0,n=o.length;t<n;t++){const n=o[t];e[n]=r[n]}}function b3(e,t,n,r){for(let o=0,i=e.length;o<i;o++){let i=e[o],a={};t.save(),i.attrs&&(i.attrs.fill||i.attrs.stroke)&&(i.attrs.fill&&"object"==typeof i.attrs.fill&&"gradient"===i.attrs.fill.type?a.fillStyle=o3(t,i,i.attrs.fill):i.attrs.fill&&"object"==typeof i.attrs.fill&&"pattern"===i.attrs.fill.type&&(a.fillStyle=r.patterns.create(i.attrs.fill)),i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"gradient"===i.attrs.stroke.type?a.strokeStyle=o3(t,i,i.attrs.stroke):i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"pattern"===i.attrs.stroke.type&&(a.strokeStyle=r.patterns.create(i.attrs.stroke))),g3(t,i,n,a),i.modelViewMatrix&&m3(i.modelViewMatrix.elements,t),p3.has(i.type)&&p3.get(i.type)(i.attrs,{g:t,doFill:"fill"in i.attrs&&"none"!==i.attrs.fill,doStroke:"stroke"in i.attrs&&0!==i.attrs["stroke-width"],ellipsed:i.ellipsed}),i.children&&b3(i.children,t,n,r),t.restore()}}function y3(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r3;const r={transform:void 0,canvasBufferSize:void 0,progressive:void 0};let o,i=!1,a=a3();const s=[["fill","fillStyle"],["stroke","strokeStyle"],["opacity","globalAlpha"],["globalAlpha","globalAlpha"],["stroke-width","lineWidth"],["stroke-linejoin","lineJoin"],["stroke-dasharray","setLineDash",f3]];let l;const u=s3();return u.element=()=>e,u.root=()=>e,u.settings=e=>(e&&Object.keys(r).forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r),u.appendTo=n=>(e||(e=n.ownerDocument.createElement("canvas"),e.style.position="absolute",e.style["-webkit-font-smoothing"]="antialiased",e.style["-moz-osx-font-smoothing"]="antialiased",e.style.pointerEvents="none"),"function"!=typeof r.transform||t||(t=new d3(e)),n.appendChild(e),e),u.getScene=r=>{const o=h3(t&&t.getContext()||e.getContext("2d")),i=a.scaleRatio.x,s=a.scaleRatio.y,l={type:"container",children:r,transform:a.edgeBleed.bool?"translate(".concat(a.edgeBleed.left*o*i,", ").concat(a.edgeBleed.top*o*s,")"):""};return 1===o&&1===i&&1===s||(l.transform+="scale(".concat(o*i,", ").concat(o*s,")")),n({items:[l],dpi:o,on:{create:[S1(u.measureText),l3(u)]}})},u.render=n=>{if(!e)return!1;l||(l=function(e){const t=e.createElement("canvas"),n=t.getContext("2d");let r={};return{create(e){const o=e.key;return o?(r[o]=r[o]||i3(e,t,n),r[o]):i3(e,t,n)},clear(){r={}}}}(e.ownerDocument));const c=t&&t.getContext()||e.getContext("2d"),d=h3(c),p=t&&r.transform();if(p)return e.width=e.width,function(e){let{el:t,dpiRatio:n,transform:r}=e;if("object"==typeof r){const e=[r.horizontalScaling,r.horizontalSkewing,r.verticalSkewing,r.verticalScaling,r.horizontalMoving*n,r.verticalMoving*n];t.getContext("2d").setTransform(...e)}}({el:e,dpiRatio:d,transform:p}),t.apply(),!0;i&&(e.style.left="".concat(a.computedPhysical.x,"px"),e.style.top="".concat(a.computedPhysical.y,"px"),e.style.width="".concat(a.computedPhysical.width,"px"),e.style.height="".concat(a.computedPhysical.height,"px"),e.width=Math.round(a.computedPhysical.width*d),e.height=Math.round(a.computedPhysical.height*d),t&&t.updateSize({rect:a,dpiRatio:d,canvasBufferSize:r.canvasBufferSize}));const f=u.getScene(n),h=!o||!f.equals(o);l.clear();const m=i||h,g="function"==typeof r.progressive&&r.progressive();return m&&(g&&!g.isFirst||u.clear(),b3(f.children,c,s,{patterns:l})),t&&(e.width=e.width,t.apply()),i=!1,g&&!g.isFirst&&f.children.unshift(...o.children),o=f,m},u.itemsAt=e=>o?o.getItemsFrom(e):[],u.findShapes=e=>o?o.findShapes(e):[],u.clear=()=>(e&&(e.width=e.width),t&&t.clear(),o=null,u),u.size=e=>{if(e){const t=a3(e);JSON.stringify(a)!==JSON.stringify(t)&&(i=!0,a=t)}return a},u.destroy=()=>{e&&(e.parentElement&&e.parentElement.removeChild(e),e=null),t&&(t=null),o=null},u}function x3(e,t){p3.add(e,t)}function v3(e,t){return Math.max(0,Math.min(e,t))}const _3=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),w3=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),S3=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function C3(e){return _3.test(e)}function E3(e){return w3.test(e)||S3.test(e)}function k3(e){let t,n,r=e?e.length:0;for(t=0;t<r;t++){if(n=e[t],C3(n))return"ltr";if(E3(n))return"rtl"}return"ltr"}const R3={start:"end",end:"start",center:"center",middle:"middle"};function M3(e,t){return"rtl"===t?R3[e]:e}function A3(e,t){const n=[];let r;const o=[],i=[],a=[];let s,l;const u=e=>e.id,c=(e,t)=>{let n;return n="object"==typeof e?"id"in e?e.id:t:e,{content:e,id:"".concat(n,"__").concat(e.type||"")}};e.isTree||(e=e.map(c)),t=t.map(c),s=e.map(u),l=t.map(u);for(let e=0,r=t.length;e<r;e++){-1===s.indexOf(t[e].id)?n.push(t[e]):i.push(t[e])}for(let t=0,n=e.length;t<n;t++){-1===l.indexOf(e[t].id)?o.push(e[t]):a.push(e[t])}for(let e=0,t=n.length;e<t;e++)n[e].content.children&&(n[e].diff=A3([],n[e].content.children),n[e].children=n[e].diff.updatedNew.concat(n[e].diff.added),n[e].children.isTree=!0);for(let e=0,t=i.length;e<t;e++)i[e].diff=A3(a[e].children||[],i[e].content.children||[]),i[e].object=a[e].object,i[e].children=i[e].diff.items;return r=i.concat(n),n.isTree=!0,o.isTree=!0,i.isTree=!0,a.isTree=!0,r.isTree=!0,{added:n,updatedNew:i,updatedOld:a,removed:o,items:r}}function I3(e,t,n){for(let r=0,o=e.length;r<o;r++)e[r].object=n(e[r].content.type,t)}function L3(e,t){for(let n=0,r=e.length;n<r;n++)null!==e[n].object&&void 0!==e[n].object&&(t(e[n].object),e[n].object=null)}function P3(e,t,n,r){let o;for(let i=0,a=e.length;i<a;i++)o=e[i],null!==o.object&&void 0!==o.object&&(n(o.object,o.content),o.diff&&(I3(o.diff.added,o.object,t),L3(o.diff.removed,r),P3(o.diff.items,t,n,r)))}function D3(e,t,n,r,o,i){const a=A3(e,t);return I3(a.added,n,r),L3(a.removed,i),P3(a.items,r,o,i),a.items}x3("rect",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),e.rx>0||e.ry>0?function(e,t,n,r,o,i,a){i=v3(r/2,i>0?i:a),a=v3(o/2,a>0?a:i),e.moveTo(t,n+a),e.lineTo(t,n+o-a),e.quadraticCurveTo(t,n+o,t+i,n+o),e.lineTo(t+r-i,n+o),e.quadraticCurveTo(t+r,n+o,t+r,n+o-a),e.lineTo(t+r,n+a),e.quadraticCurveTo(t+r,n,t+r-i,n),e.lineTo(t+i,n),e.quadraticCurveTo(t,n,t,n+a)}(n,e.x,e.y,e.width,e.height,e.rx,e.ry):n.rect(e.x,e.y,e.width,e.height),r&&n.fill(),o&&n.stroke()})),x3("circle",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),n.moveTo(e.cx+e.r,e.cy),n.arc(e.cx,e.cy,e.r,0,2*Math.PI,!1),r&&n.fill(),o&&n.stroke()})),x3("line",(function(e,t){let{g:n,doStroke:r}=t;n.beginPath(),n.moveTo(e.x1,e.y1),n.lineTo(e.x2,e.y2),r&&n.stroke()})),x3("path",(function(e,t){let{g:n,doStroke:r,doFill:o}=t;const i=new Path2D(e.d);o&&n.fill(i),r&&n.stroke(i)})),x3("text",(function(e,t){let{g:n,ellipsed:r,doStroke:o}=t;const i=r||C1(e,D1);n.font=[e["font-style"],e["font-weight"],e["font-size"],e["font-family"]].filter((e=>!!e)).join(" ");const a=k3(e.text);n.canvas.dir!==a&&(n.canvas.dir=a);const s=M3("middle"===e["text-anchor"]?"center":e["text-anchor"],n.canvas.dir);s&&n.textAlign!==s&&(n.textAlign=s);const l=E1(e);n.fillText(i,e.x+e.dx,e.y+e.dy+l),o&&n.strokeText(i,e.x+e.dx,e.y+e.dy+l)}));const T3="http://www.w3.org/2000/svg",O3=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Invalid type: ".concat(e));const n=t.ownerDocument.createElementNS(T3,"container"===e?"g":e);return t.appendChild(n),n},z3=e=>{e.parentNode&&e.parentNode.removeChild(e)},N3=(e,t)=>{if((e=>{switch(e.type){case"circle":return!isNaN(e.attrs.cx)&&!isNaN(e.attrs.cy)&&!isNaN(e.attrs.r);case"line":return!(isNaN(e.attrs.x1)||isNaN(e.attrs.y1)||isNaN(e.attrs.x2)||isNaN(e.attrs.y2));case"rect":return!(isNaN(e.attrs.x)||isNaN(e.attrs.y)||isNaN(e.attrs.width)||isNaN(e.attrs.height));case"text":return!isNaN(e.attrs.x)&&!isNaN(e.attrs.y);default:return!0}})(t)){for(const n in t.attrs)if("stroke"===n&&t.strokeReference)e.setAttribute("stroke",t.strokeReference);else if("fill"===n&&t.fillReference)e.setAttribute("fill",t.fillReference);else if("text"===n){e.setAttribute("style","white-space: pre"),e.textContent=t.ellipsed||C1(t.attrs,D1);const n=k3(t.attrs.text);"rtl"===n&&(e.setAttribute("direction","rtl"),e.setAttribute("dir","rtl"),e.setAttribute("text-anchor",M3(e.getAttribute("text-anchor"),n)))}else if("text"!==t.type||"dy"!==n&&"dominant-baseline"!==n)if("text"===t.type&&"title"===n&&t.attrs.title){const n=e.ownerDocument.createElementNS(T3,"title");n.textContent=t.attrs.title,e.appendChild(n)}else e.setAttribute(n,t.attrs[n]);else{const r=+e.getAttribute(n)||0;let o=0;o="dominant-baseline"===n?E1(t.attrs):t.attrs[n],e.setAttribute("dy",o+r)}if("string"==typeof t.data||"number"==typeof t.data||"boolean"==typeof t.data)e.setAttribute("data",t.data);else if("object"==typeof t.data&&null!==t.data)for(const n in t.data)"string"!=typeof t.data[n]&&"number"!=typeof t.data[n]&&"boolean"!=typeof t.data[n]||e.setAttribute("data-".concat(n),t.data[n])}};class q3{constructor(e,t,n,r){this.create=e,this.nodeCreator=t,this.nodeMaintainer=n,this.nodeDestroyer=r}render(e,t){return this.create([],e,t,this.nodeCreator,this.nodeMaintainer,this.nodeDestroyer)}}function j3(){return new q3(D3,O3,N3,z3)}function F3(e){let t,n,r,o=0;if(0===(e=JSON.stringify(e)).length)return o;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o&=o;return o}function B3(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r3;const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:j3)();let r,o,i,a=!1,s=a3();const l={transform:void 0,disableScreenReader:!1},u=s3(),c={type:"defs",children:[]},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F3,n={},r=Date.now();const o={onCreate(o){let i={};o.node&&"object"==typeof o.node.fill&&"pattern"===o.node.fill.type&&o.node.fill.shapes&&(i.fill=o.node.fill),o.node&&"object"==typeof o.node.stroke&&"pattern"===o.node.stroke.type&&o.node.stroke.shapes&&(i.stroke=o.node.stroke),Object.keys(i).forEach((a=>{let s="";const l=i[a],u=t(l),c="picasso-pattern-".concat(r,"-").concat(u);if("undefined"!=typeof window&&(s=window.location.href.split("#")[0]),!n[u]){const t={patternUnits:"userSpaceOnUse",x:0,y:0,width:l.width,height:l.height,type:"pattern",id:c,children:[],fill:l.fill};l.shapes.forEach((e=>{t.children.push(e)})),e.push(t),n[u]=!0}o.node["".concat(a,"Reference")]="url('".concat(s,"#").concat(c,"')")}))},clear(){n={}}};return o}(c.children),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F3,n={},r=Date.now();const o={getOrCreateGradient(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=t(o[i]),l="picasso-gradient-".concat(r,"-").concat(s);if(!n[s]){let{orientation:t,degree:r,stops:a=[]}=o[i],u={};void 0===r&&(r=90),"radial"===t?u.type="radialGradient":(u=aJ(r),["x1","x2","y1","y2"].forEach((e=>{e in o[i]&&(u[e]=o[i][e])})),u.type="linearGradient"),u.id=l,u.children=a.map((e=>{let{offset:t,color:n,opacity:r}=e;return{type:"stop",offset:"".concat(100*t,"%"),style:"stop-color:".concat(n,";stop-opacity:").concat(void 0!==r?r:1)}})),e.push(u),n[s]=l}return"url('".concat(a,"#").concat(l,"')")},onCreate(e){let t="";"undefined"!=typeof window&&(t=window.location.href.split("#")[0]);const n=e.node;n.fill&&"object"==typeof n.fill&&"gradient"===n.fill.type&&(n.fillReference=o.getOrCreateGradient(n,"fill",t)),n.stroke&&"object"==typeof n.stroke&&"gradient"===n.stroke.type&&(n.strokeReference=o.getOrCreateGradient(n,"stroke",t))},clear(){n={}}};return o}(c.children);return u.element=()=>r,u.root=()=>o,u.settings=e=>(e&&Object.keys(l).forEach((t=>{void 0!==e[t]&&(l[t]=e[t])})),l),u.appendTo=t=>(r||(r=t.ownerDocument.createElementNS(e,"svg"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none",r.setAttribute("xmlns",e),o=t.ownerDocument.createElementNS(e,"g"),o.style.pointerEvents="auto",r.appendChild(o)),t.appendChild(r),r),u.getScene=e=>{const n=s.scaleRatio.x,r=s.scaleRatio.y,o={type:"container",children:Array.isArray(e)?[...e,c]:e,transform:s.edgeBleed.bool?"translate(".concat(s.edgeBleed.left*n,", ").concat(s.edgeBleed.top*r,")"):""};return 1===n&&1===r||(o.transform+="scale(".concat(n,", ").concat(r,")")),t({items:[o],on:{create:[e=>{e.node.fillReference=void 0,e.node.strokeReference=void 0},p.onCreate,d.onCreate,S1(u.measureText),l3(u)]}})},u.render=e=>{if(!r)return!1;const t="function"==typeof l.transform&&l.transform();if(t){const{horizontalScaling:e,horizontalSkewing:n,verticalSkewing:r,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return o.style.transform="matrix(".concat(e,", ").concat(n,", ").concat(r,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}o.style.transform="";l.disableScreenReader&&r.setAttribute("aria-hidden",!0),a&&(r.style.left="".concat(s.computedPhysical.x,"px"),r.style.top="".concat(s.computedPhysical.y,"px"),r.setAttribute("width",s.computedPhysical.width),r.setAttribute("height",s.computedPhysical.height)),p.clear(),d.clear(),c.children.length=0;const f=u.getScene(e),h=!i||!f.equals(i),m=a||h;return m&&(u.clear(),n.render(f.children,o)),a=!1,i=f,m},u.itemsAt=e=>i?i.getItemsFrom(e):[],u.findShapes=e=>i?i.findShapes(e):[],u.clear=()=>{if(!o)return u;i=null;const e=o.cloneNode(!1);return r.replaceChild(e,o),o=e,u},u.destroy=()=>{r&&r.parentNode&&r.parentNode.removeChild(r),r=null,o=null},u.size=e=>{if(e){const t=a3(e);JSON.stringify(s)!==JSON.stringify(t)&&(a=!0,s=t)}return s},u}var $3,W3,H3,G3,V3,Y3,U3,K3={},X3=[],J3=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Z3(e,t){for(var n in t)e[n]=t[n];return e}function Q3(e){var t=e.parentNode;t&&t.removeChild(e)}function e6(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?$3.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return t6(e,a,r,o,null)}function t6(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++H3:o};return null==o&&null!=W3.vnode&&W3.vnode(i),i}function n6(e){return e.children}function r6(e,t){this.props=e,this.context=t}function o6(e,t){if(null==t)return e.__?o6(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?o6(e):null}function i6(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return i6(e)}}function a6(e){(!e.__d&&(e.__d=!0)&&G3.push(e)&&!s6.__r++||V3!==W3.debounceRendering)&&((V3=W3.debounceRendering)||Y3)(s6)}function s6(){var e,t,n,r,o,i,a,s;for(G3.sort(U3);e=G3.shift();)e.__d&&(t=G3.length,r=void 0,o=void 0,a=(i=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=Z3({},i)).__v=i.__v+1,g6(s,i,o,n.__n,void 0!==s.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?o6(i):a,i.__h),b6(r,i),i.__e!=a&&i6(i)),G3.length>t&&G3.sort(U3));s6.__r=0}function l6(e,t,n,r,o,i,a,s,l,u){var c,d,p,f,h,m,g,b=r&&r.__k||X3,y=b.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(f=n.__k[c]=null==(f=t[c])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?t6(null,f,null,null,f):Array.isArray(f)?t6(n6,{children:f},null,null,null):f.__b>0?t6(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=b[c])||p&&f.key==p.key&&f.type===p.type)b[c]=void 0;else for(d=0;d<y;d++){if((p=b[d])&&f.key==p.key&&f.type===p.type){b[d]=void 0;break}p=null}g6(e,f,p=p||K3,o,i,a,s,l,u),h=f.__e,(d=f.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,f),g.push(d,f.__c||h,f)),null!=h?(null==m&&(m=h),"function"==typeof f.type&&f.__k===p.__k?f.__d=l=u6(f,l,e):l=c6(e,f,p,b,h,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=o6(p))}for(n.__e=m,c=y;c--;)null!=b[c]&&("function"==typeof n.type&&null!=b[c].__e&&b[c].__e==n.__d&&(n.__d=d6(r).nextSibling),v6(b[c],b[c]));if(g)for(c=0;c<g.length;c++)x6(g[c],g[++c],g[++c])}function u6(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?u6(r,t,n):c6(n,r,r,o,r.__e,t));return t}function c6(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function d6(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=d6(n)))return r;return null}function p6(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||J3.test(t)?n:n+"px"}function f6(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||p6(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||p6(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?m6:h6,i):e.removeEventListener(t,i?m6:h6,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function h6(e){return this.l[e.type+!1](W3.event?W3.event(e):e)}function m6(e){return this.l[e.type+!0](W3.event?W3.event(e):e)}function g6(e,t,n,r,o,i,a,s,l){var u,c,d,p,f,h,m,g,b,y,x,v,_,w,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=W3.__b)&&u(t);try{e:if("function"==typeof C){if(g=t.props,b=(u=C.contextType)&&r[u.__c],y=u?b?b.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in C&&C.prototype.render?t.__c=c=new C(g,y):(t.__c=c=new r6(g,y),c.constructor=C,c.render=_6),b&&b.sub(c),c.props=g,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=C.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Z3({},c.__s)),Z3(c.__s,C.getDerivedStateFromProps(g,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==C.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(p,f,h)}))}if(c.context=y,c.props=g,c.__P=e,v=W3.__r,_=0,"prototype"in C&&C.prototype.render){for(c.state=c.__s,c.__d=!1,v&&v(t),u=c.render(c.props,c.state,c.context),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[]}else do{c.__d=!1,v&&v(t),u=c.render(c.props,c.state,c.context),c.state=c.__s}while(c.__d&&++_<25);c.state=c.__s,null!=c.getChildContext&&(r=Z3(Z3({},r),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(p,f)),S=null!=u&&u.type===n6&&null==u.key?u.props.children:u,l6(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=y6(n.__e,t,n,r,o,i,a,l);(u=W3.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),W3.__e(e,t,n)}}function b6(e,t){W3.__c&&W3.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){W3.__e(e,t.__v)}}))}function y6(e,t,n,r,o,i,a,s){var l,u,c,d=n.props,p=t.props,f=t.type,h=0;if("svg"===f&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,i[h]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),i=null,s=!1}if(null===f)d===p||s&&e.data===p||(e.data=p);else{if(i=i&&$3.call(e.childNodes),u=(d=n.props||K3).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||f6(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||f6(e,i,t[i],n[i],r)}(e,p,d,o,s),c)t.__k=[];else if(h=t.props.children,l6(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==f,i,a,i?i[0]:n.__k&&o6(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&Q3(i[h]);s||("value"in p&&void 0!==(h=p.value)&&(h!==e.value||"progress"===f&&!h||"option"===f&&h!==d.value)&&f6(e,"value",h,d.value,!1),"checked"in p&&void 0!==(h=p.checked)&&h!==e.checked&&f6(e,"checked",h,d.checked,!1))}return e}function x6(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){W3.__e(e,n)}}function v6(e,t,n){var r,o;if(W3.unmount&&W3.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||x6(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){W3.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&v6(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||Q3(e.__e),e.__=e.__e=e.__d=void 0}function _6(e,t,n){return this.constructor(e,n)}function w6(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createElement:t=document.createElement.bind(document)}=e;let n,r,o=a3();const i={transform:void 0,disableScreenReader:!1},a=s3();return a.element=()=>n,a.root=()=>n,a.settings=e=>(e&&Object.keys(i).forEach((t=>{void 0!==e[t]&&(i[t]=e[t])})),i),a.appendTo=e=>(n||(n=t("div"),n.style.position="absolute",n.style["-webkit-font-smoothing"]="antialiased",n.style["-moz-osx-font-smoothing"]="antialiased",n.style.pointerEvents="none"),e.appendChild(n),n),a.render=e=>{if(!n)return!1;const t="function"==typeof i.transform&&i.transform();if(t){const{horizontalScaling:e,horizontalSkewing:r,verticalSkewing:o,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return n.style.transform="matrix(".concat(e,", ").concat(r,", ").concat(o,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}n.style.transform="";let a;return i.disableScreenReader&&n.setAttribute("aria-hidden",!0),n.style.left="".concat(o.computedPhysical.x,"px"),n.style.top="".concat(o.computedPhysical.y,"px"),n.style.width="".concat(o.computedPhysical.width,"px"),n.style.height="".concat(o.computedPhysical.height,"px"),a=Array.isArray(e)?e6("div",null,e):e,r=function(e,t,n){var r,o,i;W3.__&&W3.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],g6(t,e=(!r&&n||t).__k=e6(n6,null,[e]),o||K3,K3,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?$3.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),b6(i,e)}(a,n,r),!0},a.renderArgs=[e6],a.clear=()=>{if(n){let e=n.firstChild;for(;e;)n.removeChild(e),e=n.firstChild;r=null}return a},a.destroy=()=>{n&&n.parentElement&&n.parentElement.removeChild(n),n=null,r=null},a.size=e=>(e&&(o=a3(e)),o),a}$3=X3.slice,W3={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},H3=0,r6.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Z3({},this.state),"function"==typeof e&&(e=e(Z3({},n),this.props)),e&&Z3(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),a6(this))},r6.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),a6(this))},r6.prototype.render=n6,G3=[],Y3="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U3=function(e,t){return e.__v.__b-t.__v.__b},s6.__r=0;var S6=[function(e){e.renderer("svg",B3)},function(e){e.renderer("canvas",y3)},function(e){e.renderer("dom",w6)}];const C6={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4};const E6=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(){let{level:e=C6.OFF,pipe:t=console}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;const r={[C6.OFF]:()=>{},[C6.ERROR]:function(){return t.error(...arguments)},[C6.WARN]:function(){return t.warn(...arguments)},[C6.INFO]:function(){return t.info(...arguments)},[C6.DEBUG]:function(){return t.log(...arguments)}},o=function(e){if(e&&!(n<e)){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];(r[e]||r[C6.DEBUG])(...o)}};return{log:o,error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.ERROR,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.WARN,...t)},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.INFO,...t)},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.DEBUG,...t)},level:e=>("number"==typeof e&&(n=e),n),LOG_LEVEL:C6}}(t.logger),o={component:BG(n.component,"component",r),data:BG(n.data,"data",r),formatter:BG(n.formatter,"formatter",r),interaction:BG(n.interaction,"interaction",r),renderer:MZ(n.renderer),scale:BG(n.scale,"scale",r),symbol:BG(n.symbol,"symbol",r),logger:r};function i(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e({palettes:t.palettes.concat(n.palettes||[]),style:CH({},t.style,n.style),logger:n.logger||t.logger,renderer:n.renderer||t.renderer},o)}return t.renderer&&t.renderer.prio&&o.renderer.default(t.renderer.prio[0]),i.use=function(e){return function(e){e(arguments.length>2?arguments[2]:void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o)},i.chart=e=>RZ(e,{registries:o,logger:r,style:t.style,palettes:t.palettes}),i.config=()=>t,Object.keys(o).forEach((e=>{i[e]=o[e]})),i.version=EH,i}({renderer:{prio:["svg","canvas"]},logger:{level:0},style:{"$font-family":"'Source Sans Pro', Arial, sans-serif","$font-size":"12px","$line-height":"16px","$font-size--l":"16px","$font-weight":"normal","$gray-100":"#ffffff","$gray-98":"#f9f9f9","$gray-95":"#f2f2f2","$gray-90":"#e6e6e6","$gray-35":"#595959","$gray-30":"#4d4d4d","$gray-25":"#404040","$gray-20":"#333333","$border-95":"rgba(255, 255, 255, 0.05)","$border-90":"rgba(255, 255, 255, 0.1)","$border-80":"rgba(255, 255, 255, 0.2)","$border-20":"rgba(0, 0, 0, 0.2)","$border-10":"rgba(0, 0, 0, 0.1)","$border-5":"rgba(0, 0, 0, 0.05)","$primary-blue":"#3F8AB3","$primary-green":"#6CB33F","$primary-red":"#DC423F","$primary-orange":"#EF960F","$spacing--s":4,$spacing:8,"$spacing--l":12,"$font-color":"$gray-35","$font-color--inverted":"$gray-90","$guide-color":"$gray-90","$guide-color--inverted":"$gray-35",$border:"$border-80","$border--inverted":"$border-10",$shape:{fill:"$primary-blue",strokeWidth:1,stroke:"$border"},"$shape-outline":{stroke:"$primary-blue",strokeWidth:2},"$shape-guide":{stroke:"$guide-color",strokeWidth:1},"$shape-guide--inverted":{"@extend":"$shape-guide",stroke:"$guide-color--inverted"},$label:{fontSize:"$font-size",fontFamily:"$font-family",fill:"$font-color"},"$label--inverted":{$extend:"$label",fill:"$font-color--inverted"},"$label-overlay":{fontSize:"$font-size--l",fontFamily:"$font-family",fill:"$gray-100",color:"$font-color",stroke:"$guide-color--inverted",strokeWidth:1,borderRadius:4},$title:{"@extend":"$label",fontSize:"$font-size--l",fontWeight:"$font-weight",stroke:"$guide-color--inverted",strokeWidth:0},"$guide-line":{strokeWidth:1,stroke:"$guide-color"},"$guide-line--minor":{strokeWidth:1,stroke:"$gray-95"},"$padding--s":{left:"$spacing--s",right:"$spacing--s",top:"$spacing--s",bottom:"$spacing--s"},$padding:{left:"$spacing",right:"$spacing",top:"$spacing",bottom:"$spacing"},"$selection-area-target":{fill:"$primary-green",strokeWidth:0,opacity:.2}},palettes:[{key:"categorical",colors:[["#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da"]]},{key:"diverging",colors:[["#3d52a1","#3a89c9","#77b7e5","#b4ddf7","#e6f5fe","#ffe3aa","#f9bd7e","#ed875e","#d24d3e","#ae1c3e"]]},{key:"sequential",colors:[["rgb(180,221,212)","rgb(34, 83, 90)"]]}]},{component:AZ,data:TZ,formatter:dU,interaction:OZ,renderer:MZ(),scale:pX,symbol:yJ});W2.forEach(E6.use),S6.forEach(E6.use),[].forEach(E6.use);const k6=E6();k6.use(mH),k6.renderer.prio(["canvas"]);const R6=(e,t)=>e&&"center"!==e&&"rtl"===t?Wq(e):e,M6=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:s}}}=tO(),{direction:l}=KT();return se.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[se.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:ej(e),alignItems:R6(r,l),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:se.jsx(vj,{representation:t,textStyle:n})}),se.jsx(e$,{padding:4/(s<=2?2:1),alignSelf:ej(e,!0),children:!!t.labelStructure&&yj(t.labelStructure)})]})},A6=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,I6=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>se.jsxs("span",{children:[se.jsx(aB,{...R$({href:e,text:t,interactions:r,color:o}),children:null!=n&&n.maskedValue?n.maskedValue:null==n?void 0:n.originalValue}),!!n&&A6(n)]}),L6=({children:e,textStyle:t,shouldEnableStickyText:n})=>se.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),P6=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=KT(),{isActive:o}=Jq(),{layoutService:i,styleService:a}=tO(),{interactions:s}=ZT(),l=i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported,u=n&&l;let c=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const d=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kA,...RA(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:ij({cell:e,styleService:t,isCellSelected:n}),fontWeight:aj({cell:e,styleService:t}),fontStyle:sj({cell:e,styleService:t}),textDecoration:lj({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n});if(e.representation.type===cl.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?M6:_j;return se.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:d,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:S$(e,i,n,r)})}if(e.representation.type===cl.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?I6:M$;c=se.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return se.jsx(L6,{shouldEnableStickyText:u,textStyle:{...d,...e.representation.type===cl.Image&&e.isNull?{alignSelf:ej(e)}:{}},children:c})},D6=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=tO(),{isSelected:i}=Jq(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=Fj([n]),f=w$(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=fq(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return se.jsx(hq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return se.jsxs(E$,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[se.jsxs(mq,{verticalAlign:ej(f),width:gq(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[se.jsx(pj,{isLeftColumn:a,isCellSelected:b,cell:f}),se.jsx(P6,{isLeftColumn:a,isCellSelected:b,cell:f})]}),se.jsx(Wj,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?bl.Measures:bl.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var T6=t.memo(D6,ZN);const O6=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*r():!n&&a?(a.leafCount+a.distanceToNextCell)*r():r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},z6=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},N6=(e,t)=>n=>{e.current&&(e.current[t]=n)},q6={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...CA},j6={overflow:"hidden",willChange:"auto",flexShrink:0},F6=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=KT(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=tO(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=Bz();_$(e,d),v$(e,t,n,l);const f=i.rowsOnCurrentPage*l,h={...q6,borderColor:u,width:r.reduce(((e,t)=>e+t),0)};return se.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=fO(p[u]),{itemCount:g,estimatedItemSize:b,listValues:y}=z6(t,f,i.rowsOnCurrentPage,h),x=s.isIndentModeEnabled?()=>l:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return se.jsx(UN,{ref:N6(e,u),style:{...j6,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:x,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:Tj,estimatedItemSize:b,children:T6},m)}))})};var B6=y(F6);const $6={overflow:"hidden",willChange:"auto"},W6=e=>({...CA,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),H6=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=KT(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=tO(),{gridSectionsData:{headersData:c,topDimensionData:d}}=Bz(),p={...W6(a),borderColor:l,height:r};_$(e,d),v$(e,n,r,u);const f=s.size.x*i();return 0===d.rowCount?se.jsx("div",{style:{width:n,height:r,...W6(a)}}):se.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=z6(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=g$({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?fO(g):`empty ${l}`;return se.jsx(UN,{ref:N6(e,l),style:$6,height:t(),width:n,itemCount:p,itemSize:O6({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:Tj,estimatedItemSize:h,direction:a,children:T6},b)}))})};var G6=y(H6);const V6=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=tO(),n=fN(),o=(()=>{const{model:e}=ZT(),t=f((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:i,topGridWrapperRef:a,leftGridWrapperRef:s,dataGridWrapperRef:l},gridRefs:{topGridRef:u,leftGridRef:c,dataGridRef:d},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=pN(),{leftGridWidth:y,leftGridFullWidth:x,leftGridColumnWidths:v,rightGridFullWidth:_,showLastRightBorder:w,getRightGridColumnWidth:S,getHeaderCellsIconsVisibilityStatus:C,overrideLeftGridWidth:E}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:o,styleService:i}=tO(),{gridSectionsData:{headersData:a}}=Bz(),{measureText:s}=QA(i.header),l=oN({tableWidth:e}),u=iN({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),c=l.leftGridWidth+u.rightGridFullWidth+1<e,d=f(((e,t,n="")=>{let r=e;o.isIndentModeEnabled&&(r=1,1===a.size.x&&(r=0));const i=l.leftGridColumnWidths[r];let u=!1,c=!1,d=s(n)+Wz;return t&&d+20<=i&&(c=!0,d+=20),d+20<=i&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,s,o.isIndentModeEnabled,a.size.x]);return r((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;e&&t&&n()}),[n,l.leftGridWidth,l.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...l,...u,showLastRightBorder:c,getHeaderCellsIconsVisibilityStatus:d}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:k,headerGridDims:R,topGridDims:M,leftGridDims:A,dataGridDims:I,metadata:{everyThingFitsInTableRectHeight:L,scrollbarsVisibilityStatus:P}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=fN(),{pageInfo:l}=KT(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Bz(),d=Math.min(s.height*Hz,Math.max(s.height*Hz-25,s.height-t-a)),p=s.width*Hz,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,n),y=s.width-p,x=Math.max(y,s.width-b),v=Math.min(d,m,g),{availableHeight:_,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:S}=((e,t,n)=>{const r=t+1+n+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(v,b,x),C=_-d,E=Math.max(C,_-v),k=Math.min(E,f),R=Math.min(E,f),M=m+1+f,{visibilityStatus:A,metadata:{hasLeftGridOverflowX:I,hasDataGridOverflowX:L}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=i>t,d=a>n,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:x},Y_AXIS:{topSectionHeight:v,bottomSectionHeight:E}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${x}px`,gridTemplateRows:`${v}px ${E}px`},headerGridDims:{width:-1,height:v},topGridDims:{fullSizeWrapper:{width:o-i+(L?i:0),height:g},stickyWrapper:{width:x-1-i,height:-1},self:{width:Math.min(o,x)-(S?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!I&&L?a:0)},stickyWrapper:{width:b,height:E-1-a},self:{width:b,height:Math.max(t,k-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(L?i:0),height:M-g+(!L&&I?a:0)},stickyWrapper:{width:x-1-i,height:E-1-a},self:{width:Math.min(o,x)-(S?1:0)-i,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:A}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:x,rightGridOriginalWidth:_},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),D=f((()=>e),[e]),T=f((()=>t),[t]);return(()=>{const{downloadService:e}=tO();r((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),se.jsxs(mN,{style:k,children:[se.jsx("div",{style:{overflow:"hidden"},ref:i,children:se.jsx(x$,{tableWidth:n.width,leftGridWidth:y,columnWidths:v,getHeaderCellsIconsVisibilityStatus:C,rowHight:e,height:R.height,changeSortOrder:o,overrideLeftGridWidth:E})}),se.jsx(yN,{style:P.topGrid,origin:xl.TopGrid,ref:a,children:se.jsx(hN,{style:M.fullSizeWrapper,children:se.jsx(xN,{style:M.stickyWrapper,children:se.jsx(G6,{topGridRef:u,rowHightCallback:D,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:S})})})}),se.jsx(yN,{style:P.leftGrid,origin:xl.LeftGrid,ref:s,children:se.jsx(hN,{style:A.fullSizeWrapper,children:se.jsx(xN,{style:A.stickyWrapper,children:se.jsx(B6,{leftGridRef:c,...A.self,columnWidths:v,showLastBorder:{right:!1,bottom:L}})})})}),se.jsx(yN,{style:P.dataGrid,origin:xl.DataGrid,ref:l,children:se.jsx(hN,{style:I.fullSizeWrapper,children:se.jsx(xN,{style:I.stickyWrapper,children:se.jsx(qj,{dataGridRef:d,rowHightCallback:T,...I.self,showLastBorder:{right:w,bottom:L},getRightGridColumnWidth:S,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},Y6=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=ZT(),{pageInfo:o,updatePageInfo:i,rect:a}=KT(),{layoutService:s}=tO(),{layout:l,hasData:u}=s;return se.jsxs(se.Fragment,{children:[u?se.jsx(V6,{}):null,se.jsx(rO,{}),se.jsx(YT,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})},U6={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},K6=12,X6=14,J6=16,Z6=24,Q6=3,e4=300,t4=400,n4=600,r4=700,o4={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var i4='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function a4(e){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:se.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var s4=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return se.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function l4(e={}){return se.jsx(s4,{...e,children:se.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[se.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),se.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function u4(e={}){return se.jsx(s4,{fontSize:"medium",...e,children:se.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[se.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),se.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function c4(e){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:se.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function d4(e={}){return se.jsx(s4,{...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[se.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),se.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function p4(e={}){return se.jsx(s4,{fontSize:"medium",...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:se.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function f4({className:e}){return se.jsx(s4,{fontSize:"small",className:e,children:se.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:se.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:se.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:se.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[se.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),se.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function h4(e={}){return se.jsx(s4,{...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:se.jsx("rect",{stroke:U6.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const m4={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:Q6,"& > 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 g4=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:U6.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:U6.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:se.jsx(a4,{"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 ${U6.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,borderRadius:Q6,backgroundColor:U6.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 ${U6.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:U6.WHITE,color:U6.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:Q6},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&.Mui-focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&.Mui-focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.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:Q6,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:U6.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:U6.PURPLE,"&.Mui-focusVisible":{borderColor:U6.PURPLE,boxShadow:`0 0 0 3px ${_L(U6.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:U6.GREEN,"&.Mui-focusVisible":{borderColor:U6.GREEN,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:U6.BLUE,"&.Mui-focusVisible":{borderColor:U6.BLUE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:U6.ORANGE,"&.Mui-focusVisible":{borderColor:U6.ORANGE,boxShadow:`0 0 0 3px ${_L(U6.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:U6.RED,"&.Mui-focusVisible":{borderColor:U6.RED,boxShadow:`0 0 0 3px ${_L(U6.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:U6.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:U6.PURPLE_PALE},"&:active":{backgroundColor:U6.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:U6.PURPLE_PALE,boxShadow:`0 0 0 3px ${_L(U6.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&.Mui-focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&.Mui-focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:U6.ORANGE_PALE},"&:active":{backgroundColor:U6.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:U6.ORANGE_PALE,boxShadow:`0 0 0 3px ${_L(U6.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:U6.RED_PALE},"&:active":{backgroundColor:U6.RED_DARK},"&.Mui-focusVisible":{borderColor:U6.RED_PALE,boxShadow:`0 0 0 3px ${_L(U6.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:U6.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:U6.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Q6,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:se.jsx(c4,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:K6,borderRadius:Q6,color:U6.TEXT_PRIMARY,backgroundColor:U6.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:U6.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:U6.GREYSCALE_0_05,color:U6.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:U6.GREEN,borderColor:U6.GREEN},"&.MuiChip-outlinedInfo":{color:U6.BLUE,borderColor:U6.BLUE},"&.MuiChip-outlinedWarning":{color:U6.ORANGE,borderColor:U6.ORANGE},"&.MuiChip-outlinedError":{color:U6.RED,borderColor:U6.RED}},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Q6,boxShadow:"none",backgroundColor:U6.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:U6.GREEN,borderColor:U6.GREEN},outlinedSecondary:{color:U6.BLUE,borderColor:U6.BLUE},label:{fontFamily:o4.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:se.jsx(c4,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:se.jsx(a4,{"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:Q6},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Q6,fontSize:X6,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:U6.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${U6.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:U6.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:U6.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:U6.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Q6,border:`solid 1px ${U6.GREYSCALE_0_15}`,color:U6.GREYSCALE_0_60,marginRight:0,width:Z6,height:Z6},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${U6.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Q6,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:U6.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:X6}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:K6,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:U6.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:U6.GREYSCALE_25,fontSize:K6,fontFamily:o4.FONT_FAMILY,fontWeight:n4,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:U6.TEXT_PRIMARY},"&.Mui-error":{color:U6.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:U6.TEXT_SECONDARY,content:"'(optional)'",fontWeight:t4,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:U6.TEXT_SECONDARY,content:"'(required)'",fontWeight:t4,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:X6,lineHeight:"16px",backgroundColor:U6.WHITE,borderRadius:Q6,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_05}`,borderColor:U6.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.RED}`,boxShadow:`0px 0px 0px 1px ${U6.RED}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_10}`,borderColor:U6.GREYSCALE_0_10,backgroundColor:U6.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:U6.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:U6.GREYSCALE_0_15,borderRadius:Q6,boxShadow:`inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>se.jsx(a4,{...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:U6.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:U6.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&:focus":{backgroundColor:U6.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:U6.GREYSCALE_0_30,"&:hover":{backgroundColor:U6.GREYSCALE_0_0,borderColor:U6.GREYSCALE_0_15},"& ~svg":{color:U6.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Q6}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:U6.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:X6,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:K6,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:K6,fontWeight:n4,color:U6.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:n4}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:se.jsx(p4,{}),checkedIcon:se.jsx(u4,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:U6.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:U6.GREYSCALE_0_20}},"&.Mui-disabled":{fill:U6.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:se.jsx(h4,{}),checkedIcon:se.jsx(l4,{}),indeterminateIcon:se.jsx(d4,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Q6,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:U6.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:U6.GREYSCALE_0_55,color:U6.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:U6.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:U6.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:U6.GREYSCALE_0_55,"&:hover":{color:U6.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:U6.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:U6.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:X6,color:U6.TEXT_PRIMARY,lineHeight:"16px",fontWeight:n4},secondary:{fontSize:K6,color:U6.GREYSCALE_45,fontWeight:t4,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:X6,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:X6,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:U6.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:K6,borderBottom:`solid 1px ${U6.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:X6,color:U6.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:U6.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:U6.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${i4}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:U6.RED}}},"&.Mui-focusVisible":{backgroundColor:U6.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:U6.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:U6.GREEN,height:"24px","&.Mui-disabled":{color:U6.GREYSCALE_0_15}},rail:{backgroundColor:U6.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6,boxShadow:`inset 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.WHITE,boxShadow:`0px 1px 2px 0px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`,"&:hover":{borderRadius:Q6,boxShadow:`0 2px 4px 0 ${U6.GREYSCALE_0_30}, 0 0 0 1px ${U6.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${U6.GREYSCALE_0_15}, 0 0 0 1px ${U6.GREYSCALE_0_06}, 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${U6.GREYSCALE_0_15}, 0 0 0 1px ${U6.GREYSCALE_0_06}, 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:U6.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:U6.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:U6.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:U6.GREYSCALE_0_15},markLabel:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:U6.WHITE,color:U6.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:U6.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:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:U6.GREYSCALE_0_15,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.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:X6,fontWeight:n4,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${U6.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,backgroundColor:U6.GREYSCALE_0_03,borderRadius:Q6},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:U6.GREYSCALE_25,"&.Mui-selected":{color:U6.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:X6,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Q6,"&:hover":{backgroundColor:U6.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 ${U6.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${U6.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Q6,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:U6.GREYSCALE_0_05},"&:hover":{backgroundColor:U6.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderRight:`1px solid ${U6.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:n4,backgroundColor:U6.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:U6.GREYSCALE_98,borderBottom:`1px solid ${U6.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderTop:`1px solid ${U6.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:U6.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:U6.GREYSCALE_0_05,"&:hover":{backgroundColor:U6.GREYSCALE_0_03}},"&&:hover":{backgroundColor:U6.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>se.jsx(f4,{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 ${U6.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:X6,borderRadius:Q6,padding:"7px 16px",border:`1px solid ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_60,color:U6.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_30}`},"&:hover":{backgroundColor:U6.GREYSCALE_0_03,border:`1px solid ${U6.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:U6.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`,border:`1px solid ${U6.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:U6.GREYSCALE_25,backgroundColor:U6.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:K6,height:24,width:24,padding:7},sizeLarge:{fontSize:J6,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:X6,borderRadius:Q6}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:U6.GREYSCALE_20},tooltip:{backgroundColor:U6.GREYSCALE_20,fontSize:K6,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...m4}:{}});var b4=()=>({mode:"light",primary:{ultraLight:U6.GREEN_ULTRA_LIGHT,light:U6.GREEN_PALE,main:U6.GREEN,dark:U6.GREEN_DARK,extraDark:U6.GREEN_EXTRA_DARK,contrastText:U6.WHITE},secondary:{ultraLight:U6.BLUE_ULTRA_LIGHT,light:U6.BLUE_PALE,main:U6.BLUE,dark:U6.BLUE_DARK,extraDark:U6.BLUE_EXTRA_DARK,contrastText:U6.WHITE},error:{ultraLight:U6.RED_ULTRA_LIGHT,light:U6.RED_PALE,main:U6.RED,dark:U6.RED_DARK,extraDark:U6.RED_EXTRA_DARK,contrastText:U6.WHITE},warning:{ultraLight:U6.ORANGE_ULTRA_LIGHT,light:U6.ORANGE_PALE,main:U6.ORANGE,dark:U6.ORANGE_DARK,extraDark:U6.ORANGE_EXTRA_DARK,contrastText:U6.WHITE},success:{ultraLight:U6.GREEN_ULTRA_LIGHT,light:U6.GREEN_PALE,main:U6.GREEN,dark:U6.GREEN_DARK,extraDark:U6.GREEN_EXTRA_DARK,contrastText:U6.WHITE},info:{ultraLight:U6.BLUE_ULTRA_LIGHT,light:U6.BLUE_PALE,main:U6.BLUE,dark:U6.BLUE_DARK,extraDark:U6.BLUE_EXTRA_DARK,contrastText:U6.WHITE},text:{primary:U6.TEXT_PRIMARY,secondary:U6.TEXT_SECONDARY,disabled:U6.GREYSCALE_0_30},action:{hover:U6.GREYSCALE_0_03,hoverOpacity:.03,selected:U6.GREYSCALE_0_05,selectedOpacity:.05,focus:U6.MISC_FOCUS_BORDER},amethyst:{ultraLight:U6.WHITE,main:U6.PURPLE,light:U6.PURPLE_PALE,dark:U6.PURPLE_DARK,extraDark:U6.GREYSCALE_0_0,contrastText:U6.WHITE},background:{paper:U6.WHITE,default:U6.GREYSCALE_95},divider:U6.GREYSCALE_0_15});var y4=e=>b4();var x4=(e,t=!1)=>{const n=((e,t)=>g4(t))(0,t);return{components:n,palette:y4(e),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:X6,fontWeightLight:e4,fontWeightRegular:t4,fontWeightMedium:n4,fontWeightBold:r4,htmlFontSize:X6,fontFamily:o4.FONT_FAMILY,button:{fontWeight:n4,fontSize:X6,textTransform:"none"},body1:{fontSize:J6,lineHeight:"24px"},body2:{fontSize:X6,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Z6,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:J6,fontWeight:n4,lineHeight:"16px"},h6:{fontSize:X6,fontWeight:n4,lineHeight:"16px"},caption:{color:U6.TEXT_SECONDARY},subtitle1:{fontSize:X6,color:U6.TEXT_SECONDARY},subtitle2:{fontSize:K6,color:U6.TEXT_SECONDARY}},shape:{borderRadius:Q6}}},v4={},_4={exports:{}},w4={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(w4);var S4=w4.exports;!function(e){var t=S4.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(_4);var C4=_4.exports,E4={},k4=X(ku);Object.defineProperty(E4,"__esModule",{value:!0}),E4.hexToRgb=A4,E4.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=L4(e),n=t.values;return"#".concat(n.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},E4.hslToRgb=I4,E4.decomposeColor=L4,E4.recomposeColor=P4,E4.getContrastRatio=function(e,t){var n=D4(e),r=D4(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},E4.getLuminance=D4,E4.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return D4(e)>.5?O4(e,t):z4(e,t)},E4.fade=function(e,t){return T4(e,t)},E4.alpha=T4,E4.darken=O4,E4.lighten=z4;var R4=k4;function M4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function A4(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function I4(e){var t=(e=L4(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),P4({type:s,values:l})}function L4(e){if(e.type)return e;if("#"===e.charAt(0))return L4(A4(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,R4.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function P4(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function D4(e){var t="hsl"===(e=L4(e)).type?L4(I4(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function T4(e,t){return e=L4(e),t=M4(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,P4(e)}function O4(e,t){if(e=L4(e),t=M4(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return P4(e)}function z4(e,t){if(e=L4(e),t=M4(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return P4(e)}var N4,q4,j4,F4={},B4={exports:{}},$4={exports:{}},W4={exports:{}};function H4(){return N4||(N4=1,function(e){var t=S4.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(W4)),W4.exports}function G4(){return q4||(q4=1,function(e){var t=S4.default,n=H4();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}($4)),$4.exports}function V4(){return j4||(j4=1,function(e){var t=G4();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(B4)),B4.exports}var Y4,U4={exports:{}};function K4(){return Y4||(Y4=1,function(e){var t=Yw();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(U4)),U4.exports}var X4,J4={};var Z4,Q4={};var e8,t8={},n8={};var r8,o8={};var i8,a8={};var s8,l8={};var u8,c8={};var d8,p8={};var f8,h8={};var m8,g8,b8={};function y8(){if(g8)return t8;g8=1;var e=J_;Object.defineProperty(t8,"__esModule",{value:!0}),t8.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,x=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,v=e.error,_=void 0===v?{light:l.default[300],main:l.default[500],dark:l.default[700]}:v,w=e.warning,S=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,C=e.info,E=void 0===C?{light:c.default[300],main:c.default[500],dark:c.default[700]}:C,k=e.success,R=void 0===k?{light:d.default[300],main:d.default[500],dark:d.default[700]}:k,M=e.type,A=void 0===M?"light":M,I=e.contrastThreshold,L=void 0===I?3:I,P=e.tonalOffset,D=void 0===P?.2:P,T=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:f.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,D),m(e,"dark",i,D),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},q=(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:z(b),secondary:z(x,"A400","A200","A700"),error:z(_),warning:z(S),info:z(E),success:z(R),grey:i.default,contrastThreshold:L,getContrastText:O,augmentColor:z,tonalOffset:D},N[A]),T);return q},t8.dark=t8.light=void 0;var t=e(Hw()),n=e(K4()),r=k4,o=e(function(){if(e8)return n8;e8=1,Object.defineProperty(n8,"__esModule",{value:!0}),n8.default=void 0;var e={black:"#000",white:"#fff"};return n8.default=e,n8}()),i=e(function(){if(r8)return o8;r8=1,Object.defineProperty(o8,"__esModule",{value:!0}),o8.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return o8.default=e,o8}()),a=e(function(){if(i8)return a8;i8=1,Object.defineProperty(a8,"__esModule",{value:!0}),a8.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return a8.default=e,a8}()),s=e(function(){if(s8)return l8;s8=1,Object.defineProperty(l8,"__esModule",{value:!0}),l8.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return l8.default=e,l8}()),l=e(function(){if(u8)return c8;u8=1,Object.defineProperty(c8,"__esModule",{value:!0}),c8.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return c8.default=e,c8}()),u=e(function(){if(d8)return p8;d8=1,Object.defineProperty(p8,"__esModule",{value:!0}),p8.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return p8.default=e,p8}()),c=e(function(){if(f8)return h8;f8=1,Object.defineProperty(h8,"__esModule",{value:!0}),h8.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return h8.default=e,h8}()),d=e(function(){if(m8)return b8;m8=1,Object.defineProperty(b8,"__esModule",{value:!0}),b8.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return b8.default=e,b8}()),p=E4,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};t8.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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 m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return t8.dark=h,t8}var x8,v8={};var _8,w8={};var S8,C8={};var E8,k8={},R8=X(pd);var M8,A8={};function I8(){if(M8)return A8;M8=1;var e=J_;Object.defineProperty(A8,"__esModule",{value:!0}),A8.default=A8.duration=A8.easing=void 0;var t=e(K4()),n={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)"};A8.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}A8.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return A8.default=i,A8}var L8,P8,D8={};function T8(){if(P8)return F4;P8=1;var e=J_;Object.defineProperty(F4,"__esModule",{value:!0}),F4.createMuiTheme=function(){return p.apply(void 0,arguments)},F4.default=void 0,e(V4());var t=e(K4()),n=k4,r=e(function(){if(X4)return J4;X4=1;var e=J_;Object.defineProperty(J4,"__esModule",{value:!0}),J4.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},J4.keys=void 0;var t=e(Hw()),n=e(K4()),r=["xs","sm","md","lg","xl"];return J4.keys=r,J4}()),o=e(function(){if(Z4)return Q4;Z4=1;var e=J_;Object.defineProperty(Q4,"__esModule",{value:!0}),Q4.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(V4()),n=e(Hw());return Q4}()),i=e(y8()),a=e(function(){if(x8)return v8;x8=1;var e=J_;Object.defineProperty(v8,"__esModule",{value:!0}),v8.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,y=u.fontWeightMedium,x=void 0===y?500:y,v=u.fontWeightBold,_=void 0===v?700:v,w=u.htmlFontSize,S=void 0===w?16:w,C=u.allVariants,E=u.pxToRem,k=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,M=E||function(e){return"".concat(e/S*R,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,C)},I={h1:A(m,96,1.167,-1.5),h2:A(m,60,1.2,-.5),h3:A(b,48,1.167,0),h4:A(b,34,1.235,.25),h5:A(b,24,1.334,0),h6:A(x,20,1.6,.15),subtitle1:A(b,16,1.75,.15),subtitle2:A(x,14,1.57,.1),body1:A(b,16,1.5,.15),body2:A(b,14,1.43,.15),button:A(x,14,1.75,.4,a),caption:A(b,12,1.66,.4),overline:A(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:S,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:x,fontWeightBold:_},I),k,{clone:!1})};var t=e(Hw()),n=e(K4()),r=k4;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return v8}()),s=e(function(){if(_8)return w8;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}_8=1,Object.defineProperty(w8,"__esModule",{value:!0}),w8.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return w8.default=t,w8}()),l=e(function(){if(S8)return C8;S8=1,Object.defineProperty(C8,"__esModule",{value:!0}),C8.default=void 0;var e={borderRadius:4};return C8.default=e,C8}()),u=e(function(){if(E8)return k8;E8=1,Object.defineProperty(k8,"__esModule",{value:!0}),k8.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=R8;return k8}()),c=e(I8()),d=e(function(){if(L8)return D8;L8=1,Object.defineProperty(D8,"__esModule",{value:!0}),D8.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return D8.default=e,D8}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,y=e.spacing,x=e.typography,v=void 0===x?{}:x,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),S=(0,r.default)(f),C=(0,u.default)(y),E=(0,n.deepmerge)({breakpoints:S,direction:"ltr",mixins:(0,o.default)(S,C,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,v),spacing:C,shape:l.default,transitions:c.default,zIndex:d.default},_),k=arguments.length,R=new Array(k>1?k-1:0),M=1;M<k;M++)R[M-1]=arguments[M];return E=R.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),E)}var f=p;return F4.default=f,F4}var O8,z8={};var N8,q8={},j8=X(pm);var F8,B8,$8={},W8={};function H8(){if(F8)return W8;F8=1;var e=J_;Object.defineProperty(W8,"__esModule",{value:!0}),W8.default=void 0;var t=(0,e(T8()).default)();return W8.default=t,W8}var G8,V8,Y8={},U8={};function K8(){if(V8)return Y8;V8=1;var e=J_;Object.defineProperty(Y8,"__esModule",{value:!0}),Y8.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(Hw()),n=k4,r=function(){if(G8)return U8;G8=1;var e=J_;Object.defineProperty(U8,"__esModule",{value:!0}),U8.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},U8.getUnit=n,U8.toUnitless=r,U8.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},U8.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},U8.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},U8.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach((function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(V4());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return U8}();return Y8}var X8,J8={};var Z8,Q8={};var e7,t7={};var n7,r7={};!function(e){var n=J_,r=C4;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=E4;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=r(T8()),s=n(function(){if(O8)return z8;O8=1;var e=J_;Object.defineProperty(z8,"__esModule",{value:!0}),z8.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=k4,n=e(T8());return z8}()),l=n(function(){if(N8)return q8;N8=1,Object.defineProperty(q8,"__esModule",{value:!0}),q8.default=function(t){return(0,e.createStyles)(t)};var e=j8;return q8}()),u=n(function(){if(B8)return $8;B8=1;var e=J_;Object.defineProperty($8,"__esModule",{value:!0}),$8.default=void 0;var t=e(Hw()),n=j8,r=e(H8()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return $8.default=o,$8}()),c=n(K8()),d=n(function(){if(X8)return J8;X8=1;var e=J_;Object.defineProperty(J8,"__esModule",{value:!0}),J8.default=void 0;var t=e(Hw()),n=j8,r=e(H8()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return J8.default=o,J8}()),p=I8();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=n(function(){if(Z8)return Q8;Z8=1;var e=J_;Object.defineProperty(Q8,"__esModule",{value:!0}),Q8.default=function(){return(0,n.useTheme)()||r.default};var n=j8;e(t);var r=e(H8());return Q8}()),h=n(function(){if(e7)return t7;e7=1;var e=J_;Object.defineProperty(t7,"__esModule",{value:!0}),t7.default=void 0;var t=e(Hw()),n=j8,r=e(H8()),o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return t7.default=o,t7}()),m=n(function(){if(n7)return r7;n7=1;var e=J_;Object.defineProperty(r7,"__esModule",{value:!0}),r7.default=void 0;var t=j8,n=e(H8()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return r7.default=r,r7}()),g=j8}(v4);var o7=Object.defineProperty,i7=(e,t)=>{for(var n in t)o7(e,n,{get:t[n],enumerable:!0})};i7({},{light:()=>a7});const a7={root:{backgroundColor:U6.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};i7({},{light:()=>s7});const s7={root:{backgroundColor:U6.WHITE}};i7({},{light:()=>l7});const l7={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${U6.GREYSCALE_0_15}`,"&$focused":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,borderRadius:Q6,backgroundColor:U6.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};i7({},{light:()=>u7});const u7={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${U6.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:U6.WHITE,color:U6.TEXT_PRIMARY}};i7({},{light:()=>c7});const c7={inputRoot:{boxSizing:"border-box",borderRadius:Q6,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:X6,height:"32px",'&[data-focus="true"]':{backgroundColor:U6.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:Q6,border:`solid 1px ${U6.GREYSCALE_0_15}`,color:U6.GREYSCALE_0_60,marginRight:0,width:Z6,height:Z6,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${U6.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:U6.GREYSCALE_25,width:J6,height:Z6,borderRadius:Q6,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:v4.alpha(U6.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:U6.GREYSCALE_0_10}};i7({},{light:()=>d7});const d7={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};i7({},{light:()=>p7});const p7={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Q6,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&$focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&$focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};i7({},{light:()=>f7});const f7={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Q6},groupedText:{padding:"8px 16px","&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&$focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&$focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}}};i7({},{light:()=>h7});const h7={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:U6.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:U6.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:Q6,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};i7({},{light:()=>m7});const m7={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:U6.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:U6.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}}};i7({},{light:()=>g7});const g7={root:{height:"24px",fontSize:K6,borderRadius:Q6,color:U6.TEXT_PRIMARY,backgroundColor:U6.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:U6.GREYSCALE_0_05,color:U6.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:Q6,boxShadow:"none",backgroundColor:U6.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:o4.FONT_FAMILY,lineHeight:"16px"}};i7({},{light:()=>b7});const b7={root:{padding:"8px",backgroundColor:U6.GREYSCALE_98,borderTop:`1px ${U6.GREYSCALE_0_15} solid`}};i7({},{light:()=>y7});const y7={root:{padding:"24px"}};i7({},{light:()=>x7});const x7={root:{marginBottom:0}};i7({},{light:()=>v7});const v7={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:U6.GREYSCALE_98,borderBottom:`1px ${U6.GREYSCALE_0_15} solid`}};i7({},{light:()=>_7});const _7={middle:{margin:"4px 8px"}};i7({},{light:()=>w7});const w7={root:{marginLeft:"-10px"},label:{fontSize:X6}};i7({},{light:()=>S7});const S7={root:{fontSize:K6,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:U6.RED}},contained:{marginLeft:0,marginRight:0}};i7({},{light:()=>C7});const C7={root:{color:U6.GREYSCALE_25,fontSize:K6,fontFamily:o4.FONT_FAMILY,fontWeight:n4,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:U6.TEXT_PRIMARY},"&$error":{color:U6.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:U6.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:t4,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:U6.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:t4,marginLeft:"4px"}}};i7({},{light:()=>E7});const E7={root:{padding:7,borderRadius:Q6,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};i7({},{light:()=>k7});const k7={root:{padding:"4px 8px",color:U6.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};i7({},{light:()=>R7});const R7={input:{padding:"8px 12px",lineHeight:"16px"}};i7({},{light:()=>M7});const M7={outlined:{fontSize:`${K6}px`,fontWeight:n4,color:U6.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:n4}}};i7({},{light:()=>A7});const A7={root:{color:U6.MISC_FOCUS_BORDER}};i7({},{light:()=>I7});const I7={padding:{paddingTop:"0px",paddingBottom:"0px"}};i7({},{light:()=>L7});const L7={root:{minHeight:"32px",fontSize:X6,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${i4}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:U6.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&:active":{backgroundColor:U6.GREYSCALE_0_05}}};i7({},{light:()=>P7});const P7={root:{color:U6.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};i7({},{light:()=>D7});const D7={root:{fontSize:"12px"},primary:{fontSize:X6,color:U6.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:K6,fontWeight:e4,lineHeight:"16px",color:U6.TEXT_SECONDARY}};i7({},{light:()=>T7});const T7={root:{'&[role="option"]':{color:U6.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:K6,borderBottom:`solid 1px ${U6.GREYSCALE_0_15}`,pointerEvents:"none"}}};i7({},{light:()=>O7});const O7={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:U6.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};i7({},{light:()=>z7});const z7={root:{fontSize:X6,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:U6.GREYSCALE_25}}};i7({},{light:()=>N7});const N7={root:{fontSize:X6,lineHeight:"16px",backgroundColor:U6.WHITE,borderRadius:Q6,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_05}`,borderColor:U6.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${U6.RED}`,boxShadow:`0px 0px 0px 1px ${U6.RED}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_10}`,borderColor:U6.GREYSCALE_0_10,backgroundColor:U6.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:U6.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:U6.GREYSCALE_0_15,borderRadius:Q6,boxShadow:`inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};i7({},{light:()=>q7});const q7={day:{"&&&:hover":{backgroundColor:U6.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:U6.GREEN}}};i7({},{light:()=>j7});const j7={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`}};i7({},{light:()=>F7});const F7={root:{fill:U6.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}},"&$disabled":{color:U6.GREYSCALE_0_20}},"&$disabled":{fill:U6.GREYSCALE_0_20,stroke:"none"}}};i7({},{light:()=>B7});const B7={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:U6.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:U6.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&:focus":{backgroundColor:U6.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:U6.GREYSCALE_0_30,"&:hover":{backgroundColor:U6.GREYSCALE_0_0,borderColor:U6.GREYSCALE_0_15},"& ~svg":{color:U6.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`}};i7({},{light:()=>$7});const $7={root:{color:U6.GREEN,height:"24px","&$disabled":{color:U6.GREYSCALE_0_15}},rail:{backgroundColor:U6.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6,boxShadow:`inset 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.WHITE,boxShadow:`0px 1px 2px 0px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`,"&:hover":{borderRadius:Q6,boxShadow:`0 2px 4px 0 ${U6.GREYSCALE_0_30}, 0 0 0 1px ${U6.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${U6.GREYSCALE_0_15}, 0 0 0 1px ${U6.GREYSCALE_0_06}, 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:U6.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:U6.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:U6.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:U6.GREYSCALE_0_15},markLabel:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};i7({},{light:()=>W7});const W7={root:{backgroundColor:U6.WHITE,color:U6.GREYSCALE_25}};i7({},{light:()=>H7});const H7={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:U6.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:U6.GREYSCALE_0_15,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};i7({},{light:()=>G7});const G7={root:{fontSize:X6,fontWeight:n4,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${U6.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:U6.GREYSCALE_0_03,borderRadius:Q6,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:U6.GREYSCALE_25,"&$selected":{color:U6.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};i7({},{light:()=>V7});const V7={root:{borderLeft:`1px solid ${U6.GREYSCALE_85}`}};i7({},{light:()=>Y7});const Y7={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderRight:`1px solid ${U6.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:n4,backgroundColor:U6.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:U6.GREYSCALE_98,borderBottom:`1px solid ${U6.GREYSCALE_85}`}};i7({},{light:()=>U7});const U7={root:{borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderTop:`1px solid ${U6.GREYSCALE_85}`}};i7({},{light:()=>K7});const K7={root:{backgroundColor:U6.GREYSCALE_98}};i7({},{light:()=>X7});const X7={hover:{"&$selected":{backgroundColor:U6.GREYSCALE_0_05,"&:hover":{backgroundColor:U6.GREYSCALE_0_03}},"&&:hover":{backgroundColor:U6.GREYSCALE_0_03}}};i7({},{light:()=>J7});const J7={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};i7({},{light:()=>Z7});const Z7={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:X6,fontWeight:"bold"},indicator:{height:2}};i7({},{light:()=>Q7});const Q7={root:{height:32,lineHeight:16,width:32,fontSize:X6,borderRadius:Q6,padding:"7px 16px",border:`1px solid ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_60,color:U6.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_30}`},"&:hover":{backgroundColor:U6.GREYSCALE_0_03,border:`1px solid ${U6.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:U6.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`,border:`1px solid ${U6.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:U6.GREYSCALE_25,backgroundColor:U6.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:K6,height:24,width:24,padding:7},sizeLarge:{fontSize:J6,height:40,width:40,lineHeight:20}};i7({},{light:()=>e9});const e9={root:{height:"32px",lineHeight:"16px",fontSize:X6,borderRadius:Q6}};i7({},{light:()=>t9});const t9={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};i7({},{light:()=>n9});const n9={arrow:{color:U6.GREYSCALE_20},tooltip:{backgroundColor:U6.GREYSCALE_20,fontSize:K6,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};function r9(e){var t;const n=((e="light",t=!1)=>x4(e,t))();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),JP({...n,direction:e})}var o9,i9,a9,s9;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(o9||(o9={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(i9||(i9={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(a9||(a9={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(s9||(s9={}));const l9=e=>e?`${parseInt(e,10)}px`:void 0,u9=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?_A.Transparent:n}},c9=(e,t)=>+(parseInt(e,10)*vA*t+8).toFixed(2),d9=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?yA:"normal",p9=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",f9=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",h9=document.createElement("textarea");function m9(e){h9.value=e,document.body.appendChild(h9),h9.select(),h9.setSelectionRange(0,h9.value.length),document.execCommand("copy"),document.body.removeChild(h9)}h9.style.position="absolute",h9.style.left="-9999px",h9.setAttribute("readonly","");function g9(e){null==A||A(((t,n)=>{const r=n.target,o=null==r?void 0:r.closest(`.${Zi}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>{m9(n)})):m9(n))})(o)}}),null==e||e.forEach((e=>{e(t,n,o)}))}))}const b9=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>$A(((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(oO,0,0,!0),await e.expandLeft(oO,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=r?r:""]),tid:"expand-dimension",select:o$({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:t$.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(oO,0,0,!0),await e.collapseLeft(oO,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=r?r:""]),tid:"collapse-dimension",select:o$({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:t$.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))}),[e,t,n]),y9=(e,t)=>w((()=>(({layout:e,flags:t})=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:s,snapshotData:l}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!l,h=null!==(n=null==l||null===(r=l.content)||void 0===r?void 0:r.rowsPerPage)&&void 0!==n?n:15e3,m={x:Math.min(e.qHyperCube.qSize.qcx,xA),y:Math.min(e.qHyperCube.qSize.qcy,h)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),y=b(iO),x=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:iO,e]}))),v=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%v.length;return t?n:d.findIndex((e=>e===v[n]))},getDimensionInfo:e=>e===iO?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:m,isSnapshot:f,hasLimitedData:!f&&m.x<e.qHyperCube.qSize.qcx,hasData:m.x>0&&m.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:na.Auto,pixels:ta.PixelsDefault,percentage:ta.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),x9=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=HA(e);return t.current=e,t})(Oz(o));return XA((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,o,u)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:s}}=e,{qTop:l,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return l<t.page*t.rowsPerPage||u<Math.min(r,s.qcx)||c<Math.min(n,s.qcy)})(i,r,o,u))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(xA,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),n>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,n,i.qHyperCube.qSize,r,o,u);return t?e.getHyperCubePivotData(oO,zz(t)):[]}return t.qPivotDataPages}),[i,a,e,n,r.page,r.rowsPerPage,l,s])},v9=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),_9=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:v9({rowsPerPage:n,totalRowCount:e,page:t})}),w9=15,S9=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return I((async e=>{const i=e;if(!i.snapshotData||!r||i.snapshotData.content)return i;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-w9,0),u=Math.max(s+o-w9,s,0),c=xA-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Oz(n);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,n),c=zz(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(oO,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=n.width,i.snapshotData.object.size.h=n.height}return i})),L((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var C9={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const E9=()=>{const e=P(),t=e.language();return w((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(C9).forEach((t=>{e.add(C9[t])}))}(e)}),[e]),{translator:e,language:t}},k9=e=>{const{flags:n}=e,r=D(),o=(e=>{const t=w((()=>eI(e)),[e]);return k((()=>()=>{t.unmount()}),[t]),t})(r),i=T(),a=O(),s=z(),l=N(),u=q(),c=GA(),d=((e,t)=>{const[n]=XA((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]),r=w((()=>{var e,t;const r=void 0!==(null==n?void 0:n.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==n?void 0:n.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==n?void 0:n.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:r,getSortCriteriaForDimension:e=>o[e]}}),[n]);return r})(a,i),p=y9(i,n),f=(e=>{const t=M();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=j(),m=KA(i,r),{translator:g,language:b}=E9(),{pageInfo:y,updatePageInfo:x}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,s]=E((()=>{const a=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:r.qcy>n.y&&!o,..._9(r.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return k((()=>{s((t=>({...t,..._9(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),k((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=v9({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:v9({...a,...e})})}}})(p,c),v=((e,t,n)=>w((()=>((e,t)=>{var n,r,o,i,a,s,l,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(l=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==l?l:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(y,i,c),_=S9({rect:F(),layoutService:p,viewService:v,model:a,pageInfo:y}),[C,R]=x9({model:a,layoutService:p,viewService:v,pageInfo:y,rect:_}),A=w((()=>((e,t,n)=>{var r,o,i,a,s,l,u,c,d,p,f,h,m,g,b,y,x,v,_,w,S,C,E,k,R,M,A,I,L,P,D,T,O,z,N,q,j,F,B,$,W,H,G,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[o9.LineClamp])&&void 0!==i?i:oe(i9.Grid,a9.Grid,s9.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(s=null==re?void 0:re[o9.ColumnLineClamp])&&void 0!==s?s:oe(i9.Grid,a9.Grid,s9.ColumnLineClamp))&&void 0!==a?a:1):1,se=null!==(l=null!==(u=u9(e,null==J?void 0:J[o9.Background]))&&void 0!==u?u:oe(i9.Dimension,a9.LabelName,s9.BackgroundColor))&&void 0!==l?l:_A.Transparent,le={header:{fontSize:null!==(c=null!==(d=l9(null==J?void 0:J[o9.FontSize]))&&void 0!==d?d:oe(i9.Dimension,a9.LabelName,s9.FontSize))&&void 0!==c?c:gA,fontFamily:null!==(p=null!==(f=null==J?void 0:J[o9.FontFamily])&&void 0!==f?f:oe(i9.Dimension,a9.LabelName,s9.FontFamily))&&void 0!==p?p:bA,fontWeight:d9(null==J?void 0:J[o9.FontStyle],yA),fontStyle:p9(null==J?void 0:J[o9.FontStyle]),textDecoration:f9(null==J?void 0:J[o9.FontStyle]),color:null!==(h=null!==(m=u9(e,null==J?void 0:J[o9.FontColor]))&&void 0!==m?m:oe(i9.Dimension,a9.LabelName,s9.FontColor))&&void 0!==h?h:AR.TEXT,background:se,hoverBackground:oA(se,ra),activeBackground:oA(se,oa)},dimensionValues:{fontSize:null!==(g=null!==(b=l9(null==Z?void 0:Z[o9.FontSize]))&&void 0!==b?b:oe(i9.Dimension,a9.LabelValue,s9.FontSize))&&void 0!==g?g:gA,fontFamily:null!==(y=null!==(x=null==Z?void 0:Z[o9.FontFamily])&&void 0!==x?x:oe(i9.Dimension,a9.LabelValue,s9.FontFamily))&&void 0!==y?y:bA,fontWeight:d9(null==Z?void 0:Z[o9.FontStyle],void 0),fontStyle:p9(null==Z?void 0:Z[o9.FontStyle]),textDecoration:f9(null==Z?void 0:Z[o9.FontStyle]),color:null!==(v=null!==(_=u9(e,null==Z?void 0:Z[o9.FontColor]))&&void 0!==_?_:oe(i9.Dimension,a9.LabelValue,s9.FontColor))&&void 0!==v?v:AR.TEXT,background:null!==(w=null!==(S=u9(e,null==Z?void 0:Z[o9.Background]))&&void 0!==S?S:oe(i9.Dimension,a9.LabelValue,s9.BackgroundColor))&&void 0!==w?w:_A.Transparent},measureValues:{fontSize:null!==(C=null!==(E=l9(null==Q?void 0:Q[o9.FontSize]))&&void 0!==E?E:oe(i9.Measure,a9.LabelValue,s9.FontSize))&&void 0!==C?C:gA,fontFamily:null!==(k=null!==(R=null==Q?void 0:Q[o9.FontFamily])&&void 0!==R?R:oe(i9.Measure,a9.LabelValue,s9.FontFamily))&&void 0!==k?k:bA,fontWeight:d9(null==Q?void 0:Q[o9.FontStyle],"normal"),fontStyle:p9(null==Q?void 0:Q[o9.FontStyle]),textDecoration:f9(null==Q?void 0:Q[o9.FontStyle]),color:null!==(M=null!==(A=u9(e,null==Q?void 0:Q[o9.FontColor]))&&void 0!==A?A:oe(i9.Measure,a9.LabelValue,s9.FontColor))&&void 0!==M?M:_A.FontSecondary,background:null!==(I=null!==(L=u9(e,null==Q?void 0:Q[o9.Background]))&&void 0!==L?L:oe(i9.Measure,a9.LabelValue,s9.BackgroundColor))&&void 0!==I?I:_A.Transparent},measureLabels:{fontWeight:d9(null==ee?void 0:ee[o9.FontStyle],"normal"),fontStyle:p9(null==ee?void 0:ee[o9.FontStyle]),textDecoration:f9(null==ee?void 0:ee[o9.FontStyle]),color:null!==(P=null!==(D=u9(e,null==ee?void 0:ee[o9.FontColor]))&&void 0!==D?D:oe(i9.Measure,a9.LabelName,s9.FontColor))&&void 0!==P?P:_A.FontSecondary,background:null!==(T=null!==(O=u9(e,null==ee?void 0:ee[o9.Background]))&&void 0!==O?O:oe(i9.Measure,a9.LabelName,s9.BackgroundColor))&&void 0!==T?T:_A.Transparent},totalValues:{fontWeight:d9(null==te?void 0:te[o9.FontStyle],yA),fontStyle:p9(null==te?void 0:te[o9.FontStyle]),textDecoration:f9(null==te?void 0:te[o9.FontStyle]),color:null!==(z=null!==(N=u9(e,null==te?void 0:te[o9.FontColor]))&&void 0!==N?N:oe(i9.Total,a9.LabelValue,s9.FontColor))&&void 0!==z?z:AR.TEXT,background:null!==(q=null!==(j=u9(e,null==te?void 0:te[o9.Background]))&&void 0!==j?j:oe(i9.Total,a9.LabelValue,s9.BackgroundColor))&&void 0!==q?q:_A.Transparent},nullValues:{fontWeight:d9(null==ne?void 0:ne[o9.FontStyle],"normal"),fontStyle:p9(null==ne?void 0:ne[o9.FontStyle]),textDecoration:f9(null==ne?void 0:ne[o9.FontStyle]),color:null!==(F=null!==(B=u9(e,null==ne?void 0:ne[o9.FontColor]))&&void 0!==B?B:oe(i9.Null,a9.LabelValue,s9.FontColor))&&void 0!==F?F:AR.TEXT,background:null!==($=null!==(W=u9(e,null==ne?void 0:ne[o9.Background]))&&void 0!==W?W:oe(i9.Null,a9.LabelValue,s9.BackgroundColor))&&void 0!==$?$:_A.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(G=u9(e,null==re?void 0:re[o9.Border]))&&void 0!==G?G:oe(i9.Grid,a9.Grid,s9.BorderColor))&&void 0!==H?H:_A.DividerLight,divider:null!==(V=null!==(Y=u9(e,null==re?void 0:re[o9.Divider]))&&void 0!==Y?Y:oe(i9.Grid,a9.Divider,s9.BorderColor))&&void 0!==V?V:_A.DividerDark,background:null!==(U=null!==(K=u9(e,null==re?void 0:re[o9.Background]))&&void 0!==K?K:oe(i9.Grid,a9.Grid,s9.BackgroundColor))&&void 0!==U?U:_A.Transparent},selectedColors:rA(e)};return le.headerCellHeight=Math.max(c9(le.header.fontSize,ae),c9(le.dimensionValues.fontSize,ae),32),le.contentCellHeight=Math.max(c9(le.measureValues.fontSize,ie),c9(le.dimensionValues.fontSize,ie),24),le.dimensionValueTextHeight=c9(le.dimensionValues.fontSize,1),le})(m,p,n)),[m,p,n]),I=((e,t,n)=>{const[,r,o]=XA((async()=>{var t;const r=UR(n.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...r,...s,o,i,a,nI].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(m,i,e),L=S(),P=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?L.direction:"ltr";g9([b9({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),k((()=>{!R&&a&&!!C&&I&&((e,{selections:n,baseObjects:r,coreServices:o,nebulaObjects:i})=>{const a=r9(r.direction);e.render(se.jsx(t.StrictMode,{children:se.jsx(ED,{theme:a,children:se.jsx(QT,{...i,children:se.jsx(XT,{...r,children:se.jsx(Zq,{selections:n,children:se.jsx(nO,{...o,children:se.jsx($z,{children:se.jsx(Y6,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:_,pageInfo:y,qPivotDataPages:C,updatePageInfo:x,direction:P},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:A,viewService:v,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,_,f,h,v,p,c,R,C,A,o,I,g,b,y,x,d,l,u,m,e,P])},R9={version:"4.8.9",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};function M9(e){return{qae:{properties:{initial:{...R9,qHyperCubeDef:{...R9.qHyperCubeDef,qIndentMode:!1}}},data:tl(e)},ext:FA(e),component(){k9(e)}}}export{M9 as default};
189
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),x=b+("."===y||","===y?1:0),v=g>0?e.substring(x,p):"";if(n=(t="-"===(e=e.substring(f,x)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+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],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,x=0;x<p;x++)m+=d.charAt(x),!((x-b+1)%l)&&x<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+v}}));function CW(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const EW={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},kW=/%\)?$/,RW=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,MW=/^\(oct\)/i,AW=/^\(dec\)/i,IW=/^\(hex\)/i,LW=/^\(bin\)/i,PW=/^\(rom\)/i,DW=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,TW=/#|0/g;function OW(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function zW(e,t,n){let r;return RW.test(t)?e=OW(e,Number(/\d{2}/.exec(t)[0]),t,n):MW.test(t)?e=OW(e,8,t,n):AW.test(t)?e=OW(e,10,t,n):IW.test(t)?e=OW(e,16,t,n):LW.test(t)?e=OW(e,2,t,n):PW.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(n=0;n<a.length;n++)if(a[n]<=o){r+=s[n],o-=a[n];break}for(n=0;n<i;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function NW(e,t,n){const r=CW(e);return n?r:new RegExp(r||"",t)}function qW(e,t,n,r){let o,i,a,s,l,u,c,d,p,f=e.pattern;var h,m;r&&(e.abbreviate=!0),h=t,(m=n)&&(m=CW(m)),h&&(h=CW(h)),p=new RegExp("(?:[#0]+".concat(h,")?[#0]+(?:").concat(m,"[#0]+)?")),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===n&&(o=a.split(n),i=o.pop(),a=o.join("")+n+i,t=""),u=t,t=/,/.test(n)?"¤":",",u&&(a=a.replace(NW(u,"g"),t)),c=n,n=".",c&&(a=a.replace(NW(c,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=f.split(c);let b;g[1]&&(b=g[1].match(TW)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=b?b.length:2,e.percentage=kW.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(NW(t,null,!0),"|").concat(NW(n,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=n,e.temp=d}class jW{constructor(e,t,n,r,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return EW;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new jW(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],DW.test(e[0])&&(r.positive.isFunctional=!0),e[1]?DW.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?DW.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const o="U"===this.type;r.positive.isFunctional||qW(r.positive,t,n,o),r.negative&&!r.negative.isFunctional&&qW(r.negative,t,n,o),r.zero&&!r.zero.isFunctional&&qW(r.zero,t,n,o)}formatValue(e){let t,n,r,o,i,a,s,l,u,c=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,i=c.d,a=c.t,c.isFunctional)e=zW(e,c.pattern,i);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,o,i=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);i<=n&&s<t.length;)s++,i=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?o=r:(n<0&&r<0||!r)&&(i<0&&i-n<=c.maxPrecision?o=i:r<=n&&!(i>0&&-n<=c.maxPrecision)&&(o=r)),o&&(d=this.abbreviations[o],e/=10**o)}if(r=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,u||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let n=l.split(i)[0];if(n+=i,e=SW(n,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),n=u.replace(/#+$/,"").length;let o=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<n;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=SW(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===i?c.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+p+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function FW(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:o=e=>e}=t;let i,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return i=r?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(u>=n&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),i.get=e=>s[e],i.has=e=>e in s,i.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},i.size=()=>u,i}function BW(e,t,n,r,o){const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new jW(...t)}(o,e,t,n,r),a=FW(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),i.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const $W="D",WW="T",HW="TS",GW="IV",VW=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],YW=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],UW=["January","February","March","April","May","June","July","August","September","October","November","December"],KW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function XW(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function JW(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function ZW(e,t){let n,r=function(e){const t=e,n=24*JW(t),r=60*JW(n),o=60*JW(r),i=1e3*JW(o);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(o),f:Math.round(i)}}(e),o=r.d,i=r.h,a=r.m,s=r.s,l=r.f,u=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=n?n.getDay()-1:0,u<0&&(u=6));let c="";return n&&(c=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:o,h:i,m:a,s:s,f:l,t:c}}class QW{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:VW,qDayNames:YW,qLongMonthNames:UW,qMonthNames:KW}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[WW]:r.qTimeFmt||"hh:mm:ss",[$W]:r.qDateFmt||"YYYY-MM-DD",[HW]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new QW(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=ZW(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:XW("".concat(t.year).slice(-2),2),YYY:XW("".concat(t.year).slice(-3),3),def:e=>XW("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:XW("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:XW("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>XW("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>XW("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>XW("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>XW("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in o[n])if(t===e||t.toLowerCase()===e){r=o[n][t],void 0===r&&(r=o[n][t.toLowerCase()]);break}return void 0===r&&(r=o[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function eH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new QW(...t)}function tH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=eH(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=FW(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==GW?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),r(e)}return i.format=function(e,t){return r.clear(),t=o(t),n.format(t,e)},i.locale=function(o){return n=eH(o,e,t),r=FW(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},i}function nH(){let e,{meta:t,id:n,key:r,localeInfo:o,fieldExtractor:i,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return tH(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(n="#".concat(o,"##"),i="U"),BW(n,r,o,i,t)}(t,o),p="dimension"===s?"first":(e,t)=>d(t),f={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=i(f)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:p,formatter:()=>d,tags:()=>t.qTags};return f}function rH(e,t,n,r,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(i),s={instance:nH(F$({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=rH("qAttrDimInfo",t,n,a,F$({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=rH("qAttrExprInfo",t,n,a,F$({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=rH("qMeasureInfo",t,n,a,F$({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function oH(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},o=t;if(!o)throw new Error('Missing "data" input');if(!o.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const i=oH.util,a={cache:r,cube:o,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>o,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,i),hierarchy:e=>a.hierarchy(e,s,r,i),_cache:()=>r};"K"===o.qMode||"T"===o.qMode||!o.qMode&&o.qNodesOnDim?(a.extractor=wW,a.hierarchy=_W,a.pages="K"===o.qMode?o.qStackedDataPages:o.qTreeDataPages):"S"===o.qMode?(a.extractor=H$,a.pages=o.qDataPages,a.hierarchy=_W):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,i);const l="S"===o.qMode?e=>e.qElemNumber:void 0,u="S"===o.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...rH("qDimensionInfo",o,e,"",F$({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...rH("qMeasureInfo",o,e,"",F$({},a,{value:u,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const c=e=>{e.forEach((e=>{r.allFields.push(e.instance),c(e.measures),c(e.attrDims),c(e.attrExps)}))};return c(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),o=nH(L$({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,i),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(o)})),r.allFields.push(...r.virtualFields),s}const iH=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],aH=/\/qDimensionInfo(?:\/(\d+))?/,sH=/\/qMeasureInfo\/(\d+)/,lH=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,uH=/\/qAttrExprInfo\/(\d+)/,cH=/\/?qHyperCube/,dH=/\/?qTreeData/,pH=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),fH=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function hH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,o=-1,i="",a=e=>e;cH.test(e)?(i="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=pH):dH.test(e)&&(i="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=fH);let s=!0;if(aH.test(e)&&(r=+aH.exec(e)[1]),sH.test(e)&&(o=+sH.exec(e)[1]),lH.test(e)){o=-1,r=0;const e=+lH.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(uH.test(e)){const e=o;if(t){o=0;const a=sW(i,t);o+=(a.qMeasureInfo||[]).length,r>-1?(o=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),r=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+uH.exec(n)[1]}else r>-1?(r=-1,o=+uH.exec(n)[1]):o+=+uH.exec(n)[1]+1}return iH.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:o,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,i=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||s>=i)&&i>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,i.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var u;a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]});return a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i}function mH(e){oH.util=e.data("matrix").util,e.data("q",oH),e.formatter("q-number",BW),e.formatter("q-time",tH)}mH.qBrushHelper=hH,mH.selections=hH;var gH=Object.prototype.hasOwnProperty,bH=Object.prototype.toString,yH=Object.defineProperty,xH=Object.getOwnPropertyDescriptor,vH=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===bH.call(e)},_H=function(e){if(!e||"[object Object]"!==bH.call(e))return!1;var t,n=gH.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gH.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gH.call(e,t)},wH=function(e,t){yH&&"__proto__"===t.name?yH(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},SH=function(e,t){if("__proto__"===t){if(!gH.call(e,t))return;if(xH)return xH(e,t).value}return e[t]},CH=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=SH(s,n),s!==(o=SH(t,n))&&(c&&o&&(_H(o)||(i=vH(o)))?(i?(i=!1,a=r&&vH(r)?r:[]):a=r&&_H(r)?r:{},wH(s,{name:n,newValue:e(c,a,o)})):void 0!==o&&wH(s,{name:n,newValue:o}));return s},EH="2.8.2";function kH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RH(Object(n),!0).forEach((function(t){kH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AH(e){return!!e.changedTouches}function IH(e){return"number"==typeof e&&!isNaN(e)}function LH(e){return"number"!=typeof e||isNaN(e)}function PH(e){const t=e.length;let n=NaN,r=NaN,o=NaN,i=NaN;for(let a=0;a<t;a++)n=isNaN(n)?e[a].x:Math.min(n,e[a].x),r=isNaN(r)?e[a].x:Math.max(r,e[a].x),o=isNaN(o)?e[a].y:Math.min(o,e[a].y),i=isNaN(i)?e[a].y:Math.max(i,e[a].y);return[n,o,r,i]}function DH(e){return[{x:e.x1||0,y:e.y1||0},{x:e.x2||0,y:e.y2||0}]}function TH(e){return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}]}function OH(e){const[t,n,r,o]=PH(e);return{x:t,y:n,width:r-t,height:o-n}}function zH(e){return{x1:e[0].x,y1:e[0].y,x2:e[1].x,y2:e[1].y}}function NH(e){const{x:t,y:n,width:r,height:o,x1:i,x2:a,y1:s,y2:l,cx:u,cy:c,r:d,vertices:p}=e||{};return IH(u)&&IH(c)&&IH(d)?"circle":IH(i)&&IH(a)&&IH(s)&&IH(l)?"line":IH(t)&&IH(n)&&IH(r)&&IH(o)?"rect":IH(t)&&IH(n)?"point":Array.isArray(p)?p.every((e=>Array.isArray(e)))?"geopolygon":"polygon":null}function qH(e,t){return{x:t.x-e,y:t.y-e,width:t.width+e,height:t.height+e}}var jH=Math.PI,FH=2*jH,BH=1e-6,$H=FH-BH;function WH(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function HH(){return new WH}function GH(e){return function(){return e}}WH.prototype=HH.prototype={constructor:WH,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-e,l=r-t,u=i-e,c=a-t,d=u*u+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>BH)if(Math.abs(c*s-l*u)>BH&&o){var p=n-i,f=r-a,h=s*s+l*l,m=p*p+f*f,g=Math.sqrt(h),b=Math.sqrt(d),y=o*Math.tan((jH-Math.acos((h+d-m)/(2*g*b)))/2),x=y/b,v=y/g;Math.abs(x-1)>BH&&(this._+="L"+(e+x*u)+","+(t+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*p>u*f)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>BH||Math.abs(this._y1-u)>BH)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%FH+FH),d>$H?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>BH&&(this._+="A"+n+","+n+",0,"+ +(d>=jH)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var VH=Math.abs,YH=Math.atan2,UH=Math.cos,KH=Math.max,XH=Math.min,JH=Math.sin,ZH=Math.sqrt,QH=1e-12,eG=Math.PI,tG=eG/2,nG=2*eG;function rG(e){return e>=1?tG:e<=-1?-tG:Math.asin(e)}function oG(e){return e.innerRadius}function iG(e){return e.outerRadius}function aG(e){return e.startAngle}function sG(e){return e.endAngle}function lG(e){return e&&e.padAngle}function uG(e,t,n,r,o,i,a){var s=e-n,l=t-r,u=(a?i:-i)/ZH(s*s+l*l),c=u*l,d=-u*s,p=e+c,f=t+d,h=n+c,m=r+d,g=(p+h)/2,b=(f+m)/2,y=h-p,x=m-f,v=y*y+x*x,_=o-i,w=p*m-h*f,S=(x<0?-1:1)*ZH(KH(0,_*_*v-w*w)),C=(w*x-y*S)/v,E=(-w*y-x*S)/v,k=(w*x+y*S)/v,R=(-w*y+x*S)/v,M=C-g,A=E-b,I=k-g,L=R-b;return M*M+A*A>I*I+L*L&&(C=k,E=R),{cx:C,cy:E,x01:-c,y01:-d,x11:C*(o/_-1),y11:E*(o/_-1)}}function cG(){var e=oG,t=iG,n=GH(0),r=null,o=aG,i=sG,a=lG,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),p=o.apply(this,arguments)-tG,f=i.apply(this,arguments)-tG,h=VH(f-p),m=f>p;if(s||(s=l=HH()),d<c&&(u=d,d=c,c=u),d>QH)if(h>nG-QH)s.moveTo(d*UH(p),d*JH(p)),s.arc(0,0,d,p,f,!m),c>QH&&(s.moveTo(c*UH(f),c*JH(f)),s.arc(0,0,c,f,p,m));else{var g,b,y=p,x=f,v=p,_=f,w=h,S=h,C=a.apply(this,arguments)/2,E=C>QH&&(r?+r.apply(this,arguments):ZH(c*c+d*d)),k=XH(VH(d-c)/2,+n.apply(this,arguments)),R=k,M=k;if(E>QH){var A=rG(E/c*JH(C)),I=rG(E/d*JH(C));(w-=2*A)>QH?(v+=A*=m?1:-1,_-=A):(w=0,v=_=(p+f)/2),(S-=2*I)>QH?(y+=I*=m?1:-1,x-=I):(S=0,y=x=(p+f)/2)}var L=d*UH(y),P=d*JH(y),D=c*UH(_),T=c*JH(_);if(k>QH){var O,z=d*UH(x),N=d*JH(x),q=c*UH(v),j=c*JH(v);if(h<eG&&(O=function(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,p=d*l-c*u;if(!(p*p<QH))return[e+(p=(c*(t-i)-d*(e-o))/p)*l,t+p*u]}(L,P,q,j,z,N,D,T))){var F=L-O[0],B=P-O[1],$=z-O[0],W=N-O[1],H=1/JH(function(e){return e>1?0:e<-1?eG:Math.acos(e)}((F*$+B*W)/(ZH(F*F+B*B)*ZH($*$+W*W)))/2),G=ZH(O[0]*O[0]+O[1]*O[1]);R=XH(k,(c-G)/(H-1)),M=XH(k,(d-G)/(H+1))}}S>QH?M>QH?(g=uG(q,j,L,P,d,M,m),b=uG(z,N,D,T,d,M,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),M<k?s.arc(g.cx,g.cy,M,YH(g.y01,g.x01),YH(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,M,YH(g.y01,g.x01),YH(g.y11,g.x11),!m),s.arc(0,0,d,YH(g.cy+g.y11,g.cx+g.x11),YH(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,M,YH(b.y11,b.x11),YH(b.y01,b.x01),!m))):(s.moveTo(L,P),s.arc(0,0,d,y,x,!m)):s.moveTo(L,P),c>QH&&w>QH?R>QH?(g=uG(D,T,z,N,c,-R,m),b=uG(L,P,q,j,c,-R,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),R<k?s.arc(g.cx,g.cy,R,YH(g.y01,g.x01),YH(b.y01,b.x01),!m):(s.arc(g.cx,g.cy,R,YH(g.y01,g.x01),YH(g.y11,g.x11),!m),s.arc(0,0,c,YH(g.cy+g.y11,g.cx+g.x11),YH(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,R,YH(b.y11,b.x11),YH(b.y01,b.x01),!m))):s.arc(0,0,c,_,v,m):s.lineTo(D,T)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-eG/2;return[UH(r)*n,JH(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:GH(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:GH(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:GH(+e),l):r},l.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:GH(+e),l):o},l.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:GH(+e),l):i},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:GH(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function dG(e){this._context=e}function pG(e){return new dG(e)}function fG(e){return e[0]}function hG(e){return e[1]}function mG(){var e=fG,t=null,n=GH(0),r=hG,o=GH(!0),i=null,a=pG,s=null;function l(l){var u,c,d,p,f,h=l.length,m=!1,g=new Array(h),b=new Array(h);for(null==i&&(s=a(f=HH())),u=0;u<=h;++u){if(!(u<h&&o(p=l[u],u,l))===m)if(m=!m)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(g[d],b[d]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+e(p,u,l),b[u]=+n(p,u,l),s.point(t?+t(p,u,l):g[u],r?+r(p,u,l):b[u]))}if(f)return s=null,f+""||null}function u(){return function(){var e=fG,t=hG,n=GH(!0),r=null,o=pG,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=HH())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(l,s,a),+t(l,s,a));if(u)return i=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:GH(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:GH(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:GH(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:GH(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:GH(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:GH(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:GH(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:GH(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l}function gG(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function bG(e){return e}dG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var yG=Array.prototype.slice;function xG(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vG(e){this._context=e}function _G(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function wG(e,t){this._context=e,this._k=(1-t)/6}vG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xG(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xG(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_G(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_G(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var SG=function e(t){function n(e){return new wG(e,t)}return n.tension=function(t){return e(+t)},n}(0);function CG(e,t){this._context=e,this._alpha=t}CG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>QH){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>QH){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var EG=function e(t){function n(e){return t?new CG(e,t):new wG(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kG(e){return e<0?-1:1}function RG(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(kG(i)+kG(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function MG(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function AG(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function IG(e){this._context=e}function LG(e){this._context=new PG(e)}function PG(e){this._context=e}function DG(e){this._context=e}function TG(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function OG(e,t){this._context=e,this._t=t}function zG(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function NG(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function qG(e,t){return e[t]}function jG(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function FG(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}function BG(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unspecified",r=arguments.length>2?arguments[2]:void 0;const o={},i=e||{get:()=>{},has:()=>!1,default:()=>{}};function a(e,t){if(!e||"string"!=typeof e)throw new TypeError("Invalid argument: key must be a non-empty string");return!(e in o)&&(o[e]=t,!0)}function s(e){return o[e]||i.get(e)}function l(e,o){if(void 0!==o)return a(e,o);const i=s(e);return r&&void 0===i&&r.warn("".concat(e," does not exist in ").concat(n," registry")),i||s(t)}return t=i.default(),l.add=a,l.get=s,l.has=function(e){return!!o[e]||i.has(e)},l.remove=function(e){const t=o[e];return delete o[e],t},l.getKeys=function(){return Object.keys(o)},l.getValues=function(){return Object.keys(o).map((e=>o[e]))},l.default=function(e){return void 0!==e&&(t=e),t},l.register=a,l}function $G(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function WG(e){return(e=$G(Math.abs(e)))?e[1]:NaN}IG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:AG(this,this._t0,MG(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,AG(this,MG(this,n=RG(this,e,t)),n);break;default:AG(this,this._t0,n=RG(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(LG.prototype=Object.create(IG.prototype)).point=function(e,t){IG.prototype.point.call(this,t,e)},PG.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},DG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=TG(e),o=TG(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},OG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var HG,GG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function VG(e){if(!(t=GG.exec(e)))throw new Error("invalid format: "+e);var t;return new YG({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function YG(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function UG(e,t){var n=$G(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}VG.prototype=YG.prototype,YG.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var KG={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>UG(100*e,t),r:UG,s:function(e,t){var n=$G(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(HG=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+$G(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function XG(e){return e}var JG,ZG,QG,eV=Array.prototype.map,tV=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nV(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?XG:(t=eV.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?XG:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(eV.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=VG(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(m=!0,y="g"):KG[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var x="$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===p?i:/[%p]/.test(y)?l:"",_=KG[y],w=/[defgprs%]/.test(y);function S(e){var o,i,l,p=x,S=v;if("c"===y)S=_(e)+S,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:_(Math.abs(e),g),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),p=(C?"("===d?d:u:"-"===d||"("===d?"":d)+p,S=("s"===y?tV[8+HG/3]:"")+S+(C&&"("===d?")":""),w)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var E=p.length+e.length+S.length,k=E<h?new Array(h-E+1).join(t):"";switch(m&&f&&(e=r(k+e,k.length?h-S.length:1/0),k=""),n){case"<":e=p+e+S+k;break;case"=":e=p+k+e+S;break;case"^":e=k.slice(0,E=k.length>>1)+p+e+S+k.slice(E);break;default:e=k+p+e+S}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=VG(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(WG(t)/3))),o=Math.pow(10,-r),i=tV[8+r/3];return function(e){return n(o*e)+i}}}}!function(e){JG=nV(e),ZG=JG.format,QG=JG.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const rV=new Date,oV=new Date;function iV(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>iV((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(rV.setTime(+t),oV.setTime(+r),e(rV),e(oV),Math.floor(n(rV,oV))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const aV=6e4,sV=864e5,lV=6048e5,uV=iV((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aV)/sV),(e=>e.getDate()-1));uV.range;const cV=iV((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sV),(e=>e.getUTCDate()-1));cV.range;const dV=iV((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sV),(e=>Math.floor(e/sV)));function pV(e){return iV((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*aV)/lV))}dV.range;const fV=pV(0),hV=pV(1),mV=pV(2),gV=pV(3),bV=pV(4),yV=pV(5),xV=pV(6);function vV(e){return iV((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/lV))}fV.range,hV.range,mV.range,gV.range,bV.range,yV.range,xV.range;const _V=vV(0),wV=vV(1),SV=vV(2),CV=vV(3),EV=vV(4),kV=vV(5),RV=vV(6);_V.range,wV.range,SV.range,CV.range,EV.range,kV.range,RV.range;const MV=iV((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));MV.every=e=>isFinite(e=Math.floor(e))&&e>0?iV((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,MV.range;const AV=iV((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function IV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function PV(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=IV,n=(t,n)=>IV(e(t),n),r=(t,n)=>e(t)-n):(t=e===IV||e===LV?e:DV,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function DV(){return 0}AV.every=e=>isFinite(e=Math.floor(e))&&e>0?iV((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,AV.range;const TV=PV(IV).right;PV((function(e){return null===e?NaN:+e})).center;var OV=TV;class zV extends Map{constructor(e,t=qV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(NV(this,e))}has(e){return super.has(NV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function NV({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function qV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const jV=Math.sqrt(50),FV=Math.sqrt(10),BV=Math.sqrt(2);function $V(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=jV?10:i>=FV?5:i>=BV?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?$V(e,t,2*n):[s,l,u]}function WV(e,t,n){return $V(e=+e,t=+t,n=+n)[2]}function HV(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function GV(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function VV(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function YV(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=eY(o),c=tY(o),d=eY(i),p=tY(i),f=eY(a),h=tY(a),m=eY(s),g=tY(s),b=eY(l),y=tY(l),x={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:wY,e:wY,f:RY,g:qY,G:FY,H:SY,I:CY,j:EY,L:kY,m:MY,M:AY,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:uU,s:cU,S:IY,u:LY,U:PY,V:TY,w:OY,W:zY,x:null,X:null,y:NY,Y:jY,Z:BY,"%":lU},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:$Y,e:$Y,f:YY,g:oU,G:aU,H:WY,I:HY,j:GY,L:VY,m:UY,M:KY,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:uU,s:cU,S:XY,u:JY,U:ZY,V:eU,w:tU,W:nU,x:null,X:null,y:rU,Y:iU,Z:sU,"%":lU},_={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:pY,e:pY,f:yY,g:lY,G:sY,H:hY,I:hY,j:fY,L:bY,m:dY,M:mY,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:cY,Q:vY,s:_Y,S:gY,u:rY,U:oY,V:iY,w:nY,W:aY,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:lY,Y:sY,Z:uY,"%":xY};function w(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=UV[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,o,i=VV(1900,void 0,1);if(C(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=GV(VV(i.y,0,1))).getUTCDay(),r=o>4||0===o?wV.ceil(r):wV(r),r=cV.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=HV(VV(i.y,0,1))).getDay(),r=o>4||0===o?hV.ceil(r):hV(r),r=uV.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?GV(VV(i.y,0,1)).getUTCDay():HV(VV(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,GV(i)):HV(i)}}function C(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=_[o in UV?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),{format:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}var UV={"-":"",_:" ",0:"0"},KV=/^\s*\d+/,XV=/^%/,JV=/[\\^$*+?|[\]().{}]/g;function ZV(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function QV(e){return e.replace(JV,"\\$&")}function eY(e){return new RegExp("^(?:"+e.map(QV).join("|")+")","i")}function tY(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function nY(e,t,n){var r=KV.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rY(e,t,n){var r=KV.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function oY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function iY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function aY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sY(e,t,n){var r=KV.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function uY(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cY(e,t,n){var r=KV.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function dY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function fY(e,t,n){var r=KV.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function hY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gY(e,t,n){var r=KV.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function bY(e,t,n){var r=KV.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yY(e,t,n){var r=KV.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xY(e,t,n){var r=XV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vY(e,t,n){var r=KV.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _Y(e,t,n){var r=KV.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wY(e,t){return ZV(e.getDate(),t,2)}function SY(e,t){return ZV(e.getHours(),t,2)}function CY(e,t){return ZV(e.getHours()%12||12,t,2)}function EY(e,t){return ZV(1+uV.count(MV(e),e),t,3)}function kY(e,t){return ZV(e.getMilliseconds(),t,3)}function RY(e,t){return kY(e,t)+"000"}function MY(e,t){return ZV(e.getMonth()+1,t,2)}function AY(e,t){return ZV(e.getMinutes(),t,2)}function IY(e,t){return ZV(e.getSeconds(),t,2)}function LY(e){var t=e.getDay();return 0===t?7:t}function PY(e,t){return ZV(fV.count(MV(e)-1,e),t,2)}function DY(e){var t=e.getDay();return t>=4||0===t?bV(e):bV.ceil(e)}function TY(e,t){return e=DY(e),ZV(bV.count(MV(e),e)+(4===MV(e).getDay()),t,2)}function OY(e){return e.getDay()}function zY(e,t){return ZV(hV.count(MV(e)-1,e),t,2)}function NY(e,t){return ZV(e.getFullYear()%100,t,2)}function qY(e,t){return ZV((e=DY(e)).getFullYear()%100,t,2)}function jY(e,t){return ZV(e.getFullYear()%1e4,t,4)}function FY(e,t){var n=e.getDay();return ZV((e=n>=4||0===n?bV(e):bV.ceil(e)).getFullYear()%1e4,t,4)}function BY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ZV(t/60|0,"0",2)+ZV(t%60,"0",2)}function $Y(e,t){return ZV(e.getUTCDate(),t,2)}function WY(e,t){return ZV(e.getUTCHours(),t,2)}function HY(e,t){return ZV(e.getUTCHours()%12||12,t,2)}function GY(e,t){return ZV(1+cV.count(AV(e),e),t,3)}function VY(e,t){return ZV(e.getUTCMilliseconds(),t,3)}function YY(e,t){return VY(e,t)+"000"}function UY(e,t){return ZV(e.getUTCMonth()+1,t,2)}function KY(e,t){return ZV(e.getUTCMinutes(),t,2)}function XY(e,t){return ZV(e.getUTCSeconds(),t,2)}function JY(e){var t=e.getUTCDay();return 0===t?7:t}function ZY(e,t){return ZV(_V.count(AV(e)-1,e),t,2)}function QY(e){var t=e.getUTCDay();return t>=4||0===t?EV(e):EV.ceil(e)}function eU(e,t){return e=QY(e),ZV(EV.count(AV(e),e)+(4===AV(e).getUTCDay()),t,2)}function tU(e){return e.getUTCDay()}function nU(e,t){return ZV(wV.count(AV(e)-1,e),t,2)}function rU(e,t){return ZV(e.getUTCFullYear()%100,t,2)}function oU(e,t){return ZV((e=QY(e)).getUTCFullYear()%100,t,2)}function iU(e,t){return ZV(e.getUTCFullYear()%1e4,t,4)}function aU(e,t){var n=e.getUTCDay();return ZV((e=n>=4||0===n?EV(e):EV.ceil(e)).getUTCFullYear()%1e4,t,4)}function sU(){return"+0000"}function lU(){return"%"}function uU(e){return+e}function cU(e){return Math.floor(+e/1e3)}const dU=BG();dU("d3-number",(function(e,t,n){let r,o;function i(e){return o(e)}function a(){i.locale({decimal:n||".",thousands:t||",",grouping:[3],currency:["$",""]})}return i.locale=function(t){return r=nV(t),o=r.format(e),this},a(),i.format=function(e,o,i,s){return(i||s)&&(t=i,n=s,a()),r.format(e)(o)},i.pattern=function(t){return t&&(e=t,o=r.format(t)),e},i})),dU("d3-time",(function(e){let t=YV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),n=t.format(e);function r(e){return n(e)}return r.format=function(e,n){return t.format(e)(n)},r.locale=function(){return t=YV(...arguments),n=t.format(e),this},r.parse=function(e,n){return t.parse(e)(n)},r.parsePattern=function(e){return t.parse(e)},r}));const pU={id:e=>"".concat(e.source,"/").concat(e.key||e.title),key:e=>String(e.key||e.title),tags:e=>e.tags,min:e=>e.min,max:e=>e.max,type:e=>e.type,title:e=>String(e.title),values:e=>e.values,value:e=>e,label:e=>e,formatter:e=>(e=>{if("function"==typeof e.formatter)return e.formatter();const t=e.formatter||{};return dU(t.type||"d3-number")(t.format||"")})(e)};function fU(e){let{id:t=pU.id,key:n=pU.key,min:r=pU.min,max:o=pU.max,type:i=pU.type,tags:a=pU.tags,title:s=pU.title,values:l=pU.values,value:u=pU.value,label:c=pU.label,formatter:d=pU.formatter}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:()=>t(e),key:()=>n(e),raw:()=>e,tags:()=>a(e),type:()=>i(e),min:()=>r(e),max:()=>o(e),title:()=>s(e),items:()=>l(e),formatter:()=>d(e),value:u,label:c}}const hU=e=>e.filter((e=>"number"==typeof e&&!isNaN(e))),mU=e=>e.reduce(((e,t)=>e+t),0),gU={first:e=>e[0],last:e=>e[e.length-1],min:e=>{const t=hU(e);return t.length?Math.min.apply(null,t):NaN},max:e=>{const t=hU(e);return t.length?Math.max.apply(null,t):NaN},sum:e=>{const t=hU(e);return t.length?t.reduce(((e,t)=>e+t),0):NaN},avg:e=>{const t=hU(e),n=t.length;return n?mU(t)/n:NaN}};function bU(e,t,n,r){const o={},i=r.field||(void 0!==e.field?t.field(e.field):null);return Object.keys(n).forEach((a=>{const s=n[a],l=o[a]={};-1!==["number","string","boolean"].indexOf(typeof s)?(l.type="primitive",l.value=s):"function"==typeof s?(l.type="function",l.value=s,l.label=s,l.field=i):"object"==typeof s&&(s.fields?l.fields=s.fields.map((n=>bU(e,t,{main:n},r).main)):void 0!==s.field?(l.type="field",l.field=t.field(s.field),l.value=l.field.value,l.label=l.field.label):i&&(l.value=i.value,l.label=i.label,l.field=i),"function"==typeof s.filter&&(l.filter=s.filter),void 0!==s.value&&(l.value=s.value),void 0!==s.label&&(l.label=s.label),"function"==typeof s.reduce?l.reduce=s.reduce:s.reduce?l.reduce=gU[s.reduce]:l.field&&l.field.reduce&&(l.reduce="string"==typeof l.field.reduce?gU[l.field.reduce]:l.field.reduce),"function"==typeof s.reduceLabel?l.reduceLabel=s.reduceLabel:s.reduceLabel?l.reduceLabel=gU[s.reduceLabel]:l.field&&l.field.reduceLabel&&(l.reduceLabel="string"==typeof l.field.reduceLabel?gU[l.field.reduceLabel]:l.field.reduceLabel))})),o}function yU(e,t){const{main:n}=bU(e,t,{main:{value:e.value,label:e.label,reduce:e.reduce,filter:e.filter}},{});return{props:bU(e,t,e.props||{},n),main:n}}function xU(e,t,n,r){const o=Array(e.length),i=Array(e.length);let a;for(let t=0;t<e.length;t++)a=r?e[t][r]:e[t],o[t]=a.value,i[t]=a.label;const s=t.reduce,l=t.reduceLabel,u=s?s(o):o,c={value:u,label:l?l(i,u):n?n(u):String(u)};return r&&e[0][r].source?(c.source=e[0][r].source,c):!r&&e[0].source?(c.source=e[0].source,c):c}function vU(e,t){let{main:n,propsArr:r,props:o}=t,i=[];const a=n.field.formatter(),s={};return r.forEach((e=>{s[e]=o[e].field?o[e].field.formatter():e=>e})),i.push(...e.map((e=>{const t=xU(e.items,n,a);return r.forEach((n=>{t[n]=xU(e.items,o[n],s[n],n)})),t}))),i}function _U(e){let{cfg:t,itemData:n,obj:r,target:o,tracker:i,trackType:a}=e;const s="function"===a?t.trackBy(n):n[t.trackBy];let l=i[s];l||(l=i[s]={items:[],id:s},o.push(l)),l.items.push(r)}function wU(e){if(e.length<1e4)return Math.max(...e);let t=-1/0;const n=e.length;for(let r=0;r<n;r++)t<e[r]&&(t=e[r]);return t}function SU(e){if(e.length<1e4)return Math.min(...e);let t=1/0;const n=e.length;for(let r=0;r<n;r++)t>e[r]&&(t=e[r]);return t}const CU={diverging:function(e,t){if((s=e.length)>0)for(var n,r,o,i,a,s,l=0,u=e[t[0]].length;l<u;++l)for(i=a=0,n=0;n<s;++n)(o=(r=e[t[n]][l])[1]-r[0])>=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},none:zG,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}zG(e,t)}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}zG(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],d=c[a][1]||0,p=(d-(c[a-1][1]||0))/2,f=0;f<s;++f){var h=e[t[f]];p+=(h[a][1]||0)-(h[a-1][1]||0)}l+=d,u+=p*d}n[a-1][1]+=n[a-1][0]=i,l&&(i-=u/l)}n[a-1][1]+=n[a-1][0]=i,zG(e,t)}}},EU={ascending:function(e){var t=e.map(FG);return NG(e).sort((function(e,n){return t[e]-t[n]}))},insideout:function(e){var t,n,r=e.length,o=e.map(FG),i=function(e){var t=e.map(jG);return NG(e).sort((function(e,n){return t[e]-t[n]}))}(e),a=0,s=0,l=[],u=[];for(t=0;t<r;++t)n=i[t],a<s?(a+=o[n],l.push(n)):(s+=o[n],u.push(n));return u.reverse().concat(l)},none:NG,reverse:function(e){return NG(e).reverse()}};function kU(e,t,n){const r={},o=t.stackKey,i=t.value,a=t.startProp||"start",s=t.endProp||"end",l=t.offset||"none",u=t.order||"none",c=t.valueRef||"";let d=0,p={};for(let t=0;t<e.items.length;t++){let n=e.items[t],i=c?n[c]:null;if(i&&i.source){let e="".concat(i.source.key||"","/").concat(i.source.field);p[e]||(p[e]=i.source)}let a=o(n);r[a]=r[a]||{items:[]},r[a].items.push(n),d=Math.max(d,r[a].items.length)}const f=Array.apply(null,{length:d}).map(Number.call,Number),h=Object.keys(r).map((e=>r[e].items)),m=function(){var e=GH([]),t=NG,n=zG,r=qG;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,u=s.length,c=new Array(u);for(i=0;i<u;++i){for(var d,p=s[i],f=c[i]=new Array(l),h=0;h<l;++h)f[h]=d=[0,+r(o[h],p,h,o)],d.data=o[h];f.key=p}for(i=0,a=t(c);i<u;++i)c[a[i]].index=i;return n(c,a),c}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:GH(yG.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:GH(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?NG:"function"==typeof e?e:GH(yG.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?zG:e,o):n},o}().keys(f).value(((e,t)=>e[t]?i(e[t]):0)).order(EU[u]).offset(CU[l]);let g=m(h),b=[];for(let e=0;e<g.length;e++){let t=g[e];for(let e=0;e<t.length;e++){let n=t[e],r=t[e].data[t.key];r&&(r[a]={value:n[0]},r[s]={value:n[1]},b.push(n[0],n[1]))}}let y=Object.keys(p).map((e=>{let t=n(p[e].key);return t?t.field(p[e].field):null})).filter((e=>!!e));const x=fU({title:y.map((e=>e.title())).join(", "),min:SU(b),max:wU(b),type:"measure",formatter:y[0]?y[0].formatter:void 0});e.fields.push(x)}function RU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).logger;if(Array.isArray(e))n.items=e.map((e=>({value:e,label:String(e)})));else if(e){if("collection"in e)n=MH({},t.collection(e.collection));else{const o=t.dataset?t.dataset(e.source):null;let i=e.value||(e=>e),a=e.label||(e=>e);if(e.groupBy||e.mapTo)r.warn('Deprecated "data" configuration',e),n.items=[];else if(e.hierarchy)n.root=o.hierarchy?o.hierarchy(e.hierarchy):null,n.fields=o.fields();else if(e.items)n.items=e.skipNormalize?e.items:e.items.map((e=>({value:i(e),label:String(a(e))})));else if(e.extract){const r=Array.isArray(e.extract)?e.extract:[e.extract];n.items=[];const i=[];r.forEach((e=>{const r=e.source?t.dataset(e.source):o;r&&(n.items=[...n.items,...r.extract(e)],void 0!==e.field&&i.push(r.field(e.field)))})),i.length&&(n.fields=i),e.amend&&Array.isArray(e.amend)&&(n.items=[...n.items,...e.amend])}else if(void 0!==e.field&&o){const t=o.field(e.field);t&&(n.fields||(n.fields=[]),n.fields.push(t),"value"in e||(i=t.value||(e=>e),a=t.label||(e=>e),n.value=i),n.items=t.items().map((t=>({value:i(t),label:String(a(t)),source:{field:e.field}}))))}else e.fields&&e.fields.forEach((e=>{const r="object"==typeof e&&e.source?t.dataset(e.source):o;if(!r)return;let i;i="object"==typeof e&&void 0!==e.field?r.field(e.field):r.field(e),i&&(n.fields||(n.fields=[]),n.fields.push(i))}));n.items&&e.map&&(n.items=n.items.map(e.map))}e&&e.stack&&kU(n,e.stack,t.dataset)}return e&&!Array.isArray(e)&&"function"==typeof e.filter&&n.items&&(n.items=n.items.filter(e.filter)),e&&!Array.isArray(e)&&"function"==typeof e.sort&&n.items&&(n.items=n.items.sort(e.sort)),n}function MU(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:RU;if(e.data){const r=o(e.data,t,n);if(r&&r.fields&&r.fields[0])return r.fields[0].formatter()}if(r=e.formatter?"".concat(e.formatter,"-").concat(e.type||"number"):e.type||"d3-number",n.formatter.has(r)){return n.formatter.get(r)(e.format||"")}throw new Error("Formatter of type '".concat(r,"' was not found"))}function AU(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const IU=Symbol("implicit");function LU(){var e=new zV,t=[],n=[],r=IU;function o(o){let i=e.get(o);if(void 0===i){if(r!==IU)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new zV;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return LU(t,n).unknown(r)},AU.apply(o,arguments),o}function PU(){var e,t,n=LU().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<i,p=d?a:i,f=d?i:a;e=(f-p)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),p+=(f-p-e*(n-l))*c,t=e*(1-l),s&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return PU(r(),[i,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},AU.apply(d(),arguments)}function DU(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function TU(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function OU(){}var zU=.7,NU=1/zU,qU="\\s*([+-]?\\d+)\\s*",jU="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",FU="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BU=/^#([0-9a-f]{3,8})$/,$U=new RegExp(`^rgb\\(${qU},${qU},${qU}\\)$`),WU=new RegExp(`^rgb\\(${FU},${FU},${FU}\\)$`),HU=new RegExp(`^rgba\\(${qU},${qU},${qU},${jU}\\)$`),GU=new RegExp(`^rgba\\(${FU},${FU},${FU},${jU}\\)$`),VU=new RegExp(`^hsl\\(${jU},${FU},${FU}\\)$`),YU=new RegExp(`^hsla\\(${jU},${FU},${FU},${jU}\\)$`),UU={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 KU(){return this.rgb().formatHex()}function XU(){return this.rgb().formatRgb()}function JU(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BU.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ZU(t):3===n?new tK(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?QU(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?QU(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=$U.exec(e))?new tK(t[1],t[2],t[3],1):(t=WU.exec(e))?new tK(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HU.exec(e))?QU(t[1],t[2],t[3],t[4]):(t=GU.exec(e))?QU(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=VU.exec(e))?sK(t[1],t[2]/100,t[3]/100,1):(t=YU.exec(e))?sK(t[1],t[2]/100,t[3]/100,t[4]):UU.hasOwnProperty(e)?ZU(UU[e]):"transparent"===e?new tK(NaN,NaN,NaN,0):null}function ZU(e){return new tK(e>>16&255,e>>8&255,255&e,1)}function QU(e,t,n,r){return r<=0&&(e=t=n=NaN),new tK(e,t,n,r)}function eK(e,t,n,r){return 1===arguments.length?function(e){return e instanceof OU||(e=JU(e)),e?new tK((e=e.rgb()).r,e.g,e.b,e.opacity):new tK}(e):new tK(e,t,n,null==r?1:r)}function tK(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nK(){return`#${aK(this.r)}${aK(this.g)}${aK(this.b)}`}function rK(){const e=oK(this.opacity);return`${1===e?"rgb(":"rgba("}${iK(this.r)}, ${iK(this.g)}, ${iK(this.b)}${1===e?")":`, ${e})`}`}function oK(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function iK(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function aK(e){return((e=iK(e))<16?"0":"")+e.toString(16)}function sK(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new uK(e,t,n,r)}function lK(e){if(e instanceof uK)return new uK(e.h,e.s,e.l,e.opacity);if(e instanceof OU||(e=JU(e)),!e)return new uK;if(e instanceof uK)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new uK(a,s,l,e.opacity)}function uK(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function cK(e){return(e=(e||0)%360)<0?e+360:e}function dK(e){return Math.max(0,Math.min(1,e||0))}function pK(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}DU(OU,JU,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:KU,formatHex:KU,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lK(this).formatHsl()},formatRgb:XU,toString:XU}),DU(tK,eK,TU(OU,{brighter(e){return e=null==e?NU:Math.pow(NU,e),new tK(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zU:Math.pow(zU,e),new tK(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tK(iK(this.r),iK(this.g),iK(this.b),oK(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:nK,formatHex:nK,formatHex8:function(){return`#${aK(this.r)}${aK(this.g)}${aK(this.b)}${aK(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rK,toString:rK})),DU(uK,(function(e,t,n,r){return 1===arguments.length?lK(e):new uK(e,t,n,null==r?1:r)}),TU(OU,{brighter(e){return e=null==e?NU:Math.pow(NU,e),new uK(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zU:Math.pow(zU,e),new uK(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new tK(pK(e>=240?e-240:e+120,o,r),pK(e,o,r),pK(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new uK(cK(this.h),dK(this.s),dK(this.l),oK(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=oK(this.opacity);return`${1===e?"hsl(":"hsla("}${cK(this.h)}, ${100*dK(this.s)}%, ${100*dK(this.l)}%${1===e?")":`, ${e})`}`}}));var fK=e=>()=>e;function hK(e){return 1==(e=+e)?mK:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):fK(isNaN(t)?n:t)}}function mK(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):fK(isNaN(e)?t:e)}var gK=function e(t){var n=hK(t);function r(e,t){var r=n((e=eK(e)).r,(t=eK(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=mK(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function bK(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function yK(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=EK(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function xK(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vK(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _K(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=EK(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var wK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,SK=new RegExp(wK.source,"g");function CK(e,t){var n,r,o,i=wK.lastIndex=SK.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=wK.exec(e))&&(r=SK.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:vK(n,r)})),i=SK.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function EK(e,t){var n,r=typeof t;return null==t||"boolean"===r?fK(t):("number"===r?vK:"string"===r?(n=JU(t))?(t=n,gK):CK:t instanceof JU?gK:t instanceof Date?xK:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?bK:Array.isArray(t)?yK:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?_K:vK)(e,t)}function kK(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function RK(e){return+e}var MK=[0,1];function AK(e){return e}function IK(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function LK(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=IK(o,r),i=n(a,i)):(r=IK(r,o),i=n(i,a)),function(e){return i(r(e))}}function PK(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=IK(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=OV(e,t,1,r)-1;return i[n](o[n](t))}}function DK(){var e,t,n,r,o,i,a=MK,s=MK,l=EK,u=AK;function c(){var e=Math.min(a.length,s.length);return u!==AK&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?PK:LK,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(s,a.map(e),vK)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,RK),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=kK,c()},d.clamp=function(e){return arguments.length?(u=!!e||AK,c()):u!==AK},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function TK(e,t,n,r){var o,i=function(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?WV(t,e,n):WV(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}(e,t,n);switch((r=VG(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(WG(t)/3)))-WG(Math.abs(e)))}(i,a))||(r.precision=o),QG(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,WG(t)-WG(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-WG(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return ZG(r)}function OK(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t<e,[o,i,a]=r?$V(t,e,n):$V(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)l[e]=(i-e)/-a;else for(let e=0;e<s;++e)l[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)l[e]=(o+e)/-a;else for(let e=0;e<s;++e)l[e]=(o+e)*a;return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return TK(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,l=i[a],u=i[s],c=10;for(u<l&&(o=l,l=u,u=o,o=a,a=s,s=o);c-- >0;){if((o=WV(l,u,n))===r)return i[a]=l,i[s]=u,t(i);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function zK(){var e=DK()(AK,AK);return e.copy=function(){return t=e,zK().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},AU.apply(e,arguments),OK(e)}function NK(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[OV(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return NK().domain(t).range(n).unknown(e)},AU.apply(o,arguments)}function qK(e){return void 0===e?e=>e:t=>e(t)}function jK(e){return Math.max(0,Math.min(1,e))}function FK(e){return"object"==typeof e}function BK(e,t,n){const r=Math.abs(t-n)/(e+1),o=[];for(let i=1;i<=e;i++){const e=i*r;o.push(t<n?t+e:t-e)}return o}function $K(e,t,n){if(1===e.length)return e;const r=e.concat([]);for(let o=0;o<e.length;o++){let i=e[o],a=e[o+1];0===o&&i!==n.start()?(r.push(...BK(t,i,a)),i-=a-i,a=e[o],r.push(...BK(t,i,a))):o===e.length-1&&a!==n.end()?(a=i+(i-e[o-1]),r.push(...BK(t,i,a))):r.push(...BK(t,i,a))}return r.filter((e=>e>=n.min()&&e<=n.max()))}function WK(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=LH(o)||LH(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a));let l=n.ticks(s);l.length<=1&&(l=n.ticks(s+1));const u=r>0?$K(l,r,n):l;u.sort(((e,t)=>e-t));const c=u.map(qK(i));return u.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:c[t],value:e,isMinor:-1===l.indexOf(e)}}))}function HK(e){let{distance:t,scale:n,minorCount:r=0,unitDivider:o=100,formatter:i}=e;const a=LH(o)||LH(t)?2:Math.max(t/o,2),s=Math.min(1e3,Math.round(a)),l=s>10?10:s;n.nice(l);const u=n.ticks(s),c=r>0?$K(u,r,n):u;c.sort(((e,t)=>e-t));const d=c.map(qK(i));return c.map(((e,t)=>{const r=n(e);return{position:r,start:r,end:r,label:d[t],value:e,isMinor:-1===u.indexOf(e)}}))}function GK(e){let t,{settings:n,scale:r,distance:o,formatter:i=e=>e}=e;const a=n.minorTicks&&!LH(n.minorTicks.count)?Math.min(100,n.minorTicks.count):0;if(Array.isArray(n.ticks.values)){const e=n.ticks.values.filter((e=>"object"==typeof e?!LH(e.value):!LH(e)));t=function(e){let{values:t,scale:n,formatter:r=e=>e}=e;return t.sort(((e,t)=>(FK(e)?e.value:e)-(FK(t)?t.value:t))).filter(((e,t,r)=>{const o=FK(e)?e.value:e;return o<=n.max()&&o>=n.min()&&r.indexOf(e)===t})).map((e=>{const t=FK(e),o=t?e.value:e,i=n(o);return{position:i,value:o,label:t&&void 0!==e.label?e.label:r(o),isMinor:!!t&&!!e.isMinor,start:t&&!isNaN(e.start)?jK(n(e.start)):i,end:t&&!isNaN(e.end)?jK(n(e.end)):i}}))}({values:e,scale:r.copy(),formatter:i})}else if(LH(n.ticks.count)){t=(n.ticks.tight?HK:WK)({distance:o,minorCount:a,unitDivider:n.ticks.distance,scale:r,formatter:i}),n.ticks.forceBounds&&function(e,t,n){const r=e.map((e=>e.position)),o=t.range();-1===r.indexOf(o[0])?e.splice(0,0,{position:o[0],start:o[0],end:o[0],label:n(t.start()),isMinor:!1,value:t.start()}):e[0]&&e[0].isMinor&&(e[0].isMinor=!1);const i=e[e.length-1];-1===r.indexOf(o[1])?e.push({position:o[1],start:o[1],end:o[1],label:n(t.end()),isMinor:!1,value:t.end()}):i&&i.isMinor&&(i.isMinor=!1)}(t,r,i)}else{t=function(e){let{count:t,minorCount:n,scale:r,formatter:o}=e;return r.ticks((t-1)*n+t).map(((e,t)=>{const i=r(e);return{position:i,start:i,end:i,label:o(e),isMinor:t%(n+1)!=0,value:e}}))}({count:Math.min(1e3,n.ticks.count),minorCount:a,scale:r.copy(),formatter:i})}return t}function VK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={};return Object.keys(t).forEach((o=>{const i=typeof e[o];r[o]="function"===i?e[o](n):"undefined"===i?t[o]:e[o]})),r}const YK={min:NaN,max:NaN,expand:NaN,include:[],invert:!1},UK={tight:!1,forceBounds:!1,values:void 0,count:NaN,distance:100},KK={count:NaN};function XK(e,t){e.instance||(e.instance=t.copy(),e.instance.domain([t.start(),t.end()]),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}function JK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=zK(),o={instance:null,invert:!1},i={data:t,resources:n},a=VK(e,YK,i);let s;function l(e){return LH(e)?NaN:r(e)}a.ticks=VK(e.ticks,UK,i),a.minorTicks=VK(e.minorTicks,KK,i),l.data=()=>t,l.invert=function(e){return r.invert(e)},l.rangeRound=function(e){return r.rangeRound(e),l},l.clamp=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r.clamp(e),l},l.cachedTicks=function(){return s},l.clearTicksCache=function(){return s=void 0,this},l.ticks=function(e){return null!==e&&"object"==typeof e?(e.settings=e.settings||{},e.settings=CH(!0,{},a,e.settings),e.scale=l,s=GK(e),s):(s=r.ticks(e),s)},l.nice=function(e){return r.nice(e),l},l.tickFormat=function(e,t){return r.tickFormat(e,t)},l.interpolate=function(e){return r.interpolate(e),l},l.domain=function(e){return arguments.length?(r.domain(e),o.instance&&o.instance.domain([l.start(),l.end()]),l):r.domain()},l.range=function(e){return arguments.length?(r.range(e),l):r.range()},l.start=function(){return l.domain()[0]},l.end=function(){return l.domain()[this.domain().length-1]},l.min=function(){return Math.min(this.start(),this.end())},l.max=function(){return Math.max(this.start(),this.end())},l.classify=function(e){let t=(l.start()-l.end())/e,n=[l.end()],r=[],o=t/2;for(let i=0;i<e;i++){let e=n[n.length-1]||0,i=e+t,a=l(e+o);n.push(i,i),r.push(a,a)}return n.pop(),l.domain(n),l.range(r),l},l.copy=function(){const o=JK(e,t,n);return o.domain(l.domain()),o.range(l.range()),o.clamp(r.clamp()),o},l.norm=function(e){return XK(o,l),o.instance(e)},l.normInvert=function(e){return XK(o,l),o.instance.invert(e)};const{mini:u,maxi:c}=function(e,t){const n=+e.min,r=+e.max;let o=0,i=1;if(t&&t[0]){const n=t.map((e=>e.min())).filter((e=>!isNaN(e))),r=t.map((e=>e.max())).filter((e=>!isNaN(e)));if(o=n.length?Math.min(...n):Number.NaN,i=r.length?Math.max(...r):Number.NaN,isNaN(o)||isNaN(i))o=-1,i=1;else if(o===i&&0===o)o=-1,i=1;else if(o===i&&o)o-=Math.abs(.1*o),i+=Math.abs(.1*i);else if(!isNaN(e.expand)){const t=i-o;o-=t*e.expand,i+=t*e.expand}if(Array.isArray(e.include)){const t=e.include.filter((e=>!isNaN(e)));o=Math.min(...t,o),i=Math.max(...t,i)}}return{mini:isNaN(n)?o:n,maxi:isNaN(r)?i:r}}(a,t?t.fields:[]);return l.domain([u,c]),l.range(a.invert?[1,0]:[0,1]),o.invert=a.invert,l}const ZK={padding:0,paddingInner:NaN,paddingOuter:NaN,align:.5,invert:!1,maxPxStep:NaN,range:[0,1]};function QK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={data:t,resources:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},r=VK(e,ZK,n),o=t.items||[],i={},a=[],s=[];function l(e,n){e.data=()=>t,e.datum=e=>o[i[e]],e.start=function(){return e.domain()[0]},e.end=function(){return e.domain()[e.domain().length-1]},e.labels=()=>s,e.ticks=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.scale=e,function(e){let{scale:t}=e;const n=t.domain(),r=t.data().items,o=t.labels?t.labels():n,i=t.bandwidth();return n.map(((e,n)=>{const a=t(e);return{position:a+i/2,label:"".concat(o[n]),data:r?r[n]:void 0,start:a,end:a+i}}))}(t,n.trackBy)}}const u=PU();l(u,e),u.pxScale=function(t){const n=r.maxPxStep;if(isNaN(n))return u;const o=u.domain().length,i=Math.max(1,o-u.paddingInner()+2*u.paddingOuter());if(i*n>=t)return u;const a=u.copy();a.type=u.type,l(a,e);const s=i*n/t,c=(1-s)*u.align();return a.range(r.invert?[s+c,c]:[c,s+c]),a};const c="function"==typeof e.value?e.value:e=>e.datum.value,d="function"==typeof e.label?e.label:e=>e.datum.label;for(let e=0;e<o.length;e++){const t=CH({datum:o[e]},n),r=c(t,e);-1===a.indexOf(r)&&(a.push(r),s.push(d(t,e)),i[r]=e)}return u.domain(a),u.range(r.invert?r.range.slice().reverse():r.range),u.padding(isNaN(r.padding)?0:r.padding),isNaN(r.paddingInner)||u.paddingInner(r.paddingInner),isNaN(r.paddingOuter)||u.paddingOuter(r.paddingOuter),u.align(isNaN(r.align)?.5:r.align),u}const eX={depth:0};function tX(e,t,n){return e.ancestors().map((e=>t(CH({datum:e.data},n)))).reverse().slice(1).toString()}const nX=e=>e.min(),rX=e=>e.max();function oX(e,t){const n=e&&!isNaN(e.min),r=e&&!isNaN(e.max);let o=n?+e.min:0,i=r?+e.max:1;if(t&&t.length){if(!n){const e=t.map(nX).filter(IH);o=e.length?Math.min(...e):o}if(!r){const e=t.map(rX).filter(IH);i=e.length?Math.max(...e):i}}return[o,i]}const iX={domain:[],range:[],invert:!1,min:NaN,max:NaN};function aX(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=JK(e,t,n).clamp(!0).interpolate(gK),o=VK(e,iX,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length,s=r;CH(!0,s,r);const[l,u]=oX(o,t?t.fields:[]),c=i?o.domain.length:-1,d=n.theme?n.theme.palette("sequential",c>0?c:2):[],p=a?o.range:d;return s.range(o.invert?p.slice().reverse():p.slice()),s.domain(i?o.domain:function(e,t,n){const r=e.length;if(2===r)return[t,n];const o=[],i=(n-t)/(r-1);o.push(t);for(let e=1;e<r-1;e++)o.push(t+i*e);return o.push(n),o}(s.range(),l,u)),s}const sX={domain:[],range:[],invert:!1,min:NaN,max:NaN,nice:!1};function lX(e){const t=[];for(let n=0;n<e.length-1;n++)t.push((e[n]+e[n+1])/2);return t}const uX={domain:[],range:[]};const cX={domain:[],range:[],unknown:void 0},dX={domain:[],range:[],override:!1};const pX=BG();function fX(e,t,n){let r=e.data;e.source&&(n.logger.warn("Deprecated: Scale data source configuration"),r={extract:[]},(Array.isArray(e.source)?e.source:[e.source]).forEach((e=>{r.extract.push({field:e})})));const o=RU(r,t,n);let i,a=e.type||function(e){return e.root?"h-band":e.fields&&e.fields[0]?function(e){const t=e.map((e=>"dimension"===e.type()?"band":"linear"));return-1!==t.indexOf("linear")?"linear":"band"}(e.fields):"linear"}(o);return"color"===a&&(a=o.fields&&o.fields[0]&&"dimension"===o.fields[0].type()?"categorical-color":"sequential-color"),n.scale.has(a)&&(i=n.scale.get(a),i=i(e,o,{theme:n.theme,logger:n.logger}),i.type=a),i}pX("linear",JK),pX("band",QK),pX("h-band",(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o={data:n,resources:r},i=VK(t,ZK,o);i.ticks=VK(t.ticks,eX,o),i.value="function"==typeof t.value?t.value:e=>e.datum.value,i.label="function"==typeof t.label?t.label:e=>e.datum.value;let a=QK(i);const{values:s,labels:l,items:u,ticks:c}=function(e,t,n){const r=t.ticks.depth,o=t.value,i=t.label,a=[],s=[],l={},u=[];let c=0;if(!e)return{values:a,labels:s,items:l,ticks:u};e.eachAfter((e=>{if(e.depth>0){const t=tX(e,o,n),d=e.leaves()||[e],p=o(CH({datum:e.data},n)),f=i(CH({datum:e.data},n)),h=Array.isArray(e.children),m={key:t,count:d.length,value:p,label:f,leftEdge:tX(d[0],o,n),rightEdge:tX(d[Math.max(d.length-1,0)],o,n),node:e};h?(a.push("SPACER_".concat(c,"_SPACER")),c++):(a.push(t),s.push(f)),(r<=0&&!h||e.depth===r)&&u.push(m),l[t]=m}}));const d=e.height-1;return d>0&&a.splice(-d),{values:a,labels:s,items:l,ticks:u}}(n.root,i,o),d=function(e){const t=String(e),n=u[t];return a(n?i.invert?n.rightEdge:n.leftEdge:t)};CH(!0,d,a),d.bandwidth=function(e){const t=u[String(e)],n=a.bandwidth();if(t&&!t.isLeaf){const e=d(t.leftEdge),r=d(t.rightEdge);return Math.abs(e-r)+n}return n},d.step=function(e){const t=u[String(e)],n=t?t.count:1;let r=a.step();return r*=n,r},d.data=()=>n,d.datum=e=>{const t=u[String(e)];return t?t.node.data:null},d.copy=()=>e(t,n,r),d.labels=()=>l,d.ticks=()=>c.map((e=>{const t=d(e.key),n=d.bandwidth(e.key);return{position:t+n/2,label:e.label,data:e.node.data,start:t,end:t+n}}));const p=a.pxScale;return d.pxScale=function(e){return a=p(e),d},d.domain(s),d})),pX("sequential-color",aX),pX("threshold-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=NK(),o=VK(e,sX,{data:t,resources:n}),i=Array.isArray(o.domain)&&o.domain.length,a=Array.isArray(o.range)&&o.range.length;function s(e){return LH(e)?NaN:r(e)}Object.keys(r).forEach((e=>s[e]=r[e]));const l=t.fields,[u,c]=oX(o,l),d=i?o.domain.length:-1,p=n.theme?n.theme.palette("sequential",d>0?d:2):[];let f=a?o.range:p,h=[];return h=i?o.domain:o.nice?function(e,t,n){const r=2===e.length?10:Math.max(1,e.length),o=zK().domain([t,n]).nice(r).ticks(r);if(!e||!e.length)return o;const i=Math.max(0,e.length-1);for(;o.length>i;)o[0]-t<=n-o[o.length-1]?o.shift():o.pop();return o}(f,u,c):[u+(c-u)/2],f.length>h.length+1?h=function(e,t,n){const r=e.length;if(2===r)return[t+(n-t)/2];const o=[],i=(n-t)/r;for(let e=1;e<r;e++)o.push(t+i*e);return o}(f,u,c):f.length<h.length+1&&(f=function(e,t,n,r){n=e[0],r=e&&e.length>=2?e[e.length-1]:r;const o=aX().domain([n,r]).range(t);return[n,...lX(e),r].map((e=>o(e)))}(h,f,u,c)),s.data=()=>t,s.range(o.invert?f.slice().reverse():f),s.domain(h),s})),pX("categorical-color",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=LU(),o={data:t,resources:n},i=VK(e,uX,o),a="function"==typeof e.value?e.value:e=>e.datum.value,s="function"==typeof e.label?e.label:e=>e.datum.label,l=t.items||[],u={},c=[],d=[];for(let e=0;e<l.length;e++){const t=CH({datum:l[e]},o),n=a(t,e);-1===c.indexOf(n)&&(c.push(n),d.push(s(t,e)),u[n]=e)}return r.data=()=>t,r.labels=()=>d,r.label=e=>d[c.indexOf(e)],r.datum=e=>l[u[e]],r.range(i.range),Array.isArray(i.domain)&&i.domain.length?r.domain(i.domain):r.domain(c),r}(e,t,n),o=n.theme,i=VK(e,cX,{data:t,resources:n});let a;if(i.explicit=VK(e.explicit,dX,{data:t,resources:n}),a=Array.isArray(i.range)&&0!==i.range.length?i.range.slice():o?o.palette("categorical",r.domain().length).slice():[],i.unknown)r.unknown(i.unknown);else if(o&&o.palette("unknown")){let e=o.palette("unknown");r.unknown(e[0])}if(Array.isArray(i.explicit.domain)&&i.explicit.domain.length){const e=r.domain().slice(),t=i.explicit.domain,n=Array.isArray(i.explicit.range)?i.explicit.range:[],o=Math.floor(e.length/a.length);for(let e=1;e<o+1;e*=2)a=a.concat(a);if(i.explicit.override)for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);o>-1&&(a[o]=n[r])}else{const r=t.map(((t,r)=>[e.indexOf(t),t,n[r]])).sort(((e,t)=>e[0]-t[0]));r.forEach((t=>{const n=e.indexOf(t[1]);-1!==n&&a.splice(n,0,t[2])}))}a.length=e.length}return r.range(a),r}));var hX={};function mX(){mX.init.call(this)}hX.isObject=function(e){return"object"==typeof e&&null!==e},hX.isNumber=function(e){return"number"==typeof e},hX.isUndefined=function(e){return void 0===e},hX.isFunction=function(e){return"function"==typeof e};var gX=mX;mX.EventEmitter=mX,mX.prototype._events=void 0,mX.prototype._maxListeners=void 0,mX.defaultMaxListeners=10,mX.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},mX.prototype.setMaxListeners=function(e){if(!hX.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},mX.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],hX.isUndefined(n))return!1;if(hX.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(hX.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},mX.prototype.addListener=function(e,t){var n;if(!hX.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,hX.isFunction(t.listener)?t.listener:t),this._events[e]?hX.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,hX.isObject(this._events[e])&&!this._events[e].warned)&&((n=hX.isUndefined(this._maxListeners)?mX.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,hX.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),hX.isFunction(console.trace)&&console.trace()));return this},mX.prototype.on=mX.prototype.addListener,mX.prototype.once=function(e,t){if(!hX.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},mX.prototype.removeListener=function(e,t){var n,r,o,i;if(!hX.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||hX.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(hX.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},mX.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],hX.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},mX.prototype.listeners=function(e){return this._events&&this._events[e]?hX.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},mX.listenerCount=function(e,t){return e._events&&e._events[t]?hX.isFunction(e._events[t])?1:e._events[t].length:0};var bX={mixin:e=>(Object.keys(gX.prototype).forEach((t=>{e[t]=gX.prototype[t]})),gX.init(e),e)};function yX(){let e=0,t=0,n=0,r=0;n=n||e;const o={move(e){this.moveTo(n+e)},moveTo(i){const a=Math.max(e,Math.min(t-r,i));n!==a&&(n=a,o.emit("update"))},update(i){let a=!1;({min:e=e,max:t=t}=i),void 0!==i.viewSize&&i.viewSize!==r&&(r=i.viewSize,a=!0);const s=Math.max(e,Math.min(t-r,n));n!==s&&(n=s,a=!0),a&&o.emit("update")},getState:()=>({min:e,max:t,start:n,viewSize:r})};return bX.mixin(o),o}function xX(e,t){const n=e.min||0,r=e.max||0,o=e.viewSize||0,i=t||yX();return i.update({min:n,max:r,viewSize:o}),i}function vX(e,t){return e<=t}function _X(e,t){return e<t}function wX(e,t,n){let r=0;for(;r<e.length&&t>e[r];)++r;return e[r]===t&&n&&++r,r}function SX(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[];function o(){}return o.configure=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{includeMax:r=!0,includeMin:o=!0}=n;e=r?vX:_X,t=o?vX:_X},o.add=e=>{let{min:t,max:n}=e;const o=wX(r,t),i=wX(r,n,!0),a=[o,i-o];o%2==0&&a.push(t),i%2==0&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.remove=e=>{let{min:t,max:n}=e;const o=wX(r,t),i=wX(r,n,!0),a=[o,i-o];o%2==1&&a.push(t),i%2==1&&a.push(n);const s=r.join(",");r.splice(...a);return s!==r.join(",")},o.set=e=>{const t=r.join(",");r=[],Array.isArray(e)?e.forEach(o.add):o.add(e);return t!==r.join(",")},o.clear=()=>{const e=r.length>0;return r=[],e},o.containsValue=n=>function(e,t,n,r){const o=e.length;for(let i=1;i<o;i+=2)if(n(e[i-1],t)&&r(t,e[i]))return!0;return!1}(r,n,t,e),o.containsRange=e=>{let{min:t,max:n}=e;const o=wX(r,t,!0),i=wX(r,n);return o===i&&i%2==1},o.toggle=e=>o.containsRange(e)?o.remove(e):o.add(e),o.ranges=()=>{const e=[];for(let t=1;t<r.length;t+=2)e.push({min:r[t-1],max:r[t]});return e},o.configure(n),o}function CX(){let e=[];function t(){}return t.add=t=>-1===e.indexOf(t)&&(e.push(t),!0),t.remove=t=>{const n=e.indexOf(t);return-1!==n&&(e.splice(n,1),!0)},t.contains=t=>-1!==e.indexOf(t),t.values=()=>e.slice(),t.clear=()=>e=[],t.toString=()=>e.join(";"),t}const EX={key:void 0,includeMin:!0,includeMax:!0};function kX(e){let{items:t,collection:n,vc:r}=e;const o={},i=[];let a,s;for(let e=0,i=t.length;e<i;e++){a=t[e].key,n[a]||(n[a]=r()),s=t[e].values||[t[e].value];for(let e=0;e<s.length;e++)n[a].add(s[e])&&(o[a]=o[a]||[],o[a].push(s[e]))}const l=Object.keys(o);for(let e=0,t=l.length;e<t;e++)a=l[e],i.push({id:a,values:o[a]});return i}function RX(e){let{items:t,collection:n}=e;const r={},o=[];let i,a;for(let e=0,o=t.length;e<o;e++)if(i=t[e].key,n[i]){a=t[e].values||[t[e].value];for(let e=0;e<a.length;e++)n[i].remove(a[e])&&(r[i]=r[i]||[],r[i].push(a[e]))}const s=Object.keys(r);for(let e=0,t=s.length;e<t;e++)i=s[e],o.push({id:i,values:r[i]});return o}function MX(e){const t={};let n,r;for(let o=0,i=e.length;o<i;o++){n=e[o].key,r=e[o].values||[e[o].value],t[n]||(t[n]=[]);for(let e=0;e<r.length;e++){-1===t[n].indexOf(r[e])&&t[n].push(r[e])}}return t}function AX(e){let{key:t,collection:n,obj:r,fn:o,value:i}=e;n[t]||(n[t]=o()),r[t]=r[t]||[],r[t].push(i),n[t].add(i)}function IX(e,t){const n=[],r=Object.keys(e);let o,i;const a=e=>-1===t[o].indexOf(e);for(let s=0,l=r.length;s<l;s++)o=r[s],t[o]?(i=e[o].filter(a),i.length&&n.push({id:o,values:i})):n.push({id:o,values:e[o]});return n}function LX(e,t,n){const r=function(e,t){if(!Object.keys(t).length)return e;const n=e.length,r=Array(n);for(let o=0;o<n;o++)r[o]=e[o].key in t?CH({},e[o],{key:t[e[o].key]}):e[o];return r}(t,n);return e&&e.length?e.reduce(((e,t)=>t(e)),r):r}function PX(e){return e.replace(/(-[a-z])/g,(e=>e.toUpperCase().replace("-","")))}function DX(e){return e.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase())))}function TX(e,t,n){let{ranges:r,interceptors:o,rc:i,aliases:a,rangeConfig:s}=n;const l=LX(o["".concat(t,"Ranges")],e,a);let u=!1;return l.forEach((e=>{const n=e.key;if(r[n]||(r[n]=i(s.sources[n]||s.default)),"set"===t)u=r[n][t](e.ranges||e.range)||u;else{const o=e.ranges||[e.range];for(let e=0;e<o.length;e++)u=r[n][t](o[e])||u}})),u}function OX(){let{vc:e=CX,rc:t=SX}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1,r={},o={},i={},a={sources:{},default:CH({},EX)};const s={addValues:[],removeValues:[],toggleValues:[],setValues:[],addRanges:[],setRanges:[],removeRanges:[],toggleRanges:[]},l=()=>{const e={values:{},ranges:{}};return Object.keys(o).forEach((t=>{e.values[t]=o[t].values()})),Object.keys(r).forEach((t=>{e.ranges[t]=r[t].ranges()})),e},u={ls:[],clear(){this.ls.forEach((e=>e.clear()))},start(){this.ls.forEach((e=>e.start()))},end(){this.ls.forEach((e=>e.end()))},update(){const e=l();this.ls.forEach((t=>t._state(e)))},updateValues(){const e=l();this.ls.forEach((t=>t._state({values:e.values})))},updateRanges(){const e=l();this.ls.forEach((t=>t._state({ranges:e.ranges})))}},c={configure:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e.ranges)&&e.ranges.length&&(a={sources:{},default:CH({},EX)},e.ranges.forEach((e=>{const t={};Object.keys(EX).filter((e=>"key"!==e)).forEach((n=>{t[n]=void 0!==e[n]?e[n]:EX[n]})),void 0!==e.key?a.sources[e.key]=t:a.default=t})),Object.keys(r).forEach((e=>r[e].configure(a.sources[e]||a.default))),c.emit("update",[],[]))},link:e=>{if(c===e)throw new Error("Can't link to self");u.ls.push(e),e._state(l())},_state:e=>{if(!e)return l();if(e.values){const t=[];Object.keys(e.values).forEach((n=>{o[n]&&e.values[n].join(";")===o[n].toString()||t.push({key:n,values:e.values[n]})})),Object.keys(o).forEach((n=>{e.values[n]||t.push({key:n,values:[]})})),t.length&&c.setValues(t)}if(e.ranges){const t=[];Object.keys(e.ranges).forEach((n=>{r[n]&&e.ranges[n].join(";")===r[n].toString()||t.push({key:n,ranges:e.ranges[n]})})),Object.keys(r).forEach((n=>{e.ranges[n]||t.push({key:n,ranges:[]})})),t.length&&c.setRanges(t)}},start:function(){if(!n){n=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];c.emit("start",...t),u.start()}},end:function(){if(n){n=!1,r={},o={};for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];c.emit("end",...t),u.end()}},isActive:()=>n,clear:()=>{const e=c.brushes().filter((e=>"value"===e.type&&e.brush.values().length)).map((e=>({id:e.id,values:e.brush.values()}))),t=Object.keys(r).length>0||e.length;r={},o={},t&&(c.emit("update",[],e),u.clear())},brushes:()=>{let e=[];return e=e.concat(Object.keys(r).map((e=>({type:"range",id:e,brush:r[e]})))),e=e.concat(Object.keys(o).map((e=>({type:"value",id:e,brush:o[e]})))),e},addValue:(e,t)=>{c.addValues([{key:e,value:t}])},addValues:t=>{const r=LX(s.addValues,t,i),a=kX({vc:e,collection:o,items:r});c.emit("add-values",r),a.length&&(n||(n=!0,c.emit("start")),c.emit("update",a,[]),u.updateValues())}};return c.setValues=t=>{const r=LX(s.setValues,t,i),a=function(e){let{items:t,vCollection:n,vc:r}=e;const o={},i=MX(t);let a,s=[],l=[];const u={},c=Object.keys(n);for(let e=0,t=c.length;e<t;e++)a=c[e],u[a]=n[a].values().slice(),delete n[a];const d=e=>{n[a]&&n[a].contains(e)||AX({key:a,value:e,collection:n,obj:o,fn:r})},p=Object.keys(i);for(let e=0,t=p.length;e<t;e++)a=p[e],i[a].forEach(d);return l=IX(u,o),s=IX(o,u),[s,l]}({items:r,vCollection:o,vc:e});c.emit("set-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.removeValue=(e,t)=>{c.removeValues([{key:e,value:t}])},c.removeValues=e=>{const t=LX(s.removeValues,e,i),n=RX({collection:o,items:t});c.emit("remove-values",t),n.length&&(c.emit("update",[],n),u.updateValues())},c.addAndRemoveValues=(t,r)=>{const a=LX(s.addValues,t,i),l=LX(s.removeValues,r,i),d=kX({vc:e,collection:o,items:a}),p=RX({collection:o,items:l});c.emit("add-values",a),c.emit("remove-values",l),(d.length||p.length)&&(n||(n=!0,c.emit("start")),c.emit("update",d,p),u.updateValues())},c.toggleValue=(e,t)=>{c.toggleValues([{key:e,value:t}])},c.toggleValues=t=>{const r=LX(s.toggleValues,t,i),a=function(e){let{items:t,values:n,vc:r}=e;const o={},i={},a=[],s=[],l=MX(t);let u,c,d;const p=Object.keys(l);for(let e=0,t=p.length;e<t;e++){u=p[e],d=l[u];for(let e=0,t=d.length;e<t;e++)c=d[e],n[u]&&n[u].contains(c)?n[u]&&n[u].contains(c)&&(i[u]=i[u]||[],i[u].push(c),n[u].remove(c)):AX({key:u,value:c,collection:n,obj:o,fn:r})}const f=Object.keys(o);for(let e=0,t=f.length;e<t;e++)u=f[e],a.push({id:u,values:o[u]});const h=Object.keys(i);for(let e=0,t=h.length;e<t;e++)u=h[e],s.push({id:u,values:i[u]});return[a,s]}({items:r,values:o,vc:e});c.emit("toggle-values",r),(a[0].length>0||a[1].length>0)&&(n||(n=!0,c.emit("start")),c.emit("update",a[0],a[1]),u.updateValues())},c.containsValue=(e,t)=>{let n=i[e]||e;return!!o[n]&&o[n].contains(t)},c.addRange=(e,t)=>{c.addRanges([{key:e,range:t}])},c.addRanges=e=>{TX(e,"add",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.removeRange=(e,t)=>{c.removeRanges([{key:e,range:t}])},c.removeRanges=e=>{TX(e,"remove",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.setRange=(e,t)=>{c.setRanges([{key:e,range:t}])},c.setRanges=e=>{TX(e,"set",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.toggleRange=(e,t)=>{c.toggleRanges([{key:e,range:t}])},c.toggleRanges=e=>{TX(e,"toggle",{ranges:r,rc:t,interceptors:s,aliases:i,rangeConfig:a})&&(n||(n=!0,c.emit("start")),c.emit("update",[],[]),u.updateRanges())},c.containsRangeValue=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsValue(t)},c.containsRange=(e,t)=>{let n=i[e]||e;return!!r[n]&&r[n].containsRange(t)},c.containsMappedData=(e,t,n)=>{let a=[];const s=Object.keys(e);let l,u,c,d;for(let t=0,n=s.length;t<n;t++){if(l=s[t],"value"===l)u=e,a[t]={key:"",i:t,bool:!1};else{if("source"===l)continue;u=e[l],a[t]={key:l,i:t,bool:!1}}c=u.source&&u.source.field,void 0!==c&&(void 0!==u.source.key&&(c="".concat(u.source.key,"/").concat(c)),c in i&&(c=i[c]),d=u.value,r[c]?a[t].bool=Array.isArray(d)?r[c].containsRange({min:d[0],max:d[1]}):r[c].containsValue(d):o[c]&&o[c].contains(d)&&(a[t].bool=!0))}return t?(a=a.filter((e=>-1!==t.indexOf(e.key))),"and"===n?!!a.length&&!a.some((e=>!1===e.bool)):"xor"===n?!!a.length&&a.some((e=>e.bool))&&a.some((e=>!1===e.bool)):a.some((e=>e.bool))):a.some((e=>e.bool))},c.intercept=(e,t)=>{const n=PX(e);s[n]&&s[n].push(t)},c.removeInterceptor=(e,t)=>{const n=PX(e);if(!s[n])return;const r=s[n].indexOf(t);-1!==r&&s[n].splice(r,1)},c.removeAllInterceptors=e=>{const t=[];if(e){const n=PX(e);s[n]&&s[n].length&&t.push({name:e,handlers:s[n]})}else Object.keys(s).forEach((e=>{s[e].length&&t.push({name:DX(e),handlers:s[e]})}));t.forEach((e=>{e.handlers.slice().forEach((t=>c.removeInterceptor(e.name,t)))}))},c.addKeyAlias=(e,t)=>{i[e]=t},c.removeKeyAlias=e=>{delete i[e]},bX.mixin(c),c}function zX(e){return e*e*e}function NX(e){return--e*e*e+1}function qX(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}BG();const jX=["stroke","fill","color","backgroundColor","thumbColor"];function FX(e,t){const n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n);let a;for(a=0;a<r;++a)o[a]=BX(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(e){for(a=0;a<r;++a)i[a]=o[a](e);return i}}function BX(e,t,n){const r=typeof t;let o;return null==t||"boolean"===r?function(e){return()=>e}(t):("number"===r?vK:"string"===r?(o=JU(t))&&jX.includes(n)?(t=o,gK):CK:t instanceof JU?gK:t instanceof Date?xK:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?bK:Array.isArray(t)?FX:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?$X:vK)(e,t)}function $X(e,t){const n={},r={};let o;for(o in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)o in e?n[o]=BX(e[o],t[o],o):r[o]=t[o];return function(e){for(o in n)r[o]=n[o](e);return r}}function WX(e,t){return e.data?e.data.value:"text"===e.type?e.text:t}const HX={fontFamily:"Arial",fontSize:"13px",color:"#595959",backgroundColor:"#ffffff",stroke:"#000000",strokeWidth:0,$fill:"#333333"},GX=/^\$/;function VX(e){const t=typeof e;return"object"!==t&&"function"!==t&&"undefined"!==t}function YX(e,t,n){const r=e[t];r&&r.scale&&r.scale.pxScale?r.scale=r.scale.pxScale(n):r&&r.pxScale&&(e[t]=r.pxScale(n))}function UX(e,t){return e.pxScale?e.pxScale(t):e}const KX={normalizeSettings:function(e,t,n){const r=CH({},e),o=CH({},t);return Object.keys(r).forEach((e=>{o[e]={};const i=r[e],a=typeof i;if("function"==typeof i)o[e].fn=i;else if(VX(i)){let n=t[e];"string"==typeof n&&GX.test(n)&&(n=HX[n]);const r=typeof n;o[e]="undefined"===r||r===a?i:n}else i&&"object"==typeof i&&("function"==typeof i.fn&&(o[e].fn=i.fn),void 0!==i.scale&&(o[e].scale=n.scale(i.scale)),"string"==typeof i.ref&&(o[e].ref=i.ref))})),Object.keys(t).forEach((e=>{if(e in r)return;const n=t[e];"string"===typeof n&&GX.test(n)?o[e]=HX[n]:o[e]=n})),o},resolveForItem:function(e,t,n){const r={},o=Object.keys(t),i=o.length,a=e.datum,s=e.datum;for(let l=0;l<i;l++){const i=o[l],u=t[i],c="object"==typeof s&&void 0!==u,d=c&&"string"==typeof u.ref,p=c&&i in s,f=d?s[u.ref]:p?s[i]:a;VX(u)?r[i]=u:c&&u.fn?(u.scale&&(e.scale=u.scale),r[i]=u.fn.call(null,e,n)):c&&u.scale&&f?(r[i]=u.scale(f.value),u.scale.bandwidth&&(r[i]+=u.scale.bandwidth()/2)):d&&f?r[i]=f.value:u.fn?r[i]=u.fn.call(null,e,n):r[i]=u}return r},updateScaleSize:YX};function XX(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(((e,t)=>Array.isArray(t.children)?(e.push(...XX(t.children)),e):(e.push(t),e)),[])}function JX(e,t){let{context:n,data:r,style:o,filter:i,mode:a}=t;const s=e.chart.brush(n),l=r,u=o.active||{},c=o.inactive||{},d=[];Object.keys(u).forEach((e=>{d.push(e)})),Object.keys(c).forEach((e=>{-1===d.indexOf(e)&&d.push(e)}));const p=[];let f=!1;const h=()=>{let t=XX(e.nodes);return"function"==typeof i&&(t=t.filter(i)),t},m=()=>{const e=h(),t=e.length;let n,r=!1;const o="function"==typeof l?l({brush:s}):l;for(let r=0;r<t;r++){if(n=e[r].data,!n)continue;e[r].__style||(e[r].__style={},d.forEach((t=>{e[r].__style[t]=e[r][t]})));const t=s.containsMappedData(n,o,a),i=p.indexOf(e[r]);let l=!1;t&&-1===i?(p.push(e[r]),l=!0):t||-1===i||(p.splice(i,1),l=!0),e[r].needToUpdate=l||f,e[r].isActive=t}for(let o=0;o<t;o++)if(n=e[o].data,n){if(e[o].needToUpdate){const t=CH({},e[o],e[o].__style),n=e[o].isActive;d.forEach((r=>{e[o][r]=n&&r in u?"function"==typeof u[r]?u[r].call(null,t,p):u[r]:!n&&r in c?"function"==typeof c[r]?c[r].call(null,t,p):c[r]:e[o].__style[r]})),r=!0}delete e[o].needToUpdate}return f=!1,r},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].data&&(r[e].__style=r[e].__style||{},d.forEach((t=>{r[e].__style[t]=r[e][t],t in c&&(r[e][t]="function"==typeof c[t]?c[t].call(null,r[e]):c[t])})));f=!0,p.length=0,n||e.renderer.render(e.nodes)},b=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{suppressRender:!1};const{suppressRender:n}=t,r=h(),o=r.length;for(let e=0;e<o;e++)r[e].__style&&(Object.keys(r[e].__style).forEach((t=>{r[e][t]=r[e].__style[t]})),r[e].__style=void 0);p.length=0,n||e.renderer.render(e.nodes)},y=()=>{if(m()){const t="function"==typeof e.config.sortNodes?e.config.sortNodes(e):e.nodes;"function"==typeof e.config.customRender?e.config.customRender({render:e.renderer.render,nodes:t}):e.renderer.render(t)}};return s.on("start",g),s.on("end",b),s.on("update",y),{isActive:()=>s.isActive(),update:()=>{p.length=0,f=!0,m()},cleanUp:function(){s.removeListener("start",g),s.removeListener("end",b),s.removeListener("update",y)}}}function ZX(e){let{nodes:t,action:n,chart:r,trigger:o}=e;const i=[];for(let e=0;e<t.length;e++){let n=t[e].data;null!==n&&i.push(n)}!function(e){let{dataPoints:t,action:n,chart:r,trigger:o}=e;if(!o)return;const i=o.data||[""];let a={items:[],actionFn:"toggleRanges"},s={items:[],actionFn:"toggleValues"};-1!==["add","remove","set","toggle"].indexOf(n)&&(a.actionFn="".concat(n,"Ranges"),s.actionFn="".concat(n,"Values"));for(let e=0;e<t.length;e++){const n=t[e];n&&i.forEach((e=>{let t=n&&!e?n:n[e];if(t){let e={key:t.source.field};void 0!==t.source.key&&(e.key="".concat(t.source.key,"/").concat(t.source.field)),Array.isArray(t.value)?(e.range={min:t.value[0],max:t.value[1]},a.items.push(e)):(e.value=t.value,s.items.push(e))}}))}o.contexts.forEach((e=>{a.items.length?r.brush(e)[a.actionFn](a.items):r.brush(e)[s.actionFn](s.items)}))}({dataPoints:i,action:n,chart:r,trigger:o})}function QX(e){let{collisions:t,t:n,config:r,action:o}=e,i=[],a=!1;t.length>0&&(i=t,a=!0,"stop"===n.propagation&&(i=[t[t.length-1]]));const s=i.map((e=>e.node));return ZX({nodes:s,action:o,chart:r.chart,data:r.data,trigger:n}),a}function eJ(e,t,n){const r=n.element().getBoundingClientRect();let o=AH(e)?function(e,t){return 1!==e.changedTouches.length?null:{x:e.changedTouches[0].clientX-t.left,y:e.changedTouches[0].clientY-t.top}}(e,r):function(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}(e,r);return null===o||o.x<0||o.y<0||o.x>r.width||o.y>r.height?[]:(t.touchRadius>0&&AH(e)?o={cx:o.x,cy:o.y,r:t.touchRadius}:t.mouseRadius>0&&!AH(e)&&(o={cx:o.x,cy:o.y,r:t.mouseRadius}),n.itemsAt(o))}function tJ(e,t,n){return e?"function"==typeof e?e(t):e:n}const nJ={fill:"fill",stroke:"stroke",opacity:"opacity",strokeWidth:"stroke-width",strokeLinejoin:"stroke-linejoin",fontFamily:"font-family",fontSize:"font-size",fontStyle:"font-style",textDecoration:"text-decoration",fontWeight:"font-weight",baseline:"dominant-baseline",dominantBaseline:"dominant-baseline",anchor:"text-anchor",textAnchor:"text-anchor",maxWidth:"maxWidth",transform:"transform",strokeDasharray:"stroke-dasharray",id:"id"};function rJ(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?"M".concat(r.x," ").concat(r.y):"L".concat(r.x," ").concat(r.y),n+=" "}return t&&(n+="Z"),n}function oJ(e,t,n,r){const o=n/2,i=e-r/2,a=t-r/2,s=e-o,l=t-o;return[{x:i,y:a},{x:i,y:l},{x:i+r,y:l},{x:i+r,y:a},{x:s+n,y:a},{x:s+n,y:a+r},{x:i+r,y:a+r},{x:i+r,y:l+n},{x:i,y:l+n},{x:i,y:a+r},{x:s,y:a+r},{x:s,y:a}]}function iJ(e){return-e/180*Math.PI}function aJ(e){return function(e){let t=(.5*(Math.floor(e/Math.PI*2)+2)+.25)*Math.PI,n=Math.cos(Math.abs(t-e))*Math.sqrt(2),r=n*Math.cos(e),o=n*Math.sin(e);return{x1:r<0?1:0,y1:o<0?1:0,x2:r>=0?r:r+1,y2:o>=0?o:o+1}}(iJ(e))}function sJ(e,t){return{x:e.x+t.x,y:e.y+t.y}}function lJ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uJ(e,t){return{x:e.x*t,y:e.y*t}}function cJ(e,t){return e.x-t.x}function dJ(e,t){return e.y-t.y}function pJ(e,t){return cJ(e,t)**2+dJ(e,t)**2}function fJ(e,t){return Math.sqrt(pJ(e,t))}function hJ(e,t){return e.x*t.x+e.y*t.y}function mJ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0};const r=Math.cos(t),o=Math.sin(t),i=lJ(e,n);return sJ({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}const gJ={up:0,down:180,left:90,right:-90};function bJ(e){let{x:t,y:n,size:r}=e;const o=r/2;return{type:"rect",x:t-o,y:n-o,width:r,height:r}}const yJ=BG();yJ.add("circle",(function(e){return{type:"circle",fill:"black",cx:e.x,cy:e.y,r:e.size/2}})),yJ.add("diamond",(function(e){const t=e.size,n=e.x-t/2,r=e.y-t/2;return{type:"path",fill:"black",d:rJ([{x:n,y:r+t/2},{x:n+t/2,y:r},{x:n+t,y:r+t/2},{x:n+t/2,y:r+t},{x:n,y:r+t/2}])}})),yJ.add("saltire",(function(e){const t=iJ(45),n=e.size/2,r=isNaN(e.width)?n/2:e.width,o=Math.min(r,n);let i=e.size;const a=Math.sin(Math.asin(-t))*(o/2);i+=2*(n/Math.sin(-t)-n),i-=2*a;const s={x:e.x,y:e.y},l=oJ(e.x,e.y,i,o).map((e=>mJ(e,t,s)));return{type:"path",fill:"black",d:rJ(l)}})),yJ.add("square",(function(e){const t=e.size;return{type:"rect",fill:"black",x:e.x-t/2,y:e.y-t/2,width:t,height:t}})),yJ.add("triangle",(function(e){const t=e.size,n={x:e.x,y:e.y},r=gJ[e.direction]||0,o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];const l=iJ(r);return s=s.map((e=>mJ(e,l,n))),{type:"path",fill:"black",d:rJ(s)}})),yJ.add("line",(function(e){const t="vertical"===e.direction,n=e.size/2,r=e.x,o=e.y;return{type:"line",stroke:"black",strokeWidth:1,x1:r-(t?0:n),y1:o-(t?n:0),x2:r+(t?0:n),y2:o+(t?n:0),collider:bJ(e)}})),yJ.add("star",(function(e){const t=e.size,n=[],r=t/2,o=e.points||5,i=Math.min(e.innerRadius||t/2,t)/2,a=isNaN(e.startAngle)?90:e.startAngle,s=360/o;for(let t=1;t<=o;t++){const o=s*t+a,l=iJ(o),u=iJ(o+s/2),c=Math.sin(l),d=Math.cos(l),p=Math.sin(u),f=Math.cos(u);n.push({x:e.x+d*r,y:e.y+c*r}),n.push({x:e.x+f*i,y:e.y+p*i})}return{type:"path",fill:"black",d:rJ(n)}})),yJ.add("n-polygon",(function(e){const t=[],n=e.size/2,r=Math.max(isNaN(e.sides)?6:e.sides,3),o=360/r,i=isNaN(e.startAngle)?0:e.startAngle;for(let a=1;a<=r;a++){const r=iJ(o*a+i),s=Math.sin(r),l=Math.cos(r);t.push({x:e.x+l*n,y:e.y+s*n})}return{type:"path",fill:"black",d:rJ(t)}})),yJ.add("cross",(function(e){const t=e.x,n=e.y,r=e.size/2,o=isNaN(e.width)?r/2:e.width,i=Math.min(o,r);return{type:"path",fill:"black",d:rJ(oJ(t,n,e.size,i))}})),yJ.add("bar",(function(e){const t={x:e.x,y:e.y},n="vertical"===e.direction,r=e.size/2,o=r/2/2;let i=[{x:t.x-r,y:t.y+o},{x:t.x-r,y:t.y-o},{x:t.x+r,y:t.y-o},{x:t.x+r,y:t.y+o}];if(n){const e=iJ(90);i=i.map((n=>mJ(n,e,t)))}const a=OH(i);return a.type="rect",a.fill="black",a})),yJ.add("rect",(function(e){const{x:t,y:n,size:r}=e,o=void 0===e.width?r:e.width,i=void 0===e.height?r:e.height;return{type:"rect",fill:"black",x:t-o/2,y:n-i/2,width:o,height:i}}));const xJ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yJ;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.get(t.type);if(n){const e=n(t);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((n=>{void 0!==nJ[n]&&"transform"!==n&&(e[n]=t[n])}))}(e,t),void 0!==t.data&&(e.data=t.data),e}return n}};function vJ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dock:n="center",displayOrder:r=0,prioOrder:o=0,preferredSize:i=0,minimumLayoutMode:a,show:s=!0}=e;n=n||"center";return{computePreferredSize(e){let{inner:n,outer:r,children:o}=e;return"function"==typeof i?i({inner:n,outer:r,children:o,dock:this.dock()},t):i},dock(e){return void 0!==e?(n=e,this):"function"==typeof n?n(t):n},displayOrder(e){return void 0!==e?(r=e,this):"function"==typeof r?r(t):r},prioOrder(e){return void 0!==e?(o=e,this):"function"==typeof o?o(t):o},minimumLayoutMode(e){return void 0!==e?(a=e,this):"function"==typeof a?a(t):a},show(e){return void 0!==e?(s=e,this):"function"==typeof s?s(t):s}}}function _J(e,t,n){const{require:r=[]}=t,o=t.mediator||{},{settings:i,formatter:a,scale:s,data:l,renderer:u,chart:c,dockConfig:d,mediator:p,instance:f,rect:h,style:m,registries:g,resolver:b,update:y,_DO_NOT_USE_getInfo:x,symbol:v,isVisible:_}=n;e.emit=()=>{},_&&(e.isVisible=_),Object.defineProperty(e,"settings",{get:i}),Object.defineProperty(e,"data",{get:l}),Object.defineProperty(e,"formatter",{get:a}),Object.defineProperty(e,"scale",{get:s}),Object.defineProperty(e,"mediator",{get:p}),Object.defineProperty(e,"style",{get:m}),Object.defineProperty(e,"registries",{get:g}),h&&Object.defineProperty(e,"rect",{get:h}),x&&(e._DO_NOT_USE_getInfo=x),Object.keys(t).forEach((n=>{var r;r=n,["on","preferredSize","created","beforeMount","mounted","resize","beforeUpdate","updated","beforeRender","render","beforeUnmount","beforeDestroy","destroyed","defaultSettings","data","settings","formatter","scale","chart","dockConfig","mediator","style","resolver","registries","_DO_NOT_USE_getInfo","symbol","isVisible"].some((e=>e===r))||("function"==typeof t[n]?e[n]=t[n].bind(e):e[n]=t[n])})),r.forEach((t=>{"renderer"===t?Object.defineProperty(e,"renderer",{get:u}):"chart"===t?Object.defineProperty(e,"chart",{get:c}):"dockConfig"===t?Object.defineProperty(e,"dockConfig",{get:d}):"instance"===t?Object.defineProperty(e,"instance",{get:f}):"update"===t&&y?Object.defineProperty(e,"update",{get:y}):"resolver"===t?Object.defineProperty(e,"resolver",{get:b}):"symbol"===t&&Object.defineProperty(e,"symbol",{get:v})})),Object.keys(o).forEach((t=>{e.mediator.on(t,o[t].bind(e))}))}function wJ(e,t,n){const r=t=>e[t]?(n.warn("Deprecation Warning the ".concat(t," property should be moved into layout: {} property")),e[t]):e.layout?e.layout[t]:void 0,o={};return o.displayOrder=r("displayOrder"),o.dock=r("dock"),o.prioOrder=r("prioOrder"),o.minimumLayoutMode=r("minimumLayoutMode"),e.layout=e.layout||{},e.layout.displayOrder=void 0!==o.displayOrder?o.displayOrder:e.layout.displayOrder,e.layout.prioOrder=void 0!==o.prioOrder?o.prioOrder:e.layout.prioOrder,e.layout.dock=o.dock||e.layout.dock,e.layout.minimumLayoutMode=o.minimumLayoutMode||e.layout.minimumLayoutMode,o.show=e.show,o.preferredSize=t,o}function SJ(e,t,n){Object.keys(n.on||{}).forEach((r=>{e.eventListeners=e.eventListeners||[];const o=n.on[r].bind(e);e.eventListeners.push({event:r,listener:o}),t.on(r,o)})),e.emit=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.emit(e,...r)}}function CJ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{defaultSettings:n={},_DO_NOT_USE_getInfo:r=()=>({})}=e,{chart:o,container:i,mediator:a,registries:s,theme:l,renderer:u}=t,c=bX.mixin({});let d,p,f,h,m,g=t.settings||{},b=CH(!0,{},n,g),y=[],x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:KX,n={};return{resolve:function(r){let{data:o,settings:i,defaults:a={},scaled:s}=r;const l=n.norm=t.normalizeSettings(i,a,e.chart),u={scale:e.chart.scale,formatter:e.chart.formatter};s&&Object.keys(s).forEach((e=>{l[e]&&t.updateScaleSize(l,e,s[e])}));const c=[];if(!o||!Array.isArray(o.items)){const e={data:o,resources:u};let r=t.resolveForItem(e,n.norm,-1);return{settings:n.norm,item:r}}{let e;for(let r=0,i=o.items.length;r<i;r++){e={datum:o.items[r],data:o,resources:u};let i=t.resolveForItem(e,n.norm,r);i.data=o.items[r],c.push(i)}}return{settings:n.norm,items:c}}}}({chart:o}),v=!1;const _={nodes:[],chart:o,config:b.brush||{},renderer:null},w={tap:[],over:[]},S=[],C={},E=CH({},g);function k(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){const o=void 0!==e[t],i=void 0!==g[t];let a;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return o&&("function"==typeof e[t]?a=e[t].call(C,...l):r&&(a=e[t])),i&&("function"==typeof g[t]?a=g[t].call(E,...l):r&&(a=g[t])),o||i||(a=n.call(C,...l)),a}}const R=k("preferredSize",(()=>0),!0),M=k("resize",(e=>{let{inner:t}=e;return t})),A=k("created"),I=k("beforeMount"),L=k("mounted"),P=k("beforeUnmount"),D=k("beforeUpdate"),T=k("updated"),O=k("beforeRender"),z=k("beforeDestroy"),N=k("destroyed"),q=e.render,j=()=>{b.brush&&(b.brush.consume||[]).forEach((e=>{e.context&&e.style&&S.push(JX(_,e))}))},F=()=>{b.brush&&(b.brush.trigger||[]).forEach((e=>{"over"===e.on?w.over.push(e):w.tap.push(e)}))};Object.defineProperty(_,"data",{get:()=>y});const B=b.renderer||e.renderer,$=B?u||s.renderer(B)():u||s.renderer()();"function"==typeof $.settings&&$.settings(b.rendererSettings),_.renderer=$;const W={resources:o.logger?{logger:o.logger()}:{}};let H=vJ(wJ(b,R,o.logger()),W);const G=e=>{e.key=b.key,e.element=$.element()},V=()=>{};V.dockConfig=()=>H,V.set=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.settings&&(g=e.settings,b=CH(!0,{},n,e.settings),H=vJ(wJ(b,R,o.logger()),W),_.config=b.brush||{}),b.scale&&(d=o.scale(b.scale)),b.data){const{rendererSettings:e}=b,t="function"==typeof(null==e?void 0:e.progressive)&&e.progressive(),n=RU(b.data,{dataset:o.dataset,collection:o.dataCollection},{logger:o.logger()},o.dataCollection);t?t.isFirst?(y=n,y.items&&(y.items=[...n.items])):y.items&&(y.items=[...y.items,...n.items||[]]):y=n}else y=d?d.data():[];"string"==typeof b.formatter||"object"==typeof b.formatter?p=o.formatter(b.formatter):d&&d.data().fields&&(p=d.data().fields[0].formatter()),m=l.style(b.style||{})},V.resize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=M({inner:e,outer:t});h=n?$.size(n):$.size(e),E.rect=CH(!0,{computedPhysical:h.computedPhysical,computedOuter:t.computed||t,computedInner:e.computed||e},e),h=CH(!0,{computedOuter:t.computed||t,computedInner:e.computed||e},h)},V.getRect=()=>E.rect;const Y=()=>{const e=$.renderArgs?$.renderArgs.slice(0):[],{rendererSettings:t}=b;let n=y;const r="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();return y.items&&r&&(n=MH(MH({},y),{},{items:y.items.slice(r.start,r.end)})),e.push({data:n}),e};let U,K,X;function J(e){const{rendererSettings:t}=b,n="function"==typeof(null==t?void 0:t.progressive)&&t.progressive();n?n.isFirst?_.nodes=[...e||[]]:_.nodes&&(_.nodes=[..._.nodes,...e||[]]):_.nodes=e}V.beforeMount=I,V.beforeRender=()=>{O({size:h})},V.render=()=>{const e=q.call(C,...Y());J(e),$.render(e),U=e,K=E.rect.computed},V.hide=()=>{V.unmount(),$.size({x:0,y:0,width:0,height:0}),$.clear()},V.beforeUpdate=()=>{D({settings:b,data:y})},V.update=()=>{X&&X.stop();const{rendererSettings:e,brush:t,animations:n}=b;if("function"==typeof(null==e?void 0:e.transform)&&e.transform())return $.render(),void(U=null);const r=q.call(C,...Y());J(r),S.forEach((e=>e.cleanUp())),S.length=0,w.tap=[],w.over=[],t&&(j(),F()),S.forEach((e=>{e.isActive()&&e.update()})),U&&n&&("function"==typeof n.enabled?n.enabled():n.enabled)?(n.compensateForLayoutChanges&&n.compensateForLayoutChanges({currentNodes:U,currentRect:E.rect.computed,previousRect:K}),X=function(e,t,n,r){let o,{old:i,current:a}=e,{renderer:s}=t,l=[],u={nodes:[],ips:[]},c={nodes:[],ips:[]},d={nodes:[],ips:[]},p=[],f=null;const h=n.trackBy||WX,m={start(){let e={};if(i.forEach(((t,n)=>{let r=h(t,n);e[r]=t})),a.forEach(((t,n)=>{let r=h(t,n);if(e[r]){if("path"===t.type&&t.points&&t.points.length>0&&"trend"!==t.data.source.key){const n=function(e,t){const n=e.points.filter((e=>!e.dummy)),r=t.points.filter((e=>!e.dummy)),o=r.map((e=>e.data.major.value)),i=n.filter((e=>o.includes(e.data.major.value))).map((e=>e.data.major.value)),a=n.filter((e=>i.includes(e.data.major.value))),s=r.filter((e=>i.includes(e.data.major.value)));return{old:a,current:s}}(e[r],t);d.ips.push($X(CH({},e[r],{points:n.old}),CH({},t,{points:n.current}))),l.push(CH({},e[r],{commonPoints:n.old}))}else d.ips.push($X(e[r],t)),l.push(e[r]);d.nodes.push(t),e[r]=!1}else u.nodes.push(t),u.ips.push($X(CH({},t,{r:.001,opacity:0}),t))})),Object.keys(e).forEach((t=>{e[t]&&(c.nodes.push(e[t]),c.ips.push($X(e[t],CH({},e[t],{r:1e-4,opacity:0}))))})),p.push({name:"exiting",easing:zX,duration:200,tweens:c.ips,nodes:[...l]}),p.push({name:"updating",easing:qX,duration:400,tweens:d.ips,nodes:[]}),p.push({name:"entering",easing:NX,duration:200,tweens:u.ips,nodes:[...d.nodes]}),n.isMainComponent){var t;const e=null===(t=n.isMainComponent)||void 0===t?void 0:t.filterFn,o=e?l.filter(e).length:l.length,{isInit:i,shouldBeRemoved:a}=r.getValue("animations.updatingStageMeta");!1===i?(r.setValue("animations.updatingStageMeta.shouldBeRemoved",0===o),r.setValue("animations.updatingStageMeta.isInit",!0)):r.setValue("animations.updatingStageMeta.shouldBeRemoved",a&&0===o)}p.length&&(f=s.getScene(a),p[0].started=Date.now(),"undefined"!=typeof window&&(o=window.requestAnimationFrame(m.tick)))},tick(){let e=p[0];e||m.stop(),e.started||(e.started=Date.now());let t=(Date.now()-e.started)/e.duration,i=[],a=e.tweens.map((n=>n(e.easing(Math.min(1,t)))));const{adjustTweenedNodes:l}=n;if(l&&l(a),i.push(...a),i.push(...e.nodes),s.render(i),t>=1){p.shift();const{isInit:e,shouldBeRemoved:t}=r.getValue("animations.updatingStageMeta");p.length?"updating"===p[0].name&&t&&p.shift():(!0===e&&r.setValue("animations.updatingStageMeta.isInit",!1),m.stop())}o&&(o=window.requestAnimationFrame(m.tick))},stop(){o&&(window.cancelAnimationFrame(o),o=!1)},inProgress:()=>!!o,get targetScene(){return f}};return m}({old:U,current:r},{renderer:$},n,o.storage),X.start()):$.render(r),U=r,K=E.rect.computed,$.setKey&&"string"==typeof g.key&&$.setKey(g.key)},V.updated=T,V.destroy=()=>{V.unmount(),z(f),$.destroy(),N(),f=null};const Z=e=>{_.nodes=e,S.forEach((e=>{e.isActive()&&e.update()})),$.render(e)};return _J(C,e,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,instance:()=>E,rect:()=>E.rect,style:()=>m,update:()=>Z,registries:()=>s,resolver:()=>x,symbol:()=>xJ(s.symbol)}),_J(E,g,{settings:()=>b,data:()=>y,scale:()=>d,formatter:()=>p,renderer:()=>$,chart:()=>o,dockConfig:()=>H,mediator:()=>a,style:()=>m,_DO_NOT_USE_getInfo:r.bind(C),isVisible:()=>v}),V.getBrushedShapes=function(e,t,n){const r=[];if(b.brush&&b.brush.consume){const i=o.brush(e),a=$.findShapes("*");b.brush.consume.filter((t=>t.context===e)).forEach((e=>{for(let o=0;o<a.length;o++){const s=a[o];s.data&&i.containsMappedData(s.data,n||e.data,t)&&(G(s),r.push(s),a.splice(o,1),o--)}}))}return r},V.findShapes=e=>{var t;const n=(null!==(t=X)&&void 0!==t&&t.inProgress()?X.targetScene:$).findShapes(e);for(let e=0,t=n.length;e<t;e++)G(n[e]);return n},V.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$.itemsAt(e);let r;r=t&&"stop"===t.propagation&&n.length>0?[n.pop().node]:n.map((e=>e.node));for(let e=0,t=r.length;e<t;e++)G(r[e]);return r},V.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.contexts=Array.isArray(t.contexts)?t.contexts:[];ZX({nodes:e,action:t.action||"toggle",trigger:t,chart:o,data:_.data})},V.mount=()=>{f=$.element&&$.element()?f:$.appendTo(i),$.setKey&&"string"==typeof g.key&&$.setKey(g.key),b.brush&&(j(),F()),SJ(E,c,g),SJ(C,c,e),v=!0},V.mounted=()=>L(f),V.unmount=()=>{[E,C].forEach((e=>{!function(e,t){e.eventListeners&&(e.eventListeners.forEach((e=>{let{event:n,listener:r}=e;t.removeListener(n,r)})),e.eventListeners.length=0),e.emit=()=>{}}(e,c)})),w.tap=[],w.over=[],S.forEach((e=>{e.cleanUp()})),S.length=0,P(),v=!1},V.onBrushTap=e=>{w.tap.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return QX({collisions:eJ(t,n,r.renderer),t:n,config:r,action:tJ(n.action,t,"toggle")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.onBrushOver=e=>{w.over.forEach((t=>{(function(e){let{e:t,t:n,config:r}=e;return QX({collisions:eJ(t,n,r.renderer),t:n,config:r,action:tJ(n.action,t,"set")})})({e:e,t:t,config:_})&&"stop"===t.globalPropagation&&o.toggleBrushing(!0)}))},V.def=C,V.ctx=E,V.renderer=()=>$,V.set({settings:g}),A(),V}function EJ(e){const t=CH(!0,{},e),n={getAll:()=>t,getValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(void 0===o[t])return n;o=o[t]}return o}(t,e,n),setValue:(e,n)=>function(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}(t,e,n)};return n}function kJ(e,t,n){const r=sJ(function(e,t){const n=hJ(e,t)/hJ(t,t)||1;return{x:t.x*n,y:t.y*n}}(lJ(n,e),lJ(t,e)),e);return r}function RJ(e,t,n){return fJ(e,n)+fJ(t,n)-fJ(e,t)<1e-12}function MJ(e,t){return e.x>=t.x&&e.x+e.width<=t.x+t.width&&e.y>=t.y&&e.y+e.height<=t.y+t.height}function AJ(e){return e.x1===e.x2&&e.y1===e.y2}function IJ(e){return e.width<=0||e.height<=0}function LJ(e){return e.r<=0}function PJ(e){return e.edges.length<=2}function DJ(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=FJ(e,zH(t.edges[r])),!0===n)return!0;return!1}function TJ(e,t){let n=!1;const{numPolygons:r,polygons:o}=t;for(let t=0;t<r;t++){if(n=KJ(e,o[t]),!0===n)return!0}return!1}function OJ(e,t){if(LJ(e))return!1;return pJ({x:e.cx,y:e.cy},t)<=e.r**2}function zJ(e,t){if(IJ(t)||LJ(e))return!1;const n=t.width/2,r=t.height/2,o=t.x+n,i=t.y+r,a=e.r,s=e.cx,l=e.cy,u=Math.abs(s-o),c=Math.abs(l-i);if(u>n+a||c>r+a)return!1;if(u<=n||c<=r)return!0;return(u-n)**2+(c-r)**2<=a**2}function NJ(e,t){if(LJ(e)||AJ(t))return!1;const[n,r]=DH(t);if(OJ(e,n)||OJ(e,r))return!0;const o={x:e.cx,y:e.cy},i=kJ(n,r,o);return pJ(i,o)<=e.r**2&&RJ(n,r,i)}function qJ(e,t){if(PJ(t)||LJ(e))return!1;if(jJ(t,{x:e.cx,y:e.cy}))return!0;const n=t.edges.length;for(let r=0;r<n;r++){if(NJ(e,zH(t.edges[r])))return!0}return!1}function jJ(e,t){if(PJ(e)||!HJ(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.vertices;let i,a,s,l,u;for(i=!1,l=-1,a=o.length,s=a-1;++l<a;s=l){if(o[l].x===n&&o[l].y===r)return!0;if(o[l].y===o[s].y&&o[l].y===r&&(n-o[l].x)*(n-o[s].x)<=0)return!0;if(o[l].y<r&&r<=o[s].y||o[s].y<r&&r<=o[l].y){if(u=(o[s].x-o[l].x)*(r-o[l].y)/(o[s].y-o[l].y)+o[l].x,n===u)return!0;n<u&&(i=!i)}}return i}function FJ(e,t){if(PJ(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(VJ(t,zH(e.edges[n])))return!0}const[n,r]=DH(t);return jJ(e,n)||jJ(e,r)}function BJ(e,t){if(PJ(e))return!1;for(let n=0,r=e.edges.length;n<r;n++){if(GJ(t,zH(e.edges[n])))return!0}const[n,r,o,i]=TH(t);return jJ(e,n)||jJ(e,r)||jJ(e,o)||jJ(e,i)}function $J(e,t){return!IJ(e)&&!IJ(t)&&(e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height)}function WJ(e,t){if(IJ(e)||IJ(t))return!1;return[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}].every((t=>HJ(e,t)))}function HJ(e,t){return!IJ(e)&&(t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height)}function GJ(e,t){if(AJ(t)||IJ(e))return!1;const[n,r]=DH(t);if(HJ(e,n)||HJ(e,r))return!0;const o=TH(e);let i=o.length;for(let e=0;e<i;e++){if(VJ(zH([o[e],o[3!==e?e+1:0]]),t))return!0}return!1}function VJ(e,t){const[n,r]=DH(e),[o,i]=DH(t),a=cJ(r,n),s=dJ(r,n),l=cJ(i,o),u=dJ(i,o),c=cJ(n,o),d=dJ(n,o);let p=u*a-l*s;const f=l*d-u*c,h=a*d-s*c;let m,g;if(0===a&&0===s)return!1;if(0===l&&0===u)return!1;if(0===p){if(0===f&&0===h){if(0===a){if(0===s)return n.x===r.x&&n.y===r.y;m=dJ(o,n)/s,g=dJ(i,n)/s}else m=(o.x-n.x)/a,g=(i.x-n.x)/a;return!(m<0&&g<0||m>1&&g>1)}return!1}const b=f/p;return p=h/p,b>=0&&b<=1&&p>=0&&p<=1}function YJ(e,t){if(AJ(e))return!1;const[n,r]=DH(e);return RJ(n,r,t)}function UJ(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!$J(n,r)&&(WJ(n,r)?DJ(e,t):DJ(t,e))}function KJ(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!$J(n,r)&&(WJ(r,n)?function(e,t){let n=!1;const{numPolygons:r,polygons:o}=e;for(let e=0;e<r;e++)if(n=UJ(t,o[e]),!0===n)return!0;return!1}(e,t):function(e,t){let n=!1;for(let r=0,o=t.edges.length;r<o;r++)if(n=ZJ(e,zH(t.edges[r])),!0===n)return!0;return!1}(e,t))}function XJ(e,t){if(LJ(e))return!1;if(JJ(t,{x:e.cx,y:e.cy}))return!0;const{numPolygons:n,polygons:r}=t;for(let t=0;t<n;t++){const n=r[t],o=n.edges.length;for(let t=0;t<o;t++){if(NJ(e,zH(n.edges[t])))return!0}}return!1}function JJ(e,t){if(!HJ(e.boundingRect(),t))return!1;const{x:n,y:r}=t,o=e.numPolygons;let i,a,s,l,u,c,d=!1;for(a=0;a<o;a++)for(i=e.vertices[a],u=-1,s=i.length,l=s-1;++u<s;l=u){if(i[u].x===n&&i[u].y===r)return!0;if(i[u].y===i[l].y&&i[u].y===r&&(n-i[u].x)*(n-i[l].x)<=0)return!0;if(i[u].y<r&&r<=i[l].y||i[l].y<r&&r<=i[u].y){if(c=(i[l].x-i[u].x)*(r-i[u].y)/(i[l].y-i[u].y)+i[u].x,n===c)return!0;n<c&&(d=!d)}}return d}function ZJ(e,t){const[n,r]=DH(t);if(JJ(e,n)||JJ(e,r))return!0;const{numPolygons:o,polygons:i}=e;for(let e=0;e<o;e++){const n=i[e];for(let e=0,r=n.edges.length;e<r;e++){if(VJ(t,zH(n.edges[e])))return!0}}return!1}function QJ(e,t){const[n,r,o,i]=TH(t);if(JJ(e,n)||JJ(e,r)||JJ(e,o)||JJ(e,i))return!0;const{numPolygons:a,polygons:s}=e;for(let e=0;e<a;e++){const n=s[e];for(let e=0,r=n.edges.length;e<r;e++){if(GJ(t,zH(n.edges[e])))return!0}}return!1}const eZ=/^\$/,tZ="@extend";function nZ(e){throw new Error('Cyclical reference for "'.concat(e,'"'))}function rZ(e,t,n){if("string"==typeof e){let r=t[e];return-1!==n.indexOf(e)&&nZ(e),eZ.test(r)?(n.push(e),rZ(r,t,n)):r}let r=e;const o=CH(!0,{},t,e),i={};if(e[tZ]){const i=e[tZ];-1!==n.indexOf(i)&&nZ(i);let a=n.slice();a.push(i),r=CH(!0,{},rZ(o[i],t,a),e)}return Object.keys(r).forEach((e=>{let t=n.slice();if(e===tZ||eZ.test(e))return;i[e]=r[e];let a=i[e];eZ.test(a)&&a in o?(-1!==n.indexOf(a)&&nZ(a),t.push(a),a=o[a],"object"==typeof a||eZ.test(a)&&a in o?i[e]=rZ(a,o,t):i[e]=a):"object"==typeof a&&(i[e]=rZ(a,o,t))})),i}function oZ(e,t){return rZ(e,t,[])}function iZ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=e;const r=e=>{e.forEach((e=>{const n=Array.isArray(e.colors[0])?e.colors:[e.colors];t[e.key]={colors:n,sizes:n.map((e=>e?e.length:0))}}))},o={palette:(e,n)=>((e,n)=>{const r=t[e];if(!r)return[];const o=r.sizes;for(let e=0;e<o.length;e++)if(n<=o[e])return r.colors[e];return r.colors[o.length-1]})(e,n),setPalettes:r,style:e=>oZ(e,n),setStyle:t=>{n=CH({},e,t)}};return r(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),o}function aZ(e){e.x=Math.floor(e.x),e.y=Math.floor(e.y),e.width=Math.floor(e.width),e.height=Math.floor(e.height)}function sZ(e){const t={center:{minWidthRatio:.5,minHeightRatio:.5,minWidth:0,minHeight:0}};return CH(!0,t,e),t.center.minWidthRatio=Math.min(Math.max(t.center.minWidthRatio,0),1),t.center.minHeightRatio=Math.min(Math.max(t.center.minHeightRatio,0),1),t.center.minWidth=Math.max(t.center.minWidth,0),t.center.minHeight=Math.max(t.center.minHeight,0),t}function lZ(e,t,n,r,o){return{x:isNaN(e)?0:e,y:isNaN(e)?0:t,width:isNaN(e)?0:n,height:isNaN(e)?0:r,margin:isNaN(o)?0:o}}function uZ(e,t,n){if(void 0===e.cachedSize){const r=e.config.dock();let o,i=e.comp.preferredSize({inner:t,outer:n,dock:r});isNaN(i)?i&&!isNaN(i.size)&&(i.width=i.size,i.height=i.size):i={width:i,height:i},o="top"===r||"bottom"===r?i.height:"right"===r||"left"===r?i.width:Math.max(i.width,i.height),e.cachedSize=Math.ceil(o),e.edgeBleed=i.edgeBleed||0}return e.cachedSize}function cZ(e,t){switch(t.config.dock()){case"top":e.y+=t.cachedSize,e.height-=t.cachedSize;break;case"bottom":e.height-=t.cachedSize;break;case"left":e.x+=t.cachedSize,e.width-=t.cachedSize;break;case"right":e.width-=t.cachedSize}}function dZ(e,t){const n=t.edgeBleed;n&&(e.left=Math.max(e.left,n.left||0),e.right=Math.max(e.right,n.right||0),e.top=Math.max(e.top,n.top||0),e.bottom=Math.max(e.bottom,n.bottom||0))}function pZ(e,t,n){t.x<n.left&&(t.width-=n.left-t.x,t.x=n.left);const r=e.width-(t.x+t.width);r<n.right&&(t.width-=n.right-r),t.y<n.top&&(t.height-=n.top-t.y,t.y=n.top);const o=e.height-(t.y+t.height);o<n.bottom&&(t.height-=n.bottom-o)}function fZ(e,t,n,r,o){const i=CH({},t),a=CH({},n);cZ(i,r),dZ(a,r),pZ(e,i,a);const s=function(e,t,n){const r=Math.min(n.center.minWidth,e.width)||Math.max(e.width*n.center.minWidthRatio,1),o=Math.min(n.center.minHeight,e.height)||Math.max(e.height*n.center.minHeightRatio,1);return t.width>=r&&t.height>=o}(e,i,o);return!!s&&(cZ(t,r),dZ(n,r),!0)}function hZ(e){return{x:e.margin.left+e.x*e.scaleRatio.x,y:e.margin.top+e.y*e.scaleRatio.y,width:e.width*e.scaleRatio.x,height:e.height*e.scaleRatio.y}}function mZ(e){return OH([].concat(...e.map(TH)))}function gZ(e){let{visible:t,layoutRect:n,reducedRect:r,containerRect:o,translation:i}=e;const a=lZ(r.x,r.y,r.width,r.height),s=lZ(r.x,r.y,r.width,r.height),l={},u=t.slice(),c=u.slice().sort(((e,t)=>e.config.displayOrder()-t.config.displayOrder()));return t.sort(((e,t)=>{if(e.referencedDocks.length>0&&t.referencedDocks.length>0)return 0;if(t.referencedDocks.length>0)return-1;if(e.referencedDocks.length>0)return 1;const n=e.config.displayOrder()-t.config.displayOrder();return 0===n?u.indexOf(e)-u.indexOf(t):n})).forEach((e=>{let t={},u={};switch(e.config.dock()){case"top":t.height=u.height=e.cachedSize,t.width=n.width,u.width=a.width,t.x=n.x,u.x=a.x,t.y=u.y=a.y-e.cachedSize,a.y-=e.cachedSize,a.height+=e.cachedSize;break;case"bottom":t.x=n.x,u.x=a.x,t.y=u.y=a.y+a.height,t.width=n.width,u.width=a.width,t.height=u.height=e.cachedSize,a.height+=e.cachedSize;break;case"left":t.x=u.x=s.x-e.cachedSize,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.x-=e.cachedSize,s.width+=e.cachedSize;break;case"right":t.x=u.x=s.x+s.width,t.y=n.y,u.y=s.y,t.width=u.width=e.cachedSize,t.height=n.height,u.height=s.height,s.width+=e.cachedSize;break;case"center":t.x=u.x=r.x,t.y=u.y=r.y,t.width=u.width=r.width,t.height=u.height=r.height;break;default:if(e.referencedDocks.length>0){const n=e.referencedDocks.map((e=>l[e])).filter((e=>!!e));n.length>0&&(t=mZ(n.map((e=>e.outerRect))),u=mZ(n.map((e=>e.r))))}}e.key&&(l[e.key]={r:u,outerRect:t}),function(e,t,n,r){const o={x:r.width/n.width,y:r.height/n.height},i={left:0,top:0};if(n.preserveAspectRatio){const e=o.x<o.y,t=Math.min(o.x,o.y);o.x=t,o.y=t;const a=e?"height":"width",s=(r[a]-n[a]*o.x)*n.align;i.left=e?0:s,i.top=e?s:0}e.scaleRatio=o,e.margin=i,t.scaleRatio=o,t.margin=i,n.scaleRatio=o,n.margin=i}(u,t,n,o),u.edgeBleed=e.edgeBleed,u.computed=hZ(u),t.edgeBleed=e.edgeBleed,t.computed=hZ(t),u.x+=i.x,u.y+=i.y,t.x+=i.x,t.y+=i.y,e.comp.resize(u,t),e.cachedSize=void 0,e.edgeBleed=void 0})),c}function bZ(e,t,n){const r=e.layoutModes||{},o=t.minimumLayoutMode();let i=t.show();return i&&"object"==typeof o?i=r[o.width]&&r[o.height]&&n.width>=r[o.width].width&&n.height>=r[o.height].height:i&&void 0!==o&&(i=r[o]&&n.width>=r[o].width&&n.height>=r[o].height),i}function yZ(e){if(!e.resize||"function"!=typeof e.resize)throw new Error("Component is missing resize function");if(!e.dockConfig&&!e.preferredSize)throw new Error("Component is missing preferredSize function")}function xZ(e){let t=sZ(e);const n={};return n.layout=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||isNaN(e.x)||isNaN(e.y)||isNaN(e.width)||isNaN(e.height))throw new Error("Invalid rect");if(!n.length)return{visible:[],hidden:[],ordered:[]};const{logicalContainerRect:r,containerRect:o}=function(e,t){const n={x:0,y:0,width:0,height:0},r={x:0,y:0,width:0,height:0};return n.width=e.width||0,n.height=e.height||0,void 0!==t.size&&(n.width=isNaN(t.size.width)?n.width:t.size.width,n.height=isNaN(t.size.height)?n.height:t.size.height),void 0!==t.logicalSize?(r.width=isNaN(t.logicalSize.width)?n.width:t.logicalSize.width,r.height=isNaN(t.logicalSize.height)?n.height:t.logicalSize.height,r.align=isNaN(t.logicalSize.align)?.5:Math.min(Math.max(t.logicalSize.align,0),1),r.preserveAspectRatio=t.logicalSize.preserveAspectRatio):(r.width=n.width,r.height=n.height,r.preserveAspectRatio=!1),aZ(r),aZ(n),{logicalContainerRect:r,containerRect:n}}(e,t),[i,a]=function(e,t,n){const r=[],o=[];for(let i=0;i<e.length;++i){const a=e[i];yZ(a);let s=a.dockConfig;const l=a.key,u=s.dock(),c=/@/.test(u)?u.split(",").map((e=>e.replace(/^\s*@/,""))):[];bZ(t,s,n)?r.push({comp:a,key:l,config:s,referencedDocks:c}):o.push({comp:a,key:l,config:s,referencedDocks:c})}return[r,o]}(n,t,r),s=function(e){let{layoutRect:t,visible:n,hidden:r,settings:o}=e;const i=lZ(t.x,t.y,t.width,t.height),a={left:0,right:0,top:0,bottom:0},s=n.slice();s.sort(((e,t)=>e.config.prioOrder()-t.config.prioOrder()));for(let e=0;e<s.length;++e){const n=s[e];uZ(n,i,t),fZ(t,i,a,n,o)||(r.push(s.splice(e,1)[0]),--e)}!function(e,t){if(0!==t.length)for(let n=0;n<e.length;++n){let r=e[n];if(r.referencedDocks.length){const o=r.referencedDocks.every((e=>t.some((t=>t.key===e))));o&&t.push(e.splice(n,1)[0])}}}(n,r);const l=n.filter((e=>-1!==s.indexOf(e)));return n.length=0,n.push(...l),pZ(t,i,a),i}({layoutRect:r,visible:i,hidden:a,settings:t}),l=gZ({visible:i,layoutRect:r,reducedRect:s,containerRect:o,translation:{x:e.x,y:e.y}});return a.forEach((e=>{e.comp.visible=!1;const t=lZ();e.comp.resize(t,t)})),{visible:i.map((e=>e.comp)),hidden:a.map((e=>e.comp)),ordered:l.map((e=>e.comp))}},n.settings=function(e){t=sZ(e)},n}const vZ=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.hasKey&&r.key===t)return e[n]}return null},_Z=e=>null==e?void 0:e.map((e=>{const t=e.instance.dockConfig();return{preferredSize:n=>t.computePreferredSize(MH(MH({},n),{},{children:_Z(e.children)}))}})),wZ=(e,t)=>({visible:[],hidden:t,ordered:[]}),SZ=e=>(t,n)=>{var r;const o=n.map(((e,t)=>{const n=e.instance.dockConfig();return{index:t,key:e.key,dockConfig:n,resize:e.instance.resize,preferredSize:t=>n.computePreferredSize(MH(MH({},t),{},{children:_Z(e.children)}))}})),i=e=>n[e.index],{visible:a=o,hidden:s=[],ordered:l=a}=null!==(r=e(t,o))&&void 0!==r?r:{};return{visible:a.map(i),hidden:s.map(i),ordered:l.map(i)}},CZ=e=>"function"==typeof e?SZ(e):(e=>{const t=xZ(e);return SZ(((e,n)=>t.layout(e,n)))})(e);function EZ(e,t,n){const r=t.left-n.left,o=t.top-n.top,i=NH(e),a=CH(!0,{},e);switch(i){case"circle":a.cx+=r,a.cy+=o;break;case"polygon":for(let e=0,t=a.vertices.length;e<t;e++){const t=a.vertices[e];t.x+=r,t.y+=o}break;case"geopolygon":for(let e=0;e<a.vertices.length;e++){const t=a.vertices[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n.x+=r,n.y+=o}}break;case"line":a.x1+=r,a.y1+=o,a.x2+=r,a.y2+=o;break;case"point":case"rect":a.x+=r,a.y+=o}return a}function kZ(e,t){const n=[];let r=0;t.forEach((e=>{n.push(r),r++;const t=e.instance.def.additionalElements&&e.instance.def.additionalElements();t&&(r+=t.length)})),t.forEach(((t,r)=>((e,t,n)=>{const r=t.instance.renderer().element();if(isNaN(n)||!r||!e||!e.children)return;const o=e.children[Math.max(0,n)];if(r===o)return;const i=t.instance.def.additionalElements&&t.instance.def.additionalElements().filter(Boolean);e.insertBefore&&void 0!==o?(e.insertBefore(r,o),i&&i.forEach((t=>{e.insertBefore(t,r)}))):(i&&i.forEach((t=>{e.appendChild(t,r)})),e.appendChild(r))})(e,t,n[r])))}function RZ(e,t){let{element:n,data:r=[],settings:o={},on:i={}}=e;const a=t.registries,s=t.logger,l=iZ(t.style,t.palettes),u=[],c=CH({},e),d=function(){const e={};return bX.mixin(e),e}();let p=[],f=null,h=null,m=null,g=[],b=()=>{},y=()=>{};const x={};let v=!1;const _=function(e){let{createComponent:t}=e;const n={};let r=[],o=[];const i=e=>{const n=t(e);return n&&(r.push(n),e.components&&(n.children=e.components.map((e=>i(e))).filter((e=>!!e)))),n},a=e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)},s=(e,t)=>{for(let n=e.length-1;n>=0;n--){const r=e[n],o=t.find((e=>r.hasKey&&r.key===e.key));o?r.children&&o.components&&s(r.children,o.components):(e.splice(n,1),a(r),r.children&&s(r.children,[]),r.instance.destroy())}},l=e=>{let{compList:t,data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:s}=e;return s.map((e=>{const s=vZ(t,e.key);return r.indexOf(e.key)>-1?(delete s.updateWith,s):s?(e.rendererSettings&&"function"==typeof s.instance.renderer().settings&&s.instance.renderer().settings(e.rendererSettings),e.rendererSettings&&"function"==typeof e.rendererSettings.transform&&e.rendererSettings.transform()?(s.applyTransform=!0,s):(s.updateWith={formatters:o,scales:a,data:n,settings:e},e.components&&(s.children=l({compList:s.children||[],data:n,excludeFromUpdate:r,formatters:o,scales:a,settingsList:e.components})),s)):i(e)})).filter((e=>!!e))},u=e=>{let{components:t,hidden:n,layoutFn:r,ordered:o,rect:i,visible:a}=e;const{visible:s,hidden:l,ordered:c}=r(i,t);a.push(...s),n.push(...l),o.push(...c),s.forEach((e=>{if(e.children){var t,r;const i=CZ(null!==(t=null===(r=e.settings)||void 0===r?void 0:r.strategy)&&void 0!==t?t:{});u({components:e.children,hidden:n,layoutFn:i,ordered:o,rect:e.instance.getRect(),visible:a})}})),l.forEach((e=>{e.children&&u({components:e.children,hidden:n,layoutFn:wZ,ordered:o,rect:null,visible:a})}))};return n.destroy=()=>{r.forEach((e=>e.instance.destroy())),r=[],o=[]},n.findComponentByKey=e=>vZ(r,e),n.forEach=e=>{r.forEach(e)},n.layout=e=>{let{layoutSettings:t,rect:n}=e;const r=[],i=[],a=[],s=CZ(t);return u({components:o,hidden:i,layoutFn:s,ordered:a,rect:n,visible:r}),{visible:r,hidden:i,ordered:a}},n.set=e=>{let{components:t}=e;o=t.map((e=>i(e))).filter((e=>!!e))},n.update=e=>{let{components:t,data:n,excludeFromUpdate:r,formatters:i,scales:a}=e;s(o,t),o=l({compList:o,data:n,excludeFromUpdate:r,formatters:i,scales:a,settingsList:t})},n}({createComponent:e=>{if(!a.component.has(e.type))return s.warn("Unknown component: ".concat(e.type)),!1;return{instance:CJ(a.component(e.type),{settings:e,chart:c,mediator:d,registries:a,theme:l,container:n}),settings:CH(!0,{},e),key:e.key,hasKey:void 0!==e.key}}});function w(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return function(){const r="function"==typeof e[t];let o;for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=r?e[t].call(c,...a):n.call(c,...a),o}}const S=()=>{let e;o.dockLayout?(s.warn('Deprecation Warning: "dockLayout" property should be renamed to "strategy"'),e=o.dockLayout):e=o.strategy;const t=function(e){if("function"==typeof e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();return{x:0,y:0,width:t,height:n}}return{x:0,y:0,width:0,height:0}}(n);return _.layout({layoutSettings:e,rect:t})},C=w("created"),E=w("beforeMount"),k=w("mounted"),R=w("beforeUpdate"),M=w("updated"),A=w("beforeRender"),I=w("beforeDestroy"),L=w("destroyed"),P=function(e,t){let{partialData:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{formatters:r={},scales:o={},scroll:i={}}=t;b=function(e,t){let{types:n,logger:r}=t;const o={},i=[];return Array.isArray(e)?i.push(...e):(r.warn('Deprecated: "data-source" configuration"'),i.push(e)),i.forEach(((e,t)=>{let i=n(e.type);if(i){let n=e.key;void 0===e.key&&(r.warn("Missing key for dataset. Using index '".concat(t,"' as key.")),n=t);let a=i({key:n,data:e.data,config:e.config});o[n]=a}})),e=>e?o[e]:o[Object.keys(o)[0]]}(e,{logger:s,types:a.data}),n||Object.keys(x).forEach((e=>x[e].clear())),t.palettes&&l.setPalettes(t.palettes),t.style&&l.setStyle(t.style),y=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:RU;const o={};return(e||[]).forEach((e=>{if(!e.key)throw new Error('Data collection is missing "key" property');if("object"==typeof e.data&&"collection"in e.data)throw new Error("Data config for collections may not reference other collections");o[e.key]=()=>r(e.data,t,n)})),e=>{let t,n;if("string"==typeof e?t=e:"object"==typeof e&&(t=e.key,n=e),!(t in o))throw new Error("Unknown data collection: ".concat(t));"function"==typeof o[t]&&(o[t]=o[t]());let r=o[t];if(n&&n.fields&&n.fields.filter){let e=r.fields.filter(n.fields.filter);r.fields.length!==e.length&&(r=CH(r,{fields:e}))}return r}}(t.collections,{dataset:b},{logger:s});const u={theme:l,logger:s};f=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fX;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"scale"in i&&e[i.scale]&&(a=i.scale),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i,t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(o,{dataset:b,collection:y},MH(MH({},u),{},{scale:a.scale})),h=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:MU;const o={};return{get(i){let a;return"string"==typeof i&&e[i]?a=i:"object"==typeof i&&"formatter"in i&&e[i.formatter]?a=i.formatter:"object"==typeof i&&"type"in i&&e[i.type]&&(a=i.type),a?(o[a]=o[a]||r(e[a],t,n),o[a]):r(i||{},t,n)},all(){return Object.keys(e).forEach(this.get),o}}}(r,{dataset:b,collection:y},MH(MH({},u),{},{formatter:a.formatter})),m=function(e,t){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=xX(e[r],t?t[r]:null));return n}(i,m)};function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},r=e.filter((e=>!!e.key)).map((e=>e.key));g.forEach((e=>{e.key&&-1!==r.indexOf(e.key)?t[e.key]=e:e.destroy()})),g=e.map((e=>{const r=e.key&&t[e.key]?t[e.key]:a.interaction(e.type)(c,d,n);return r.set(e),r}))}const T=e=>{const t=n.getBoundingClientRect(),r="clientX"in e?e.clientX:e.x,o="clientY"in e?e.clientY:e.y,i={x:r-t.left,y:o-t.top},a=[];return p.forEach((e=>{const t=e.instance.getRect();HJ(t.computedPhysical?t.computedPhysical:{x:t.margin.left+t.x*t.scaleRatio.x,y:t.margin.top+t.y*t.scaleRatio.y,width:t.width*t.scaleRatio.x,height:t.height*t.scaleRatio.y},i)&&a.push(e)})),a},O=()=>{if(u.length||!n)return;Object.keys(i).forEach((e=>{const t=i[e].bind(c);n.addEventListener(e,t),u.push({key:e,listener:t})}));const e={},t=t=>{t.touches?(e.x=t.touches[0].clientX,e.y=t.touches[0].clientY,e.multiTouch=t.touches.length>1):(e.x=t.clientX,e.y=t.clientY,e.multiTouch=!1),e.time=Date.now(),e.comps=T(e)},r=t=>{const n=e.comps||T(t);if(!n.every((e=>e.instance.def.disableTriggers))&&("touchend"===t.type&&t.preventDefault(),function(e,t){const n=AH(e),r=n?e.changedTouches[0]:e,o=Date.now()-t.time,i=isNaN(t.x)?0:Math.abs(r.clientX-t.x),a=isNaN(t.y)?0:Math.abs(r.clientY-t.y);return(0===e.button||n)&&!t.multiTouch&&i<=12&&a<=12&&o<=300}(t,e)))for(let e=n.length-1;e>=0;e--){if(n[e].instance.onBrushTap(t),v){v=!1;break}}},o=[];o.push({key:"mousedown",listener:t}),o.push({key:"mouseup",listener:r}),function(e){return"ontouchstart"in e&&"ontouchend"in e||navigator.maxTouchPoints>1}(n)&&(o.push({key:"touchstart",listener:t}),o.push({key:"touchend",listener:r})),o.push({key:"mousemove",listener:e=>{const t=T(e);for(let n=t.length-1;n>=0;n--){if(t[n].instance.onBrushOver(e),v){v=!1;break}}}}),o.forEach((e=>{n.addEventListener(e.key,e.listener),u.push(e)}))},z=()=>{u.forEach((e=>{let{key:t,listener:r}=e;return n.removeEventListener(t,r)})),u.length=0},N=()=>{n.innerHTML="",(()=>{const{components:e=[]}=o;A(),P(r,o),_.set({components:e});const{visible:t,hidden:i,ordered:a}=S();p=t,i.forEach((e=>{e.instance.hide(),e.visible=!1})),t.forEach((e=>e.instance.beforeMount())),t.forEach((e=>e.instance.mount())),t.forEach((e=>e.instance.beforeRender())),t.forEach((e=>e.instance.render())),t.forEach((e=>e.instance.mounted())),t.forEach((e=>{e.visible=!0})),kZ(n,a)})(),O(),D(o.interactions)};return c.layoutComponents=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{excludeFromUpdate:t=[]}=e;e.data&&(r=e.data),e.settings&&(o=e.settings,D(e.settings.interactions)),R(),P(r,o);const{formatters:n,scales:i,components:a=[]}=o;_.update({components:a,data:r,excludeFromUpdate:t,formatters:n,scales:i}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()})),S()},c.update=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{partialData:t,excludeFromUpdate:i=[]}=e;let a;e.data&&(r=e.data),e.settings&&(o=e.settings,D(e.settings.interactions)),R(),P(r,o,{partialData:t});const{formatters:s,scales:l,components:u=[]}=o;_.update({components:u,data:r,excludeFromUpdate:i,formatters:s,scales:l}),_.forEach((e=>{e.updateWith&&e.instance.set(e.updateWith)})),_.forEach((e=>{e.updateWith&&e.instance.beforeUpdate()}));const c=[],d=[];let f;if(t)_.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible&&c.push(e)})),f=c;else{const{visible:e,hidden:t,ordered:n}=S();p=e,f=e,a=n,e.forEach((e=>{e.updateWith&&e.visible?c.push(e):d.push(e)})),t.forEach((e=>{e.instance.hide(),e.visible=!1,delete e.updateWith,e.applyTransform=!1}))}d.forEach((e=>e.instance.beforeMount())),d.forEach((e=>e.instance.mount())),f.forEach((e=>e.instance.beforeRender())),f.forEach((e=>{(e.updateWith||e.applyTransform)&&e.visible?e.instance.update():e.instance.render()})),t||kZ(n,a),d.forEach((e=>e.instance.mounted())),c.forEach((e=>e.instance.updated())),p.forEach((e=>{delete e.updateWith,e.visible=!0,e.applyTransform=!1})),M()},c.destroy=()=>{I(),_.destroy(),z(),D(),delete c.update,delete c.destroy,L()},c.getAffectedShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"and",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=[];return p.filter((e=>null==r||e.key===r)).forEach((r=>{const i=r.instance.getBrushedShapes(e,t,n);o=[...o,...i]})),o},c.findShapes=e=>{let t=[];return p.forEach((n=>{const r=n.instance.findShapes(e);t=[...t,...r]})),t},c.componentsFromPoint=e=>T(e).map((e=>e.instance.ctx)),c.shapesAt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const o=n.getBoundingClientRect();let i=p;if(Array.isArray(t.components)&&t.components.length>0){const e=t.components.map((e=>e.key));i=p.filter((t=>-1!==e.indexOf(t.key))).map((n=>({instance:n.instance,opts:t.components[e.indexOf(n.key)]})))}for(let n=i.length-1;n>=0;n--){const a=i[n],s=EZ(e,o,a.instance.renderer().element().getBoundingClientRect()),l=a.instance.shapesAt(s,a.opts),u=l.length>0&&"stop"===t.propagation;if(r=[...r,...l],r.length>0&&u)return r}return r},c.brushFromShapes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{components:[]};for(let n=0;n<t.components.length;n++){const r=t.components[n].key;p.filter((e=>r===e.key)).forEach((r=>{let o=e.filter((e=>e.key===r.key));r.instance.brushFromShapes(o,t.components[n])}))}},c.scroll=function(){return function(e,t){return t[e]||(t[e]=yX()),t[e]}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",m)},c.dataset=e=>b(e),c.dataCollection=e=>y(e),c.scales=function(){return f.all()},c.formatters=function(){return h.all()},c.brush=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return x[e]||(x[e]=OX()),x[e]},c.scale=function(e){return f.get(e)},c.formatter=function(e){return h.get(e)},c.toggleBrushing=function(e){v=void 0!==e?e:!v},c.component=e=>{const t=_.findComponentByKey(e);return null==t?void 0:t.instance.ctx},c.logger=()=>s,c.theme=()=>l,c.storage=EJ({animations:{updatingStageMeta:{isInit:!1,shouldBeRemoved:!1}}}),Object.defineProperty(c,"interactions",{get:()=>({instances:g,on(){O(),g.forEach((e=>e.on()))},off(){z(),g.forEach((e=>e.off()))}})}),C(),n&&(E(),N(),k(n),c.element=n),c}const MZ=e=>{let t=BG(e);return t.prio=e=>e?t.default(e[0]):[t.default()],t.types=()=>t.getKeys(),t};var AZ=BG();function IZ(e,t,n){let{key:r}=n;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:r,field:e.field.key()}),o}const LZ=e=>e.filter((e=>"number"==typeof e&&!isNaN(e)));const PZ=e=>{let{key:t,data:n,cache:r,config:o}=e;if(!n)return;let i=n;"string"==typeof i&&(i=(e=>{let{data:t,config:n}=e;const r=t.split("\n"),o=r[0],i=r[1];let a=",";if(n&&n.parse&&n.parse.delimiter)a=n.parse.delimiter;else if(o){const e=[/,/,/\t/,/;/];for(let t=0;t<e.length;t++){const n=e[t];if(o&&i){if(n.test(o)&&n.test(i)&&o.split(n).length===i.split(n).length){a=n;break}}else n.test(o)&&(a=n)}}return r.map((e=>e.split(a)))})({data:n,config:o})),Array.isArray(i)&&function(e){let t,{source:n,data:r,cache:o,config:i}=e,a=r;const s=i&&i.parse;Array.isArray(r[0])?s&&!1===s.headers?t=r[0].map(((e,t)=>t)):(t=r[0],a=r.slice(1)):t=Object.keys(r[0]);const l=!!s&&"function"==typeof s.row&&s.row;let u,c=t;c=s&&"function"==typeof s.fields?s.fields(c.slice()):t.map((e=>({key:e,title:e}))),Array.isArray(r[0])?u=c.map((()=>[])):(u={},c.forEach((e=>{u[e.key]=[]})));for(let e=0;e<a.length;e++){const t=l?l(a[e],e,c):a[e];if(t)if(Array.isArray(t))for(let e=0;e<c.length;e++)u[e].push(t[e]);else for(let e=0;e<c.length;e++)u[c[e].key].push(t[c[e].key])}const d=Array.isArray(u)?e=>u[e]:e=>u[c[e].key];for(let e=0;e<c.length;e++){const t=d(e),r=LZ(t),i=r.length>0,a=i?"measure":"dimension",s=i?Math.min(...r):NaN,l=i?Math.max(...r):NaN;o.fields.push(fU(CH({source:n,key:e,title:c[e].title,values:t,min:s,max:l,type:a},c[e]),{value:c[e].value,label:c[e].label}))}}({data:i,cache:r,source:t,config:o})};function DZ(){let{key:e,data:t,config:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[]},o={key:()=>e,raw:()=>t,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];for(let t=0;t<n.fields.length;t++)if(n.fields[t].key()===e)return n.fields[t];for(let t=0;t<n.fields.length;t++)if(n.fields[t].title()===e)return n.fields[t];return null}(e,{cache:r}),fields:()=>r.fields.slice(),extract:e=>function(e,t){const n=Array.isArray(e)?e:[e];let r=[];return n.forEach((e=>{if(void 0!==e.field){const n=t.field(e.field),o=t.key();if(!n)throw Error("Field '".concat(e.field,"' not found"));const{props:i,main:a}=yU(e,t),s=Object.keys(i),l=!!e.trackBy,u=typeof e.trackBy,c={},d=[],p=n.items(),f=[];for(let t=0;t<p.length;t++){const n=p[t];if(a.filter&&!a.filter(n))continue;const r=IZ(a,n,{key:o});s.forEach((e=>{const a=i[e];let s=a.field?a.field.items()[t]:n;r[e]=IZ(a,s,{key:o})})),l&&_U({cfg:e,itemData:n,obj:r,target:d,tracker:c,trackType:u}),f.push(r)}r=l?[...r,...vU(d,{main:a,propsArr:s,props:i})]:[...r,...f]}})),r}(e,o),hierarchy:()=>null};return PZ({key:e,data:t,config:n,cache:r}),o}DZ.util={normalizeConfig:yU,collect:vU,track:_U};const TZ=BG();TZ.default("matrix"),TZ("matrix",DZ),TZ("default",DZ);const OZ=BG();function zZ(e,t,n){return Math.max(e,Math.min(t,n))}function NZ(e){let{item:t,value:n,boxCenter:r,rendWidth:o,rendHeight:i,flipXY:a,symbol:s}=e,l="x",u="y",c=o,d=i,p=n<.5?90:-90;return a&&(l="y",u="x",c=i,d=o,p=n<.5?180:0),s(CH({},t.oob,{[l]:r*c,[u]:Math.max(t.oob.size/2,Math.min(n*d,d-t.oob.size/2)),startAngle:p}))}function qZ(e){let{item:t,boxWidth:n,boxPadding:r,rendWidth:o,rendHeight:i,flipXY:a}=e,s="x",l="y",u="width",c="height",d=o,p=i;a&&(s="y",l="x",u="height",c="width",d=i,p=o);const{actualDiff:f,actualLow:h}=function(e){let{start:t,end:n,minPx:r=.1,maxPx:o=1}=e;const i=Math.max(t,n),a=Math.min(t,n),s=zZ(-.1,1.2,i),l=zZ(-.1,1.2,a),u=s*o-l*o,c=Math.max(r,u),d=(c-u)/2;return{actualDiff:c,startModifier:d,actualLow:l*o-d}}({start:t.start,end:t.end,minPx:t.box.minHeightPx,maxPx:p});return CH({},t.box,{type:"rect",[s]:(r+t.major)*d,[l]:h,[c]:f,[u]:n*d,data:t.data||{},collider:{type:null}})}function jZ(e){let{item:t,from:n,to:r,boxCenter:o,rendWidth:i,rendHeight:a,flipXY:s}=e,l="x1",u="y1",c="x2",d="y2",p=i,f=a;return s&&(l="y1",u="x1",c="y2",d="x2",p=a,f=i),CH({},t.line,{type:"line",[d]:Math.floor(n*f),[l]:o*p,[u]:Math.floor(r*f),[c]:o*p,data:t.data||{},collider:{type:null}})}function FZ(e){let{item:t,key:n,position:r,width:o,boxCenter:i,rendWidth:a,rendHeight:s,flipXY:l}=e,u="x1",c="y1",d="x2",p="y2",f=a,h=s;l&&(u="y1",c="x1",d="y2",p="x2",f=s,h=a);const m=o/2;return CH({type:"line"},t[n],{[c]:Math.floor(r*h),[u]:(i-m)*f,[p]:Math.floor(r*h),[d]:(i+m)*f,r:m*f,cx:i*f,cy:r*h,width:o*f,data:t.data||{},collider:{type:null}})}function BZ(e,t,n){const{width:r,maxWidthPx:o,minWidthPx:i}=t.box,a=e>=0?1:-1;let s=Math.min(a*e*r,isNaN(o)?n:o/n);return s=isNaN(i)?s:Math.max(i/n,s),s*a}OZ("native",(function(e,t,n){let r,o,i={chart:e,mediator:t,element:n},a=[],s=!0;function l(){"function"==typeof r.enable&&(r.enable=r.enable.bind(i)()),r.enable&&Object.keys(r.events).forEach((e=>{const t=r.events[e].bind(i);n.addEventListener(e,t),a.push({key:e,listener:t})}))}function u(){a.forEach((e=>{let{key:t,listener:r}=e;n.removeEventListener(t,r)})),a=[]}return{get key(){return o},set(e){!function(e){o=e.key,r=e,r.events=r.events||[],void 0===r.enable&&(r.enable=!0)}(e),u(),s&&l()},off(){s=!1,u()},on(){s=!0,0===a.length&&l()},destroy(){u(),i=null,r=null}}}));const $Z={oob:{show:!0,type:"n-polygon",fill:"#999",stroke:"#000",strokeWidth:0,size:10,sides:3,startAngle:-90},box:{show:!0,fill:"#fff",stroke:"#000",strokeWidth:1,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1},line:{show:!0,stroke:"#000",strokeWidth:1},median:{show:!0,stroke:"#000",strokeWidth:1},whisker:{show:!0,stroke:"#000",strokeWidth:1,fill:"",type:"line",width:1}},WZ=Object.keys($Z),HZ={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},style:{box:"$shape",line:"$shape-guide",whisker:"$shape-guide",median:"$shape-guide--inverted"}},created(){this.state={}},render(e){let{data:t}=e;const{width:n,height:r}=this.rect,o="horizontal"===this.settings.settings.orientation,{style:i,resolver:a,symbol:s}=this,l=WZ.filter((e=>!this.settings.settings[e]||!1!==this.settings.settings[e].show)),u={};l.forEach((e=>u[e]=$Z[e]));const c=function(e){let{keys:t,data:n,defaultSettings:r,style:o,settings:i,width:a,height:s,resolver:l}=e;const u=CH(!0,{},r||{},o||{}),c={major:"horizontal"===i.orientation?s:a,minor:"horizontal"===i.orientation?a:s},d=i.major;let p;p="object"==typeof d&&"object"==typeof d.ref&&void 0!==d.ref.start&&void 0!==d.ref.end?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:CH(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof d&&void 0!==d.binStart&&void 0!==d.binEnd?l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:CH(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):l.resolve({data:n,scaled:c,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{},h={};["start","end","min","max","med"].forEach((e=>{(f[e]||n.items&&n.items.length&&n.items[0][e])&&(h[e]={scale:f.scale,ref:e})}));let m,g={major:p,minor:l.resolve({data:n,defaults:{start:0,end:1},scaled:c,settings:CH(!0,{},h,f)})};for(let e=0,r=t.length;e<r;e++)i[m]&&!1===i[m].show||(m=t[e],g[m]=l.resolve({data:n,defaults:u[m],settings:i[m],scaled:c}));return g}({keys:l,data:t,defaultSettings:u,style:i,settings:this.settings.settings,width:n,height:r,resolver:a}),{settings:d,items:p}=c,f=function(e){let{width:t,height:n,flipXY:r,resolved:o,keys:i,symbol:a}=e;const s=[],l=o.major.items;if(!l.length)return s;const u=t,c=n,d=r?n:t,p=o.major.settings,f=["start","end","min","max","med"].filter((e=>void 0!==o.minor.settings[e])),h=f.length,m=i.filter((e=>"oob"!==e));let g,b,y,x,v,_,w,S,C;const E=i?i.length:0,k=m?m.length:0,R={box:function(){y.box&&IH(y.start)&&IH(y.end)&&g.push(qZ({item:y,boxWidth:x,boxPadding:v,rendWidth:u,rendHeight:c,flipXY:r}))},line:function(){IH(y.min)&&IH(y.start)&&g.push(jZ({item:y,from:y.min,to:y.start,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),IH(y.max)&&IH(y.end)&&g.push(jZ({item:y,from:y.max,to:y.end,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},median:function(){y.median&&IH(y.med)&&g.push(FZ({item:y,key:"median",position:y.med,width:x,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))},whisker:function(){if(y.whisker){const e=x*y.whisker.width;IH(y.min)&&g.push(FZ({item:y,key:"whisker",position:y.min,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r})),IH(y.max)&&g.push(FZ({item:y,key:"whisker",position:y.max,width:e,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r}))}}};function M(){let e,t=-Number.MAX_VALUE,n=Number.MAX_VALUE;for(let r=0;r<h;r++)e=y[f[r]],IH(e)&&(t<e&&(t=e),n>e&&(n=e));w=t<0&&t!==-Number.MAX_VALUE,S=n>1&&n!==Number.MAX_VALUE,C=w||S}for(let e=0,t=l.length;e<t;e++){g=[],b=null;const t=l[e],n=t.data;let f=null,h=null;void 0!==p.binStart?(f=t.binStart,h=t.binEnd,b=p.binStart.scale):(b=p.major.scale,f=b?t.major:0);let A=0;b?b.bandwidth?(A=b.bandwidth(),f-=A/2):A=h-f:A=1,y=CH({},{major:f,majorEnd:h},o.minor.items[e]);for(let t=0;t<E;t++)y[i[t]]=o[i[t]].items[e];if(x=BZ(A,y,d),v=(A-x)/2,_=v+y.major+x/2,M(),C)y.oob&&(w?g.push(NZ({item:y,value:0,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})):S&&g.push(NZ({item:y,value:1,boxCenter:_,rendWidth:u,rendHeight:c,flipXY:r,symbol:a})));else for(let e=0;e<k;e++)y[m[e]]&&!1===y[m[e]].show||R[m[e]]();const I={type:"container",data:n,collider:{type:"bounds"},children:g};s.push(I)}return s}({width:n,height:r,flipXY:o,resolved:c,keys:l,symbol:s});return f}};const GZ={shape:"saltire",width:2,size:.5,fill:"#333",stroke:"#333",strokeWidth:0},VZ=/px$/,YZ={shape:"circle",label:"",fill:"#333",stroke:"#ccc",strokeDasharray:"",strokeWidth:0,strokeLinejoin:"miter",opacity:1,x:.5,y:.5,size:1,show:!0},UZ={maxPx:1e4,minPx:1,maxRelExtent:.1,minRelExtent:.01,maxRelDiscrete:1,minRelDiscrete:.1};function KZ(e,t){return e&&"function"==typeof e.bandwidth?{isBandwidth:!0,value:Math.max(1,e.bandwidth()*t)}:{isBandwidth:!1,value:Math.max(1,t)}}function XZ(e,t,n,r){let{width:o,height:i}=t;return e.filter((e=>!1!==e.show&&!isNaN(e.x+e.y))).map((e=>{let t=e,a=VZ.test(e.size)?parseInt(e.size,10):n.min+t.size*(n.max-n.min);LH(a)&&(t=GZ,a=n.min+t.size*(n.max-n.min));const[s,l]=function(e){let t=YZ.shape,n={};return"object"==typeof e.shape&&"string"==typeof e.shape.type?(t=e.shape.type,n=e.shape):"string"==typeof e.shape&&(t=e.shape),[t,n]}(t),u=MH(MH({},l),{},{type:s,label:e.label,x:e.x*o,y:e.y*i,fill:t.fill,size:Math.min(n.maxGlobal,Math.max(n.minGlobal,a)),stroke:t.stroke,strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray,opacity:t.opacity});t===e.errorShape&&(u.width=t.width);const c=r(u);return c.data=e.data,c}))}const JZ={require:["chart","resolver","symbol"],defaultSettings:{settings:{},data:{},animations:{enabled:!1,trackBy:e=>e.data.value},style:{item:"$shape"}},render(e){let{data:t}=e;const n=this.resolver.resolve({data:t,defaults:CH({},YZ,this.style.item),settings:this.settings.settings,scaled:{x:this.rect.width,y:this.rect.height}}),{width:r,height:o}=this.rect,i=CH({},UZ,this.settings.settings.sizeLimits),a=n.items,s=function(e,t,n,r,o){const i=KZ(e?e.scale:void 0,n),a=KZ(t?t.scale:void 0,r);let s=Math.min(i.value*o[i.isBandwidth?"maxRelDiscrete":"maxRelExtent"],a.value*o[a.isBandwidth?"maxRelDiscrete":"maxRelExtent"]),l=Math.min(i.value*o[i.isBandwidth?"minRelDiscrete":"minRelExtent"],a.value*o[a.isBandwidth?"minRelDiscrete":"minRelExtent"]);return{min:Math.max(1,Math.floor(l)),max:Math.max(1,Math.floor(s)),maxGlobal:o.maxPx,minGlobal:o.minPx}}(n.settings.x,n.settings.y,r,o,i);return XZ(a,this.rect,s,this.settings.shapeFn||this.symbol)}};const ZZ={label:"",arc:1,show:!0,fill:"#333",stroke:"#ccc",strokeWidth:1,strokeLinejoin:"round",opacity:1,innerRadius:0,outerRadius:.8,cornerRadius:0,offset:0};function QZ(e,t,n,r){let{x:o,y:i,width:a,height:s}=t;const l=cG(),u={x:o+a/2,y:i+s/2},c=Math.min(a,s)/2,d=Math.min(a,s)/2,p=d/100;return e.map(((e,t)=>{const o=n[t];o.type="path";const i=d*o.outerRadius,a=c*o.innerRadius,s=p*o.cornerRadius;l.innerRadius(a),l.outerRadius(i),l.cornerRadius(s),o.arcDatum=e;const f=l.centroid(e),h=o.offset?function(e,t,n,r){let[o,i]=e;const a=Math.sqrt(o*o+i*i);o/=a,i/=a;const s=n-r;return{x:o*t*s,y:i*t*s}}(f,o.offset,i,a):{x:0,y:0};return o.transform="translate(".concat(h.x,", ").concat(h.y,") translate(").concat(u.x,", ").concat(u.y,")"),o.desc={share:e.value/r,slice:{start:e.startAngle,end:e.endAngle,innerRadius:a,outerRadius:i,cornerRadius:s,offset:{x:u.x+h.x,y:u.y+h.y}}},o}))}function eQ(e,t){return e.slice&&"arc"in e.slice?t.arc:t.data.value}const tQ={require:["chart","resolver"],defaultSettings:{settings:{startAngle:0,endAngle:2*Math.PI,padAngle:0,slice:{}},style:{slice:"$shape"},data:{}},render(e){let{data:t}=e;const n=[],r=[],o=this.settings.settings,{items:i}=this.resolver.resolve({data:t,defaults:CH({},ZZ,this.style.slice),settings:o.slice});let a=0;for(let e=0,t=i.length;e<t;e++){const t=eQ(o,i[e]);t>0&&i[e].outerRadius>=i[e].innerRadius&&(n.push(t),r.push(i[e]),a+=t)}const s=function(){var e=bG,t=gG,n=null,r=GH(0),o=GH(nG),i=GH(0);function a(a){var s,l,u,c,d,p=a.length,f=0,h=new Array(p),m=new Array(p),g=+r.apply(this,arguments),b=Math.min(nG,Math.max(-nG,o.apply(this,arguments)-g)),y=Math.min(Math.abs(b)/p,i.apply(this,arguments)),x=y*(b<0?-1:1);for(s=0;s<p;++s)(d=m[h[s]=s]=+e(a[s],s,a))>0&&(f+=d);for(null!=t?h.sort((function(e,n){return t(m[e],m[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),s=0,u=f?(b-p*x)/f:0;s<p;++s,g=c)l=h[s],c=g+((d=m[l])>0?d*u:0)+x,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:c,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:GH(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:GH(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:GH(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:GH(+e),a):i},a}().sortValues(null);s.startAngle(o.startAngle),s.endAngle(o.endAngle),s.padAngle(o.padAngle);return QZ(s(n),CH({},this.rect,{x:0,y:0}),r,a)}};const nQ=function(e){function t(t){if(e[t.type]&&e[t.type].condition(t)){const n=e[t.type],r=void 0===n.conditionAppend||n.conditionAppend(t);n.items.forEach((e=>{const n=Math.round(t[e.key]),o=t[e.key]-n;t[e.key]=n,r&&"append"===e.type&&(o>0?t[e.key]+=.5:t[e.key]-=.5)}))}}return void 0===e&&((e={}).line={append:["x1","x2","y1","y2"],round:[],condition:e=>e.x1===e.x2||e.y1===e.y2,conditionAppend:e=>e.strokeWidth%2!=0},e.rect={append:["x","y"],round:["width","height"],condition:()=>!0,conditionAppend:e=>e.strokeWidth%2!=0}),Object.keys(e).forEach((t=>{const n=e[t];n.items=[],n.append.forEach((e=>{n.items.push({key:e,type:"append"})})),n.round.forEach((e=>{n.items.push({key:e,type:"round"})}))})),t.multiple=e=>e.forEach((e=>t(e))),t}();class rQ{constructor(){this.reset(),this.push(...arguments)}static evaluateKey(e,t){if(t){const t=e.substring(0,1),n=e.substring(1);if("x"===t)return"y".concat(n);if("y"===t)return"x".concat(n);if("cx"===e)return"cy";if("cy"===e)return"cx";if("width"===e)return"height";if("height"===e)return"width"}return e}transposeCoordinate(e,t,n){if("number"==typeof t&&isFinite(t)){const r=e.substring(0,1);if("x"===r||"cx"===e)return t*this.width;if("width"===e)return t*this.width;if("r"===e)return t*(n?this.height:this.width);if("y"===r||"cy"===e)return t*this.height;if("height"===e)return t*this.height}return t}push(){return this.storage.push(...arguments),this}processItem(e){let t={};const n=void 0!==e.flipXY?e.flipXY:this.flipXY,r=void 0!==e.crisp?e.crisp:this.crisp;if(e.fn&&"function"==typeof e.fn){let r=n?this.height:this.width,o=n?this.width:this.height;e=e.fn({width:r,height:o,flipXY:n});const i=Object.keys(e);for(let r=0,o=i.length;r<o;r++){let o=i[r];t[rQ.evaluateKey(o,n)]=e[o]}}else{const r=Object.keys(e);for(let o=0,i=r.length;o<i;o++){let i=r[o];const a=rQ.evaluateKey(i,n),s=this.transposeCoordinate(a,e[i],n);t[a]=s}}return r&&nQ(t),t}output(){let e=[];for(let t=0,n=this.storage.length;t<n;t++){let n=this.processItem(this.storage[t]);e.push(n)}return e}reset(){this.storage=[],this.flipXY=!1,this.crisp=!1,this.width=0,this.height=0}}function oQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new rQ(...t)}function iQ(e,t){return e&&t?e.cachedTicks&&e.cachedTicks()||e.ticks({distance:t}):[]}const aQ={created(){},require:["chart","renderer","resolver"],defaultSettings:{layout:{displayOrder:0},style:{ticks:"$guide-line",minorTicks:"$guide-line--minor"}},beforeRender(){this.blueprint=oQ(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){if(this.x=this.settings.x?this.chart.scale(this.settings.x):null,this.y=this.settings.y?this.chart.scale(this.settings.y):null,YX(this,"x",this.rect.width),YX(this,"y",this.rect.height),!this.x&&!this.y)return[];this.settings.ticks=CH({show:!0},this.style.ticks,this.settings.ticks||{}),this.settings.minorTicks=CH({show:!1},this.style.minorTicks,this.settings.minorTicks||{}),this.lines={x:[],y:[]},this.lines.x=iQ(this.x,this.rect.width),this.lines.y=iQ(this.y,this.rect.height),this.lines.y=this.lines.y.map((e=>CH(e,{flipXY:!0})));let e=e=>{let{dir:t,isMinor:n}=e,r=this.lines[t].filter((e=>!!e.isMinor===n)),o=n?this.settings.minorTicks:this.settings.ticks;this.resolver.resolve({settings:o,data:{items:r,dir:t}}).items.forEach((e=>{let n=e.data;var r,o;e.show&&this.blueprint.push({type:"line",x1:n.position,y1:0,x2:n.position,y2:1,stroke:e.stroke||"black",strokeWidth:void 0!==e.strokeWidth?e.strokeWidth:1,strokeDasharray:void 0!==e.strokeDasharray?e.strokeDasharray:void 0,flipXY:n.flipXY||!1,value:null!==(r=n.value)&&void 0!==r?r:null===(o=n.data)||void 0===o?void 0:o.value,dir:t})}))};return e({dir:"x",isMinor:!1}),e({dir:"x",isMinor:!0}),e({dir:"y",isMinor:!1}),e({dir:"y",isMinor:!0}),this.blueprint.output()}};function sQ(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.8,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e," ").concat(t-n,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?0:1,", ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return"\n M ".concat(e-n," ").concat(t,"\n A ").concat(1.25*n," ").concat(1.25*n,", 0, 1, ").concat(o?1:0,", ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function lQ(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom";if(n*=.75,"left"===r||"right"===r){let o="right"===r;return"\n M ".concat(e+=o?1.5*n:-1.5*n," ").concat(t-n,"\n L ").concat(e," ").concat(t+n,"\n L ").concat(o?e+n:e-n," ").concat(t," Z\n ")}let o="bottom"===r;return t+=o?1.5*n:-1.5*n,"\n M ".concat(e-n," ").concat(t,"\n L ").concat(e+n," ").concat(t,"\n L ").concat(e," ").concat(o?t+n:t-n," Z\n ")}function uQ(e,t,n){return e<t||e>n}function cQ(e,t){if("string"==typeof e.formatter)return t.formatter(e.formatter);if("object"==typeof e.formatter)return t.formatter(e.formatter);if(void 0!==e.scale&&e.scale.data){const t=e.scale.data()&&e.scale.data().fields;return t&&t[0]?t[0].formatter():null}return null}function dQ(e){if(void 0===e)return 0;if("number"==typeof e&&isFinite(e))return e;if("string"==typeof e)switch(e){case"center":case"middle":return.5;case"bottom":case"right":return 1;default:return 0}return 0}function pQ(e){var t,n;let{chart:r,blueprint:o,renderer:i,p:a,settings:s,items:l,slopeLine:u}=e,c=!0,d=!1,p=!1,f=!1,h=!1,m=CH(!0,{},s.style.line,a.line||{}),g=CH(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke});if(d=u?o.processItem({type:"line",x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:!1,value:a.valueInfo?a.valueInfo.id:a.value}):o.processItem({type:"line",x1:a.position,y1:0,x2:a.position,y2:1,stroke:m.stroke||"black",strokeWidth:m.strokeWidth||1,strokeDasharray:m.strokeDasharray,flipXY:a.flipXY||!1,value:a.valueInfo?a.valueInfo.id:a.value}),a.label&&!1!==a.label.show&&(null==u||!u.slope||0===u.slope)){const e=CH(!0,{fill:"#000",fontFamily:"Arial",fontSize:"12px",opacity:1,maxWidth:1,maxWidthPx:9999,padding:5,background:{fill:"#fff",stroke:"transparent",strokeWidth:0,opacity:.5}},s.style.label||{},{fill:m.stroke},a.label);let t,n={width:0,height:0},u="";t=cQ(a,r),!1!==a.label.showValue&&(t?u=" (".concat(t(a.value),")"):a.scale&&(u=" (".concat(a.value,")"))),u&&(n=i.measureText({text:u,fontFamily:e.fontFamily,fontSize:e.fontSize}));let d=i.measureText({text:e.text||"",fontFamily:e.fontFamily,fontSize:e.fontSize}),g={width:d.width+n.width,height:Math.max(d.height,n.height)},b=e.padding,y=dQ(a.flipXY?e.vAlign:e.align),x=dQ(a.flipXY?e.align:e.vAlign),v=Math.min(1+g.width+2*b,e.maxWidth*o.width,e.maxWidthPx),_=g.height+2*b,w=a.flipXY?_:v,S=a.flipXY?v:_;if(p=o.processItem({fn:t=>{let{width:n,height:r}=t,i=a.position*n-(a.flipXY?_:v)*(1-y);i=a.flipXY?i:Math.max(i,0);return{type:"rect",x:i,y:Math.max(Math.abs(x*r-S*x),0),width:a.flipXY?w:Math.min(w,o.width-i),height:S,stroke:e.background.stroke,strokeWidth:e.background.strokeWidth,fill:e.background.fill,opacity:e.background.opacity}},flipXY:a.flipXY||!1}),p.x<-1||p.x+p.width>o.width+1||p.y<-1||p.y+p.height>o.height+1)p=void 0;else{f={type:"text",text:e.text||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:p.x+b,y:p.y+p.height/2+g.height/3,maxWidth:p.width-2*b-n.width,anchor:"start"},u&&(h={type:"text",text:u||"",fill:e.fill,opacity:e.opacity,fontFamily:e.fontFamily,fontSize:e.fontSize,x:f.x+3+(p.width-(n.width+2*b)),y:f.y});for(let e=0,t=l.length;e<t;e++){let t=l[e];"rect"===t.type?$J(p,t)&&(c=!1):"line"===t.type&&a.flipXY===t.flipXY&&GJ(p,t)&&(c=!1)}}}if(d&&l.push(d),u&&0!==u.slope&&(!1!==(null===(t=u.label)||void 0===t?void 0:t.show)||!1!==(null===(n=u.label)||void 0===n?void 0:n.showValue))){var b,y,x;let e,t;const n=120;let s=!1!==(null===(b=u.label)||void 0===b?void 0:b.show)?null===(y=u.label)||void 0===y?void 0:y.text:"";if(!1!==(null===(x=u.label)||void 0===x?void 0:x.showValue)){var v;const t=cQ(a,r),n=t?t(u.value):u.value;e="(".concat(u.slope,"x + ").concat(n,")"),s+=null!==(v=u.label)&&void 0!==v&&v.text?" ".concat(e):e}if(s.length>1){var _,w,S;const e=i.measureText({text:s,fontFamily:g.fontFamily,fontSize:g.fontSize});e.width=e.width>n?n:e.width;const a=function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});if(t>0){if(r.max()*t+n>=o.max())return!0}else if(t<0&&r.min()*t+n>=o.max())return!0;return!1}(r,u.slope,u.value)?function(e,t,n){const r=e.scale({scale:"x"}),o=e.scale({scale:"y"});return r((o.max()-n)/t)}(r,u.slope,u.value):void 0,c=void 0===a||u.isRtl?g.padding:3*g.padding,p=void 0!==a||u.slope>0?3*g.padding:g.padding,f=function(e,t,n,r,o,i){let a=0;if(void 0!==n){if(n<.8)return a=e.slope<0||e.isRtl?3*i.padding:2*i.padding,e.isRtl,n*o.width+a;if(1===n)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding);if(n>.8)return e.isRtl?n*o.width-(r.width+3*i.padding):n*o.width-(r.width+6*i.padding)}else if(e.slope>0)return t.x2-(r.width+2*i.padding);return e.isRtl?t.x1-(r.width+2*i.padding):t.x1}(u,d,a,e,o,g),h=Math.min(d.y1,d.y2);null!==(_=u.label)&&void 0!==_&&_.stroke&&(t={type:"rect",x:u.isRtl?Math.max(f,c)-2:Math.max(f,c)+2,y:Math.abs(Math.max(h,p)-e.height),rx:3,ry:3,width:e.width+g.padding,height:e.height-2,stroke:m.stroke,fill:m.stroke});const b={type:"text",text:s,fill:null!==(w=null===(S=u.label)||void 0===S?void 0:S.stroke)&&void 0!==w?w:m.stroke,opacity:g.opacity,fontFamily:g.fontFamily,fontSize:g.fontSize,x:t?t.x+2:Math.max(f,c)+2,y:t?t.y+e.height-g.padding:Math.abs(Math.max(h,p)-g.padding/2),anchor:"start",title:s,maxWidth:n,width:e.width};(function(e,t,n,r,o){for(let i=0,a=e.length;i<a;i++){const a=e[i];if("text"===(null==a?void 0:a.type)&&Math.abs(a.x-t.x)<Math.max(a.width+r,t.width+r)&&Math.abs(a.y-t.y)<n.height+o)return!0}return!1})(l,b,e,c,p)||(t&&l.push(t),l.push(b))}}c&&p&&f&&(l.push(p,f),h&&l.push(h))}function fQ(e){const t={value:e.value};return e.label&&(t.label=e.label.text),t}function hQ(e){return void 0!==("function"==typeof e.value?e.value():e.value)}function mQ(e,t){const n=e.min();if(n===e.max()){const r=function(e){const t=e.range();return 2===(null==t?void 0:t.length)&&t[0]>t[1]}(e);if(t<n)return r?2:-1;if(t>n)return r?-1:2}return e(t)}function gQ(e,t){return e&&t&&Math.abs(e.x-t.x)<1e-15&&Math.abs(e.y-t.y)<1e-15}const bQ={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:0},style:{oob:{show:!0,width:10,fill:"#1A1A1A",stroke:"transparent",strokeWidth:0,opacity:1,text:{fontFamily:"Arial",stroke:"transparent",fill:"#fff",strokeWidth:0,opacity:1},triangle:{fill:"#4D4D4D",stroke:"transparent",strokeWidth:0,opacity:1},padding:{x:28,y:5}},line:{stroke:"#000"},label:{strokeWidth:0}}},preferredSize:()=>30,beforeRender(){this.blueprint=oQ(),this.blueprint.width=this.rect.width,this.blueprint.height=this.rect.height,this.blueprint.x=this.rect.x,this.blueprint.y=this.rect.y,this.blueprint.crisp=!0},render(){let e=this.settings;if(this.lines={x:[],y:[]},this.lines.x=e.lines&&e.lines.x||[],this.lines.y=e.lines&&e.lines.y||[],0===this.lines.x.length&&0===this.lines.y.length)return[];const t={x0:[],x1:[],y0:[],y1:[]};this.lines.x=this.lines.x.filter(hQ).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=mQ(t,e.value);return CH(e,{scale:t,position:n})}return CH(e,{position:e.value})})),this.lines.y=this.lines.y.filter(hQ).map((e=>{if("function"==typeof e.value&&(e.value=e.value()),e.scale){let t=this.chart.scale(e.scale);const n=mQ(t,e.value);return CH(e,{scale:t,position:n,flipXY:!0})}return CH(e,{position:e.value,flipXY:!0})})),this.lines.x=this.lines.x.filter((e=>!(e.position<0||e.position>1)||(t["x".concat(e.position>1?1:0)].push(fQ(e)),!1))),this.lines.y=this.lines.y.filter((e=>!(!e.slope||0===e.slope)||(!(e.position<0||e.position>1)||(t["y".concat(e.position>1?1:0)].push(fQ(e)),!1))));let n=[];return[...this.lines.x,...this.lines.y].forEach((r=>{if(!0===r.show||void 0===r.show){let o;if(r.slope&&0!==r.slope){const e=this.chart.scale({scale:"x"}),n=this.chart.scale({scale:"y"}),i=e.min(),a=e.max(),s=n.min(),l=n.max();o=MH(MH({},r),{},{x1:void 0,y1:void 0,x2:void 0,y2:void 0});const u=i*r.slope+r.value,c=a*r.slope+r.value,d=(s-r.value)/r.slope,p=(l-r.value)/r.slope;let f=[];uQ(u,s,l)||(f[0]={x:mQ(e,i),y:mQ(n,u)}),uQ(d,i,a)||(f[1]={x:mQ(e,d),y:1}),uQ(c,s,l)||(f[2]={x:mQ(e,a),y:mQ(n,c)}),uQ(p,i,a)||(f[3]={x:mQ(e,p),y:0});const h=f.filter((e=>!!e)).length;if(h>2&&function(e){gQ(e[0],e[1])&&(e[1]=void 0),gQ(e[1],e[2])&&(e[2]=void 0),gQ(e[2],e[3])&&(e[3]=void 0),gQ(e[3],e[0])&&(e[3]=void 0)}(f),f=f.filter((e=>!!e)),f.length<2)return void t["y".concat(u>l?0:1)].push(fQ(r));o.x1=f[0].x,o.y1=f[0].y,o.x2=f[1].x,o.y2=f[1].y}else o=void 0;pQ({chart:this.chart,blueprint:this.blueprint,renderer:this.renderer,p:r,settings:e,items:n,slopeLine:o})}})),e.style.oob.show&&function(e){let{blueprint:t,oob:n,settings:r,items:o}=e;const i=Object.keys(n);let a=r.style.oob||{};for(let e=0,r=i.length;e<r;e++){const r=i[e],s=n[r];if(s.length>0){let e=r.charAt(1),n="y"===r.charAt(0),i=a.padding.x+a.width,l=a.padding.y+a.width,u="bottom";u=n?"1"===e?"bottom":"top":"1"===e?"right":"left";let c=t.processItem({fn:t=>{let{width:r,height:o}=t,c=e*r+("1"===e?-i:i),d=n?l:o-l;return"arc"===a.type?{type:"path",d:sQ(n?d:c,n?c:d,a.width,u),x:c,y:d,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0}:{type:"circle",cx:c,cy:d,r:a.width,stroke:a.stroke,fill:a.fill,strokeWidth:a.strokeWidth||0,opacity:a.opacity,data:s}},flipXY:n}),d=c.cx||c.x,p=c.cy||c.y;const f=s.map((e=>e.label?"".concat(e.label," (").concat(e.value,")"):"(".concat(e.value,")"))),h=f.reduce(((e,t,n)=>0===n?t:"".concat(e,"\n\n").concat(t)),"");let m={type:"text",text:s.length||"",title:h,x:d-.4*a.width,y:p+.4*a.width,fontFamily:a.text.fontFamily,fontSize:"".concat(1.3*a.width,"px"),stroke:a.text.stroke,fill:a.text.fill,strokeWidth:a.text.strokeWidth||0,opacity:a.text.opacity},g={type:"path",d:lQ(d,p,a.width,u),x:d,y:p,stroke:a.triangle.stroke,fill:a.triangle.fill,strokeWidth:a.triangle.strokeWidth||0,opacity:a.triangle.opacity};o.push(c,m,g)}}}({blueprint:this.blueprint,oob:t,settings:e,items:n}),n}};function yQ(e){const t={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null}};return"top"===e.align||"bottom"===e.align?(t.x1=e.innerRect.x-e.outerRect.x,t.x2=t.x1+e.innerRect.width,t.y1=t.y2="top"===e.align?e.innerRect.height-e.padding:e.padding):(t.x1=t.x2="left"===e.align?e.innerRect.width-e.padding:e.padding,t.y1=e.innerRect.y-e.outerRect.y,t.y2=t.y1+e.innerRect.height),function(e,t){CH(e,t.style)}(t,e),t}function xQ(e){return"string"==typeof e||"number"==typeof e?e:"-"}function vQ(e,t,n){n.layered||!n.stepSize?function(e,t){t.collider={type:"polygon",vertices:[{x:t.boundingRect.x,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y},{x:t.boundingRect.x+t.boundingRect.width,y:t.boundingRect.y+t.boundingRect.height},{x:t.boundingRect.x,y:t.boundingRect.y+t.boundingRect.height}]}}(0,t):n.tilted?function(e,t,n){const r=n.angle*(Math.PI/180),o=Math.max(n.stepSize/2,t.boundingRect.height/2),i="start"===t.anchor,a="end"===t.anchor&&r<0,s="start"===t.anchor&&r>=0,l=t.boundingRect.y+(s||a?t.boundingRect.height:0),u=[{x:t.x-o,y:l},{x:t.x+o,y:l}].map((e=>mJ(e,r,{x:t.x,y:t.y}))),c={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y+t.boundingRect.height},d={x:i?t.boundingRect.x+t.boundingRect.width+10:t.boundingRect.x-10,y:t.boundingRect.y},p=r>=0?[c,d]:[d,c];u.push(...p),t.collider={type:"polygon",vertices:u}}(0,t,n):function(e,t,n){if("bottom"===n.align||"top"===n.align){const r=e.position*n.innerRect.width+(n.innerRect.x-n.outerRect.x-n.stepSize/2);t.collider={type:"rect",x:r,y:0,width:r<0?n.stepSize+r:n.stepSize,height:n.innerRect.height}}else{const r=e.position*n.innerRect.height+(n.innerRect.y-n.outerRect.y-n.stepSize/2);t.collider={type:"rect",x:0,y:r,width:n.innerRect.width,height:r<0?n.stepSize+r:n.stepSize}}const r=t.collider;r.x=Math.max(r.x,0),r.y=Math.max(r.y,0);const o=r.x+r.width-(n.outerRect.x+n.outerRect.width);r.width=o>0?r.width-o:r.width;const i=r.y+r.height-(n.outerRect.y+n.outerRect.height);r.height=i>0?r.height-i:r.height}(e,t,n)}function _Q(e,t){const n=isNaN(e.style.align)?.5:Math.min(Math.max(e.style.align,0),1);let r=0;if(e.tilted)r=e.stepSize*n;else{const o=t?e.textRect.height:e.textRect.width;r=Math.max(0,e.stepSize-o)*n}return r}function wQ(e,t){var n,r;const o={type:"text",text:xQ(e.label),x:0,y:0,maxWidth:t.maxWidth,maxHeight:t.maxHeight,tickValue:null!==(n=e.value)&&void 0!==n?n:null===(r=e.data)||void 0===r?void 0:r.value};return"top"===t.align||"bottom"===t.align?(o.x=e.start*t.innerRect.width+(t.innerRect.x-t.outerRect.x)+_Q(t,!1),o.y="top"===t.align?t.innerRect.height:0,o.anchor=t.stepSize?"start":"middle",o.x+=isNaN(t.style.offset)?0:+t.style.offset):(o.y=e.start*t.innerRect.height+(t.innerRect.y-t.outerRect.y)+_Q(t,!0),o.x="left"===t.align?t.innerRect.width:0,o.anchor="left"===t.align?"end":"start",o.baseline=t.stepSize?"text-before-edge":"central",o.y+=isNaN(t.style.offset)?0:+t.style.offset),function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(o,t),function(e,t){if(!t.tilted&&!t.stepSize)if("top"===t.align||"bottom"===t.align){const n=0,r=t.outerRect.width,o=Math.min(t.maxWidth/2,t.textRect.width/2),i=e.x-o,a=e.x+o;i<n?(e.anchor="start",e.x=t.innerRect.x-t.outerRect.x):a>r&&(e.anchor="end",e.x=t.innerRect.width+t.innerRect.x)}else{const n=0,r=t.outerRect.height,o=t.maxHeight/2,i=e.y-o,a=e.y+o;i<n?(e.y=t.innerRect.y-t.outerRect.y,e.baseline="text-before-edge"):a>r&&(e.y=t.innerRect.height+(t.innerRect.y-t.outerRect.y),e.baseline="text-after-edge")}}(o,t),function(e,t){"top"===t.align?e.y-=t.padding:"bottom"===t.align?e.y+=t.padding+t.maxHeight:"left"===t.align?e.x-=t.padding:"right"===t.align&&(e.x+=t.padding)}(o,t),function(e,t){if(t.tilted){const n=-t.angle,r=n*(Math.PI/180);"bottom"===t.align?(e.x-=t.maxHeight*Math.sin(r)/2,e.y-=t.maxHeight,e.y+=t.maxHeight*Math.cos(r)/2):e.x-=t.maxHeight*Math.sin(r)/3,e.transform="rotate(".concat(n,", ").concat(e.x,", ").concat(e.y,")"),e.anchor="bottom"===t.align==t.angle<0?"start":"end";const o=Math.cos(r)*t.maxWidth;if("bottom"===t.align==t.angle<0){const n=t.outerRect.width-t.paddingEnd;e.x+o>n&&(e.maxWidth=(n-e.x-10)/Math.cos(r))}else{const n=t.paddingEnd;e.x-o<n&&(e.maxWidth=(e.x-n-10)/Math.cos(r))}}}(o,t),function(e,t){e.boundingRect=t.textBounds(e)}(o,t),vQ(e,o,t),o}function SQ(e,t){const n={type:"line",x1:0,x2:0,y1:0,y2:0,collider:{type:null},tickValue:e.value};return"top"===t.align||"bottom"===t.align?(n.x1=n.x2=e.position*t.innerRect.width+(t.innerRect.x-t.outerRect.x),n.y1="top"===t.align?t.innerRect.height:0,n.y2="top"===t.align?n.y1-t.tickSize:n.y1+t.tickSize):(n.y1=n.y2=e.position*t.innerRect.height+(t.innerRect.y-t.outerRect.y),n.x1="left"===t.align?t.innerRect.width:0,n.x2="left"===t.align?n.x1-t.tickSize:n.x1+t.tickSize),function(e,t){CH(e,t.style)}(n,t),function(e,t){"top"===t.align?(e.y1-=t.padding,e.y2-=t.padding):"bottom"===t.align?(e.y1+=t.padding,e.y2+=t.padding):"left"===t.align?(e.x1-=t.padding,e.x2-=t.padding):"right"===t.align&&(e.x1+=t.padding,e.x2+=t.padding)}(n,t),function(e,t){const n=e.strokeWidth/2;e.x1===t.innerRect.width?(e.x1-=n,e.x2-=n):0===e.x1?(e.x1+=n,e.x2+=n):e.y1===t.innerRect.height?(e.y1-=n,e.y2-=n):0===e.y1&&(e.y1+=n,e.y2+=n)}(n,t),n}function CQ(e){return!e.isMinor&&e.position>=0&&e.position<=1}function EQ(e){let{rect:t,state:n,majorTicks:r,measure:o,horizontal:i}=e;return i?function(e){let{majorTicks:t,measureText:n,rect:r,state:o}=e;const i="layered"===o.labels.activeMode?2:1,a=r.width,s=t.map((e=>e.label)).map((e=>"".concat(e.slice(0,1)).concat(e.length>1?"…":""))).map(n).map((e=>e.width));for(let e=0;e<t.length;++e){const n=t[e];if(i*a*Math.abs(n.start-n.end)<s[e])return!0}return!1}({majorTicks:r,measureText:o,rect:t,state:n}):function(e){let{majorTicks:t,measureText:n,rect:r}=e;const o=r.height,i=n("M").height;return!(t.length<2)&&o*Math.abs(t[0].position-t[1].position)<i}({majorTicks:r,measureText:o,rect:t})}function kQ(e){let{value:t,maxValue:n,minValue:r,range:o,modifier:i}=e;return isNaN(o)||isNaN(i)||(t=o*i),t>n&&(t=n),t<r&&(t=r),t}function RQ(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const u={left:0,top:0,right:0,bottom:0},{maxLengthPx:c,minLengthPx:d}=a.labels;if(a.labels.show){const e=a.align,p="top"===e||"bottom"===e,f=p?n.inner.width:n.inner.height,h=i.ticks({settings:a,distance:f,formatter:r}).filter(CQ),m=e=>{const t=o({text:e,fontSize:a.labels.fontSize,fontFamily:a.labels.fontFamily});return t.width=kQ({value:t.width,maxValue:c,minValue:d}),t};if(t&&p&&"auto"===a.labels.mode&&(!function(e){let{majorTicks:t,measure:n,rect:r,state:o,settings:i}=e;const a=i.labels.maxGlyphCount,s="layered"===o.labels.activeMode?2:1,l=i.labels.tiltThreshold?i.labels.tiltThreshold:.7,u=n("…").width,c=r.width;let d=0,p=0;if(isNaN(a))for(let e=0;e<t.length;e++){const r=t[e],o=r.label,i=n(o).width*(o.length>1?l:1);if(p=s*c*Math.abs(r.start-r.end),i+u>p)return!0}else{const e=t.reduce(((e,t)=>Math.min(Math.abs(t.start-t.end),e)),1/0);if(p=s*c*e,d=n("M").width*l*a,d+u>p)return!0}return!1}({majorTicks:h,measure:m,rect:n.inner,state:s,settings:a})?s.labels.activeMode="horizontal":s.labels.activeMode="tilted"),!a.labels.filterOverlapping&&"tilted"!==s.labels.activeMode&&EQ({rect:n.inner,state:s,majorTicks:h,measure:m,horizontal:p})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}let g,b;if("tilted"===s.labels.activeMode){const e=Math.abs(a.labels.tiltAngle)*(Math.PI/180);g=t=>kQ({value:t.width,maxValue:c,minValue:d})*Math.sin(e)+t.height*Math.cos(e)}else g=p?e=>e.height:e=>kQ({value:e.width,maxValue:c,minValue:d});if(p&&"tilted"!==s.labels.activeMode)b=["M"];else if(isNaN(a.labels.maxGlyphCount))b=h.map((e=>e.label));else{let e="";for(let t=0;t<a.labels.maxGlyphCount;t++)e+="M";b=[e]}const y=b.map(m),x=y.map(g),v=Math.max(...x,0);if(l+=v,l+=a.labels.margin,"layered"===s.labels.activeMode&&(l*=2),"tilted"===s.labels.activeMode){const e="bottom"===a.align==a.labels.tiltAngle>=0,t=Math.abs(a.labels.tiltAngle)*(Math.PI/180),r=(v-m("M").height*Math.cos(t))/Math.sin(t),o=e=>Math.min(r,e.width)*Math.cos(t)+e.height,i=(t,r)=>{const o=h[r]?h[r].position:0;return e?t-o*n.inner.width:t-(1-o)*n.inner.width},s=Math.min(a.labels.maxEdgeBleed,Math.max(...y.map(o).map(i),0))+a.paddingEnd;if(u[e?"left":"right"]=s,!a.labels.filterOverlapping&&function(e){let{majorTicks:t,measureText:n,rect:r,bleedSize:o,angle:i}=e;if(t.length<2)return!1;if(0===i)return!0;const a=Math.abs(i),s=1/(Math.min(r.outer.width-o,r.inner.width)*Math.abs(t[0].position-t[1].position));return n("M").height>Math.sin(a*(Math.PI/180))/s}({majorTicks:h,measureText:m,rect:n,bleedSize:s,angle:a.labels.tiltAngle})){return{size:Math.max(n.outer.width,n.outer.height),isToLarge:!0}}}}return{size:l,edgeBleed:u}}const MQ=(e,t,n)=>e.width*Math.abs(t.position-n.position);function AQ(e){let{layered:t,major:n,innerRect:r,outerRect:o,tick:i,index:a}=e;const s=t?2:1,l=n[a-s],u=n[a+s],c=l?MQ(r,i,l)/2-2:1/0,d=u?MQ(r,i,u)/2-2:1/0;return n.length<2?r.width:l?u?2*Math.min(c,d):(e=>{let{innerRect:t,outerRect:n,tick:r,prevWidth:o}=e;const i=t.x-n.x,a=n.width-t.width-i,s=t.width-t.width*r.position+a,l=2*Math.min(o,s),u=1===r.position?t.width/2-2:0;return Math.max(o,l,u)})({innerRect:r,outerRect:o,tick:i,prevWidth:c}):(e=>{let{innerRect:t,outerRect:n,tick:r,nextWidth:o}=e;const i=t.x-n.x,a=t.width*r.position+i,s=2*Math.min(o,a),l=0===r.position?t.width/2-2:0;return Math.max(o,s,l)})({innerRect:r,outerRect:o,tick:i,nextWidth:d})}function IQ(e){const t=e.innerRect,n={cx:t.width/2,cy:t.height/2},r=Math.min(t.height,t.width)/2*e.radius,o=r+e.style.strokeWidth,i={visible:!0,type:"path",arcDatum:{startAngle:e.startAngle,endAngle:e.endAngle},transform:"translate(0, 0) translate(".concat(n.cx,", ").concat(n.cy,")"),desc:{share:1,slice:{cornerRadius:0,innerRadius:r,outerRadius:o}},ticks:[]};return function(e,t){CH(e,t.style)}(i,e),i}function LQ(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}function PQ(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i;let u=a-e.position*l;u-=Math.PI/2;const c=LQ(r.cx,r.cy,o+s,u),d=LQ(r.cx,r.cy,o,u),p={type:"line",x1:c.x,y1:c.y,x2:d.x,y2:d.y,value:e.value};return function(e,t){const n=MH({},t.style);CH(e,n)}(p,t),p}function DQ(e){return"string"==typeof e||"number"==typeof e?e:"-"}function TQ(e,t,n){let r;return r="left"===t?n.x:"right"===t?e.outerRect.width-n.x:Math.max(n.x,e.outerRect.width-n.x),r}function OQ(e,t){const n=t.innerRect,r={cx:n.width/2,cy:n.height/2},o=Math.min(n.height,n.width)/2*t.radius+t.padding,i=t.startAngle,a=t.endAngle,s=t.tickSize,l=a-i,u=.2;let c,d;c="top"===t.align||"bottom"===t.align?a-e.position*l:i+e.position*l,d=c<-.2&&c>-Math.PI+u?"left":c>.2&&c<Math.PI-u?"right":"center",c-=Math.PI/2;const p=function(e,t,n,r){return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}(r.cx,r.cy,o+s+6,c);let f;f="left"===d?"end":"right"===d?"start":"middle";const h={type:"text",text:DQ(e.label),align:d,x:p.x,y:p.y,maxHeight:t.maxHeight,maxWidth:TQ(t,d,p),anchor:f,baseline:"middle"};return function(e,t){["fill","fontSize","fontFamily"].forEach((n=>{e[n]=t.style[n]}))}(h,t),function(e,t){e.boundingRect=t.textBounds(e)}(h,t),function(e,t,n){let r,o;const i=parseFloat(n.fontSize)||0;r=t.y-i/2,o=e.innerRect.height-(t.y+i/2),(r<0||o<0)&&(n.text="")}(t,p,h),h}function zQ(e){let t=0;return t+=e.paddingStart,t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function NQ(e){let t=0;return t+=e.line.show?e.line.strokeWidth/2:0,t+=e.ticks.show?e.ticks.margin:0,t}function qQ(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=zQ(e)+e.labels.margin,t}function jQ(e,t){return e.map((e=>SQ(e,t)))}function FQ(e,t){return t?Math.abs(t.end-t.start):e.bandwidth()}function BQ(e){let{textMetrics:t,settings:n,innerRect:r,scale:o,tilted:i,layered:a,tick:s}=e;const l=t.height,u=FQ(o,s),c={width:0,height:l};if("left"===n.align||"right"===n.align)c.width=r.width-qQ(n)-n.paddingEnd;else if(a)c.width=u*r.width*2;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);c.width=(r.height-qQ(n)-n.paddingEnd-l*Math.cos(e))/Math.sin(e)}else c.width=u*r.width;return c.width=kQ({value:c.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),c}function $Q(e){let{textMetrics:t,settings:n,innerRect:r,outerRect:o,tilted:i,layered:a,tick:s,index:l,major:u}=e;const c=t.height,d={width:0,height:c};if("left"===n.align||"right"===n.align)d.width=r.width-qQ(n)-n.paddingEnd;else if(i){const e=Math.abs(n.labels.tiltAngle)*(Math.PI/180);d.width=(r.height-qQ(n)-n.paddingEnd-c*Math.cos(e))/Math.sin(e)}else d.width=AQ({layered:a,major:u,innerRect:r,outerRect:o,tick:s,index:l});return d.width=kQ({value:d.width,maxValue:n.labels.maxLengthPx,minValue:n.labels.minLengthPx}),d}function WQ(e){let t;function n(){return t=$Q,n}function r(){return t=BQ,r}function o(e){let{settings:n,scale:r,innerRect:o,outerRect:i,measureText:a,ticks:s,state:l,textBounds:u}=e;const c=[],d=function(e){return e.filter((e=>!e.isMinor))}(s),p=function(e){return e.filter((e=>e.isMinor))}(s),f={innerRect:o,align:n.align,outerRect:i},h="tilted"===l.labels.activeMode,m="layered"===l.labels.activeMode;let g;if(n.arc&&(f.startAngle=n.arc.startAngle,f.endAngle=n.arc.endAngle,f.radius=n.arc.radius),n.line.show&&(f.style=n.line,f.padding=n.paddingStart,n.arc?c.push(IQ(f)):c.push(yQ(f))),n.ticks.show&&(f.style=n.ticks,f.tickSize=n.ticks.tickSize,f.padding=zQ(n),n.arc?(f.padding=NQ(n),g=function(e,t){return e.map((e=>PQ(e,t)))}(d,f)):g=jQ(d,f)),n.labels.show){const e=qQ(n);f.style=n.labels,f.padding=e,f.tilted=h,f.layered=m,f.angle=n.labels.tiltAngle,f.paddingEnd=n.paddingEnd,f.textBounds=u;const s=(e,s)=>{f.textRect=function(e){let{style:t,measureText:n,tick:r}=e;return n({text:r.label,fontSize:t.fontSize,fontFamily:t.fontFamily})}({tick:e,measureText:a,style:f.style});const l=t({textMetrics:f.textRect,settings:n,innerRect:o,outerRect:i,scale:r,tilted:h,layered:m,tick:e,major:d,index:s});f.maxWidth=l.width,f.maxHeight=l.height,f.stepSize=function(e){let{innerRect:t,scale:n,settings:r,tick:o}=e;return("top"===r.align||"bottom"===r.align?t.width:t.height)*FQ(n,o)}({innerRect:o,scale:r,settings:n,tick:e})};let l=[];n.arc?(f.padding=function(e){let t=0;return t+=e.ticks.show?e.ticks.tickSize:0,t+=NQ(e)+e.labels.margin,t}(n),l=function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=OQ(e,t);return o.data=e.data,o}))}(d,f,s)):l=!m||"top"!==n.align&&"bottom"!==n.align?function(e,t,n){return e.map(((e,r)=>{n(e,r);const o=wQ(e,t);return o.data=e.data,o}))}(d,f,s):function(e,t,n,r){const o=t.padding,i=qQ(n);return e.map(((e,a)=>{r(e,a);const s=i+t.maxHeight+n.labels.margin;t.layer=a%2,t.padding=a%2==0?o:s;const l=wQ(e,t);return l.data=e.data,l}))}(d,f,n,s),n.labels.filterOverlapping&&function(e,t,n){let r=(t,n)=>$J(qH(1,e[t].boundingRect),qH(1,e[n].boundingRect));if(n&&n.tilted){const t=Math.abs(n.angle);r=(n,r)=>{const o=1/Math.abs(e[n].x-e[r].x),i=Math.sin(t*(Math.PI/180))/o;return e[n].boundingRect.height>i}}for(let n=0;n<=e.length-1;n++)for(let o=n+1;o<=Math.min(n+5,n+(e.length-1));o++)e[n]&&e[o]&&r(n,o)&&(o===e.length-1?(e.splice(n,1),t&&t.splice(n,1)):(e.splice(o,1),t&&t.splice(o,1)),o--,n--)}(l,g,f),c.push(...l)}return n.minorTicks&&n.minorTicks.show&&p.length>0&&(f.style=n.minorTicks,f.tickSize=n.minorTicks.tickSize,f.padding=function(e){return e.line.strokeWidth+e.minorTicks.margin}(n),c.push(...jQ(p,f))),g&&c.push(...g),c}return n.build=o,r.build=o,e?r():n()}const HQ={labels:{show:!0,tiltAngle:40,tiltThreshold:.7,maxEdgeBleed:1/0,margin:4,maxLengthPx:150,minLengthPx:0,mode:"auto",maxGlyphCount:NaN,align:.5,offset:0,filterOverlapping:!1},ticks:{show:!1,margin:0,tickSize:4},line:{show:!1},paddingStart:0,paddingEnd:10,align:"auto"},GQ={labels:{show:!0,margin:4,maxLengthPx:150,minLengthPx:0,align:.5,offset:0,filterOverlapping:!0},ticks:{show:!0,margin:0,tickSize:8},minorTicks:{show:!1,tickSize:3,margin:0},line:{show:!0},paddingStart:0,paddingEnd:10,align:"auto"};const VQ={require:["chart","renderer","dockConfig"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{},style:{labels:"$label",ticks:"$guide-line",minorTicks:"$guide-line--minor",line:"$guide-line"}},created(){this.state={isDiscrete:!!this.scale.bandwidth,isHorizontal:!1,labels:{activeMode:"horizontal"},ticks:[],innerRect:{width:0,height:0,x:0,y:0},outerRect:{width:0,height:0,x:0,y:0},defaultDock:void 0,concreteNodeBuilder:void 0,settings:void 0},this.state.isDiscrete?this.state.defaultDock="bottom":this.state.defaultDock="left",this.setState(this.settings)},setState(){this.state.isDiscrete=!!this.scale.bandwidth,this.state.settings=function(e){let{state:t,style:n,settings:r}=e;const o=CH(!0,{},t.isDiscrete?HQ:GQ,n),i=CH(!0,{},o,r.settings),a=r.layout.dock||t.defaultDock;i.dock=a,i.align=function(e,t){const n=["top","bottom"],r=["left","right"];return-1!==n.indexOf(e)&&-1===r.indexOf(t)||-1!==r.indexOf(e)&&-1===n.indexOf(t)?e:t}(r.settings.align,a),i.labels.tiltAngle=Math.max(-90,Math.min(i.labels.tiltAngle,90));const{paddingStart:s,paddingEnd:l}=i;return i.paddingStart="function"==typeof s?s.call(null):s,i.paddingEnd="function"==typeof l?l.call(null):l,i}(this),this.state.concreteNodeBuilder=WQ(this.state.isDiscrete),this.dockConfig.dock(this.state.settings.dock),this.state.isHorizontal="top"===this.state.settings.align||"bottom"===this.state.settings.align,this.state.labels.activeMode=function(e,t,n){const r=t.labels.mode;return n&&e.isHorizontal?"auto"===r?e.labels.activeMode:-1!==["layered","tilted"].indexOf(t.labels.mode)&&-1!==["top","bottom"].indexOf(t.dock)?r:"horizontal":"horizontal"}(this.state,this.state.settings,this.state.isDiscrete)},preferredSize(e){const{formatter:t,state:n,scale:r}=this,o=this.state.isHorizontal?e.inner.width:e.inner.height;this.state.pxScale=UX(r,o);const i=function(e){let{isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s}=e,l=0;const{size:u,edgeBleed:c,isToLarge:d}=RQ({isDiscrete:t,rect:n,formatter:r,measureText:o,scale:i,settings:a,state:s});if(l+=u,d)return{size:l};if(a.ticks.show&&(l+=a.ticks.margin,l+=a.ticks.tickSize),a.minorTicks&&a.minorTicks.show){const e=a.minorTicks.margin+a.minorTicks.tickSize;e>l&&(l=e)}if(a.line.show){const e=a.line.strokeWidth/2;l+=e,c[function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left";default:return e}}(a.align)]=Math.ceil(e)}return l+=a.paddingStart,l+=a.paddingEnd,{size:l,edgeBleed:c}}({isDiscrete:this.state.isDiscrete,rect:{inner:e.inner,outer:e.outer},formatter:t,measureText:this.renderer.measureText,scale:this.state.pxScale,settings:this.state.settings,state:n});return i},beforeUpdate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{settings:t}=e;this.setState(t)},resize(e){const{inner:t,outer:n}=e,r=CH({},t,function(e){let{align:t,inner:n}=e;return"left"===t?{x:n.width+n.x}:"right"===t||"bottom"===t?n:{y:n.y+n.height}}({align:this.state.settings.align,inner:t})),o=n||r;return CH(this.state.innerRect,r),CH(this.state.outerRect,o),n},beforeRender(){const{scale:e,formatter:t}=this,n=this.state.isHorizontal?this.state.innerRect.width:this.state.innerRect.height;this.state.pxScale=UX(e,n),this.state.ticks=this.state.pxScale.ticks({distance:n,formatter:t}).filter((e=>e.position>=0&&e.position<=1))},render(){const{state:e}=this,t=[];return t.push(...this.state.concreteNodeBuilder.build({settings:this.state.settings,scale:this.state.pxScale,innerRect:this.state.innerRect,outerRect:this.state.outerRect,measureText:this.renderer.measureText,textBounds:this.renderer.textBounds,ticks:this.state.ticks,state:e})),nQ.multiple(t),t}};const YQ={render:()=>[]};function UQ(e,t,n){let r="";if("function"==typeof e)r=e();else if("string"==typeof e)r=e;else if(n){const e=(n.data().fields||[]).map((e=>e.title()));r=e.join(t)}return r}function KQ(e,t){let n="middle";return"left"===e?"top"===t?n="end":"bottom"===t&&(n="start"):"right"===e?"top"===t?n="start":"bottom"===t&&(n="end"):"left"===t?n="start":"right"===t&&(n="end"),n}const XQ={require:["renderer","chart"],defaultSettings:{layout:{dock:"bottom",displayOrder:0,prioOrder:0},settings:{paddingStart:5,paddingEnd:5,paddingLeft:0,paddingRight:0,anchor:"center",join:", ",maxLengthPx:NaN},style:{text:"$title"}},created(){this.definitionSettings=this.settings.settings;const e=this.settings.text,t=this.definitionSettings.join;this.title=UQ(e,t,this.scale)},preferredSize(){return this.renderer.measureText({text:this.title,fontSize:this.style.text.fontSize,fontFamily:this.style.text.fontFamily}).height+this.definitionSettings.paddingStart+this.definitionSettings.paddingEnd},render(){const{title:e,definitionSettings:t,rect:n}=this,r=[];return r.push(function(e){let{title:t,definitionSettings:n,dock:r,rect:o,measureText:i,style:a}=e;const s={type:"text",text:t,x:0,y:0,dx:0,dy:0,anchor:KQ(r,n.anchor),baseline:"alphabetical",stroke:"transparent",strokeWidth:0,fontWeight:"normal"};CH(s,a.text);const l=i(s);if("top"===r||"bottom"===r){let e=o.width/2;"left"===n.anchor?e=n.paddingLeft||0:"right"===n.anchor&&(e=o.width-(n.paddingRight||0)),s.x=e,s.y="top"===r?o.height-n.paddingStart:n.paddingStart+l.height,s.dy="top"===r?-l.height/6:-l.height/3,s.maxWidth=.8*o.width}else{let e=o.height/2;"top"===n.anchor?e=n.paddingStart:"bottom"===n.anchor&&(e=o.height-n.paddingStart),s.y=e,s.x="left"===r?o.width-n.paddingStart:n.paddingStart,s.dx="left"===r?-l.height/3:l.height/3;const t="left"===r?270:90;s.transform="rotate(".concat(t,", ").concat(s.x+s.dx,", ").concat(s.y+s.dy,")"),s.maxWidth=.8*o.height}return isNaN(n.maxLengthPx)||(s.maxWidth=Math.min(s.maxWidth,n.maxLengthPx)),s}({title:e,dock:this.settings.layout.dock,definitionSettings:t,rect:n,measureText:this.renderer.measureText,style:this.style})),r},beforeUpdate(e){e.settings&&(CH(this.settings,e.settings),this.definitionSettings=e.settings.settings);const t=this.settings.text,n=this.definitionSettings.join;this.title=UQ(t,n,this.scale)}};function JQ(e,t){const n=e.settings.layout.dock,r=e.settings.settings.invert,o="top"===n||"bottom"===n,i=o?"width":"height",a=e.rect[i],s=e.chart.scroll(e.settings.scroll);let l;{let e=t[o?"x":"y"];r&&(e=a-e);const n=s.getState();l={startOffset:e,startScroll:n.start,swipe:!1};const i=e/a*(n.max-n.min)+n.min;i<n.start?l.startScroll=i:i>n.start+n.viewSize&&(l.startScroll=i-n.viewSize)}return{update:e=>{let t=e[o?"x":"y"];if(r&&(t=a-t),!l.swipe){if(Math.abs(l.startOffset-t)<=1)return;l.swipe=!0}const n=s.getState(),i=(t-l.startOffset)/a*(n.max-n.min),u=l.startScroll+i;s.moveTo(u)},end:e=>{let t=e[o?"x":"y"];r&&(t=a-t);const n=s.getState();if(l.swipe){const e=(t-l.startOffset)/a*(n.max-n.min),r=l.startScroll+e;s.moveTo(r)}else{const e=t/a*(n.max-n.min)+n.min-n.viewSize/2;s.moveTo(e)}}}}function ZQ(e,t){const n=t.element().getBoundingClientRect();return{x:e.center.x-n.left,y:e.center.y-n.top}}const QQ={require:["chart","renderer"],on:{panStart(e){const t=ZQ(e,this.renderer),n={x:t.x-e.deltaX,y:t.y-e.deltaY};this.currentMove=JQ(this,n),this.currentMove.update(t)},panMove(e){if(!this.currentMove)return;const t=ZQ(e,this.renderer);this.currentMove.update(t)},panEnd(e){if(!this.currentMove)return;const t=ZQ(e,this.renderer);this.currentMove.end(t),this.currentMove=null},panCancel(){this.currentMove=null},tap(e){const t=ZQ(e,this.renderer);JQ(this,t).end(t)}},defaultSettings:{settings:{backgroundColor:"#eee",thumbColor:"#ccc",width:16}},preferredSize:function(e){const t=this.chart.scroll(this.settings.scroll).getState();if(t.viewSize>=t.max-t.min){return Math.max(e.width,e.height)}return this.settings.settings.width},render:function(e){const t=this.settings.layout.dock,n=this.settings.settings.invert,r="top"===t||"bottom"===t,o=r?"width":"height",i=this.rect[o],a=this.chart.scroll(this.settings.scroll).getState();let s=i*(a.start-a.min)/(a.max-a.min);const l=i*a.viewSize/(a.max-a.min);return n&&(s=i-s-l),e("div",{style:{position:"relative",width:"100%",height:"100%",background:this.settings.settings.backgroundColor,pointerEvents:"auto"}},[].concat(e("div",{class:"scroller",style:{position:"absolute",[r?"left":"top"]:"".concat(s,"px"),[r?"top":"left"]:"25%",[r?"height":"width"]:"50%",[o]:"".concat(Math.max(1,l),"px"),background:this.settings.settings.thumbColor}})))},renderer:"dom"};function e0(e){let{h:t,isVertical:n,value:r,pos:o,align:i,borderHit:a,state:s,idx:l}=e;const u="end"!==i,c=u?{left:"0",top:"0"}:{right:"0",bottom:"0"};let d=0,p="100%",f="100%";return s.targetRect&&"start"===s.settings.bubbles.align?(p="".concat(s.targetRect.x+s.targetRect.width,"px"),f="".concat(s.targetRect.y+s.targetRect.height,"px")):s.targetRect&&"end"===s.settings.bubbles.align&&(d=n?s.targetRect.x:s.targetRect.y,p="".concat(s.rect.width-d,"px"),f="".concat(s.rect.height-d,"px")),u||(o-=a),t("div",{onmouseover(e){e.srcElement.children[0].style.backgroundColor="#000",e.srcElement.children[0].style[n?"height":"width"]="2px"},onmouseout(e){e.srcElement.children[0].style.backgroundColor=s.style.line.stroke,e.srcElement.children[0].style[n?"height":"width"]="1px"},"data-value":r,"data-key":[s.key,"edge",l].join("-"),style:{cursor:n?"ns-resize":"ew-resize",position:"absolute",left:"".concat(n?d:o,"px"),top:"".concat(n?o:d,"px"),height:n?"".concat(a,"px"):f,width:n?p:"".concat(a,"px"),pointerEvents:"auto"}},[t("div",{style:CH({backgroundColor:s.style.line.stroke,position:"absolute",height:n?"".concat(1,"px"):"100%",width:n?"100%":"".concat(1,"px"),pointerEvents:"none"},c)})])}function t0(e){let{h:t,isVertical:n,label:r,otherValue:o,rangeIdx:i,idx:a,pos:s,align:l,state:u,value:c}=e;const d="end"!==l,p="outside"===u.settings.bubbles.placement;let f,h="none";n?(f=d?"left":"right",p&&(h=d?"translate(-100%, 0px)":"translate(100%, 0px)")):(f=d?"top":"bottom",p&&(h=d?"translate(0px, -100%)":"translate(0px, 100%)"));let m=u.edit&&u.edit.rangeIdx===i&&u.edit.bubbleIdx===a;const g={position:"relative",borderRadius:"".concat(u.style.bubble.borderRadius,"px"),border:"".concat(u.style.bubble.strokeWidth,"px solid ").concat(u.style.bubble.stroke),backgroundColor:u.style.bubble.fill,color:u.style.bubble.color,fontFamily:u.style.bubble.fontFamily,fontSize:u.style.bubble.fontSize,padding:"4px 8px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"150px",minWidth:"50px",minHeight:"1em",pointerEvents:"auto",transform:n?"translate(0,-50%)":"translate(-50%,0)",cursor:n?"ns-resize":"ew-resize"};let b=u.style.bubble.stroke;const y=m?t("input",{type:"text",value:c,style:MH(MH({},g),{},{textAlign:"start",textOverflow:"",fontSize:"13px"}),onkeyup(e){if("Enter"===e.key){e.preventDefault(),e.stopPropagation();const t=parseFloat(e.target.value);isNaN(t)?(b="rgba(230, 78, 78, 0.6)",e.target.style.border="".concat(u.style.bubble.strokeWidth,"px solid ").concat(b)):u.onEditConfirmed(i,t,o)}else"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),u.onEditCanceled())}}):t("div",{"data-key":[u.key,"bubble",i,a].join("-"),"data-other-value":o,"data-idx":i,"data-bidx":a,style:g},[r]);return t("div",{style:{position:"absolute",[f]:"0",[n?"top":"left"]:"".concat(s,"px"),transform:h}},[y])}function n0(e){let{h:t,isVertical:n,top:r,height:o,color:i,on:a,opacity:s}=e;return t("div",CH({style:{backgroundColor:i,opacity:s,position:"absolute",left:n?0:"".concat(r,"px"),top:n?"".concat(r,"px"):0,height:n?"".concat(o,"px"):"100%",width:n?"100%":"".concat(o,"px"),pointerEvents:"auto"}},a),[])}function r0(e){let{borderHit:t,els:n,isVertical:r,state:o,vStart:i,vEnd:a,idx:s}=e,l=0;o.targetRect&&(l=r?o.targetRect.y:o.targetRect.x);const u=!!o.scale,c=u?o.scale.norm(i)*o.size:i,d=u?o.scale.norm(a)*o.size:a,p=Math.abs(c-d),f=Math.min(c,d)+l,h=f+p;if(o.targetRect){const e=o.targetFillRect||o.targetRect,t=r?e.height:e.width,s=u?o.scale.norm(i)*t:i,l=u?o.scale.norm(a)*t:a,c=Math.abs(s-l),d=Math.min(s,l),p={h:o.h,isVertical:r,top:d,height:c,color:o.style.target.fill,opacity:o.style.target.opacity};o.style.target.opacity<.8&&(p.on={onmouseover(e){e.srcElement.style.opacity=o.style.target.opacity+.1},onmouseout(e){e.srcElement.style.opacity=o.style.target.opacity}}),n.push(o.h("div",{style:{position:"absolute",left:"".concat(e.x,"px"),top:"".concat(e.y,"px"),height:"".concat(e.height,"px"),width:"".concat(e.width,"px")}},[n0(p)]))}const m=c<d?i:a,g=c<d?a:i,[b,y]=u?o.scale.domain():[Math.min(i,a),Math.max(i,a)],x=m+1e-5>=b&&m-1e-5<=y,v=g-1e-5<=y&&g+1e-5>=b;x&&n.push(e0({h:o.h,isVertical:r,borderHit:t,value:m,pos:f,align:"start",state:o,idx:s})),v&&n.push(e0({h:o.h,isVertical:r,borderHit:t,value:g,pos:h,align:"end",state:o,idx:s}));const _=o.settings.bubbles;if(_&&_.show){_.fontSize,_.fontFamily,_.fill;const e=[i,a];x&&n.push(t0({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:0,otherValue:g,value:m,label:"".concat(o.format(m,e)),pos:f,state:o})),v&&n.push(t0({h:o.h,isVertical:r,align:_.align,rangeIdx:s,idx:1,otherValue:m,value:g,label:"".concat(o.format(g,e)),pos:h,state:o}))}}function o0(e){const t=e.active.limitHigh-e.active.end,n=e.active.limitLow-e.active.start;let r=e.current-e.start;return r=r<0?Math.max(r,n):Math.min(r,t),r}function i0(e){let t=[];const n=0===e.direction;if(Array.isArray(e.ranges)&&e.ranges.forEach(((r,o)=>{e.active&&o===e.active.idx||r0({borderHit:5,els:t,isVertical:n,state:e,vStart:Math.min(r.min,r.max),vEnd:Math.max(r.min,r.max),idx:o})})),e.active){let r=e.start,o=e.current;if(-1!==e.active.idx)if("foo"===e.active.mode)r=Math.min(e.active.start,e.active.end),o=Math.max(e.active.start,e.active.end);else if("modify"===e.active.mode)r=Math.min(e.start,e.current),o=Math.max(e.start,e.current);else{const t=o0(e);r=e.active.start+t,o=e.active.end+t}r0({borderHit:5,els:t,isVertical:n,state:e,vStart:r,vEnd:o,idx:e.active.idx})}return t}function a0(e){return{min:e.scale.min(),max:e.scale.max()}}function s0(e){return{min:0,max:e.direction?e.rect.width:e.rect.height}}function l0(e,t,n){let r,o,i=e.ranges,a=-1;for(r=0;r<i.length;r++){if(i[r].min<=t&&t<=i[r].max){a=r,n.min=r?i[r-1].max:n.min,n.max=r+1<i.length?i[r+1].min:n.max;break}if(t<i[r].min){n.max=i[r].min,n.min=r?i[r-1].max:n.min;break}}-1===a&&i.length&&r>=i.length&&(n.min=i[i.length-1].max),-1!==a&&(o={idx:a,start:i[a].min,end:i[a].max,limitLow:n.min,limitHigh:n.max,mode:"foo"}),e.active=o}function u0(e){e.renderer.render(i0(e))}function c0(e,t){if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}function d0(e,t){let n,r=1/0;const o=t.domain(),i=t.bandwidth()/2;for(let a=0;a<o.length;++a){const s=Math.abs(e-i-t(o[a]));s<r&&(r=s,n=o[a])}return n}function p0(e,t){return Math.min(...e)<=Math.max(...t)&&Math.max(...e)>=Math.min(...t)}function f0(e){const t=e.reduce(((e,t)=>(e.push(...TH(t.bounds)),e)),[]);return OH(t)}const h0={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{rangeStart(e){this.start(e)},rangeMove(e){this.move(e)},rangeEnd(e){this.end(e)},rangeClear(e){this.clear(e)},bubbleStart(e){this.bubbleStart(e)}},created(){this.state={key:this.settings.key||"brush-range"}},beforeRender(e){this.state.rect=e.size.computedInner},renderRanges(){this.state.started||(this.state.ranges=c0(this.state,this.state.brushInstance),this.state.active=null,u0(this.state))},render(e){const t=this.settings.settings;this.state.direction="vertical"===t.direction?0:1;const n=this.renderer.element().getBoundingClientRect(),r=this.state.rect[0===this.state.direction?"height":"width"];let o=UX(this.chart.scale(t.scale),r);const i=function(e){const t={targetRect:null,targetFillRect:null,scale:null,size:null},n=e.settings.settings,r=n.target&&(n.target.components||(n.target.component?[n.target.component]:[])).map((t=>e.chart.component(t))).filter((e=>!!e&&!!e.rect)),o=n.target&&n.target.selector?e.chart.findShapes(n.target.selector):[],i=n.target&&n.target.fillSelector?e.chart.findShapes(n.target.fillSelector):[];if(o.length>0){const r=f0(o);if(t.size=r[0===e.state.direction?"height":"width"],t.scale=UX(e.chart.scale(n.scale),t.size),t.targetRect=r,i.length>0){const e=f0(i);t.targetFillRect=e}}else if(r&&r.length>0){const n=r.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.computedInner.x),y0:Math.min(e.y0,t.rect.computedInner.y),x1:Math.max(e.x1,t.rect.computedInner.x+t.rect.computedInner.width),y1:Math.max(e.y1,t.rect.computedInner.y+t.rect.computedInner.height)})),{x0:r[0].rect.computedInner.x,y0:r[0].rect.computedInner.y,x1:r[0].rect.computedInner.x+r[0].rect.computedInner.width,y1:r[0].rect.computedInner.y+r[0].rect.computedInner.height});t.targetRect={x:n.x0-e.state.rect.x,y:n.y0-e.state.rect.y,width:n.x1-n.x0,height:n.y1-n.y0}}return t}(this);if(o=i.scale?i.scale:o,this.state.targetRect=i.targetRect,this.state.targetFillRect=i.targetFillRect,this.state.size=null===i.size?r:i.size,this.state.settings=t,this.state.style=this.style,this.state.offset=n,this.state.brush="object"==typeof t.brush?t.brush.context:t.brush,this.state.brushInstance=this.chart.brush(this.state.brush),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.onEditConfirmed=(e,t,n)=>{this.state.edit=null,function(e,t,n,r){let o=e.ranges.map((e=>({min:e.min,max:e.max})));const i=e.scale.min(),a=e.scale.max();o[t]={min:Math.max(i,Math.min(n,r)),max:Math.min(a,Math.max(n,r))},e.ranges[t]=MH({},o[t]);const s=e.scale.data();s&&s.fields&&s.fields.forEach((t=>{e.fauxBrushInstance||e.brushInstance.setRange(t.id(),o)}))}(this.state,e,t,n),this.emit("bubbleEnd"),u0(this.state)},this.state.onEditCanceled=()=>{this.state.edit=null,u0(this.state)},this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX"},this.state.format="function"==typeof t.bubbles.label&&((e,n)=>t.bubbles.label.call(void 0,{datum:e,data:n,scale:o,resources:{scale:this.chart.scale,formatter:this.chart.formatter}})),{}.hasOwnProperty.call(o,"norm")){this.state.editable=!0,this.state.observeBrush="object"==typeof t.brush&&t.brush.observe,this.state.fauxBrushInstance=null,this.state.findValues=null,this.state.scale=o;const e=this.state.scale.data();!this.state.format&&e&&e.fields&&e.fields[0]&&(this.state.format=e.fields[0].formatter())}else this.state.editable=!1,this.state.scale=JK(),this.state.scale.data=o.data,this.state.format||(this.state.format=(e,t)=>p0(o.range(),t)?function(e,t){const n=t.ticks(),r=t.domain().indexOf(d0(e,t));return-1!==r?n[r].label:"-"}(e,o):"-"),this.state.fauxBrushInstance=OX(),this.state.findValues=e=>function(e,t){const n=t.domain(),r=t.range(),o=[];return e.forEach((e=>{if(!p0(r,[e.min,e.max]))return;const i=n.indexOf(d0(e.min,t)),a=n.indexOf(d0(e.max,t));o.push.apply(o,n.slice(Math.min(i,a),Math.max(i,a)+1))})),o}(e,o);return this.state.ranges=c0(this.state,this.state.brushInstance),this.state.observeBrush||this.state.sourcedFromThisComponent?[i0(this.state)]:[]},mounted(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.on("update",this.renderRanges)},beforeDestroy(){this.state.observeBrush&&this.state.brushInstance&&this.state.brushInstance.removeListener("update",this.renderRanges)},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;t.edit=null;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=CH({},r.element().getBoundingClientRect());const c=a-t.offset.left,d=s-t.offset.top;t.offset.left+=t.targetRect?t.targetRect.x:0,t.offset.top+=t.targetRect?t.targetRect.y:0,t.ranges=o(t,t.fauxBrushInstance||t.brushInstance);const p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];u.current=t.scale.normInvert(f/t.size),u.start=t.scale.normInvert(p/t.size);let h=t.ranges;const m=a0(t);let g,b,y=-1;if(l&&l.hasAttribute("data-idx"))y=parseInt(l.getAttribute("data-idx"),10),m.min=y>0?h[y-1].max:m.min,m.max=y+1<h.length?h[y+1].min:m.max;else{for(g=0;g<h.length;g++){if(h[g].min<=u.start&&u.start<=h[g].max){y=g,m.min=g?h[g-1].max:m.min,m.max=g+1<h.length?h[g+1].min:m.max;break}if(u.start<h[g].min){m.max=h[g].min,m.min=g?h[g-1].max:m.min;break}}-1===y&&h.length&&g>=h.length&&(m.min=h[h.length-1].max)}if(-1!==y||t.multi||(u.ranges=[],m.min=t.scale.min(),m.max=t.scale.max()),-1!==y)if(b={idx:y,start:h[y].min,end:h[y].max,limitLow:m.min,limitHigh:m.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),b.mode="modify";else{let e=t.scale.norm(b.start)*t.size,n=t.scale.norm(b.end)*t.size;Math.abs(p-e)<=i?(u.start=b.end,b.mode="modify"):Math.abs(p-n)<=i&&(u.start=b.start,b.mode="modify")}else b={idx:-1,start:u.start,end:u.current,limitLow:m.min,limitHigh:m.max,mode:"current"};u.active=b,"modify"!==b.mode&&t.targetRect&&!HJ(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:c0,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e,e.fauxBrushInstance||e.brushInstance);const n=a0(e);l0(e,e.current,n)}(this.state,c0),u0(this.state),this.state.sourcedFromThisComponent=!0,this.state.active=null)},move(e){this.state.started&&(!function(e,t){const n=(t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset])/e.size,r=e.scale.normInvert(n);e.current=Math.max(Math.min(r,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){let t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=o0(e);t[e.active.idx].min+=n,t[e.active.idx].max+=n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});const n=e.scale.data();n&&n.fields&&n.fields.forEach((n=>{if(e.fauxBrushInstance){let r=c0(e,e.fauxBrushInstance),o=e.findValues(r),i=e.findValues(t),a=i.filter((e=>-1===o.indexOf(e))),s=o.filter((e=>-1===i.indexOf(e))),l=a.map((e=>({key:n.id(),value:e}))),u=s.map((e=>({key:n.id(),value:e})));e.brushInstance.addAndRemoveValues(l,u),e.fauxBrushInstance.setRange(n.id(),t)}else e.brushInstance.setRange(n.id(),t)}))}(this.state),u0(this.state))},clear(){this.state.fauxBrushInstance&&this.state.fauxBrushInstance.clear(),this.state.renderer.render([]),this.state.started=!1,this.state.active=null,this.state.sourcedFromThisComponent=!1},bubbleStart(e){if(!this.state.editable)return;const t=e.srcEvent||e,n=t.target,r={rangeIdx:parseInt(n.getAttribute("data-idx"),10),bubbleIdx:parseInt(n.getAttribute("data-bidx"),10)};if(isNaN(r.rangeIdx)||JSON.stringify(r)===JSON.stringify(this.state.edit))return;this.state.edit=r,t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault();const o=n.parentNode;u0(this.state);const i=o.querySelector("input");i.focus(),i.select()}};function m0(e){e.renderer.render(i0(e))}function g0(e){return e.rc.ranges()}function b0(e,t){const n={x:e.direction?t.min+e.rect.x:e.rect.x,y:e.direction?e.rect.y:t.min+e.rect.y,width:e.direction?t.max-t.min:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:t.max-t.min};return e.chart.shapesAt(n,e.settings.brush)}const y0={require:["chart","settings","renderer"],defaultSettings:{settings:{bubbles:{show:!0,align:"start"}},style:{bubble:"$label-overlay",line:"$shape-guide--inverted",target:"$selection-area-target"}},renderer:"dom",on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaClear(e){this.clear(e)}},created(){this.state={key:this.settings.key||"brush-area-dir"}},render(e){this.state.rect=this.rect;const t=this.settings.settings,n="vertical"===t.direction?0:1,r=this.state.rect[0===n?"height":"width"],o=this.renderer.element().getBoundingClientRect(),i=(t.target?t.target.components||[t.target.component]:[]).map((e=>this.chart.component(e))).filter((e=>!!e&&!!e.rect)),a=i[0]?i.slice(1).reduce(((e,t)=>({x0:Math.min(e.x0,t.rect.x),y0:Math.min(e.y0,t.rect.y),x1:Math.max(e.x1,t.rect.x+t.rect.width),y1:Math.max(e.y1,t.rect.y+t.rect.height)})),{x0:i[0].rect.x,y0:i[0].rect.y,x1:i[0].rect.x+i[0].rect.width,y1:i[0].rect.y+i[0].rect.height}):null;return this.state.targetRect=a?{x:a.x0-this.rect.x,y:a.y0-this.rect.y,width:a.x1-a.x0,height:a.y1-a.y0}:null,this.state.style=this.style,this.state.chart=this.chart,this.state.direction=n,this.state.settings=t,this.state.offset=o,this.state.rc=SX(),this.state.renderer=this.renderer,this.state.multi=!!t.multiple,this.state.h=e,this.state.size=r,this.state.cssCoord={offset:0===this.state.direction?"top":"left",coord:0===this.state.direction?"y":"x",pos:0===this.state.direction?"deltaY":"deltaX",area:0===this.state.direction?"height":"width"},this.state.format=function(e,t){return function(e,t,n){const r=Math.min(...n),o=Math.max(...n),i={x:e.direction?r+e.rect.x:e.rect.x,y:e.direction?e.rect.y:r+e.rect.y,width:e.direction?o-r:e.rect.width+e.rect.x,height:e.direction?e.rect.height+e.rect.y:o-r},a=e.chart.shapesAt(i,e.settings.brush);if(0===a.length)return"-";const s=a.reduce(((n,o)=>{const i=n.bounds,a=o.bounds;return t===r?i[e.cssCoord.coord]<=a[e.cssCoord.coord]?n:o:i[e.cssCoord.coord]+i[e.cssCoord.area]>=a[e.cssCoord.coord]+a[e.cssCoord.area]?n:o})),l=e.settings.brush.components.reduce(((e,t)=>e.key===s.key?e:t));return"function"==typeof e.settings.bubbles.label?e.settings.bubbles.label(s.data):Array.isArray(l.data)&&l.data.length?s.data[l.data[0]].label:s.data&&s.data.label?s.data.label:"-"}(this,e,t)},[]},start(e){!function(e){let{state:t,e:n,renderer:r,ranges:o,targetSize:i}=e;if(t.started)return;const a=n.center.x-n.deltaX,s=n.center.y-n.deltaY;let l=document.elementFromPoint(a,s);r.element().contains(l)||(l=null);const u={started:!0};t.offset=r.element().getBoundingClientRect(),t.ranges=o(t);const c=a-t.offset.left,d=s-t.offset.top,p=n.center[t.cssCoord.coord]-n[t.cssCoord.pos]-t.offset[t.cssCoord.offset],f=n.center[t.cssCoord.coord]-t.offset[t.cssCoord.offset];let h=f,m=p;u.start=p,u.current=f;let g=t.ranges;const b=s0(t);let y,x,v=-1;if(l&&l.hasAttribute("data-idx"))v=parseInt(l.getAttribute("data-idx"),10),b.min=v>0?g[v-1].max:b.min,b.max=v+1<g.length?g[v+1].min:b.max;else{for(y=0;y<g.length;y++){if(g[y].min<=m&&m<=g[y].max){v=y,b.min=y?g[y-1].max:b.min,b.max=y+1<g.length?g[y+1].min:b.max;break}if(m<g[y].min){b.max=g[y].min,b.min=y?g[y-1].max:b.min;break}}-1===v&&g.length&&y>=g.length&&(b.min=g[g.length-1].max)}if(-1!==v||t.multi||(u.ranges=[],b.min=0,b.max=t.direction?t.rect.width:t.rect.height),-1!==v)if(x={idx:v,start:g[v].min,end:g[v].max,limitLow:b.min,limitHigh:b.max,mode:"move"},l&&l.hasAttribute("data-other-value"))u.start=parseFloat(l.getAttribute("data-other-value")),x.mode="modify";else{let e=x.start,t=x.end;Math.abs(p-e)<=i?(u.start=x.end,x.mode="modify"):Math.abs(p-t)<=i&&(u.start=x.start,x.mode="modify")}else x={idx:-1,start:m,end:h,limitLow:b.min,limitHigh:b.max,mode:"current"};u.active=x,"modify"!==x.mode&&t.targetRect&&!HJ(t.targetRect,{x:c,y:d})||Object.keys(u).forEach((e=>t[e]=u[e]))}({e:e,state:this.state,renderer:this.renderer,ranges:g0,targetSize:5})},end(){this.state.started&&(!function(e,t){e.started=!1,e.ranges=t(e);const n=s0(e);l0(e,e.current,n)}(this.state,g0),m0(this.state))},move(e){this.state.started&&(!function(e,t){const n=t.center[e.cssCoord.coord]-e.offset[e.cssCoord.offset];e.current=Math.max(Math.min(n,e.active.limitHigh),e.active.limitLow)}(this.state,e),function(e){const t=e.ranges.map((e=>({min:e.min,max:e.max})));if(-1!==e.active.idx)if("modify"===e.active.mode)t[e.active.idx].min=Math.min(e.start,e.current),t[e.active.idx].max=Math.max(e.start,e.current);else{const n=o0(e);t[e.active.idx].min=e.active.start+n,t[e.active.idx].max=e.active.end+n}else t.push({min:Math.min(e.start,e.current),max:Math.max(e.start,e.current)});e.rc.set(t);let n=[];t.forEach((t=>{n=[...n,...b0(e,t)]})),function(e,t){e.chart.brushFromShapes(t,e.settings.brush)}(e,n)}(this.state),m0(this.state))},clear(){this.state.rc&&this.state.rc.clear(),this.state.renderer.render([])}};function x0(e){const t="vertical"===e.direction,n=e.rect[t?"height":"width"],r=e.rect[t?"width":"height"];return function(e){const t=e.brush;if(!t||!t.isActive())return[];const n=e.scale.data(),r=(n&&n.fields||[]).map((e=>e.id())),o=t.brushes().filter((e=>"range"===e.type&&-1!==r.indexOf(e.id)))[0];return o?o.brush.ranges():[]}(e).map((o=>{const i=e.scale(o.min)*n,a=e.scale(o.max)*n,s=Math.min(i,a),l=Math.abs(i-a);return{type:"rect",fill:e.fill,opacity:e.opacity,x:t?0:s,width:t?r:l,y:t?s:0,height:t?l:r}}))}function v0(e,t,n,r){function o(){!function(e){e.renderer.render(x0(e))}(e)}function i(){!function(e){e.renderer.render(x0(e))}(e)}function a(){!function(e){e.renderer.render(x0(e))}(e)}e.brush=t,t&&(t.on("start",o),t.on("update",i),t.on("end",a),e.start=o,e.update=i,e.end=a,e.brush=t,e.scale=n,e.renderer=r)}function _0(e){e.brush&&(e.brush.removeListener("start",e.start),e.brush.removeListener("update",e.update),e.brush.removeListener("end",e.end)),e.start=void 0,e.update=void 0,e.end=void 0,e.brush=void 0,e.scale=void 0,e.renderer=void 0}const w0={require:["chart","settings","renderer"],defaultSettings:{settings:{}},preferredSize:()=>50,created(){this.state={}},render(){const e=this.settings.settings,t=this.chart.brush(e.brush),n=e.direction||"horizontal",r="horizontal"===n?this.rect.width:this.rect.height,o=UX(this.chart.scale(e.scale),r);return _0(this.state),v0(this.state,t,o,this.renderer),this.state.rect=this.rect,this.state.fill=e.fill||"#ccc",this.state.opacity=void 0!==e.opacity?e.opacity:1,this.state.direction=n,x0(this.state)},beforeDestroy(){_0(this.state)}};function S0(e,t){const n=t.center.x,r=t.center.y;return{x:n-e.left,y:r-e.top}}function C0(e,t,n){return pJ(e,t.points[0])<n.settings.snapIndicator.threshold**2}function E0(e,t){null==e.path.d?e.path.d="M".concat(t.x," ").concat(t.y," "):e.path.d+="L".concat(t.x," ").concat(t.y," "),e.points.push(t)}function k0(e){let{state:t,start:n=null,end:r=null}=e;null!==n&&(t.snapIndicator.x1=n.x,t.snapIndicator.y1=n.y),null!==r&&(t.snapIndicator.x2=r.x,t.snapIndicator.y2=r.y)}function R0(e,t){e.snapIndicator.visible=t}const M0={require:["chart","renderer","settings"],defaultSettings:{layout:{displayOrder:0},settings:{brush:{components:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.5},lasso:{fill:"transparent",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:"20, 10"},startPoint:{r:10,fill:"green",stroke:"black",strokeWidth:1,opacity:1}}},on:{lassoStart(e){this.start(e)},lassoEnd(e){this.end(e)},lassoMove(e){this.move(e)},lassoCancel(){this.cancel()}},created(){this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}}},start(e){var t;this.state.active=!0,this.state.path={visible:!0,type:"path",d:null,fill:(t=this.settings.settings.lasso).fill,stroke:t.stroke,strokeWidth:t.strokeWidth,opacity:t.opacity,strokeDasharray:t.strokeDasharray,collider:{type:null}},this.state.snapIndicator=function(e){return{visible:!1,type:"line",x1:0,y1:0,x2:0,y2:0,strokeDasharray:e.strokeDasharray,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity,collider:{type:null}}}(this.settings.settings.snapIndicator),this.state.startPoint=function(e){return{visible:!0,type:"circle",cx:0,cy:0,r:e.r,fill:e.fill,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,collider:{type:null}}}(this.settings.settings.startPoint),this.state.rendererBounds=this.renderer.element().getBoundingClientRect(),this.state.componentDelta=function(e,t){const n=e.element.getBoundingClientRect();return{x:t.left-n.left,y:t.top-n.top}}(this.chart,this.state.rendererBounds),this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts||["lassoBrush"],data:e.data||[""],action:e.action||"add"})))}(this.settings);const n=S0(this.state.rendererBounds,e);E0(this.state,n),k0({state:this.state,start:n}),function(e,t){e.startPoint.cx=t.x,e.startPoint.cy=t.y}(this.state,n)},move(e){if(!this.state.active)return;const t=S0(this.state.rendererBounds,e);C0(t,this.state,this.settings)?R0(this.state,!0):R0(this.state,!1),E0(this.state,t),k0({state:this.state,end:t}),function(e,t){const n=[e.startPoint,e.path,e.snapIndicator].filter((e=>e.visible));t.render(n)}(this.state,this.renderer),function(e,t){if(e.active){const n=e.points[e.points.length-2],r=e.points[e.points.length-1];e.lineBrushShape.x1=n.x+e.componentDelta.x,e.lineBrushShape.y1=n.y+e.componentDelta.y,e.lineBrushShape.x2=r.x+e.componentDelta.x,e.lineBrushShape.y2=r.y+e.componentDelta.y;const o=t.shapesAt(e.lineBrushShape,{components:e.brushConfig});t.brushFromShapes(o,{components:e.brushConfig})}}(this.state,this.chart)},end(e){if(!this.state.active)return;R0(this.state,!1);C0(S0(this.state.rendererBounds,e),this.state,this.settings)&&function(e,t){if(e.active){const n=e.componentDelta.x,r=e.componentDelta.y,o=e.points.map((e=>({x:e.x+n,y:e.y+r}))),i=t.shapesAt({vertices:o},{components:e.brushConfig});t.brushFromShapes(i,{components:e.brushConfig})}}(this.state,this.chart),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([])},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={points:[],active:!1,path:null,snapIndicator:null,startPoint:null,rendererBounds:null,componentDelta:null,brushConfig:null,lineBrushShape:{x1:0,y1:0,x2:0,y2:0}},this.renderer.render([]))},render(){}};function A0(e,t,n,r,o){let i,a=0,s=t.length-1;for(;a<s;){let l=Math.floor((a+s)/2);i=o(t[l]),i[n]+i[r]<e[n]?a=l+1:s=l}return a}function I0(e){let{orientation:t,targetNodes:n,labels:r,container:o}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A0;const a=[],s="v"===t?"x":"y",l="v"===t?"width":"height",u=e=>e.textBounds,c=e=>e.node.localBounds;return(e,t)=>{const{textBounds:d,node:p}=r[t];if(d[s]<o[s]||d[s]+d[l]>o[s]+o[l])return!1;for(let e=i(d,a,s,l,u);e<a.length;e++)if($J(d,a[e].textBounds))return!1;const f=i(d,n,s,l,c),h=d[s]+d[l];for(let e=f;e<n.length;e++){const t=n[e].node;if(h<t.localBounds[s])break;if($J(d,t.localBounds)&&p!==t)return!1}return a.push(r[t]),!0}}const L0=4;function P0(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function D0(e){const t=typeof e;return("string"===t||"number"===t)&&""!==e}function T0(e){return MH(MH({type:"rect",rx:2,ry:2,fill:e.backgroundColor},e.backgroundBounds),{},{data:"".concat(e.data," ").concat(e.text),rotation:e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal"})}function O0(e,t,n){return n?e.width>=t.height:e.width>=t.width}function z0(e,t,n){return n?e.height>=t.width:e.height>=t.height}function N0(e,t,n,r,o){let i,a;return"v"===e?(i=r||o||O0(t,n,!0),a=z0(t,n,!r)):(i=O0(t,n),a=o||z0(t,n,!1)),i&&a}function q0(e,t,n,r){return e+.5*t+(r-.5)*(t-n)-.5*n}function j0(e,t,n){const r={type:"text",text:t,maxWidth:n.rotate?e.height:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:n.rotate?"end":"start",baseline:"central",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(!n.overflow&&!function(e,t,n){return O0(e,t,n.rotate)&&z0(e,t,n.rotate)}(e,o,n))return!1;const i=.5*o.height;return n.rotate?(r.x=q0(e.x,e.width,o.height,n.align)+i,r.y=q0(e.y,e.height,o.width,n.justify),"right"===n.dock?r.transform="rotate(90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,") translate(").concat(o.width,", 0)"):r.transform="rotate(-90, ".concat(r.x+r.dx,", ").concat(r.y+r.dy,")")):(r.x=q0(e.x,e.width,o.width,n.align),r.y=q0(e.y,e.height,o.height,n.justify)+i),r}function F0(e){let{bar:t,view:n,direction:r,position:o,padding:i=L0,measured:a}=e;const s={};if(CH(s,t),o&&"inside"!==o)if("up"===r||"down"===r){const e=Math.max(0,Math.min(t.y,n.height)),i=Math.max(0,Math.min(t.y+t.height,n.height));"outside"===o&&"up"===r||"opposite"===o&&"down"===r?(s.y=0,s.height=e):("outside"===o&&"down"===r||"opposite"===o&&"up"===r)&&(s.y=i,s.height=n.height-i)}else{const e=Math.max(0,Math.min(t.x,n.width)),i=Math.max(0,Math.min(t.x+t.width,n.width));"outside"===o&&"left"===r||"opposite"===o&&"right"===r?(s.x=0,s.width=e):("outside"===o&&"right"===r||"opposite"===o&&"left"===r)&&(s.x=i,s.width=n.width-i)}else;return function(e,t){const n=Math.max(0,Math.min(e.y,t.height)),r=Math.max(0,Math.min(e.y+e.height,t.height)),o=Math.max(0,Math.min(e.x,t.width)),i=Math.max(0,Math.min(e.x+e.width,t.width));e.x=o,e.width=i-o,e.y=n,e.height=r-n}(s,n),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{top:r=L0,bottom:o=L0,left:i=L0,right:a=L0}=n,s="function"==typeof i?i(t):i,l="function"==typeof a?a(t):a,u="function"==typeof r?r(t):r,c="function"==typeof o?o(t):o;e.x+=s,e.width-=s+l,e.y+=u,e.height-=u+c}(s,a,i),s}function B0(e){let t,n,r,o,i,{direction:a,fitsHorizontally:s,measured:l,node:u,orientation:c,placementSettings:d,rect:p}=e,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F0;const h=[],m="h"===c?"width":"height";for(i=0;i<d.length;i++)if(r=d[i],o=f({bar:u.localBounds,view:p,direction:a,position:r.position,padding:r.padding,measured:l}),h.push(o),t=!i||o[m]>t[m]?o:t,N0(c,o,l,s,r.overflow)){n=o;break}return n||(n=t,i=h.indexOf(n)),r=d[i],{bounds:n,placement:r}}function $0(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{top:i=L0,bottom:a=L0,left:s=L0,right:l=L0}=o,u="function"==typeof s?s(t):s,c="function"==typeof l?l(t):l,d="function"==typeof i?i(t):i,p="function"==typeof a?a(t):a,f=e.x+e.dx,h=e.y+e.dy,m=n?Math.min(t.width,r.height):Math.min(t.height,r.width),g=n?Math.min(t.height,r.height):Math.min(t.width,r.width),b=.5*t.height,y=1e-9;return{x:(n?f-b:f)-u-y,y:(n?h:h-b)-d-y,width:g+(u+c)-y,height:m+(d+p)-y}}function W0(e){let{chart:t,targetNodes:n,rect:r,fitsHorizontally:o,collectiveOrientation:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I0;const u=[],c={container:r,targetNodes:n,labels:[],orientation:i};let d,p,f,h,m,g,b,y,x,v,_,w,S,C;for(let e=0,l=n.length;e<l;e++){g=null,p=n[e],f=p.node,S=P0(f,t),x=p.direction,C="left"===x||"right"===x?"h":"v";for(let t=0;t<p.texts.length;t++){if(h=p.texts[t],!D0(h))continue;v=p.labelSettings[t],y=p.measurements[t],w=v.placements;const n=a({direction:x,fitsHorizontally:o,lblStngs:v,measured:y,node:f,orientation:C,placements:w,placementSettings:p.placementSettings[t],rect:r});if(g=n.bounds,_=n.placement,g&&_){var E;m=_.justify;const t="function"==typeof v.linkData?v.linkData(S,e):void 0,n="function"==typeof _.overflow?_.overflow(S,e):_.overflow;"up"===x&&(m=1-m),"opposite"===_.position&&(m=1-m),"left"===x&&(m=1-m);const r=!("h"===i||o);if(d=s(g,h,{justify:"h"===C?_.align:m,align:"h"===C?m:_.align,fontSize:v.fontSize,fontFamily:v.fontFamily,textMetrics:y,rotate:r,overflow:!!n,dock:null!==(E=v.dock)&&void 0!==E?E:"left"}),d){const n=$0(d,y,r,g,_.padding);b="function"==typeof _.fill?_.fill(MH(MH({},S),{},{textBounds:n}),e):_.fill,d.fill=b,void 0!==t&&(d.data=t),"object"==typeof _.background&&(d.backgroundColor="function"==typeof _.background.fill?_.background.fill(MH(MH({},S),{},{textBounds:n}),e):_.background.fill,void 0!==d.backgroundColor&&(d.backgroundBounds=$0(d,y,r,g,_.background.padding))),u.push(d),c.labels.push({node:f,textBounds:n})}}}}const k=u.filter(l(c));return[...k.filter((e=>void 0!==e.backgroundBounds)).map(T0),...k]}function H0(e){const t=2*Math.PI;return(e%t+t)%t}function G0(e,t){e.x+=t,e.width-=2*t,e.y+=t,e.height-=2*t}function V0(e){return{x:e.x,y:e.y-e.height/2,width:e.width,height:e.height}}function Y0(e,t,n){let{x:r,y:o}=t;if(r*r+o*o>e*e)return null;let i=Math.sin(n),a=Math.cos(n),s=r*a-o*i,l=e*e-s*s;if(l<0)return null;let u=Math.sqrt(l);return{x:s*a+i*u,y:-s*i+a*u}}function U0(e){let t,n,{radius:r,size:o,angle:i}=e,{width:a,height:s}=o,l={x:a/2,y:s/2};switch(Math.floor(i/(Math.PI/2))){case 0:if(t=Y0(r,l,i),!t)return null;t.y*=-1,n={x:-a,y:0};break;case 1:if(t=Y0(r,l,Math.PI-i),!t)return null;n={x:-a,y:-s};break;case 2:if(t=Y0(r,l,i-Math.PI),!t)return null;t.x*=-1,n={x:0,y:-s};break;case 3:if(t=Y0(r,l,2*Math.PI-i),!t)return null;t.x*=-1,t.y*=-1,n={x:0,y:0};break;default:throw new Error("invalid angle")}return{x:t.x+n.x,y:t.y+n.y,width:a,height:s}}function K0(e){let{slice:t,measured:n,padding:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t,l=s-a-2*r,u=i-o;if(u<Math.PI){let e=(n.height/2+r)/Math.tan(u/2);e>a&&(l=s-e-2*r)}if(l<0||l<n.minReqWidth)return null;const c=H0((o+i)/2);let d=s-r,p={x:Math.sin(c)*d,y:-Math.cos(c)*d,width:l,height:n.height};return c<Math.PI?(p.angle=c-Math.PI/2,p.anchor="end"):(p.angle=c+Math.PI/2,p.anchor="start"),p}function X0(e){let{context:t,node:n,bounds:r}=e;let{start:o,end:i}=n.desc.slice;const a=H0((o+i)/2);switch(Math.floor(a/(Math.PI/2))){case 0:t.q1maxY=r.y-2,void 0===t.q2minY&&(t.q2minY=r.y+r.height+2);break;case 1:t.q2minY=r.y+r.height+2;break;case 2:t.q3minY=r.y+r.height+2;break;case 3:t.q4maxY=r.y-2,void 0===t.q3minY&&(t.q3minY=r.y+r.height+2)}}function J0(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function Z0(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:e.x,y:e.y+("top"===e.baseline?e.height/2:0),fill:n.fill,anchor:e.anchor||"start",baseline:"middle",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily};if(!isNaN(e.angle)){let t=e.angle*(360/(2*Math.PI));r.transform="rotate(".concat(t,", ").concat(r.x,", ").concat(r.y,")")}return r}function Q0(e){let t,n,{slice:r,direction:o,position:i,padding:a,measured:s,view:l,context:u,store:c}=e,{start:d,end:p,innerRadius:f,offset:h}=r;switch(i){case"into":t="rotate"===o?K0({slice:r,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r}=e,{start:o,end:i,innerRadius:a,outerRadius:s}=t;const l=H0((o+i)/2);let u=U0({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",GJ(u,{x1:0,y1:0,x2:Math.sin(o)*s,y2:-Math.cos(o)*s})||GJ(u,{x1:0,y1:0,x2:Math.sin(i)*s,y2:-Math.cos(i)*s})||zJ({cx:0,cy:0,r:a},u)?null:(G0(u,n),u)):null}({slice:r,measured:s,padding:a});break;case"inside":n={start:d,end:p,innerRadius:0,outerRadius:f},t="rotate"===o?K0({slice:n,measured:s,padding:a}):function(e){let{slice:t,padding:n,measured:r,store:o}=e;const{start:i,end:a,outerRadius:s}=t,l=H0((i+a)/2);let u=U0({radius:s,size:{width:r.width+2*n+1,height:r.height+2*n},angle:l});return u?(u.baseline="top",G0(u,n),o.insideLabelBounds.some((e=>$J(e,u)))?null:(o.insideLabelBounds.push({x:u.x-4,y:u.y,width:u.width+8,height:u.height}),u)):null}({slice:n,measured:s,padding:a,store:c});break;case"outside":t="rotate"===o?function(e){let{slice:t,measured:n,padding:r,view:o}=e,{start:i,end:a,outerRadius:s,offset:l}=t,u=s+r,c=a-i;if(c<Math.PI&&(n.height/2+r)/Math.tan(c/2)>u)return null;const d=H0((i+a)/2);let p=Math.sin(d)*u,f=-Math.cos(d)*u,h=n.width+1,m=d%Math.PI;if(m>Math.PI/2&&(m=Math.PI-m),Math.cos(m)>.001){let e=f<0?o.y:o.y+o.height,t=Math.abs(e-l.y)/Math.cos(m)-Math.tan(m)*(n.height/2)-2*r-s;t<h&&(h=t)}if(Math.sin(m)>.001){let e=p<0?o.x:o.x+o.width,t=Math.abs(e-l.x)/Math.sin(m)-n.height/2/Math.tan(m)-2*r-s;t<h&&(h=t)}if(h<=0||h<n.minReqWidth)return null;let g={x:p,y:f,width:h,height:n.height};return d<Math.PI?(g.angle=d-Math.PI/2,g.anchor="start"):(g.angle=d+Math.PI/2,g.anchor="end"),g}({slice:r,measured:s,padding:a,view:l}):function(e){let{slice:t,measured:n,padding:r,view:o,context:i}=e,{start:a,end:s,outerRadius:l,offset:u}=t;const c=H0((a+s)/2);if(function(e,t,n){switch(t){case 0:return e.q1maxY<0;case 1:return e.q2minY>n.height;case 2:return e.q3minY>n.height;case 3:return e.q4maxY<0;default:return!0}}(i,Math.floor(c/(Math.PI/2)),o))return null;let d=l+r+n.height/2,p=Math.sin(c)*d,f=-Math.cos(c)*d,h=n.width+1;if(c<Math.PI){let e=Math.abs(o.x+o.width-(p+u.x));e<h&&(h=e)}else{let e=Math.abs(o.x-(p+u.x));e<h&&(h=e)}if(h<n.minReqWidth)return null;let m={x:p,y:f,width:h,height:n.height};return c<Math.PI?m.anchor="start":m.anchor="end",m}({slice:r,measured:s,padding:a,view:l,context:u});break;default:throw new Error("not implemented")}return t&&(t.x+=h.x,t.y+=h.y,"outside"===i&&"rotate"!==o&&function(e,t,n){const{start:r,end:o,offset:i,outerRadius:a}=n,s=H0((r+o)/2);switch(Math.floor(s/(Math.PI/2))){case 0:if(void 0!==t.q1maxY){let n=Math.min(e.y,t.q1maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 1:if(void 0!==t.q2minY){let n=Math.max(e.y,t.q2minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x-2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 2:if(void 0!==t.q3minY){let n=Math.max(e.y,t.q3minY),r=n-e.y;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y-2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}break;case 3:if(void 0!==t.q4maxY){let n=Math.min(e.y,t.q4maxY-e.height),r=e.y-n;if(e.y=n,r>1){let t=a+2;e.line={type:"line",x1:e.x+2,y1:e.y+2,x2:i.x+Math.sin(s)*t,y2:i.y-Math.cos(s)*t,strokeWidth:1}}}}}(t,u,r)),t}function e1(e){let{context:t,direction:n,measured:r,node:o,placementSettings:i,rect:a,store:s}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q0;for(let e=0;e<i.length;e++){let u=i[e],c=l({context:t,slice:o.desc.slice,view:a,direction:n,position:u.position,measured:r,padding:u.padding,store:s});if(c)return{bounds:c,placement:u}}return{bounds:null,placement:null}}function t1(e,t,n){const r=t.fontFamily,o="".concat(t.fontSize,"px"),i=n.measureText({text:e,fontFamily:r,fontSize:o});return i.minReqWidth=Math.min(i.width,n.measureText({text:"".concat(e[0],"…"),fontFamily:r,fontSize:o}).width),i}const n1=/\n+|\r+|\r\n/,r1=/\s/,o1=/[a-zA-Z\u00C0-\u00F6\u00F8-\u00FF\u00AD]/;function i1(e){return"string"==typeof e?-1!==e.search(n1):-1!==String(e).search(n1)}function a1(e){return-1!==e.search(r1)}function s1(e){return-1!==e.search(o1)}function l1(e,t,n){return Math.max(t,Math.min(n,e))}function u1(){let{string:e,separator:t="",reverse:n=!1,measureText:r=e=>({width:e.length,height:1}),mandatoryBreakIdentifiers:o=[i1],noBreakAllowedIdentifiers:i=[],suppressIdentifier:a=[a1,i1,e=>""===e],hyphenationIdentifiers:s=[s1]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=String(e).split(t);!function(e){""===e[0]&&e.shift(),""===e[e.length-1]&&e.pop()}(l);const u=l.length,c=n?e=>e>=0:e=>e<u;let d=n?u:-1;function p(e){const t=l1(e,0,u-1),n=l[t],c=r(n),d=function(e,t,n,r,o){return r.some((r=>r(e,t,n)))?1:o.some((r=>r(e,t,n)))?0:2}(n,t,l,o,i);return{index:t,value:n,breakOpportunity:d,suppress:a.some((e=>e(n,t,l))),hyphenation:s.some((e=>e(n,t,l))),width:c.width,height:c.height,done:!1}}return{next:function(e){return isNaN(e)?n?d--:d++:d=l1(e,0,u-1),c(d)?p(d):{done:!0}},peek:p,length:u}}const c1="…",d1=/^\s*\d+(\.\d+)?px\s*$/i;function p1(e){return"string"===typeof e&&d1.test(e)}function f1(e){const t=e["font-size"]||e.fontSize;return p1(t)?parseFloat(t)*Math.max(isNaN(e.lineHeight)?1.2:e.lineHeight,0):19.2}function h1(e){const t=e.maxHeight,n=Math.max(e.maxLines,1)||1/0;if(isNaN(t))return n;const r=f1(e);return Math.max(1,Math.min(Math.floor(t/r),n))}function m1(e,t){return{lines:[],line:"",width:0,maxLines:h1(e),maxWidth:e.maxWidth,hyphens:{enabled:"auto"===e.hyphens,char:"‐",metrics:t("‐")}}}function g1(e){e.lines.push(e.line),e.line="",e.width=0}function b1(e,t){e.line+=t.value,e.width+=t.width}function y1(e,t,n){if(t.width>e.maxWidth)return t;const r=t.index;for(let o=1;o<5;o++){const i=n.peek(t.index-1);if(!t.hyphenation||!i.hyphenation||0===t.index)return t;if(e.width+e.hyphens.metrics.width<=e.maxWidth)return e.line+=e.hyphens.char,t;if(1===e.line.length)return t;t=n.next(r-o),e.line=e.line.slice(0,-1),e.width-=t.width}return t}function x1(e,t,n){const r=u1({string:t.value,measureText:n});for(;e.lines.length<e.maxLines;){let t=r.next();if(t.done)break;e.width+t.width>e.maxWidth&&2===t.breakOpportunity&&e.line.length>0?(t=e.hyphens.enabled?y1(e,t,r):t,g1(e),b1(e,t)):b1(e,t)}}function v1(e,t){const n=u1({string:e.text,separator:"",measureText:t,noBreakAllowedIdentifiers:[(e,t)=>0===t]}),r=m1(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){g1(r),o=!1;break}1===e.breakOpportunity?g1(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?r.width+=e.width:(e=r.hyphens.enabled?y1(r,e,n):e,g1(r),b1(r,e)):b1(r,e)}return{lines:r.lines,reduced:o}}function _1(e,t){const n=u1({string:e.text,separator:/(\s|-|\u2010)/,measureText:t}),r=m1(e,t);let o=!0;for(;r.lines.length<r.maxLines;){let e=n.next();if(e.done){g1(r),o=!1;break}1===e.breakOpportunity?g1(r):r.width+e.width>r.maxWidth&&2===e.breakOpportunity?e.suppress?g1(r):e.width>r.maxWidth?x1(r,e,t):(g1(r),b1(r,e)):b1(r,e)}return{lines:r.lines,reduced:o}}function w1(e){return{"break-all":v1,"break-word":_1}[e.wordBreak]}function S1(e){return t=>{const n=t.node;if(function(e){return"text"===e.type&&!e._lineBreak}(n)){const r=w1(n);if(!r)return;const o=e(n);if(o.width>n.maxWidth||i1(n.text)){const i=(f1(n)-o.height)/2,a=r(n,function(e,t){return n=>t({text:n,fontSize:e.fontSize,fontFamily:e.fontFamily})}(n,e));t.node=function(e,t,n,r){const o={type:"container",children:[]};void 0!==t.id&&(o.id=t.id);let i=0;return e.lines.forEach(((a,s)=>{const l=CH({},t);l.text=a,l._lineBreak=!0,i+=n,e.reduced&&s===e.lines.length-1?l.text+=c1:delete l.maxWidth,l.dy=isNaN(l.dy)?i:l.dy+i,i+=r,i+=n,o.children.push(l)})),o}(a,n,i,o.height)}}}}function C1(e,t){const n=e["font-family"]||e.fontFamily,r=e["font-size"]||e.fontSize,o="string"==typeof e.text?e.text:"".concat(e.text),{maxWidth:i}=e;if(void 0===i)return o;let a=t({text:o,fontSize:r,fontFamily:n}).width;if(a<=i)return o;let s=0,l=o.length-1;for(;s<=l;){let e=Math.floor((s+l)/2);a=t({text:o.substr(0,e)+c1,fontSize:r,fontFamily:n}).width,a<=i?s=e+1:l=e-1}return o.substr(0,l)+c1}function E1(e){const t=e.baseline||e["dominant-baseline"];let n=0;const r=parseInt(e.fontSize||e["font-size"],10)||0;switch(t){case"hanging":n=.75*r;break;case"text-before-edge":n=.85*r;break;case"middle":n=.25*r;break;case"central":n=.35*r;break;case"mathemetical":n=r/2;break;case"text-after-edge":case"ideographic":n=.2*-r;break;default:n=0}return n}const k1={},R1={},M1={fontSize:void 0,fontFamily:void 0};let A1;function I1(e,t){return!e&&!t||e===t}function L1(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;const i="".concat(t," ").concat(n," ").concat(r," ").concat(o);return"number"!=typeof R1[i]&&(A1=A1||document.createElement("canvas").getContext("2d"),function(e){let{fontWeight:t,fontSize:n,fontFamily:r}=e;I1(M1.fontWeight,t)&&I1(M1.fontSize,n)&&I1(M1.fontFamily,r)||(A1.font=[t,n,r].filter((e=>!!e)).join(" "),M1.fontWeight=t,M1.fontSize=n,M1.fontFamily=r)}({fontWeight:n,fontSize:r,fontFamily:o}),R1[i]=A1.measureText(t).width),R1[i]}function P1(e){return"number"!=typeof k1[e]&&(k1[e]=function(e){if(p1(e)){const t=parseFloat(e);return t+4*Math.ceil((t+1e-12)/24)}return 16}(e)),k1[e]}function D1(e){let{text:t,fontWeight:n,fontSize:r,fontFamily:o}=e;return{width:L1({text:t,fontWeight:n,fontSize:r,fontFamily:o}),height:P1(r)}}function T1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D1;const n=e["font-size"]||e.fontSize,r=e["font-family"]||e.fontFamily,o=t({text:e.text,fontFamily:r,fontSize:n}),i=Math.min(e.maxWidth||o.width,o.width),a=e.x||0,s=e.y||0,l=e.dx||0,u={x:0,y:s+((e.dy||0)+E1(e))-.75*o.height,width:i,height:o.height},c=e["text-anchor"]||e.anchor;return u.x="middle"===c?a+l-i/2:"end"===c?a+l-i:a+l,u}function O1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D1;const n=w1(e),r=e["font-size"]||e.fontSize,o=e["font-family"]||e.fontFamily,i=t({text:e.text,fontFamily:o,fontSize:r});if(n&&(i.width>e.maxWidth||i1(e.text))){const i=n(e,(e=>t({text:e,fontFamily:o,fontSize:r}))),a=CH({},e);let s=0,l="";for(let e=0,n=i.lines.length;e<n;e++){let a=i.lines[e];a+=e===n-1&&i.reduced?c1:"";const u=t({text:a,fontSize:r,fontFamily:o}).width;u>=s&&(s=u,l=a)}a.text=l;const u=T1(a,t);return u.height=f1(e)*i.lines.length,u}return T1(e,t)}function z1(e,t){return{node:e,data:e.data,scale:t.scale,formatter:t.formatter,dataset:t.dataset}}function N1(e,t,n){const r={type:"text",text:t,maxWidth:e.width,x:0,y:e.y,dx:0,dy:0,fill:n.fill,anchor:"start",baseline:"alphabetical",fontSize:"".concat(n.fontSize,"px"),fontFamily:n.fontFamily},o=n.textMetrics;if(e.width<n.fontSize)return!1;const i=Math.max(0,e.width-o.width);return r.x=e.x+n.align*i,r.y=e.y+o.height/1.2,r}function q1(e){let{cx:t,cy:n,r:r}=e;return{type:"circle",bounds:{cx:t,cy:n,r:r}}}function j1(e){return e.desc&&e.desc.slice?function(e){let{start:t,end:n,innerRadius:r,outerRadius:o,offset:i}=e;if(Math.abs(t+2*Math.PI-n)>1e-12)return{type:null,bounds:null};let a=0!==r?r:o;return q1({cx:i.x,cy:i.y,r:a})}(e.desc.slice):"circle"===e.type?q1(e.attrs):"rect"===e.type?{type:"rect",bounds:e.bounds}:{type:null,bounds:null}}var F1={bar:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W0;const l=CH({fontSize:12,fontFamily:"Arial",align:.5,justify:0,fill:"#333"},a.label);l.fontSize=parseInt(l.fontSize,10);const u=t.labels.map((e=>CH({},l,t,e))),c=t.labels.map((e=>e.placements.map((n=>CH({},l,t,e,n))))),{fitsHorizontally:d,hasHorizontalDirection:p,targetNodes:f}=function(e){let{nodes:t,rect:n,chart:r,labelSettings:o,placementSettings:i,settings:a,renderer:s}=e;const l={},u=[];let c,d,p,f,h,m,g,b=!0,y=!1;for(let e=0;e<t.length;e++){if(d=t[e],f=d.localBounds,!$J(f,n))continue;let x=P0(d,r);c={node:d,texts:[],measurements:[],labelSettings:[],placementSettings:[]};for(let t=0;t<o.length;t++)m=o[t],p="function"==typeof m.label?m.label(x,e):void 0,D0(p)&&(g="function"==typeof a.direction?a.direction(x,e):a.direction||"up",y=y||"left"===g||"right"===g,l.fontFamily=m.fontFamily,l.fontSize="".concat(m.fontSize,"px"),l.text=p,h=s.measureText(l),c.measurements.push(h),c.texts.push(p),c.labelSettings.push(m),c.placementSettings.push(i[t]),c.direction=g,b=b&&h.width<=f.width-2*L0);u.push(c)}return{targetNodes:u,fitsHorizontally:b,hasHorizontalDirection:y}}({nodes:r,chart:n,renderer:i,settings:t,rect:o,labelSettings:u,placementSettings:c}),h=function(e){let{orientation:t="auto",defaultOrientation:n="h"}=e;switch(t.toLocaleLowerCase()){case"vertical":return"v";case"horizontal":return"h";default:return n}}({orientation:t.orientation,defaultOrientation:p?"h":"v"}),m="h"===h?"y":"x",g="h"===h?"height":"width";return f.sort(((e,t)=>e.node.localBounds[m]+e.node.localBounds[g]-(t.node.localBounds[m]+t.node.localBounds[g]))),s({chart:n,targetNodes:f,stngs:t,rect:o,fitsHorizontally:d,collectiveOrientation:h})},slice:function(e){let{settings:t,chart:n,nodes:r,rect:o,renderer:i,style:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e1,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z0;const u=CH({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,position:"into"},a.label);u.fontSize=parseInt(u.fontSize,10);const c=t.labels.map((e=>CH({},u,t,e))),d=t.labels.map((e=>e.placements.map((n=>CH({},u,t,e,n))))),p=[],f={insideLabelBounds:[]};r=function(e){const t=[],n=[],r=[],o=[];for(let i=0;i<e.length;++i){const{start:a,end:s}=e[i].desc.slice,l=H0((a+s)/2);switch(Math.floor(l/(Math.PI/2))){case 0:t.push(e[i]);break;case 1:n.push(e[i]);break;case 2:r.push(e[i]);break;case 3:o.push(e[i])}}const i=(e,t)=>H0((e.desc.slice.start+e.desc.slice.end)/2)-H0((t.desc.slice.start+t.desc.slice.end)/2),a=(e,t)=>i(t,e);return t.sort(a),n.sort(i),r.sort(a),o.sort(i),t.concat(n,o,r)}(r);const h={};for(let e=0,t=r.length;e<t;e++){const t=r[e],a=J0(t,n);for(let n=0;n<c.length;n++){const r=c[n],u="function"==typeof r.label?r.label(a,e):"";if(!u)continue;const m="function"==typeof r.direction?r.direction(a,e):r.direction||"horizontal",g="function"==typeof r.linkData?r.linkData(a,e):void 0,b=t1(u,r,i),y=s({context:h,direction:m,lblStngs:r,measured:b,node:t,placementSettings:d[n],rect:o,store:f}),x=y.bounds,v=y.placement;if(x&&v){if("outside"===v.position&&"rotate"!==m){X0({context:h,node:t,bounds:x});if(!MJ(V0(x),o))continue}const n="function"==typeof v.fill?v.fill(a,e):v.fill,i=l(x,u,{fill:n,fontSize:r.fontSize,fontFamily:r.fontFamily,textMetrics:b});i&&(void 0!==g&&(i.data=g),p.push(i),x.line&&(x.line.stroke=n,p.push(x.line)))}}}return p},rows:function(e){let{settings:t,chart:n,nodes:r,renderer:o,style:i}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N1;const s=CH({fontSize:12,fontFamily:"Arial",fill:"#333",padding:4,align:.5,justify:.5},i.label);s.fontSize=parseInt(s.fontSize,10);const l=CH({},s,t),u=t.labels.map((e=>CH({},l,e))),c={},d=[];for(let e=0,t=r.length;e<t;e++){let t=r[e],i=z1(t,n),{type:s,bounds:p}=j1(t);if(!p)continue;let f,h=0,m=[],g=[],b="circle"===s?2*p.r*.9:p.height;for(h+=l.padding,f=0;f<u.length;f++){let t=u[f],n="function"==typeof t.label?t.label(i,e):"";c.fontFamily=t.fontFamily,c.fontSize="".concat(t.fontSize,"px"),c.text=n;let r=o.measureText(c);if(h+=r.height+t.padding,h>b)break;g.push(n),m.push(r)}const y=f,x=Math.max(0,b-h);let v;for(v="circle"===s?p.cy-.9*p.r:p.y,v+=l.justify*x+l.padding,f=0;f<y;f++){let t,n=u[f];if("circle"===s){let e=Math.max(Math.abs(v-p.cy),Math.abs(v+m[f].height-p.cy)),n=Math.sqrt(p.r*p.r-e*e);t={x:p.cx-n+l.padding,y:v,width:2*n-2*l.padding,height:m[f].height}}else t={x:p.x+l.padding,y:v,width:p.width-2*l.padding,height:m[f].height};v+=m[f].height+l.padding;let r="function"==typeof n.fill?n.fill(i,e):n.fill;const c="function"==typeof n.linkData?n.linkData(i,e):void 0;let h=a(t,g[f],{fill:r,align:n.align,fontSize:n.fontSize,fontFamily:n.fontFamily,textMetrics:m[f]});if(h){if(h.text&&h.text!==c1){const e=C1(h,o.measureText);if(c1===e)continue;h.ellipsed=e}void 0!==c&&(h.data=c),d.push(h)}}}return d}};const B1={require:["chart","renderer","settings"],defaultSettings:{settings:{},style:{label:"$label"}},render(){const e=this.settings.settings,t=[];return(e.sources||[]).forEach((e=>{e.strategy&&F1[e.strategy.type]&&e.component&&t.push(...function(e,t){let{chart:n,source:r,rect:o,renderer:i,style:a}=e;if(!n.component(r.component))return[];const s=n.findShapes(r.selector).filter((e=>e.key===r.component));return t({chart:n,settings:r.strategy.settings,nodes:s,rect:{x:0,y:0,width:o.width,height:o.height},renderer:i,style:a})}({chart:this.chart,rect:this.rect,renderer:this.renderer,source:e,style:this.style},F1[e.strategy.type]))})),t}};const $1={layout:{size:1,direction:"ltr",scrollOffset:0},item:{show:!0,label:{fontSize:"12px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:136,lineHeight:1.2},shape:{type:"square",size:12}},title:{show:!0,text:void 0,anchor:"start",fontSize:"16px",fontFamily:"Arial",fill:"#595959",wordBreak:"none",maxLines:2,maxWidth:156,lineHeight:1.25}};function W1(e){let{x:t=0,y:n,item:r,globalMetrics:o,createSymbol:i,direction:a="ltr"}=e,s=r.label.displayObject,l=r.label.bounds,u=r.symbol.meta;const c="rtl"===a;let d={x:c?t+o.maxLabelBounds.width:t+o.maxSymbolSize+o.spacing,y:n,width:o.maxLabelBounds.width,height:Math.max(o.maxSymbolSize,o.maxLabelBounds.height)},p=function(e,t,n){const r=Math.max(0,e.width-t),o=Math.max(0,e.height-t);return{x:e.x+t/2+n.align*r,y:e.y+t/2+n.justify*o}}({x:c?t+o.maxLabelBounds.width+o.spacing:t,y:n,width:o.maxSymbolSize,height:d.height},u.size,{align:void 0===u.align?.5:u.align,justify:void 0===u.justify?.5:u.justify});const f=i(CH({},u,p));return delete f.collider,s.anchor=c?"end":"start",function(e,t,n){const r=n.textMetrics;if(e.height<r.height)return!1;const o=Math.max(0,e.width-r.width);t.baseline="text-before-edge";const i=Math.max(0,e.height-r.height);t.x=e.x+n.align*o,t.y=e.y+n.justify*i+.175*parseInt(t.fontSize,10)}(d,s,{textMetrics:l,fontSize:parseInt(s.fontSize,10),align:0,justify:.5}),{item:{type:"container",data:r.label.displayObject.data,children:[f,s],collider:{type:"rect",x:t,y:n,width:o.maxItemBounds.width,height:o.maxItemBounds.height}},metrics:d}}function H1(e,t){const n=e.items.length,r=Math.ceil(n/t),o="horizontal"===e.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[o]*r+(r-1)*e.layout.margin[i]}function G1(e,t){let n,r,o,i,{onScroll:a=()=>{}}=t,s=null,l=0;const u={itemize:t=>{n=function(e,t){let n,r,{resolved:o,dock:i}=e,a=[],s=o.items.items,l=o.symbols.items,u=o.labels.items,c=0,d=0,p=0;for(let e=0;e<s.length;e++){if(!1===s[e].show)continue;const o=void 0!==u[e].text?u[e].text:u[e].data.label||"";n=CH({},u[e],{type:"text",fontSize:"".concat(parseInt(u[e].fontSize,10),"px"),text:o,title:o}),r={symbol:{meta:l[e]},label:{displayObject:n,bounds:t.textBounds(n)}},a.push(r),c=Math.max(l[e].size,c),d=Math.max(r.label.bounds.width,d),p=Math.max(r.label.bounds.height,p)}return{items:a,globalMetrics:{spacing:8,maxSymbolSize:c,maxItemBounds:{height:Math.max(c,p),width:c+8+d},maxLabelBounds:{width:d,height:p}},layout:{margin:{vertical:void 0!==o.layout.item.vertical?o.layout.item.vertical:4,horizontal:void 0!==o.layout.item.horizontal?o.layout.item.horizontal:4},mode:o.layout.item.mode,size:o.layout.item.size,orientation:"top"===i||"bottom"===i?"horizontal":"vertical",direction:o.layout.item.direction,scrollOffset:o.layout.item.scrollOffset}}}(t,e.renderer),s=isNaN(n.layout.scrollOffset)?s:n.layout.scrollOffset},getItemsToRender:t=>{o=t.viewRect,l=u.getContentOverflow(o);const a=u.extent();s=Math.max(0,Math.min(s,l)),i=CH({},o);const c="horizontal"===u.orientation()?"x":"y";return i[c]-=s,i["x"===c?"width":"height"]=a,function(e,t,n){let{viewRect:r}=e,{itemized:o,create:i=W1,parallels:a,createSymbol:s}=n;const l=o.layout.direction,u=o.globalMetrics,c=o.items,d="horizontal"===o.layout.orientation;let p=0;const f=[],h=u.maxItemBounds.height,m=u.maxItemBounds.width,g=o.layout.margin.vertical+h,b=o.layout.margin.horizontal+m;let y=t.x,x=t.y,v=r.x-t.x;for(let e=0;e<c.length;e++){let n=i({y:x,x:"rtl"===l?r.x+v+r.width-m-(y-t.x):y,item:c[e],globalMetrics:u,direction:l,createSymbol:s});if((d&&y>=r.x-m||!d&&x>=r.y-h)&&f.push(n.item),p++,p>=a?(p=0,d?(y+=b,x=t.y):(x+=g,y=t.x)):d?x+=g:y+=b,!d&&x>r.y+r.height)break;if(d&&y>r.x+r.width)break}return f}(t,i,{itemized:n,parallels:r,createSymbol:e.symbol})},parallelize:(e,t)=>(r=function(e,t,n){const r=n.items.length,o="horizontal"===n.layout.orientation?"width":"height",i="width"===o?"horizontal":"vertical",a=n.globalMetrics.maxItemBounds[o]*r+(r-1)*n.layout.margin[i];let s=Math.ceil(a/e);if(null!=t){const e="horizontal"===n.layout.orientation?"height":"width",r="width"===e?"horizontal":"vertical",o=n.layout.margin[r]||4,i=Math.floor((t+o)/(o+n.globalMetrics.maxItemBounds[e]));s=Math.min(s,i)}const l=isNaN(n.layout.size)?1:n.layout.size;return Math.max(1,Math.min(s,l))}(e,t,n),r),hasContentOverflow:()=>{const e="horizontal"===n.layout.orientation?"width":"height";return H1(n,r)>o[e]},getContentOverflow:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;const t="horizontal"===n.layout.orientation?"width":"height";return Math.max(0,H1(n,r)-e[t])},getNextSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},getPrevSize:()=>{const e="horizontal"===n.layout.orientation?"width":"height",t="width"===e?"horizontal":"vertical";return n.globalMetrics.maxItemBounds[e]+n.layout.margin[t]},hasNext:()=>"horizontal"===u.orientation()?o.x+o.width<i.x+i.width:o.y+o.height<i.y+i.height,hasPrev:()=>"horizontal"===u.orientation()?i.x<o.x:i.y<o.y,next:()=>{u.scroll(-u.getNextSize())},prev:()=>{u.scroll(u.getPrevSize())},scroll:e=>{const t=Math.max(0,Math.min(l,s-e));t!==s&&(s=t,a())},offset:()=>s,orientation:()=>n.layout.orientation,direction:()=>n.layout.direction,extent:()=>H1(n,r),spread:()=>function(e,t){const n=t,r="horizontal"===e.layout.orientation?"height":"width",o="width"===r?"horizontal":"vertical";return e.globalMetrics.maxItemBounds[r]*n+(n-1)*e.layout.margin[o]}(n,r)};return u}function V1(e){return Object.keys(e).filter((t=>e[t])).join(" ")}const Y1={up:"▲",right:"▶",down:"▼",left:"◀"};function U1(e,t){let{size:n,isActive:r,direction:o,nav:i,attrs:a}=t,s={},l="";const u=a;i&&i.button&&("function"==typeof i.button.class?s=i.button.class({direction:o}):i.button.class&&(s=i.button.class),"function"==typeof i.button.content&&(l=i.button.content(e,{direction:o})),void 0!==i.button.tabIndex&&(u.tabindex=i.button.tabIndex));const c={width:"".concat(n,"px"),minWidth:"".concat(n,"px"),height:"".concat(n,"px")};return Object.keys(s).length||(c.border="0",c.background="none"),(!r||i&&i.disabled)&&(u.disabled="disabled"),e("button",CH({class:V1(s),style:c},u),[l||e("span",{style:{pointerEvents:"none"}},[Y1[o]])])}function K1(e){let t;const n={itemize:e=>{t=function(e){let{dock:t,navigation:n}=e;return{layout:{orientation:"top"===t||"bottom"===t?"vertical":"horizontal"},navigation:n}}(e)},render:r=>function(e,t,n,r){let{rect:o,itemRenderer:i}=t;if(!e||!e.renderArgs)return;e.size(o);const a=e.renderArgs[0],s="vertical"===n.layout.orientation,l="rtl"===i.direction(),u=i.hasNext(),c=i.hasPrev();if(!c&&!u)return void e.render([]);const d=s?["right","left"]:["down","up"];l&&s&&d.reverse();const p=[a("div",{style:{position:"relative",display:"flex","flex-direction":s?"column":"row","justify-content":"center",height:"100%",pointerEvents:"auto"},dir:l&&!s?"rtl":"ltr"},[U1(a,{size:32,isActive:u,direction:d[0],attrs:{"data-action":"next","data-component-key":r.settings.key},nav:n.navigation}),U1(a,{size:32,isActive:c,direction:d[1],attrs:{"data-action":"prev","data-component-key":r.settings.key},nav:n.navigation})])];e.render(p)}(n.renderer,r,t,e),extent:()=>32,spread:()=>64};return n}function X1(e){let t;const n={itemize:n=>{t=function(e,t){let{resolved:n}=e;if(!1===n.title.item.show)return null;const r=CH({},n.title.item,{type:"text"});if("rtl"===n.layout.item.direction&&(r.anchor&&"start"!==r.anchor?"end"===r.anchor&&(r.anchor="start"):r.anchor="end"),void 0===n.title.settings.text){const e=t.scale.data().fields;r.text=e&&e[0]?e[0].title():""}return{displayObject:r,bounds:t.renderer.textBounds(r)}}(n,e)},render:e=>{!function(e,t,n){let{rect:r}=e;if(!t)return;const o=[];if(t.size(r),n){const e={start:0,end:r.width,middle:r.width/2};o.push(CH({},n.displayObject,{x:e[n.displayObject.anchor]||0,y:0,baseline:"text-before-edge",title:n.displayObject.text}))}t.render(o)}(e,n.renderer,t)},spread:()=>t?t.bounds.height:0,extent:()=>t?t.bounds.width:0};return n}function J1(e,t,n,r){let o,i,a,{itemRenderer:s,navigationRenderer:l,titleRenderer:u,isPreliminary:c=!1}=r,d=0;const p={x:t.spacing,y:t.spacing,width:e.width-2*t.spacing,height:e.height-2*t.spacing};if(o={x:p.x,y:p.y,width:p.width,height:u.spread()},"horizontal"===n){o={x:p.x,y:p.y,width:u.extent(),height:u.spread()};const e=p.width-o.width-(o.width?t.spacing:0),n=p.height;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0,f=s.spread(),h=r?l.spread():0;i={x:o.x+o.width+(o.width?t.spacing:0),y:p.y+Math.max(0,(h-f)/2),width:p.width-r-o.width-(r?t.spacing:0)-(o.width?t.spacing:0),height:n},a={x:i.x+i.width+(r?t.spacing:0),y:p.y,width:r,height:p.height},o.y=i.y;"rtl"===s.direction()&&(a.x=p.x,i.x=a.x+a.width+(a.width?t.spacing:0),o.x=i.x+i.width+(o.width?t.spacing:0)),d=Math.max(o.height,h,s.spread())}else{const e=p.height-o.height-(o.height?t.spacing:0),n=p.width;s.parallelize(e,c?void 0:n);const r=s.extent()>e?l.extent():0;a={x:p.x,y:p.y+p.height-r,width:p.width,height:r},i={x:p.x,y:o.y+o.height+(o.height?t.spacing:0),width:p.width,height:p.height-o.height-(o.height?t.spacing:0)-a.height-(a.height?t.spacing:0)},d=Math.max(u.extent(),r?l.spread():0,s.spread())}return i=CH({},e,{x:e.x+i.x,y:e.y+i.y,width:i.width,height:i.height}),a.x+=e.x,a.y+=e.y,o.x+=e.x,o.y+=e.y,{title:CH({},e,o),content:CH({},e,i),navigation:CH({},e,a),orientation:n,preferredSize:d}}function Z1(e){e.state.resolved=function(e){const t=e.scale.domain();let n={items:[]};const r=e.settings.layout.dock;if("threshold-color"===e.scale.type){const o=e.scale.data().fields[0];let i=e=>String(e);e.settings.formatter?i=e.chart.formatter(e.settings.formatter):o&&(i=o.formatter());for(let e=0;e<t.length-1;e++){const r={value:t[e],label:"".concat(i(t[e])," - < ").concat(i(t[e+1]))};o&&(r.source={field:o.id()}),n.items.push(r)}"vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")&&n.items.reverse()}else{const r=e.scale.labels?e.scale.labels():null;n.items=t.map(((t,n)=>{const o=e.scale.datum?CH({},e.scale.datum(t)):{value:t};return o.value=t,e.scale.label?o.label=e.scale.label(t):r&&(o.label=r[n]),o}))}const o=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:CH(!0,{},$1.title,e.style.title),settings:e.settings.settings.title}),i=e.resolver.resolve({data:{fields:e.scale.data().fields},defaults:$1.layout,settings:e.settings.settings.layout}),a=e.resolver.resolve({data:n,defaults:CH(!0,{},$1.item.label,e.style.item.label),settings:(e.settings.settings.item||{}).label}),s=CH(!0,{},(e.settings.settings.item||{}).shape);void 0===s.fill&&e.settings.scale&&(s.fill={scale:e.settings.scale});const l=e.resolver.resolve({data:n,defaults:CH(!0,{},$1.item.shape,e.style.item.shape),settings:s}),u=e.resolver.resolve({data:n,defaults:CH(!0,{},{show:$1.item.show}),settings:{show:(e.settings.settings.item||{}).show}});function c(e,n){let r=e.data.value,o=t[n+1];e.data.value=[r,o]}"threshold-color"===e.scale.type&&("vertical"==("top"===r||"bottom"===r?"horizontal":"vertical")?(u.items.reverse().forEach(c),u.items.reverse()):u.items.forEach(c));return{title:o,labels:a,symbols:l,items:u,layout:i}}(e),e.titleRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.itemRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center"}),e.navigationRenderer.itemize({resolved:e.state.resolved,dock:e.settings.layout.dock||"center",navigation:e.settings.settings.navigation}),e.state.display={spacing:8}}function Q1(e){const{rect:t,settings:n,state:r,itemRenderer:o,navigationRenderer:i,titleRenderer:a}=e,s=n.layout.dock,l="top"===s||"bottom"===s?"horizontal":"vertical",u=J1(t,r.display,l,{itemRenderer:o,navigationRenderer:i,titleRenderer:a});e.renderer.size(u.content);let c=o.getItemsToRender({viewRect:CH({},u.content,{x:0,y:0})});return i.render({rect:u.navigation,itemRenderer:o}),a.render({rect:u.title}),e.state.views={layout:u},c}const e2={require:["chart","settings","renderer","update","resolver","registries","symbol"],defaultSettings:{settings:{},style:{item:{label:"$label",shape:"$shape"},title:"$title"}},mounted(e){e&&e.parentNode&&(this.navigationRenderer.renderer.appendTo(e.parentNode),this.titleRenderer.renderer.appendTo(e.parentNode),e.parentNode.insertBefore(this.navigationRenderer.renderer.element(),e),e.parentNode.insertBefore(this.titleRenderer.renderer.element(),e)),this.navigationRenderer.render({rect:this.state.views.layout.navigation,itemRenderer:this.itemRenderer}),this.titleRenderer.render({rect:this.state.views.layout.title})},beforeUnmount(){this.navigationRenderer.renderer.clear(),this.titleRenderer.renderer.clear()},on:{panstart(){if(this.state.interaction.started)return;this.itemRenderer.getContentOverflow()&&(this.state.interaction.started=!0,this.state.interaction.delta=0)},panmove(e){if(!this.state.interaction.started)return;const t="horizontal"===this.itemRenderer.orientation()?("rtl"===this.itemRenderer.direction()?-1:1)*e.deltaX:e.deltaY;this.itemRenderer.scroll(t-this.state.interaction.delta),this.state.interaction.delta=t},panend(){this.state.interaction.started=!1},scroll(e){this.itemRenderer.scroll(-e)},next(){this.itemRenderer.next()},prev(){this.itemRenderer.prev()}},created(){this.state={interaction:{}},this.onScroll=()=>{const e=Q1(this);this.update(e)},this.itemRenderer=G1(this,{onScroll:this.onScroll}),this.navigationRenderer=K1(this),this.titleRenderer=X1(this),this.navigationRenderer.renderer=this.registries.renderer("dom")(),this.titleRenderer.renderer=this.registries.renderer(this.settings.renderer)(),Z1(this)},preferredSize(e){return function(e,t){let n=0;const r=e.settings.layout.dock||"center",o="top"===r||"bottom"===r?"horizontal":"vertical",i=e.state.display,a=J1(t.inner,i,o,{itemRenderer:e.itemRenderer,navigationRenderer:e.navigationRenderer,titleRenderer:e.titleRenderer,isPreliminary:!0});return n+=i.spacing,n+=a.preferredSize,n+=i.spacing,n}(this,e)},beforeUpdate(){Z1(this)},render(){return Q1(this)},beforeDestroy(){this.navigationRenderer.renderer.destroy(),this.titleRenderer.renderer.destroy()},additionalElements(){return[this.titleRenderer.renderer.element(),this.navigationRenderer.renderer.element()]},_DO_NOT_USE_getInfo(){return{offset:this.itemRenderer.offset()}}};function t2(e,t){let n=0;const r=e.state.isVertical?"justify":"align",o=e.state.isVertical?"y":"x",i=e.state.isVertical?"height":"width",a=e.state.isVertical?"requiredHeight":"requiredWidth";n=e.state.rect[i]-e.state.legend.length()-e.state.title[a](),n*=Math.min(1,Math.max(e.stgns[r],0)),t[o]+=n}function n2(e,t,n){const r=n[e];return"object"==typeof r?-1!==r.valid.indexOf(t)?t:r.default:n.default}function r2(e){return n2(e.layout.dock,e.settings.title.anchor,{left:{valid:["top"],default:"top"},right:{valid:["top"],default:"top"},top:{valid:["left","right"],default:"left"},bottom:{valid:["left","right"],default:"left"},default:"top"})}function o2(e,t){const n={x:0,y:0,width:0,height:0},r=e.stgns.padding;return n.x=r.left,n.y=r.top,n.width=t.width-r.left-r.right,n.height=t.height-r.top-r.bottom,n}function i2(e){const t="top"!==e.settings.layout.dock&&"bottom"!==e.settings.layout.dock,n=e.stgns.title,r=e.chart.scale(e.stgns.fill),o=e.chart.scale(e.stgns.major),i=function(e,t){const n=t.domain();let r=n,o=e.stgns.tick.label;!o&&e.formatter?o=e.formatter:!o&&t.data().fields&&(o=t.data().fields[0].formatter()),"function"==typeof o&&(r=n.map(o).map(String));const i=n.map(((n,o)=>{const i=r[o];return{value:n,label:i,pos:t.norm(parseFloat(n,10)),textMetrics:e.renderer.measureText({text:i,fontSize:e.stgns.tick.fontSize,fontFamily:e.stgns.tick.fontFamily})}}));return i}(e,o),a=function(e){return n2(e.layout.dock,e.settings.tick.anchor,{left:{valid:["left","right"],default:"left"},right:{valid:["left","right"],default:"right"},top:{valid:["top","bottom"],default:"top"},bottom:{valid:["top","bottom"],default:"bottom"},default:"right"})}(e.settings);if(void 0===n.text){const e=o.data().fields;n.text=e&&e[0]?e[0].title():""}const s=e.renderer.measureText({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily}),l=e.renderer.textBounds({text:n.text,fontSize:n.fontSize,fontFamily:n.fontFamily,maxLines:n.maxLines,maxWidth:n.maxLengthPx,wordBreak:n.wordBreak,hyphens:n.hyphens,lineHeight:n.lineHeight}),u={isVertical:t,nodes:[],title:{anchor:r2(e.settings),textMetrics:s,textBounds:l,requiredWidth:()=>{if(!n.show)return 0;let e=l.width,r=n.maxLengthPx;return t||(e+=n.padding,r+=n.padding),Math.min(e,r,u.rect.width)},requiredHeight:()=>{if(!n.show)return 0;let e=l.height;return t&&(e+=n.padding),Math.min(e,u.rect.height)}},ticks:{values:i,anchor:a,length:Math.min(Math.max(...i.map((e=>e.textMetrics.width))),e.stgns.tick.maxLengthPx),requiredHeight:()=>"top"===a?Math.max(...u.ticks.values.map((e=>e.textMetrics.height)))+e.stgns.tick.padding:0,height:Math.max(...i.map((e=>e.textMetrics.height)))},legend:{fillScale:r,majorScale:o,length:()=>{const n=t?"height":"width",r=t?"requiredHeight":"requiredWidth",o=Math.min(u.rect[n],u.rect[n]*e.stgns.length)-u.title[r]();return Math.max(0,Math.min(o,e.stgns.maxLengthPx))}}};return u}const a2={require:["chart","settings","renderer"],defaultSettings:{layout:{displayOrder:0,dock:"right"},settings:{size:15,length:.5,maxLengthPx:250,align:.5,justify:0,padding:{left:5,right:5,top:5,bottom:5},tick:{label:null,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,anchor:null,padding:5},title:{show:!0,text:void 0,fill:"#595959",fontSize:"12px",fontFamily:"Arial",maxLengthPx:100,padding:5,maxLines:2,wordBreak:"none",lineHeight:1.2,hyphens:"auto",anchor:null}}},preferredSize(e){const t=this.state;t.rect=o2(this,e.inner);let n=this.stgns.size;const r=t.isVertical?this.stgns.padding.left+this.stgns.padding.right:this.stgns.padding.top+this.stgns.padding.bottom;n+=r;const o=Math.max(e.inner.width,e.inner.height);if("left"===t.ticks.anchor||"right"===t.ticks.anchor){const e=t.ticks.values.reduce(((e,t)=>e+t.textMetrics.height),0);if(e>this.state.legend.length())return o;n+=t.ticks.length}else{if(t.ticks.length>this.state.legend.length())return o;n+=Math.max(...t.ticks.values.map((e=>e.textMetrics.height)))}return n+=this.stgns.tick.padding,this.stgns.title.show&&(n="left"===t.title.anchor||"right"===t.title.anchor?Math.max(t.title.textBounds.height+r,n):Math.max(n,t.title.requiredWidth()+r)),this.state.preferredSize=n,n},created(){this.stgns=this.settings.settings,this.state=i2(this)},beforeUpdate(e){this.stgns=e.settings.settings,this.state=i2(this)},beforeRender(e){if(this.state.nodes=[],this.state.rect=o2(this,e.size),this.stgns.title.show){const e=function(e){const t=e.state,n=e.stgns,r="left"===t.ticks.anchor,o="top"===t.ticks.anchor;let i=t.rect.x,a=t.rect.y,s="start";"left"===t.title.anchor?(i+=t.title.requiredWidth()-n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0,s="end"):"right"===t.title.anchor?(i+=t.legend.length(),i+=n.title.padding,a+=t.title.textMetrics.height,a+=o?t.rect.height-t.title.textBounds.height:0):"top"===t.title.anchor&&(i+=r?t.rect.width:0,a+=t.title.textMetrics.height,s=r?"end":"start");const l={tag:"legend-title",type:"text",x:i,y:Math.min(a,t.rect.y+t.rect.height),text:n.title.text,fill:n.title.fill,fontSize:n.title.fontSize,fontFamily:n.title.fontFamily,maxWidth:n.title.maxLengthPx,maxLines:n.title.maxLines,wordBreak:n.title.wordBreak,hyphens:n.title.hyphens,lineHeight:n.title.lineHeight,anchor:s,title:n.title.text};return t2(e,l),l}(this);this.state.nodes.push(e)}const t=function(e){const t=e.state.legend.fillScale,n=e.state.legend.majorScale,r=t.domain().map((e=>({type:"stop",color:t(e),offset:Math.min(1,Math.max(0,n.norm(e)))})));return r.sort(((e,t)=>e.offset-t.offset))}(this),n=function(e,t){const n=e.state,r=e.stgns,o=n.rect;let i=o.x,a=o.y,s=n.isVertical?r.size:n.legend.length(),l=n.isVertical?n.legend.length():r.size;"left"===n.ticks.anchor?i+=n.rect.width-r.size:"top"===n.ticks.anchor&&(a+=n.rect.height-r.size),"top"===n.title.anchor?a+=n.title.requiredHeight():"left"===n.title.anchor&&(i+=n.title.requiredWidth());const u={type:"rect",x:i,y:a,width:s,height:l,fill:{type:"gradient",stops:t,degree:n.isVertical?90:180}};return t2(e,u),u}(this,t),r=function(e,t){const n=e.state,r=e.stgns;let o="start";const i={type:"rect",x:t.x,y:t.y,width:n.isVertical?0:t.width,height:n.isVertical?t.height:0,fill:"transparent"},a=n.ticks.values.map((a=>{let s=0,l=0,u=0,c="alphabetical";return n.isVertical?(l=t.y+t.height*a.pos,c=0===a.pos?"text-before-edge":"text-after-edge"):s=t.x+t.width*a.pos,"right"===n.ticks.anchor?(s=t.x+r.size+r.tick.padding,i.x=t.x+t.width):"left"===n.ticks.anchor?(s=t.x-r.tick.padding,o="end"):"top"===n.ticks.anchor?(l=t.y-r.tick.padding,u-=.25*a.textMetrics.height,o=0===a.pos?"start":"end"):"bottom"===n.ticks.anchor&&(l=t.y+t.height+r.tick.padding,u=.8*a.textMetrics.height,o=0===a.pos?"start":"end",i.y=t.y+t.height),{type:"text",x:s,y:l,dx:0,dy:u,text:a.label,fontSize:r.tick.fontSize,fontFamily:r.tick.fontFamily,fill:r.tick.fill,maxWidth:n.isVertical?r.tick.maxLengthPx:Math.min(r.tick.maxLengthPx,n.legend.length()/2),anchor:o,textBoundsFn:e.renderer.textBounds,title:a.label,baseline:c}}));return{type:"container",id:"legend-seq-ticks",children:[...a,i]}}(this,n),o={id:"legend-seq-target",type:"container",children:[n,r]};this.state.nodes.push(o)},render(){return this.state.nodes}};const s2={coordinates:{minor:.5,major:.5,layerId:0,defined:!0},layers:{curve:"linear",show:!0,line:{stroke:"#ccc",strokeWidth:1,strokeLinejoin:"miter",strokeDasharray:void 0,opacity:1,show:!0,showMinor0:!0},area:{fill:"#ccc",opacity:.8,show:!0}}};function l2(e,t){let{generatorType:n,item:r,data:o,major:i,minor:a,layerObj:s,stngs:l}=t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const c={type:"path",points:e,generatorType:n,major:i,minor:a,layerObj:s,stngs:l,opacity:r.opacity,stroke:r.stroke,strokeWidth:r.strokeWidth,strokeLinejoin:r.strokeLinejoin,fill:u||r.fill,data:o};return r.strokeDasharray&&(c.strokeDasharray=r.strokeDasharray),c}function u2(e){const{metaLayers:t,coordinates:n,layers:r,lines:o,areas:i}=function(e){let{data:t,stngs:n,rect:r,resolver:o,style:i,domain:a}=e;const{width:s,height:l}=r,u=o.resolve({data:t,defaults:s2.coordinates,settings:n.coordinates||{},scaled:{major:"vertical"===n.orientation?l:s,minor:"vertical"===n.orientation?s:l}}),c=!n.connect&&a.length>2&&("function"==typeof n.coordinates.layerId||"object"==typeof n.coordinates.layerId),d={};let p=0;for(let e=0;e<u.items.length;e++){let t=u.items[e],n=t.layerId;if(c){const e=d[n]?d[n].items[d[n].items.length-1]:null,r=e?a.indexOf(e.data.major?e.data.major.value:e.data.value):null;e&&a.indexOf(t.data.major?t.data.major.value:t.data.value)-1!==r&&d[n].items.push({dummy:!0})}d[n]=d[n]||{order:p++,id:n,items:[],dataItems:[],consumableData:{}},d[n].dataItems.push(t.data),d[n].items.push(t)}const f=Object.keys(d).map((e=>(d[e].consumableData=MH({points:d[e].dataItems},d[e].dataItems[0]),d[e]))),h={items:f.map((e=>e.consumableData))},m=n.layers||{};return{coordinates:u,metaLayers:f,layers:o.resolve({data:h,defaults:{curve:s2.layers.curve,show:s2.layers.show},settings:{curve:m.curve,show:m.show}}),lines:o.resolve({data:h,defaults:CH({},s2.layers.line,i.line),settings:m.line}),areas:o.resolve({data:h,defaults:CH({},s2.layers.area,i.area),settings:m.area})}}(e),a=[];return t.forEach(((t,s)=>{const l=r.items[s];if(!1===l.show)return;l.datum=l.data,l.data=[],l.id=t.id;const u=[],c=[];let d,p;for(let r=0;r<t.items.length;r++){if(d=t.items[r],p=d.data,!d.dummy){if(isNaN(d.major))continue;e.missingMinor0&&(d.minor0=n.settings.minor.scale?n.settings.minor.scale(p.minor0?p.minor0.value:0):0),isNaN(d.minor)||u.push(d.minor),l.data.push(d.data)}c.push(d)}const f=u.sort(((e,t)=>e-t))[Math.floor((u.length-1)/2)];a.push({layerObj:l,lineObj:o.items[s],areaObj:i.items[s],median:f,points:c,consumableData:t.consumableData})})),a}const c2={require:["chart","resolver"],defaultSettings:{style:{area:"$shape",line:"$shape-outline"}},created(){},render(e){let{data:t}=e;const{width:n,height:r}=this.rect;this.stngs=this.settings.settings||{};const o=!this.stngs.coordinates||void 0===this.stngs.coordinates.minor0,i=u2({data:t,stngs:this.stngs,rect:this.rect,resolver:this.resolver,style:this.style,missingMinor0:o,domain:this.stngs.coordinates&&this.stngs.coordinates.major&&this.stngs.coordinates.major.scale?this.chart.scale(this.stngs.coordinates.major.scale).domain():[]});if(this.stngs.layers&&this.stngs.layers.sort){const e=i.map((e=>({id:e.layerObj.id,data:e.layerObj.data}))).sort(this.stngs.layers.sort).map((e=>e.id));i.sort(((t,n)=>e.indexOf(t.layerObj.id)-e.indexOf(n.layerObj.id)))}else i.sort(((e,t)=>e.median-t.median));return function(e,t){let{width:n,height:r,missingMinor0:o,stngs:i}=t;const a=[],s=i.layers||{};return e.forEach((e=>{const{lineObj:t,layerObj:l,areaObj:u,points:c}=e;let d={size:r,p:"y"},p={size:n,p:"x"};if("vertical"===i.orientation){const e=CH(!0,{},p);p=CH(!0,{},d),d=CH(!0,{},e)}s.area&&!1!==u.show&&a.push(l2(c,{data:e.consumableData,item:u,generatorType:"area",major:p,minor:d,layerObj:l,stngs:i})),t&&!1!==t.show&&(a.push(l2(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"1"),major:p,minor:d,layerObj:l,stngs:i},"none")),!o&&s.area&&!1!==u.show&&!1!==t.showMinor0&&a.push(l2(c,{data:e.consumableData,item:t,generatorType:"line".concat(d.p.toUpperCase(),"0"),major:p,minor:d,layerObj:l,stngs:i},"none")))})),a}(i,{width:n,height:r,missingMinor0:o,stngs:this.stngs})}};function d2(e,t){let n,r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"object"==typeof t.center?(n=t.center.x,r=t.center.y):(n=t.clientX,r=t.clientY);const i=n-e.state.boundingRect.left,a=r-e.state.boundingRect.top;return{x:o?Math.max(0,Math.min(i,e.rect.width)):i,y:o?Math.max(0,Math.min(a,e.rect.height)):a}}function p2(e,t){return{x:t.x+e.rect.x,y:t.y+e.rect.y}}function f2(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return{x:n,y:r,width:Math.max(e.x,t.x)-n,height:Math.max(e.y,t.y)-r}}const h2={require:["chart","renderer"],defaultSettings:{layout:{displayOrder:99},settings:{brush:{components:[]}},style:{area:"$selection-area-target"}},on:{areaStart(e){this.start(e)},areaMove(e){this.move(e)},areaEnd(e){this.end(e)},areaCancel(){this.cancel()}},created(){this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1}},preferredSize:()=>0,render(){},start(e){this.state.boundingRect=this.renderer.element().getBoundingClientRect();const t=d2(this,e,!1);HJ({x:0,y:0,width:this.rect.width,height:this.rect.height},t)&&(this.state.brushConfig=function(e){return e.settings.brush.components.map((e=>({key:e.key,contexts:e.contexts,data:e.data,action:e.action||"set"})))}(this.settings),this.state.start=d2(this,e),this.state.active=!0)},move(e){var t;this.state.active&&(this.state.end=d2(this,e),function(e){if(e.state.active){const t=p2(e,e.state.start),n=p2(e,e.state.end),r=e.chart.shapesAt(f2(t,n),{components:e.state.brushConfig});e.chart.brushFromShapes(r,{components:e.state.brushConfig})}}(this),(t=this).renderer.render([CH({type:"rect"},f2(t.state.start,t.state.end),t.style.area)]))},end(){this.state.active&&(this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))},cancel(){var e,t;this.state.active&&(e=this.state,t=this.chart,e.brushConfig.forEach((e=>{Array.isArray(e.contexts)&&e.contexts.forEach((e=>{t.brush(e).end()}))})),this.state={start:{x:0,y:0},end:{x:0,y:0},active:!1},this.renderer.render([]))}};function m2(e,t,n){let{renderer:r,style:o,props:i,h:a}=n;const s=function(e,t){return{tooltip:"function"==typeof e.tooltipClass?e.tooltipClass({dock:t.dock}):e.tooltipClass,content:"function"==typeof e.contentClass?e.contentClass({dock:t.dock}):e.contentClass,arrow:"function"==typeof e.arrowClass?e.arrowClass({dock:t.dock}):e.arrowClass}}(i,t),l=function(e,t,n,r){return r.content({h:e,style:n,data:t})}(a,e,o,i),u=a("div",{dir:i.direction,class:V1(CH({"pic-tooltip":!0},s.tooltip)),style:CH({position:"relative",display:"inline-block"},t.computedTooltipStyle)},a("div",{style:o.content,class:V1(CH({"pic-tooltip-content":!0},s.content))},l),a("div",{class:V1(CH({"pic-tooltip-arrow":!0},s.arrow)),style:CH({},o.arrow,o["arrow-".concat(t.dock)],t.computedArrowStyle)}));return r.render(u),r.element().children[0]}function g2(e){let{defaultDuration:t,defaultDelay:n}=e,r=null,o=null,i=!1;const a=function(){const e=function(){},t={pending:[],debounced:[],active:[],cancelled:[],rejected:[],fulfilled:[]};let n;return e.set=e=>{n=e,t[n].forEach((t=>t(e)))},e.on=(e,n)=>{Array.isArray(e)?e.forEach((e=>t[e].push(n))):t[e].push(n)},e.destroy=()=>{Object.keys(t).forEach((e=>{t[e].length=0}))},e}(),s=function(){},l=()=>{r=null,o=null,i=!1,a.set("fulfilled")};return s.invoke=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;r&&(clearTimeout(r),a.set("debounced")),a.set("pending"),r=setTimeout((()=>{e(),i=!0,r=null,a.set("active")}),u),s>0&&(o&&clearTimeout(o),o=setTimeout(l,s+Math.max(u,0)))},s.clear=()=>{i?a.set("cancelled"):r&&(clearTimeout(r),a.set("rejected")),o&&clearTimeout(o),r=null,o=null,i=!1},s.on=(e,t)=>{a.on(e,t)},s.destroy=()=>{s.clear(),a.destroy()},s}function b2(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{left:"translate(-100%,-50%) translateX(".concat(-e,"px)"),right:"translate(".concat(e,"px, -50%)"),top:"translate(-50%, -100%) translateY(".concat(-e,"px)"),bottom:"translate(-50%, ".concat(e,"px)"),inside:"translate(-50%, -50%)"}}function y2(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{left:{x:-e-n,y:-t/2},right:{x:n,y:-t/2},top:{x:-e/2,y:-t-n},bottom:{x:-e/2,y:n},inside:{x:-e/2,y:-t/2}}}function x2(e,t){const n=e>0?"-":"+";return e=Math.abs(e),void 0===t&&(t=e),{left:{left:"100%",top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},right:{left:"".concat(2*-e,"px"),top:"calc(50% ".concat(n," ").concat(e,"px)"),borderWidth:"".concat(t,"px")},top:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"100%",borderWidth:"".concat(t,"px")},bottom:{left:"calc(50% ".concat(n," ").concat(e,"px)"),top:"".concat(2*-e,"px"),borderWidth:"".concat(t,"px")},inside:{left:"0px",top:"0px",borderWidth:"0px"}}}function v2(e,t,n,r,o,i){const a=t+i.x,s=n+i.y,l=o;return!(a<0||s<0)&&!(a+r>e.width||s+l>e.height)}function _2(e){let{area:t,vx:n,vy:r,width:o,height:i,offset:a}=e;const s=n+a.x,l=r+a.y,u=o,c=i;let d=s<0?-s:0,p=l<0?-l:0;return d+=s+u>t.width?-(s+u-t.width):0,p+=l+c>t.height?-(l+c-t.height):0,{x:d,y:p}}function w2(e){let{options:t,pointer:n,width:r,height:o,dockOrder:i,x:a,y:s}=e;const{targetBounds:l}=n,u=b2(t.offset),c=u[t.dock];if(c)return{computedTooltipStyle:{left:"".concat(a,"px"),top:"".concat(s,"px"),transform:c},computedArrowStyle:x2(t.offset)[t.dock],dock:t.dock};const d={width:"target"===t.area?l.width:window.innerWidth,height:"target"===t.area?l.height:window.innerHeight},p=y2(r,o,t.offset),f=[],h="target"===t.area?a:l.left+a,m="target"===t.area?s:l.top+s;for(let e=0;e<i.length;e+=1){const n=i[e],l=_2({area:d,vx:h,vy:m,width:r,height:o,offset:p[n]}),c={left:"".concat(a,"px"),top:"".concat(s,"px"),transform:u[n]},g=x2(t.offset)[n];0!==l.x&&(c.width="".concat(r-20-Math.abs(l.x),"px"),"top"!==n&&"bottom"!==n||(c.left="".concat(a+l.x,"px"),g.left="calc(50% ".concat(l.x>0?"-":"+"," ").concat(Math.abs(l.x),"px)")));const b={computedTooltipStyle:c,computedArrowStyle:g,dock:n,rect:{width:r,height:o}};if(0===l.x&&0===l.y)return b;b.offset=l,f.push(b)}return f.sort(((e,t)=>Math.abs(e.offset.x)-Math.abs(t.offset.x))),f[0]}function S2(e,t,n){const r=e.key?n.component(e.key):n.componentsFromPoint({x:t.clientX,y:t.clientY})[0];if(!r)return{x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1}};const o=r.rect;return CH({scaleRatio:o.scaleRatio},o.computedInner)}const C2={bounds:function(e){let{resources:t,nodes:n,pointer:r,width:o,height:i,options:a}=e;const{targetBounds:s}=r,{x:l,y:u,width:c,height:d}=t.getNodeBoundsRelativeToTarget(n[0]),p={left:{x:l,y:u+d/2},right:{x:l+c,y:u+d/2},top:{x:l+c/2,y:u},bottom:{x:l+c/2,y:u+d},inside:{x:l+c/2,y:u+d/2}},f=b2(a.offset),h=f[a.dock];if(h)return{computedTooltipStyle:{left:"".concat(p[a.dock].x,"px"),top:"".concat(p[a.dock].y,"px"),transform:h},computedArrowStyle:x2(a.offset)[a.dock],dock:a.dock};const m={width:"target"===a.area?s.width:window.innerWidth,height:"target"===a.area?s.height:window.innerHeight},g=y2(o,i,a.offset),b=["top","left","right","bottom","inside"];for(let e=0;e<b.length;e+=1){const t=b[e];if(v2(m,"target"===a.area?p[t].x:s.left+p[t].x,"target"===a.area?p[t].y:s.top+p[t].y,o,i,g[t]))return{computedTooltipStyle:{left:"".concat(p[t].x,"px"),top:"".concat(p[t].y,"px"),transform:f[t]},computedArrowStyle:x2(a.offset)[t],dock:t}}const y=function(e){let{options:t,docks:n,dockOffsets:r,targetBounds:o,area:i,width:a}=e;const s="top",l="target"===t.area?n[s].x:o.left+n[s].x,u=("target"===t.area?n[s].y:(o.top,n[s].y),r[s]),c=l+u.x,d=(u.y,a);let p=n.top.x;return c<0&&c+d>i.width||(c<0?p-=c:c+d>i.width&&(p-=c+d-i.width)),p}({options:a,docks:p,dockOffsets:g,targetBounds:s,area:m,width:o});return{computedTooltipStyle:{left:"".concat(y,"px"),top:"".concat(p.top.y,"px"),transform:f.top},computedArrowStyle:x2(a.offset+y-p.top.x,a.offset).top,dock:"top"}},pointer:function(e){let{options:t,pointer:n,width:r,height:o}=e;const{x:i,y:a}=n;return w2({x:i,y:a,pointer:n,width:r,height:o,options:t,dockOrder:["top","left","right","bottom"]})},slice:function(e){let{options:t,pointer:n,width:r,height:o,nodes:i,resources:a}=e;const s=i[0],{dx:l,dy:u}=n,c=a.getComponentBoundsFromNode(s),d=l+c.x+c.width/2,p=u+c.y+c.height/2,{start:f,end:h,outerRadius:m}=s.desc.slice,g=(f+h)/2-Math.PI/2,b=2*Math.PI,y=(g%b+b)%b;let x=["top","left","right","bottom"];return"auto"===t.dock&&(x=y<=Math.PI/4||y>=7*Math.PI/4?["right","top","bottom","left"]:y<=3*Math.PI/4?["bottom","left","right","top"]:y<=5*Math.PI/4?["left","top","bottom","right"]:["top","left","right","bottom"]),w2({x:d+m*c.scaleRatio.x*Math.cos(y),y:p+m*c.scaleRatio.y*Math.sin(y),pointer:n,width:r,height:o,options:t,dockOrder:x})}};function E2(e,t){let{width:n,height:r}=e,{chart:o,state:i,props:a}=t;const s={resources:{formatter:o.formatter,scale:o.scale,component:o.component,getComponentBoundsFromNode:e=>S2(e,i.pointer,o),getNodeBoundsRelativeToTarget:e=>function(e,t,n){const r=S2(e,t,n),o=e.bounds;return{x:r.x+t.dx+o.x,y:r.y+t.dy+o.y,width:o.width,height:o.height}}(e,i.pointer,o)},nodes:i.activeNodes,pointer:i.pointer,width:n,height:r},l=typeof a.placement;if("object"===l&&"function"==typeof a.placement.fn)return a.placement.fn(s);let u={type:"pointer",offset:8,dock:"auto",area:"viewport"};"function"===l&&(u=CH(u,a.placement(s))),"object"===l&&C2[a.placement.type]?u=CH(u,a.placement):"string"===l&&C2[a.placement]&&(u=CH(u,{type:a.placement})),s.options=u;const c=C2[u.type](s);let{x:d,y:p,width:f,height:h}=s.resources.getComponentBoundsFromNode(s.nodes[0]);return d+=s.pointer.dx,f+=d,p+=s.pointer.dy,h+=p,c.computedTooltipStyle.left="".concat(Math.min(Math.max(0,d,parseFloat(c.computedTooltipStyle.left)),f),"px"),c.computedTooltipStyle.top="".concat(Math.min(Math.max(0,p,parseFloat(c.computedTooltipStyle.top)),h),"px"),c}let k2;function R2(){k2=null}const M2={duration:8e3,delay:500,filter:e=>e.filter((e=>e.data&&void 0!==e.data.value)),extract:e=>e.node.data.value,content:e=>{let{h:t,data:n}=e;return n.map((e=>t("div",{},e)))},isEqual:(e,t)=>e.length&&e.length===t.length&&e.every(((e,n)=>t[n]&&JSON.stringify(e.data)===JSON.stringify(t[n].data))),placement:{type:"pointer",dock:"auto",offset:8,area:"viewport"},tooltipClass:{},contentClass:{},arrowClass:{},direction:"ltr",appendTo:void 0,beforeShow:void 0,afterShow:void 0,beforeHide:void 0,onHide:void 0,afterHide:void 0};const A2={require:["chart","renderer"],defaultSettings:{settings:M2,style:{tooltip:{},content:{backgroundColor:"$gray-25",color:"$font-color--inverted",fontFamily:"$font-family",fontSize:"$font-size",lineHeight:"$line-height",borderRadius:"4px",padding:"8px",opacity:.9},arrow:{position:"absolute",width:"0px",height:"0px",borderStyle:"solid",color:"$gray-25",opacity:.9},"arrow-bottom":{borderTopColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-top":{borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},"arrow-right":{borderTopColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"},"arrow-left":{borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent"}}},renderer:"dom",on:{hide(){this.hide()},show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.show(e,t)},prevent(e){this.prevent(e)}},hide(){this.dispatcher.clear(),this.state.activeNodes=[],this.state.pointer={}},show(e){let t,{nodes:n,duration:r,delay:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!this.state.prevent&&this.state.targetElement&&(this.state.pointer=function(e,t){let{chart:n,state:r}=t,o=0,i=0;e.center?(o+=e.center.x,i+=e.center.y):(o+=e.clientX,i+=e.clientY);const a=n.element.getBoundingClientRect(),s=r.targetElement.getBoundingClientRect(),l=o,u=i,c=a.left-s.left,d=a.top-s.top,p=o-a.left,f=i-a.top;return o-=s.left,i-=s.top,{x:o,y:i,dx:c,dy:d,cx:p,cy:f,clientX:l,clientY:u,targetBounds:s,chartBounds:a}}(e,this),t=Array.isArray(n)?this.props.filter(n):this.props.filter(this.chart.shapesAt({x:this.state.pointer.cx,y:this.state.pointer.cy})),this.props.isEqual(this.state.activeNodes,t)||(this.dispatcher.clear(),this.state.activeNodes=t,this.state.activeNodes.length&&this.dispatcher.invoke((()=>this.invokeRenderer(this.state.activeNodes)),r,o)))},prevent(e){this.state.prevent=!!e},init(e){this.state={activeNodes:[],pointer:{},targetElement:null,prevent:!1},this.props=e.settings,this.dispatcher=g2({defaultDuration:this.props.duration,defaultDelay:this.props.delay});const t=this.dispatcher.clear;this.dispatcher.on("pending",(()=>{!function(e){k2&&k2!==e&&k2()}(t),k2=t,"function"==typeof this.props.beforeShow&&this.props.beforeShow.call(void 0,{resources:{formatter:this.chart.formatter,scale:this.chart.scale}})})),this.dispatcher.on(["cancelled","fulfilled"],(()=>{const e={resources:{formatter:this.chart.formatter,scale:this.chart.scale}};"function"==typeof this.props.beforeHide&&this.props.beforeHide.call(void 0,CH({element:this.state.tooltipElm},e)),"function"==typeof this.props.onHide?this.props.onHide.call(void 0,CH({element:this.state.tooltipElm},e)):this.renderer.clear([]),"function"==typeof this.props.afterHide&&this.props.afterHide.call(void 0,e),k2===t&&(k2=null),this.state.tooltipElm=void 0})),this.dispatcher.on("active",(()=>{"function"==typeof this.props.afterShow&&this.props.afterShow.call(void 0,{element:this.state.tooltipElm,resources:{formatter:this.chart.formatter,scale:this.chart.scale}})}))},created(){this.init(this.settings)},beforeUpdate(e){let{settings:t}=e;this.dispatcher&&(this.dispatcher.destroy(),R2()),this.init(t)},render(e){return this.h=e,[]},beforeDestroy(){this.dispatcher.destroy(),R2()},appendTo(){if(this.props.appendTo){this.state.targetElement="function"==typeof this.props.appendTo?this.props.appendTo({resources:{formatter:this.chart.formatter,scale:this.chart.scale}}):this.props.appendTo;const{width:e,height:t}=this.state.targetElement.getBoundingClientRect();this.renderer.destroy(),this.renderer.size({width:e,height:t}),this.renderer.appendTo(this.state.targetElement)}else this.state.targetElement=this.renderer.element()},mounted(){this.appendTo()},updated(){this.appendTo()},invokeRenderer(e){const t=function(e,t){let{chart:n,scale:r,props:o,h:i}=t;const a={resources:{dataset:n.dataset,scale:n.scale,formatter:n.formatter},scale:r,h:i},s=[];return e.forEach((e=>{if("function"==typeof o.extract){const t=CH({node:e},a);s.push(o.extract(t))}})),s}(e,this),n=E2(m2(t,{},this).getBoundingClientRect(),this);this.state.tooltipElm=m2(t,n,this)}};const I2={require:["renderer","chart"],defaultSettings:{settings:{target:"",selector:"*",fill:"rgba(0, 255, 0, 0.1)",stroke:"lime",opacity:1,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes(this.props.selector).filter((e=>e.key===this.props.target)),t=e.filter((e=>e.collider)).map((e=>e.collider));t.forEach((e=>{e.fill=this.props.fill,e.stroke=this.props.stroke,e.opacity=this.props.opacity,e.collider={type:null}})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var L2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},P2=/([astvzqmhlc])([^astvzqmhlc]*)/gi,D2=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function T2(e){const t=[],n=String(e).trim();return"M"!==n[0]&&"m"!==n[0]||n.replace(P2,((e,n,r)=>{const o=function(e){const t=e.match(D2);return t?t.map(Number):[]}(r);let i=n.toLowerCase(),a=n;if("m"===i&&o.length>2&&(t.push([a,...o.splice(0,2)]),i="l",a="m"===a?"l":"L"),o.length<L2[i])return"";for(t.push([a,...o.splice(0,L2[i])]);o.length>=L2[i]&&o.length&&L2[i];)t.push([a,...o.splice(0,L2[i])]);return""})),t}const O2=2*Math.PI;function z2(e,t){return{x:.5*(e.x+t.x),y:.5*(e.y+t.y)}}function N2(e,t,n,r,o){const i=1-e;return i**3*t+3*i**2*e*n+3*i*e**2*r+e**3*o}function q2(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;if(i<1||function(e,t,n,r){return Math.abs(e.x+n.x-(t.x+t.x))+Math.abs(e.y+n.y-(t.y+t.y))+Math.abs(t.x+r.x-(n.x+n.x))+Math.abs(t.y+r.y-(n.y+n.y))}(e,t,n,r)<=10)return o[o.length-1]!==e&&o.push(e),o.push(r),o;const a=z2(e,t),s=z2(t,n),l=z2(n,r),u={x:N2(.5,e.x,t.x,n.x,r.x),y:N2(.5,e.y,t.y,n.y,r.y)},c=z2(a,s),d=z2(s,l);return q2(e,a,c,u,o,i-1),q2(u,d,l,r,o,i-1),o}function j2(e,t,n){const{cp1:r,cp2:o}=function(e,t,n){return{cp1:{x:e.x+2/3*(t.x-e.x),y:e.y+2/3*(t.y-e.y)},cp2:{x:n.x+2/3*(t.x-n.x),y:n.y+2/3*(t.y-n.y)}}}(e,t,n);return q2(e,r,o,n)}function F2(e,t,n){const r=[],o=!!e[4],i=!!e[5],a=e[3];let s,l,u,c,d=e[6],p=e[7],f=e[1],h=e[2];if("a"===e[0]&&(d+=t,p+=n),t===p&&n===p)return r;if(!f||!h)return r.push({x:d,y:p}),r;({cx:s,cy:l,rx:f,ry:h,sweepAngle:u,startAngle:c}=function(e,t,n,r,o,i,a,s,l){let u,c,d,p,f,h;const m=iJ(n%360),g=Math.cos(m),b=Math.sin(m),y=(s-i)/2,x=(l-a)/2,v=g*y+b*x,_=g*x-b*y;h=v**2/(e=Math.abs(e))**2+_**2/(t=Math.abs(t))**2,h>1&&(h=Math.sqrt(h),e*=h,t*=h);const w=e*_,S=t*v,C=w**2+S**2,E=(e*t)**2-C;let k=Math.sqrt(Math.max(E/C,0));r===o&&(k=-k);const R=k*(w/t),M=k*(-S/e);p=g*R-b*M+(s+i)/2,f=b*R+g*M+(l+a)/2;const A=(v-R)/e,I=(_-M)/t,L=(-v-R)/e,P=(-_-M)/t;return u=Math.atan2(I,A),u+=u<0?O2:0,c=Math.atan2(P,L),c+=c<0?O2:0,d=c-u,!o&&u<c?d-=O2:o&&c<u&&(d+=O2),d%=O2,{startAngle:u,sweepAngle:d,cx:p,cy:f,rx:e,ry:t}}(f,h,a,o,i,d,p,t,n));const m=Math.abs(u*Math.sqrt((f**2+h**2)/2)),g=Math.ceil(m/10),b=u/g;for(let e=1;e<=g;e++){const t=(c+b*e)%O2,n=Math.cos(t),o=Math.sin(t);r.push({x:s+n*f+-o*n,y:l+o*h+n*o})}return r}function B2(e){const t=T2(e),n=[],r=[];let o=0,i=0,a=null,s=null,l=null,u=null;for(let e=0;e<t.length;++e){const c=t[e],d=c[0];switch("S"!==d&&"s"!==d&&"C"!==d&&"c"!==d&&(a=null,s=null),"T"!==d&&"t"!==d&&"Q"!==d&&"q"!==d&&(l=null,u=null),d){case"m":r.length&&n.push(r.splice(0));case"l":o+=c[1],i+=c[2],r.push({x:o,y:i});break;case"M":r.length&&n.push(r.splice(0));case"L":o=c[1],i=c[2],r.push({x:o,y:i});break;case"H":o=c[1],r.push({x:o,y:i});break;case"h":o+=c[1],r.push({x:o,y:i});break;case"V":i=c[1],r.push({x:o,y:i});break;case"v":i+=c[1],r.push({x:o,y:i});break;case"a":r.push(...F2(c,o,i)),o+=c[6],i+=c[7];break;case"A":r.push(...F2(c,o,i)),o=c[6],i=c[7];break;case"c":r.push(...q2({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i},{x:c[5]+o,y:c[6]+i})),a=c[3]+o,s=c[4]+i,o+=c[5],i+=c[6];break;case"C":r.push(...q2({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]},{x:c[5],y:c[6]})),a=c[3],s=c[4],o=c[5],i=c[6];break;case"s":null!==a&&null!==a||(a=o,s=i),r.push(...q2({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),a=c[1]+o,s=c[2]+i,o+=c[3],i+=c[4];break;case"S":null!==a&&null!==a||(a=o,s=i),r.push(...q2({x:o,y:i},{x:2*o-a,y:2*i-s},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),a=c[1],s=c[2],o=c[3],i=c[4];break;case"Q":r.push(...j2({x:o,y:i},{x:c[1],y:c[2]},{x:c[3],y:c[4]})),l=c[1],u=c[2],o=c[3],i=c[4];break;case"q":r.push(...j2({x:o,y:i},{x:c[1]+o,y:c[2]+i},{x:c[3]+o,y:c[4]+i})),l=c[1]+o,u=c[2]+i,o+=c[3],i+=c[4];break;case"T":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...j2({x:o,y:i},{x:l,y:u},{x:c[1],y:c[2]})),o=c[1],i=c[2];break;case"t":null!==l&&null!==l||(l=o,u=i),l=2*o-l,u=2*i-u,r.push(...j2({x:o,y:i},{x:l,y:u},{x:c[1]+o,y:c[2]+i})),o+=c[1],i+=c[2];break;case"z":case"Z":r.length&&r.push({x:r[0].x,y:r[0].y})}}return function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];Math.abs(n.x-r.x)<1e-12&&Math.abs(n.y-r.y)<1e-12&&(e.splice(t,1),t--)}}(r),n.push(r.splice(0)),n}const $2={require:["renderer","chart"],defaultSettings:{settings:{target:"",fill:"transparent",stroke:"lime",opacity:1,radius:2,useOuterRect:!1}},on:{update(){this.draw()}},draw(){const e=this.chart.findShapes("path").filter((e=>e.key===this.props.target)),t=[];e.forEach((e=>{B2(e.attrs.d).forEach((e=>{e.forEach((e=>{t.push({type:"circle",cx:e.x,cy:e.y,r:this.props.radius,fill:this.props.fill,stroke:this.props.stroke,opacity:this.props.opacity,collider:{type:null}})}))}))})),this.renderer.render(t)},created(){this.props=this.settings.settings},resize(e){let{outer:t,inner:n}=e;return this.props.useOuterRect?t:n},render(){},mounted(){this.draw()},updated(){this.props=this.settings.settings,this.draw()}};var W2=[function(e){e.component("box",HZ),e.component("box-marker",HZ)},function(e){e.component("point",JZ),e.component("point-marker",JZ)},function(e){e.component("pie",tQ)},function(e){e.component("grid-line",aQ)},function(e){e.component("ref-line",bQ)},function(e){e.component("axis",VQ)},function(e){e.component("container",YQ)},function(e){e.component("text",XQ)},function(e){e.component("scrollbar",QQ)},function(e){e.component("brush-range",h0),e.component("brush-area-dir",y0)},function(e){e.component("range",w0)},function(e){e.component("brush-lasso",M0)},function(e){e.component("labels",B1)},function(e){e.component("legend-cat",e2)},function(e){e.component("legend-seq",a2)},function(e){e.component("line",c2)},function(e){e.component("brush-area",h2)},function(e){e.component("tooltip",A2)},function(e){e.component("debug-collider",I2)},function(e){e.component("debug-path-to-points",$2)}];let H2=class{constructor(e){this._parent=null,this._children=[],this._ancestors=null,this.type=e,this.data=null}detach(){return this._parent&&this._parent.removeChild(this),this}get parent(){return this._parent}get isBranch(){return this._children&&this._children.length}get children(){return this._children}get ancestors(){return this._ancestors||(this._ancestors=[],this.parent&&this._ancestors.push(this.parent,...this.parent.ancestors)),this._ancestors}get descendants(){let e=[];const t=this.children.length;let n,r;for(n=0;n<t;n++)r=this.children[n],e.push(r),r.children.length&&(e=[...e,...r.descendants]);return e}equals(e){const t=this.children,n=e.children;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!t[e].equals(n[e]))return!1;return!0}toJSON(){return{type:this.type,children:this.children.map((e=>e.toJSON()))}}};class G2{constructor(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x:e,y:t,width:n,height:r,minWidth:o,minHeight:i})}set(){let{x:e=0,y:t=0,width:n=0,height:r=0,minWidth:o=0,minHeight:i=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="rect",n>=0?(this.x=e,this.width=Math.max(n,o)):(this.x=e+Math.min(n,-o),this.width=-Math.min(n,-o)),r>=0?(this.y=t,this.height=Math.max(r,i)):(this.y=t+Math.min(r,-i),this.height=-Math.min(r,-i))}containsPoint(e){return HJ(this,e)}intersectsLine(e){return GJ(this,zH(e))}intersectsRect(e){return $J(this,OH(e))}intersectsCircle(e){return zJ(e,this)}intersectsPolygon(e){return BJ(e,this)}intersectsGeoPolygon(e){return QJ(e,this)}points(){return[{x:this.x,y:this.y},{x:this.x+this.width,y:this.y},{x:this.x+this.width,y:this.y+this.height},{x:this.x,y:this.y+this.height}]}}class V2{constructor(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({cx:e,cy:t,r:n,minRadius:r})}set(){let{cx:e=0,cy:t=0,r:n=0,minRadius:r=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="circle",this.cx=e,this.cy=t,this.r=Math.max(n,r),this.vector={x:this.cx,y:this.cy}}containsPoint(e){return OJ(this,e)}intersectsLine(e){return NJ(this,zH(e))}intersectsRect(e){return zJ(this,OH(e))}intersectsCircle(e){return n=e,!LJ(t=this)&&!LJ(n)&&(t.cx-n.cx)**2+(t.cy-n.cy)**2<=(t.r+n.r)**2;var t,n}intersectsPolygon(e){return qJ(this,e)}intersectsGeoPolygon(e){return XJ(this,e)}points(){return[{x:this.cx,y:this.cy}]}}class Y2{constructor(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({x1:e,y1:t,x2:n,y2:r,tolerance:o})}set(){let{x1:e=0,y1:t=0,x2:n=0,y2:r=0,tolerance:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="line",this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.tolerance=Math.max(0,Math.round(o)),this.vectors=this.points(),this.zeroSize=e===n&&t===r}containsPoint(e){if(this.tolerance>0){return NJ({cx:e.x,cy:e.y,r:this.tolerance},this)}return YJ(this,e)}intersectsLine(e){return VJ(this,zH(e))}intersectsRect(e){return GJ(OH(e),this)}intersectsCircle(e){return NJ(e,this)}intersectsPolygon(e){return FJ(e,this)}intersectsGeoPolygon(e){return ZJ(e,this)}points(){return[{x:this.x1,y:this.y1},{x:this.x2,y:this.y2}]}}class U2{constructor(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polygon",this.vertices=e.slice(),this.edges=[],function(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}(this.vertices),!(this.vertices.length<=2)){!function(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}(this.vertices),this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.vertices.length;e++)e<this.vertices.length-1&&this.edges.push([this.vertices[e],this.vertices[e+1]]),this.xMin=isNaN(this.xMin)?this.vertices[e].x:Math.min(this.xMin,this.vertices[e].x),this.xMax=isNaN(this.xMax)?this.vertices[e].x:Math.max(this.xMax,this.vertices[e].x),this.yMin=isNaN(this.yMin)?this.vertices[e].y:Math.min(this.yMin,this.vertices[e].y),this.yMax=isNaN(this.yMax)?this.vertices[e].y:Math.max(this.yMax,this.vertices[e].y);this._bounds=null,this._boundingRect=null}}containsPoint(e){return jJ(this,e)}intersectsCircle(e){return qJ(e,this)}intersectsLine(e){return FJ(this,zH(e))}intersectsRect(e){return BJ(this,OH(e))}intersectsPolygon(e){return UJ(this,e)}intersectsGeoPolygon(e){return KJ(e,this)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function K2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new U2(...t)}function X2(e){const t=e[0],n=e[e.length-1];t.x===n.x&&t.y===n.y||e.push(t)}function J2(e){for(let t=0;t<e.length-1;t++){const n=e[t],r=e[t+1];n.x===r.x&&n.y===r.y&&(e.splice(t,1),t--)}}class Z2{constructor(){let{vertices:e=[[]]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({vertices:e})}set(){let{vertices:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="geopolygon",this.vertices=e.slice(),this.numPolygons=this.vertices.length,this.polygons=[],this.xMin=NaN,this.yMin=NaN,this.xMax=NaN,this.yMax=NaN;for(let e=0;e<this.numPolygons;e++)J2(this.vertices[e]),this.vertices[e].length>2&&X2(this.vertices[e]),this.polygons[e]=K2({vertices:this.vertices[e]}),this.xMin=isNaN(this.xMin)?this.polygons[e].xMin:Math.min(this.xMin,this.polygons[e].xMin),this.xMax=isNaN(this.xMax)?this.polygons[e].xMax:Math.max(this.xMax,this.polygons[e].xMax),this.yMin=isNaN(this.yMin)?this.polygons[e].yMin:Math.min(this.yMin,this.polygons[e].yMin),this.yMax=isNaN(this.yMax)?this.polygons[e].yMax:Math.max(this.yMax,this.polygons[e].yMax);this._bounds=null,this._boundingRect=null}containsPoint(e){return JJ(this,e)}intersectsCircle(e){return XJ(e,this)}intersectsLine(e){return ZJ(this,zH(e))}intersectsRect(e){return QJ(this,OH(e))}intersectsPolygon(e){return KJ(this,e)}intersectsGeoPolygon(e){return function(e,t){const n=e.boundingRect(),r=t.boundingRect();return!!$J(n,r)&&(WJ(r,n)?TJ(t,e):TJ(e,t))}(this,e)}points(){return this.vertices}bounds(){return this._bounds||(this._bounds=[{x:this.xMin,y:this.yMin},{x:this.xMax,y:this.yMin},{x:this.xMax,y:this.yMax},{x:this.xMin,y:this.yMax}]),this._bounds}boundingRect(){return this._boundingRect||(this._boundingRect={x:this.xMin,y:this.yMin,width:this.xMax-this.xMin,height:this.yMax-this.yMin}),this._boundingRect}}function Q2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Z2(...t)}class e5{constructor(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.set({points:e})}set(){let{points:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.type="polyline",this.segments=[],this._points=e.slice(),this._points.length>1)for(let e=0,r=this._points.length-1;e<r;e++)t=this._points[e],n=this._points[e+1],(t.x!==n.x||t.y!==n.y)&&this.segments.push({x1:this._points[e].x,y1:this._points[e].y,x2:this._points[e+1].x,y2:this._points[e+1].y});var t,n}containsPoint(e){return this.segments.some((t=>YJ(t,e)))}intersectsCircle(e){return this.segments.some((t=>NJ(e,t)))}intersectsLine(e){const t=zH(e);return this.segments.some((e=>VJ(e,t)))}intersectsRect(e){const t=OH(e);return this.segments.some((e=>GJ(t,e)))}intersectsPolygon(e){return this.segments.some((t=>FJ(e,t)))}intersectsGeoPolygon(e){return this.segments.some((t=>ZJ(e,t)))}points(){return this._points}}const t5=BG();function n5(e,t){return t5.get(e)(t)}t5.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new G2(...t)})),t5.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new V2(...t)})),t5.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Y2(...t)})),t5.add("polygon",K2),t5.add("geopolygon",Q2),t5.add("polyline",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new e5(...t)}));class r5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.geometries=[],e.forEach((e=>{const t=n5(e.type,e);t&&this.geometries.push(t)}))}containsPoint(e){return this.geometries.some((t=>t.containsPoint(e)))}intersectsLine(e){return this.geometries.some((t=>t.intersectsLine(e)))}intersectsRect(e){return this.geometries.some((t=>t.intersectsRect(e)))}intersectsCircle(e){return this.geometries.some((t=>t.intersectsCircle(e)))}intersectsPolygon(e){return this.geometries.some((t=>t.intersectsPolygon(e)))}intersectsGeoPolygon(e){return this.geometries.some((t=>t.intersectsGeoPolygon(e)))}}class o5{constructor(){this._elements=[[1,0,0],[0,1,0],[0,0,1]],this._stack=[]}clone(){return(new o5).multiply(this)}set(e){return this._elements=e,this}save(){return this._stack.push(this.elements),this}restore(){return this._stack.length&&(this._elements=this._stack.pop()),this}add(e){let t,n;for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]+=e;return this}translate(e,t){return this.multiply([[1,0,e],[0,1,t],[0,0,1]]),this}rotate(e){let t=Math.cos(-e),n=Math.sin(-e);return this.multiply([[t,n,0],[-n,t,0],[0,0,1]]),this}multiply(e){let t,n,r,o;if(e instanceof o5&&(e=e._elements),Array.isArray(e)){for(r=[[0,0,0],[0,0,0],[0,0,0]],t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)for(o=0;o<3;o++)r[t][n]+=this._elements[t][o]*e[o][n];this._elements=r}else for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)this._elements[t][n]*=e;return this}scale(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this.multiply([[e,0,0],[0,t,0],[0,0,1]]),this}transform(e,t,n,r,o,i){return this.multiply([[e,n,o],[t,r,i],[0,0,1]]),this}determinant(){let e=this._elements[0][0],t=this._elements[0][1],n=this._elements[0][2],r=this._elements[1][0],o=this._elements[1][1],i=this._elements[1][2],a=this._elements[2][0],s=this._elements[2][1],l=this._elements[2][2],u=0;return u=e*o*l+t*i*a+n*r*s-n*o*a-t*r*l-e*i*s,u}invert(){let e=this.determinant(),t=this._elements[0][0],n=this._elements[0][1],r=this._elements[0][2],o=this._elements[1][0],i=this._elements[1][1],a=this._elements[1][2],s=this._elements[2][0],l=this._elements[2][1],u=this._elements[2][2];return this._elements=[[i*u-a*l,r*l-n*u,n*a-r*i],[a*s-o*u,t*u-r*s,r*o-t*a],[o*l-i*s,s*n-t*l,t*i-n*o]],this.multiply(1/e),this}transpose(){const e=Object.create(this._elements);return this._elements=[[e[0][0],e[1][0],e[2][0]],[e[0][1],e[1][1],e[2][1]],[e[0][2],e[1][2],e[2][2]]],this}identity(){return this._elements=[[1,0,0],[0,1,0],[0,0,1]],this}toString(){return"".concat(this._elements.map((e=>e.join("\t"))).join("\n"))}isIdentity(){const e=this._elements;return 1===e[0][0]&&0===e[0][1]&&0===e[0][2]&&0===e[1][0]&&1===e[1][1]&&0===e[1][2]&&0===e[2][0]&&0===e[2][1]&&1===e[2][2]}transformPoint(e){let t,n,r=[e.x,e.y,1],o=this._elements,i=[0,0,0];for(t=0;t<this._elements.length;t++)for(n=0;n<this._elements[t].length;n++)i[t]+=r[n]*o[t][n];return{x:i[0],y:i[1]}}transformPoints(e){let t,n,r,o,i,a=this._elements,s=[];for(o=0;o<e.length;o++){for(t=[e[o].x,e[o].y,1],i=[0,0,0],n=0;n<this._elements.length;n++)for(r=0;r<this._elements[n].length;r++)i[n]+=t[r]*a[n][r];s.push({x:i[0],y:i[1]})}return s}get elements(){const e=this._elements;return[[e[0][0],e[0][1],e[0][2]],[e[1][0],e[1][1],e[1][2]],[e[2][0],e[2][1],e[2][2]]]}}const i5=/(translate|scale|rotate|matrix)\(([0-9,.eE+-\s]+)(?:,|\s?)+\)/g;function a5(e,t){const n=t.args[0]*(Math.PI/180);if(t.args.length>2){const r=t.args[1],o=t.args[2];e.translate(r,o),e.rotate(n),e.translate(-r,-o)}else 1===t.args.length&&e.rotate(n)}function s5(e,t){const n=t.args[0],r=isNaN(t.args[1])?t.args[0]:t.args[1];e.scale(n,r)}function l5(e,t){const n=t.args[0],r=isNaN(t.args[1])?0:t.args[1];e.translate(n,r)}function u5(e,t){t.args.length>=6&&e.transform(...t.args)}function c5(e,t){const n=function(e){let t,n=[];for(;null!==(t=i5.exec(e));){const e=t[2].trim(),r=-1===e.indexOf(",")?e.split(" "):e.split(",");n.push({cmd:t[1],args:r.filter((e=>e.trim().length>0)).map((e=>Number(e)))})}return n}(e);let r;for(let e=0,o=n.length;e<o;e++)r=n[e],"rotate"===r.cmd?a5(t,r):"scale"===r.cmd?s5(t,r):"matrix"===r.cmd?u5(t,r):"translate"===r.cmd&&l5(t,r)}const d5={type:/^\w[\w-]+/,attr:/^\[\w(?:[\w\._-]+)?(?:[!]?=['\"][\w\s*#_-]*['\"])?\]/,universal:/^(\*)/,tag:/^\.(\w+)/},p5={type:(e,t)=>t.filter((t=>{const n=t.type;return!!n&&n.toLowerCase()===e.toLowerCase()})),attr:(e,t,n,r)=>r.filter((r=>{const o=r.attrs[e];if(!t)return void 0!==o;if(void 0===o)return!1;switch(t){case"=":return n===String(o);case"!=":return n!==String(o);default:return!1}})),universal:e=>e,tag:(e,t)=>t.filter((t=>{const n=t.tag;return!!n&&-1!==n.trim().split(/\s+/).indexOf(e.replace(".",""))}))};function f5(e,t){if(!t||!t.length||!e||"function"!=typeof p5[e.type])return[];switch(e.type){case"type":case"tag":return p5[e.type](e.value,t);case"attr":return p5[e.type](e.attribute,e.operator,e.attributeValue,t);case"universal":return p5[e.type](t);default:return[]}}var h5={find:function(e,t){const n=[],r=[];let o,i;if(t.isBranch){let a;o=function(e){const t=[];let n,r,o,i;return e.split(/\s*,\s*/).forEach((e=>{e=e.trim(),n=[];const a=t=>{o=e.match(d5[t]),o&&(i=!0,e=e.slice(o[0].length),r={type:t,value:o[0]},"attr"===t&&(o=o[0].match(/\[(\w[\w\._-]+)?(?:([!]?=)['\"]([\w\s#_-]*)['\"])?\]/),r.attribute=o[1],r.operator=o[2],r.attributeValue=o[3]),n.push(r))};for(;e&&(i=!1,o=e.match(/^\s*([>+~]|\s)\s*/),o&&(i=!0,n.push({type:" ",value:o[0]}),e=e.slice(o[0].length)),Object.keys(d5).forEach(a),n&&n.length&&t.indexOf(n)<0&&t.push(n),i););})),t}(e),i=t.descendants;for(let e=0,t=o.length;e<t;e++){a=o[e];const t=[];let n=i.slice(),s=!1;a.reverse().forEach((e=>{if(" "===e.type)return t.push(n),n=i.slice(),void(s=!1);n=f5(e,n),s=!0})),s&&t.push(n);const l=t[0].filter((e=>{let n,r=e.parent;for(let e=1;e<t.length;e++){for(n=t[e].indexOf(r);r&&n<0;)r=r.parent,n=t[e].indexOf(r);if(n<0)return!1}return!0}));r.push(l)}for(let e=0,t=r.length;e<t;e++)for(let t=0,o=r[e].length;t<o;t++)n.indexOf(r[e][t])<0&&n.push(r[e][t])}return n||[]}};function m5(e,t,n){const r=e.type;let o=e.points();n&&(o=o.every((e=>Array.isArray(e)))?o.map((e=>n.transformPoints(e))):n.transformPoints(o)),function(e,t){for(let n=0,r=e.length;n<r;n++)e[n].x/=t,e[n].y/=t}(o,t);let i=null;if("rect"===r||"bounds"===r)i=OH(o),i.type=r;else if("circle"===r)i=function(e,t){return{cx:e[0].x,cy:e[0].y,r:t}}(o,e.r),i.type=r;else if("line"===r)i=zH(o),i.type=r;else if("polygon"===r||"polyline"===r){i={type:"path",d:rJ(o,"polygon"===r)}}else if("geopolygon"===r){let e="";for(let t=0;t<o.length;t++)e+=rJ(o[t],!0);i={type:"path",d:e}}return i}class g5{constructor(e){this._bounds=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{x:n,y:r,width:o,height:i}=e.boundingRect?e.boundingRect(t):{x:0,y:0,width:0,height:0};return{x:n,y:r,width:o,height:i}},this._attrs=e.attrs,this._type=e.type,this._data=e.data,this._dpi=e.stage?e.stage.dpi:1,this._collider=()=>function(e,t){if(e.collider){const n=e.modelViewMatrix;return"collection"===e.colliderType?{type:"container",children:e.collider.geometries.map((e=>m5(e,t,n)))}:m5(e.collider,t,n)}return null}(e,this._dpi),this._desc=e.desc,this._tag=e.tag,this._children=()=>e.children.map((e=>new g5(e))),this._parent=()=>e.parent?new g5(e.parent):null,this._cache={elementBoundingRect:null},this._getElementBoundingRect=()=>(!this._cache.elementBoundingRect&&this.element&&(this._cache.elementBoundingRect=this.element.getBoundingClientRect()),this._cache.elementBoundingRect||{left:0,top:0})}get children(){return this._children()}get parent(){return this._parent()}get type(){return this._type}get data(){return this._data}get attrs(){return this._attrs}set element(e){this._cache.elementBoundingRect=null,this._element=e}get element(){return this._element}set key(e){this._key=e}get key(){return this._key}get bounds(){const e=this._bounds();return e.x/=this._dpi,e.y/=this._dpi,e.width/=this._dpi,e.height/=this._dpi,e}get localBounds(){return this._bounds(!1)}boundsRelativeTo(e){const t=typeof e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?this.bounds:this.localBounds,r=this._getElementBoundingRect();let o=r.left,i=r.top;if("object"===t&&null!==e&&"function"==typeof e.getBoundingClientRect){const{left:t=0,top:n=0}=e.getBoundingClientRect();o-=t,i-=n}return n.x+=o,n.y+=i,n}get collider(){return this._collider()}get desc(){return this._desc}get tag(){return this._tag}}function b5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new g5(...t)}class y5{constructor(e){this._node=b5(e),this._parent=null,this._input=null}get node(){return this._node}set parent(e){this._parent=e}get parent(){return this._parent}set input(e){this._input=e}get input(){return this._input}}function x5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new y5(...t)}function v5(e,t){const n=e.parent;if(n&&"stage"!==n.type){t.parent=x5(n);const e=n.parent;e&&"stage"!==e.type&&v5(e,t.parent)}}function _5(e,t,n){if(null===e.colliderType)return null;const r=function(e,t){let n={};if(e.modelViewMatrix)if(Array.isArray(t))n=e.inverseModelViewMatrix.transformPoints(t);else if(isNaN(t.r))Array.isArray(t.vertices)?n.vertices=e.inverseModelViewMatrix.transformPoints(t.vertices):n=e.inverseModelViewMatrix.transformPoint(t);else{const r={x:t.cx,y:t.cy};({x:n.cx,y:n.cy}=e.inverseModelViewMatrix.transformPoint(r)),n.r=t.r}else n=t;return Array.isArray(n.vertices)&&(n=n.vertices.every((e=>Array.isArray(e)))?Q2(n):K2(n)),n}(e,n);return"frontChild"===e.colliderType?function(e,t,n){for(let r=e.descendants.length-1;r>=0;r--){const o=e.descendants[r];if(null!==o.collider&&o.collider[t](n)){const e=x5(o);return v5(o,e),e}}return null}(e,t,r):function(e,t,n){if(e.collider[t](n)){const t=x5(e);return v5(e,t),t}return null}(e,t,r)}function w5(e,t,n,r){const o=e.length;for(let i=0;i<o;i++){const o=e[i],a=_5(o,t,r);a&&n.push(a),!o.children||a||o.collider||w5(o.children,t,n,r)}}function S5(e,t,n){const r=e.length;for(let o=0;o<r;o++){const r=e[o];if(null!==_5(r,t,n))return!0;if(r.children&&!r.collider)return S5(r.children,t,n)}return!1}function C5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;let n={};switch(NH(e)){case"circle":return n.cx=e.cx*t,n.cy=e.cy*t,n.r=e.r,["intersectsCircle",n];case"rect":return n=TH(e).map((e=>uJ(e,t))),["intersectsRect",n];case"line":return n=DH(e).map((e=>uJ(e,t))),["intersectsLine",n];case"point":return n=uJ(e,t),["containsPoint",n];case"polygon":return n.vertices=e.vertices.map((e=>uJ(e,t))),["intersectsPolygon",n];case"geopolygon":return n.vertices=e.vertices.map((e=>e.map((e=>uJ(e,t))))),["intersectsGeoPolygon",n];default:return[]}}function E5(e,t){const[n,r]=C5(t,e.dpi),o=[];return n&&(w5([e],n,o,r),function(e,t){for(let n=0,r=t.length;n<r;n++)t[n].input=e}(t,o)),o}function k5(e,t){const[n,r]=C5(t,e.dpi);return S5([e],n,r)}class R5 extends H2{constructor(e){super(e),this._stage=null,this._collider={type:null,definition:null,fn:null},this._attrs={},this._node=null}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.node=e;const{data:t,desc:n,tag:r,strokeReference:o,fillReference:i}=e;var a,s;a=this.attrs,s=e,Object.keys(nJ).forEach((e=>{const t=s[e];void 0!==t&&(a[nJ[e]]=t)})),void 0!==t&&(this.data=t),"object"==typeof n&&(this.desc=CH(!0,{},n)),"string"==typeof r&&(this.tag=r),"string"==typeof o&&(this.strokeReference=o),"string"==typeof i&&(this.fillReference=i)}findShapes(e){return h5.find(e,this).map((e=>b5(e)))}getItemsFrom(e){return E5(this,e)}containsPoint(e){return k5(this,e)}intersectsLine(e){return k5(this,e)}intersectsRect(e){return k5(this,e)}intersectsCircle(e){return k5(this,e)}intersectsPolygon(e){return k5(this,e)}intersectsGeoPolygon(e){return k5(this,e)}resolveLocalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o5;void 0!==this.attrs.transform&&c5(this.attrs.transform,e),this.modelViewMatrix=e.clone()}resolveGlobalTransform(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o5;const t=this.ancestors;if(t.length>0)for(let n=t.length-1;n>=0;n--)t[n].resolveLocalTransform(e),e=t[n].modelViewMatrix;this.resolveLocalTransform(e)}attr(e){return this.attrs[e]}equals(e){const t=this.attrs,n=Object.keys(t),r=e.attrs,o=Object.keys(r);if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){const o=n[e];if(!Object.hasOwnProperty.call(r,o))return!1;if(t[o]!==r[o])return!1}return super.equals(e)}toJSON(){const e=super.toJSON();return e.attrs=this.attrs,e}get attrs(){return this._attrs}get stage(){return this._parent&&!this._stage?this._stage=this._parent.stage:this._parent||this._stage===this||(this._stage=null),this._stage}set modelViewMatrix(e){this._mvm=e,this._imvm=null}get modelViewMatrix(){return this._mvm}get inverseModelViewMatrix(){return this._imvm=this._imvm?this._imvm:this._mvm.clone().invert(),this._imvm}set node(e){this._node=e}get node(){return this._node}set collider(e){const t=Array.isArray(e)?"collection":e&&e.type;return"string"!=typeof t?(this._collider.type=null,this._collider.definition=null,void(this._collider.fn=null)):null!==this._collider&&this._collider.type===t&&null!==this._collider.fn?(this._collider.fn.set(e),void(this._collider.definition=e)):(this._collider.type=t,void(this._collider.definition=e))}get collider(){if(null!==this._collider.fn)return this._collider.fn;switch(this._collider.type){case"collection":this._collider.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new r5(...t)}(this._collider.definition);break;case"frontChild":return!0;case"bounds":this._collider.fn=n5("rect",this.boundingRect());break;case"line":case"rect":case"circle":case"polygon":case"geopolygon":case"polyline":this._collider.fn=n5(this._collider.type,this._collider.definition);break;default:return null}return this._collider.fn}get colliderType(){return this._collider.type}}class M5 extends H2{addChild(e){if(!(e&&e instanceof H2))throw new TypeError("Expecting a Node as argument, but got ".concat(e));if(e===this)throw new Error("Can not add itself as child!");if(e._children&&e._children.length&&this.ancestors.indexOf(e)>=0)throw new Error("Can not add an ancestor as child!");return e._parent&&e._parent!==this&&e._parent.removeChild(e),this._children.push(e),e._parent=this,e._ancestors=null,this}addChildren(e){let t,n=e?e.length:0;for(t=0;t<n;t++)this.addChild(e[t]);return this}removeChild(e){const t=this._children.indexOf(e);return t>=0&&(this._children.splice(t,1),e._parent=null,e._ancestors=null),this}removeChildren(e){let t,n;if(!this._children)return this;if(e)for(n=e.length,t=0;t<n;t++)this.removeChild(e[t]);else for(;this._children.length;)this.removeChild(this._children[0]);return this}}const A5=M5.prototype;class I5 extends R5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const{collider:t}=e,n=CH({type:null},t);this.collider=n,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}appendChildRect(e,t){if(void 0!==e.bounds){const n=this.__boundingRect[t]||{},[r,,o]=e.bounds(t),{x:i,y:a}=r,{x:s,y:l}=o,u=isNaN(n.width)?s:Math.max(s,n.width+n.x),c=isNaN(n.height)?l:Math.max(l,n.height+n.y);n.x=isNaN(n.x)?i:Math.min(i,n.x),n.y=isNaN(n.y)?a:Math.min(a,n.y),n.width=u-n.x,n.height=c-n.y,this.__boundingRect[t]=n}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.children.length;for(let n=0;n<t;n++)this.appendChildRect(this.children[n],e);return this.__boundingRect[e]=CH({x:0,y:0,width:0,height:0},this.__boundingRect[e]),this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}addChild(e){const t=A5.addChild.call(this,e);if(this._collider&&"bounds"===this._collider.type){this.appendChildRect(e,!0);const t=CH({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}addChildren(e){const t=A5.addChildren.call(this,e),n=e.length;if(this._collider&&"bounds"===this._collider.type&&n>0){for(let t=0;t<n;t++)this.appendChildRect(e[t],!0);const t=CH({type:"bounds",x:0,y:0,width:0,height:0},this.__boundingRect.true);this.collider=t}return t}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;if(A5.removeChild.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=CH(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}removeChildren(e){if(A5.removeChildren.call(this,e),this._collider&&"bounds"===this._collider.type){this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null};const e=CH(this.boundingRect(!0),{type:"bounds"});this.collider=e}return this}}function L5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new I5(...t)}class P5 extends I5{constructor(e){super("stage"),this._stage=this,this._dpiRatio=e||1}get dpi(){return this._dpiRatio}}const D5=M5.prototype,T5=["x1","x2","y1","y2","id","offset","style"];class O5 extends R5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=T5.length;r!==o;r++)n=T5[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return D5.addChild.call(this,e)}addChildren(e){return D5.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return D5.removeChild.call(this,e),this}removeChildren(e){return D5.removeChildren.call(this,e),this}}function z5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new O5(...t)}const N5=M5.prototype,q5=["patternUnits","x","y","width","height","id"];class j5 extends R5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{type:t="container"}=e;super(t),this.set(e),this._boundingRect={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super.set(e);const t=this.attrs;let n="";for(let r=0,o=q5.length;r!==o;r++)n=q5[r],void 0!==e[n]&&(t[n]=e[n])}addChild(e){return N5.addChild.call(this,e)}addChildren(e){return N5.addChildren.call(this,e)}removeChild(e){e._stage=null;let t,n=e.descendants,r=n?n.length:0;for(t=0;t<r;t++)n[t]._stage=null;return N5.removeChild.call(this,e),this}removeChildren(e){return N5.removeChildren.call(this,e),this}}class F5 extends R5{constructor(){super("rect"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,width:r=0,height:o=0,rx:i=0,ry:a=0,collider:s}=e,l=CH({type:"rect",x:t,y:n,width:r,height:o},s);super.set(e),r>=0?(this.attrs.x=t,this.attrs.width=r):(this.attrs.x=t+r,this.attrs.width=-r),o>=0?(this.attrs.y=n,this.attrs.height=o):(this.attrs.y=n+o,this.attrs.height=-o),i>0&&(this.attrs.rx=i),a>0&&(this.attrs.ry=a),this.collider=l,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=TH(this.attrs),n=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(t):t,[r,o,i,a]=PH(n);return this.__boundingRect[e]={x:r,y:o,width:i-r,height:a-o},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}class B5 extends R5{constructor(){super("circle"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{cx:t=0,cy:n=0,r:r=0,collider:o}=e,i=CH({type:"circle",cx:t,cy:n,r:r},o);super.set(e),this.attrs.cx=t,this.attrs.cy=n,this.attrs.r=r,this.collider=i,this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];const t=this.bounds(e);return this.__boundingRect[e]={x:t[0].x,y:t[0].y,width:t[2].x-t[0].x,height:t[2].y-t[0].y},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const{cx:t,cy:n,r:r,r:o}=this.attrs,i=t-r,a=n-o;let s=2*r,l=2*o,u=[{x:i,y:a},{x:i+s,y:a},{x:i+s,y:a+l},{x:i,y:a+l}];if(e&&this.modelViewMatrix){u=this.modelViewMatrix.transformPoints(u);const[t,n,r,o]=PH(u);s=r-t,l=o-n,this.__bounds[e]=[{x:t,y:n},{x:t+s,y:n},{x:t+s,y:n+l},{x:t,y:n+l}]}else this.__bounds[e]=u;return this.__bounds[e]}}class $5 extends R5{constructor(){super("line"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x1:t=0,y1:n=0,x2:r=0,y2:o=0,collider:i}=e;super.set(e),this.attrs.x1=t,this.attrs.y1=n,this.attrs.x2=r,this.attrs.y2=o;const a={type:"line",x1:t,y1:n,x2:r,y2:o};this.collider=CH(a,i),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];let t=DH(this.attrs);e&&this.modelViewMatrix&&(t=this.modelViewMatrix.transformPoints(t));const[n,r,o,i]=PH(t),a=n!==o||r!==i;return this.__boundingRect[e]={x:n,y:r,width:a?Math.max(1,o-n):0,height:a?Math.max(1,i-r):0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}const W5=Math.PI/2;function H5(e,t){const n=Math.atan2(t.y-e.y,t.x-e.x);return n<0?n+2*Math.PI:n}function G5(e,t,n){return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}}const V5={step:function(e){return new OG(e,.5)},stepAfter:function(e){return new OG(e,1)},stepBefore:function(e){return new OG(e,0)},linear:pG,basis:function(e){return new vG(e)},cardinal:SG.tension(0),catmullRom:EG,monotonex:function(e){return new IG(e)},monotoney:function(e){return new LG(e)},natural:function(e){return new DG(e)}};function Y5(e){if(e.length<2)return!1;const t=e[0],n=e[e.length-1];return Math.abs(t.x-n.x)<1e-12&&Math.abs(t.y-n.y)<1e-12}class U5 extends R5{constructor(){super("path"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super.set(e),this.segments=[],this.points=[],e.arcDatum){const t=cG();t.innerRadius(e.desc.slice.innerRadius),t.outerRadius(e.desc.slice.outerRadius),t.cornerRadius(e.desc.slice.cornerRadius);const n=t(e.arcDatum);this.attrs.d=n}else if(e.points){const{major:t,minor:n,layerObj:r,points:o,stngs:i,generatorType:a}=e,s=mG(),l=i.coordinates?i.coordinates.defined:null;s[t.p]((e=>e.major*t.size))["".concat(n.p,"1")]((e=>e.minor*n.size))["".concat(n.p,"0")]((e=>e.minor0*n.size)).curve(V5["monotone"===r.curve?"monotone".concat(t.p):r.curve]),l?s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)&&e.defined)):s.defined((e=>!e.dummy&&"number"==typeof e.minor&&!isNaN(e.minor)));const u=i.connect?o.filter(s.defined()):o,c=("area"===a?s:s[a]())(u);this.attrs.d=c}else e.d&&(this.attrs.d=e.d);if(this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null},Array.isArray(e.collider)||"object"==typeof e.collider&&void 0!==e.collider.type)this.collider=e.collider;else if(this.attrs.d){if(this.segments=B2(this.attrs.d),this.segments.length>1&&this.segments.every((e=>Y5(e))))return void(this.collider=CH({type:"geopolygon",vertices:this.segments},e.collider));this.segments.forEach((t=>{if(t.length<=1);else if(Y5(t))this.collider=CH({type:"polygon",vertices:t},e.collider);else if("object"==typeof e.collider&&e.collider.visual){const n=this.attrs["stroke-width"]/2;this.collider=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=[],o=[];if("h"===n.forceOrientation){const t=e[0].x<e[1].x?-1:1,n=e[e.length-1].x>e[e.length-2].x?1:-1;e.unshift({x:e[0].x+t,y:e[0].y}),e.push({x:e[e.length-1].x+n,y:e[e.length-1].y})}else if("v"===n.forceOrientation){const t=e[0].y<e[1].y?-1:1,n=e[e.length-1].y>e[e.length-2].y?1:-1;e.unshift({x:e[0].x,y:e[0].y+t}),e.push({x:e[e.length-1].x,y:e[e.length-1].y+n})}const i=e.length-1;for(let n=1;n<i;n++){const a=e[n-1],s=e[n],l=e[n+1],u=H5(s,a),c=H5(s,l),d=(u+c)/2,p=d+Math.PI,f=Math.max(d,p),h=Math.min(d,p),m=u>c;if(1===n){const e=H5(a,s);r.push(G5(a,e-W5,t)),o.unshift(G5(a,e+W5,t))}const g=m?f:h,b=m?h:f;if(r.push(G5(s,g,t)),o.unshift(G5(s,b,t)),n===i-1){const e=H5(l,s);r.push(G5(l,e+W5,t)),o.unshift(G5(l,e-W5,t))}}return{type:"polygon",vertices:[...r,...o]}}(t,n,e.collider)}else this.collider=CH({type:"polyline",points:t},e.collider)}))}}boundingRect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[e])return this.__boundingRect[e];this.points.length||(this.segments=this.segments.length?this.segments:B2(this.attrs.d),this.points=function(e){const t=[];let n,r=e.length;for(let o=0;o<r;o++){n=e[o];for(let e=0;e<n.length;e++)t.push(n[e])}return t}(this.segments));const t=e&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(this.points):this.points,[n,r,o,i]=PH(t);return this.__boundingRect[e]={x:n||0,y:r||0,width:o-n||0,height:i-r||0},this.__boundingRect[e]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}}function K5(e){let{data:t,_boundingRect:n,_textBoundsFn:r}=e;return null!=t&&(n||r)}let X5=class extends R5{constructor(){super("text"),this.set(...arguments)}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{x:t=0,y:n=0,dx:r=0,dy:o=0,textBoundsFn:i,text:a,title:s,collider:l,boundingRect:u,ellipsed:c}=e;super.set(e),this.attrs.x=t,this.attrs.y=n,this.attrs.dx=r,this.attrs.dy=o,this.attrs.text=a,void 0!==s&&(this.attrs.title=String(s)),"object"==typeof u?this._textBoundsFn=()=>u:"function"==typeof i&&(this._textBoundsFn=i),"string"==typeof c&&(this.ellipsed=c),this.collider=CH({type:K5(this)?"bounds":null},l),this.__boundingRect={true:null,false:null},this.__bounds={true:null,false:null}}boundingRect(){let e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__boundingRect[t])return this.__boundingRect[t];if("function"!=typeof this._textBoundsFn)return{x:0,y:0,width:0,height:0};e=this._textBoundsFn(this.attrs);const n=TH(e),r=t&&this.modelViewMatrix?this.modelViewMatrix.transformPoints(n):n,[o,i,a,s]=PH(r);return this.__boundingRect[t]={x:o,y:i,width:a-o,height:s-i},this.__boundingRect[t]}bounds(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(null!==this.__bounds[e])return this.__bounds[e];const t=this.boundingRect(e);return this.__bounds[e]=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],this.__bounds[e]}};const J5=BG();function Z5(e,t){return J5.get(e)(t)}J5.add("rect",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new F5(...t)})),J5.add("circle",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new B5(...t)})),J5.add("text",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new X5(...t)})),J5.add("line",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new $5(...t)})),J5.add("path",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new U5(...t)})),J5.add("stage",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new P5(...t)})),J5.add("container",L5),J5.add("defs",L5),J5.add("linearGradient",z5),J5.add("radialGradient",z5),J5.add("conicGradient",z5),J5.add("stop",z5),J5.add("pattern",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new j5(...t)}));const Q5=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[{}];function n(){return t[t.length-1]}return n.save=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=n(),i={};let a="";for(let t=0;t<e.length;t++)a=e[t],void 0!==o[a]&&(i[a]=o[a]);return CH(i,r),t.push(i),n()},n.restore=function(){t.splice(t.length-1,1)},n}(["stroke","fill","strokeWidth","opacity","fontFamily","fontSize","baseline"]);function e3(e,t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n](e)}function t3(e,t,n){e.node=n[t],e.index=t}function n3(e,t,n,r){let o=!1;const i={siblings:e,node:null,index:0};for(let a=0,s=e.length;a<s;a++){if(t3(i,a,e),e3(i,r.create),o="function"==typeof i.node.disabled?i.node.disabled():i.node.disabled,o)continue;i.node=Q5.save(i.node);const s=Z5(i.node.type,i.node);s&&(i.node.transform&&(n.save(),c5(i.node.transform,n)),n.isIdentity()||(s.modelViewMatrix=n.clone()),t.addChild(s),i.node.children&&n3(i.node.children,s,n,r),i.node.transform&&n.restore()),Q5.restore()}}function r3(e){let{items:t,stage:n,dpi:r,on:o={}}=e;return n||(n=Z5("stage",r)),n3(t,n,new o5,o),n}function o3(e,t,n){const{orientation:r,degree:o,stops:i=[]}=n;let a=null;if("radial"===r){const n=t.boundingRect();a=e.createRadialGradient(n.x+n.width/2,n.y+n.height/2,1e-5,n.x+n.width/2,n.y+n.height/2,Math.max(n.width,n.height)/2)}else if("conic"===r){const t=n.startAngle||0,r=n.x||0,o=n.y||0;a=e.createConicGradient(t,r,o)}else{const r=aJ(o);["x1","x2","y1","y2"].forEach((e=>{e in n&&(r[e]=n[e])}));const i=t.boundingRect();a=e.createLinearGradient(i.x+r.x1*i.width,i.y+r.y1*i.height,i.x+r.x2*i.width,i.y+r.y2*i.height)}for(let e=0,t=i.length;e<t;e++){let t=i[e];a.addColorStop(t.offset,t.color)}return a}function i3(e,t,n){return t.width=e.width,t.height=e.height,n.save(),n.fillStyle=e.fill,e.shapes.forEach((e=>{if("rect"===e.type)n.rect(e.x,e.y,e.width,e.height)})),n.fill(),n.restore(),n.createPattern(t,"repeat")}function a3(){let{x:e,y:t,width:n,height:r,scaleRatio:o,margin:i,edgeBleed:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0},edgeBleed:{left:0,right:0,top:0,bottom:0,bool:!1}};return s.x=isNaN(e)?s.x:e,s.y=isNaN(t)?s.y:t,s.width=isNaN(n)?s.width:n,s.height=isNaN(r)?s.height:r,void 0!==o&&(s.scaleRatio.x=isNaN(o.x)?s.scaleRatio.x:o.x,s.scaleRatio.y=isNaN(o.y)?s.scaleRatio.y:o.y),void 0!==i&&(s.margin.left=isNaN(i.left)?0:i.left,s.margin.top=isNaN(i.top)?0:i.top),"object"==typeof a&&["left","right","top","bottom"].forEach((e=>{!isNaN(a[e])&&a[e]>0&&(s.edgeBleed[e]=a[e],s.edgeBleed.bool=!0)})),s.computedPhysical={x:Math.round(s.margin.left+(s.x-s.edgeBleed.left)*s.scaleRatio.x),y:Math.round(s.margin.top+(s.y-s.edgeBleed.top)*s.scaleRatio.y),width:Math.round((s.width+s.edgeBleed.left+s.edgeBleed.right)*s.scaleRatio.x),height:Math.round((s.height+s.edgeBleed.top+s.edgeBleed.bottom)*s.scaleRatio.y)},s}function s3(){const e={element:()=>{},root:()=>{},settings:()=>{},appendTo:()=>{},getScene:()=>[],render:()=>!1,itemsAt:()=>[],findShapes:()=>[],clear:()=>{},destory:()=>{},size:()=>{},measureText:D1,textBounds:O1,setKey:t=>{e.element().setAttribute("data-key",t)}};return e}function l3(e){return t=>{let{node:n}=t;"text"!==n.type||null==n.data||n.textBoundsFn||(n.textBoundsFn=e.textBounds)}}const u3=200,c3=200;class d3{constructor(e){this.targetCanvas=e,this.bufferCanvas=e.cloneNode()}updateSize(e){let t,{rect:n,dpiRatio:r,canvasBufferSize:o}=e;t=o?"function"==typeof o?o(n):o:{width:n.computedPhysical.width+2*u3,height:n.computedPhysical.height+2*c3},this.bufferCanvas.style.width="".concat(t.width,"px"),this.bufferCanvas.style.height="".concat(t.height,"px"),this.bufferCanvas.width=Math.round(t.width*r),this.bufferCanvas.height=Math.round(t.height*r)}apply(){this.targetCanvas.getContext("2d").drawImage(this.bufferCanvas,0,0)}clear(){this.bufferCanvas.width=this.bufferCanvas.width}getContext(){return this.bufferCanvas.getContext("2d")}}const p3=BG();function f3(e){return Array.isArray(e)?e:"string"==typeof e?-1!==e.indexOf(",")?e.split(","):e.split(" "):[]}function h3(e){return("undefined"==typeof window?1:window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}function m3(e,t){t.setTransform(e[0][0],e[1][0],e[0][1],e[1][1],e[0][2],e[1][2])}function g3(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Object.keys(r);for(let o=0,i=n.length;o<i;o++){let i=n[o];const a=i[0],s=i[1],l=i[2];if(a in t.attrs&&!(s in r)&&e[s]!==t.attrs[a]){const n=l?l(t.attrs[a]):t.attrs[a];"function"==typeof e[s]?e[s](n):e[s]=n}}for(let t=0,n=o.length;t<n;t++){const n=o[t];e[n]=r[n]}}function b3(e,t,n,r){for(let o=0,i=e.length;o<i;o++){let i=e[o],a={};t.save(),i.attrs&&(i.attrs.fill||i.attrs.stroke)&&(i.attrs.fill&&"object"==typeof i.attrs.fill&&"gradient"===i.attrs.fill.type?a.fillStyle=o3(t,i,i.attrs.fill):i.attrs.fill&&"object"==typeof i.attrs.fill&&"pattern"===i.attrs.fill.type&&(a.fillStyle=r.patterns.create(i.attrs.fill)),i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"gradient"===i.attrs.stroke.type?a.strokeStyle=o3(t,i,i.attrs.stroke):i.attrs.stroke&&"object"==typeof i.attrs.stroke&&"pattern"===i.attrs.stroke.type&&(a.strokeStyle=r.patterns.create(i.attrs.stroke))),g3(t,i,n,a),i.modelViewMatrix&&m3(i.modelViewMatrix.elements,t),p3.has(i.type)&&p3.get(i.type)(i.attrs,{g:t,doFill:"fill"in i.attrs&&"none"!==i.attrs.fill,doStroke:"stroke"in i.attrs&&0!==i.attrs["stroke-width"],ellipsed:i.ellipsed}),i.children&&b3(i.children,t,n,r),t.restore()}}function y3(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r3;const r={transform:void 0,canvasBufferSize:void 0,progressive:void 0};let o,i=!1,a=a3();const s=[["fill","fillStyle"],["stroke","strokeStyle"],["opacity","globalAlpha"],["globalAlpha","globalAlpha"],["stroke-width","lineWidth"],["stroke-linejoin","lineJoin"],["stroke-dasharray","setLineDash",f3]];let l;const u=s3();return u.element=()=>e,u.root=()=>e,u.settings=e=>(e&&Object.keys(r).forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r),u.appendTo=n=>(e||(e=n.ownerDocument.createElement("canvas"),e.style.position="absolute",e.style["-webkit-font-smoothing"]="antialiased",e.style["-moz-osx-font-smoothing"]="antialiased",e.style.pointerEvents="none"),"function"!=typeof r.transform||t||(t=new d3(e)),n.appendChild(e),e),u.getScene=r=>{const o=h3(t&&t.getContext()||e.getContext("2d")),i=a.scaleRatio.x,s=a.scaleRatio.y,l={type:"container",children:r,transform:a.edgeBleed.bool?"translate(".concat(a.edgeBleed.left*o*i,", ").concat(a.edgeBleed.top*o*s,")"):""};return 1===o&&1===i&&1===s||(l.transform+="scale(".concat(o*i,", ").concat(o*s,")")),n({items:[l],dpi:o,on:{create:[S1(u.measureText),l3(u)]}})},u.render=n=>{if(!e)return!1;l||(l=function(e){const t=e.createElement("canvas"),n=t.getContext("2d");let r={};return{create(e){const o=e.key;return o?(r[o]=r[o]||i3(e,t,n),r[o]):i3(e,t,n)},clear(){r={}}}}(e.ownerDocument));const c=t&&t.getContext()||e.getContext("2d"),d=h3(c),p=t&&r.transform();if(p)return e.width=e.width,function(e){let{el:t,dpiRatio:n,transform:r}=e;if("object"==typeof r){const e=[r.horizontalScaling,r.horizontalSkewing,r.verticalSkewing,r.verticalScaling,r.horizontalMoving*n,r.verticalMoving*n];t.getContext("2d").setTransform(...e)}}({el:e,dpiRatio:d,transform:p}),t.apply(),!0;i&&(e.style.left="".concat(a.computedPhysical.x,"px"),e.style.top="".concat(a.computedPhysical.y,"px"),e.style.width="".concat(a.computedPhysical.width,"px"),e.style.height="".concat(a.computedPhysical.height,"px"),e.width=Math.round(a.computedPhysical.width*d),e.height=Math.round(a.computedPhysical.height*d),t&&t.updateSize({rect:a,dpiRatio:d,canvasBufferSize:r.canvasBufferSize}));const f=u.getScene(n),h=!o||!f.equals(o);l.clear();const m=i||h,g="function"==typeof r.progressive&&r.progressive();return m&&(g&&!g.isFirst||u.clear(),b3(f.children,c,s,{patterns:l})),t&&(e.width=e.width,t.apply()),i=!1,g&&!g.isFirst&&f.children.unshift(...o.children),o=f,m},u.itemsAt=e=>o?o.getItemsFrom(e):[],u.findShapes=e=>o?o.findShapes(e):[],u.clear=()=>(e&&(e.width=e.width),t&&t.clear(),o=null,u),u.size=e=>{if(e){const t=a3(e);JSON.stringify(a)!==JSON.stringify(t)&&(i=!0,a=t)}return a},u.destroy=()=>{e&&(e.parentElement&&e.parentElement.removeChild(e),e=null),t&&(t=null),o=null},u}function x3(e,t){p3.add(e,t)}function v3(e,t){return Math.max(0,Math.min(e,t))}const _3=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),w3=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),S3=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function C3(e){return _3.test(e)}function E3(e){return w3.test(e)||S3.test(e)}function k3(e){let t,n,r=e?e.length:0;for(t=0;t<r;t++){if(n=e[t],C3(n))return"ltr";if(E3(n))return"rtl"}return"ltr"}const R3={start:"end",end:"start",center:"center",middle:"middle"};function M3(e,t){return"rtl"===t?R3[e]:e}function A3(e,t){const n=[];let r;const o=[],i=[],a=[];let s,l;const u=e=>e.id,c=(e,t)=>{let n;return n="object"==typeof e?"id"in e?e.id:t:e,{content:e,id:"".concat(n,"__").concat(e.type||"")}};e.isTree||(e=e.map(c)),t=t.map(c),s=e.map(u),l=t.map(u);for(let e=0,r=t.length;e<r;e++){-1===s.indexOf(t[e].id)?n.push(t[e]):i.push(t[e])}for(let t=0,n=e.length;t<n;t++){-1===l.indexOf(e[t].id)?o.push(e[t]):a.push(e[t])}for(let e=0,t=n.length;e<t;e++)n[e].content.children&&(n[e].diff=A3([],n[e].content.children),n[e].children=n[e].diff.updatedNew.concat(n[e].diff.added),n[e].children.isTree=!0);for(let e=0,t=i.length;e<t;e++)i[e].diff=A3(a[e].children||[],i[e].content.children||[]),i[e].object=a[e].object,i[e].children=i[e].diff.items;return r=i.concat(n),n.isTree=!0,o.isTree=!0,i.isTree=!0,a.isTree=!0,r.isTree=!0,{added:n,updatedNew:i,updatedOld:a,removed:o,items:r}}function I3(e,t,n){for(let r=0,o=e.length;r<o;r++)e[r].object=n(e[r].content.type,t)}function L3(e,t){for(let n=0,r=e.length;n<r;n++)null!==e[n].object&&void 0!==e[n].object&&(t(e[n].object),e[n].object=null)}function P3(e,t,n,r){let o;for(let i=0,a=e.length;i<a;i++)o=e[i],null!==o.object&&void 0!==o.object&&(n(o.object,o.content),o.diff&&(I3(o.diff.added,o.object,t),L3(o.diff.removed,r),P3(o.diff.items,t,n,r)))}function D3(e,t,n,r,o,i){const a=A3(e,t);return I3(a.added,n,r),L3(a.removed,i),P3(a.items,r,o,i),a.items}x3("rect",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),e.rx>0||e.ry>0?function(e,t,n,r,o,i,a){i=v3(r/2,i>0?i:a),a=v3(o/2,a>0?a:i),e.moveTo(t,n+a),e.lineTo(t,n+o-a),e.quadraticCurveTo(t,n+o,t+i,n+o),e.lineTo(t+r-i,n+o),e.quadraticCurveTo(t+r,n+o,t+r,n+o-a),e.lineTo(t+r,n+a),e.quadraticCurveTo(t+r,n,t+r-i,n),e.lineTo(t+i,n),e.quadraticCurveTo(t,n,t,n+a)}(n,e.x,e.y,e.width,e.height,e.rx,e.ry):n.rect(e.x,e.y,e.width,e.height),r&&n.fill(),o&&n.stroke()})),x3("circle",(function(e,t){let{g:n,doFill:r,doStroke:o}=t;n.beginPath(),n.moveTo(e.cx+e.r,e.cy),n.arc(e.cx,e.cy,e.r,0,2*Math.PI,!1),r&&n.fill(),o&&n.stroke()})),x3("line",(function(e,t){let{g:n,doStroke:r}=t;n.beginPath(),n.moveTo(e.x1,e.y1),n.lineTo(e.x2,e.y2),r&&n.stroke()})),x3("path",(function(e,t){let{g:n,doStroke:r,doFill:o}=t;const i=new Path2D(e.d);o&&n.fill(i),r&&n.stroke(i)})),x3("text",(function(e,t){let{g:n,ellipsed:r,doStroke:o}=t;const i=r||C1(e,D1);n.font=[e["font-style"],e["font-weight"],e["font-size"],e["font-family"]].filter((e=>!!e)).join(" ");const a=k3(e.text);n.canvas.dir!==a&&(n.canvas.dir=a);const s=M3("middle"===e["text-anchor"]?"center":e["text-anchor"],n.canvas.dir);s&&n.textAlign!==s&&(n.textAlign=s);const l=E1(e);n.fillText(i,e.x+e.dx,e.y+e.dy+l),o&&n.strokeText(i,e.x+e.dx,e.y+e.dy+l)}));const T3="http://www.w3.org/2000/svg",O3=(e,t)=>{if(!e||"string"!=typeof e)throw new Error("Invalid type: ".concat(e));const n=t.ownerDocument.createElementNS(T3,"container"===e?"g":e);return t.appendChild(n),n},z3=e=>{e.parentNode&&e.parentNode.removeChild(e)},N3=(e,t)=>{if((e=>{switch(e.type){case"circle":return!isNaN(e.attrs.cx)&&!isNaN(e.attrs.cy)&&!isNaN(e.attrs.r);case"line":return!(isNaN(e.attrs.x1)||isNaN(e.attrs.y1)||isNaN(e.attrs.x2)||isNaN(e.attrs.y2));case"rect":return!(isNaN(e.attrs.x)||isNaN(e.attrs.y)||isNaN(e.attrs.width)||isNaN(e.attrs.height));case"text":return!isNaN(e.attrs.x)&&!isNaN(e.attrs.y);default:return!0}})(t)){for(const n in t.attrs)if("stroke"===n&&t.strokeReference)e.setAttribute("stroke",t.strokeReference);else if("fill"===n&&t.fillReference)e.setAttribute("fill",t.fillReference);else if("text"===n){e.setAttribute("style","white-space: pre"),e.textContent=t.ellipsed||C1(t.attrs,D1);const n=k3(t.attrs.text);"rtl"===n&&(e.setAttribute("direction","rtl"),e.setAttribute("dir","rtl"),e.setAttribute("text-anchor",M3(e.getAttribute("text-anchor"),n)))}else if("text"!==t.type||"dy"!==n&&"dominant-baseline"!==n)if("text"===t.type&&"title"===n&&t.attrs.title){const n=e.ownerDocument.createElementNS(T3,"title");n.textContent=t.attrs.title,e.appendChild(n)}else e.setAttribute(n,t.attrs[n]);else{const r=+e.getAttribute(n)||0;let o=0;o="dominant-baseline"===n?E1(t.attrs):t.attrs[n],e.setAttribute("dy",o+r)}if("string"==typeof t.data||"number"==typeof t.data||"boolean"==typeof t.data)e.setAttribute("data",t.data);else if("object"==typeof t.data&&null!==t.data)for(const n in t.data)"string"!=typeof t.data[n]&&"number"!=typeof t.data[n]&&"boolean"!=typeof t.data[n]||e.setAttribute("data-".concat(n),t.data[n])}};class q3{constructor(e,t,n,r){this.create=e,this.nodeCreator=t,this.nodeMaintainer=n,this.nodeDestroyer=r}render(e,t){return this.create([],e,t,this.nodeCreator,this.nodeMaintainer,this.nodeDestroyer)}}function j3(){return new q3(D3,O3,N3,z3)}function F3(e){let t,n,r,o=0;if(0===(e=JSON.stringify(e)).length)return o;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o&=o;return o}function B3(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r3;const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:j3)();let r,o,i,a=!1,s=a3();const l={transform:void 0,disableScreenReader:!1},u=s3(),c={type:"defs",children:[]},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F3,n={},r=Date.now();const o={onCreate(o){let i={};o.node&&"object"==typeof o.node.fill&&"pattern"===o.node.fill.type&&o.node.fill.shapes&&(i.fill=o.node.fill),o.node&&"object"==typeof o.node.stroke&&"pattern"===o.node.stroke.type&&o.node.stroke.shapes&&(i.stroke=o.node.stroke),Object.keys(i).forEach((a=>{let s="";const l=i[a],u=t(l),c="picasso-pattern-".concat(r,"-").concat(u);if("undefined"!=typeof window&&(s=window.location.href.split("#")[0]),!n[u]){const t={patternUnits:"userSpaceOnUse",x:0,y:0,width:l.width,height:l.height,type:"pattern",id:c,children:[],fill:l.fill};l.shapes.forEach((e=>{t.children.push(e)})),e.push(t),n[u]=!0}o.node["".concat(a,"Reference")]="url('".concat(s,"#").concat(c,"')")}))},clear(){n={}}};return o}(c.children),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F3,n={},r=Date.now();const o={getOrCreateGradient(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=t(o[i]),l="picasso-gradient-".concat(r,"-").concat(s);if(!n[s]){let{orientation:t,degree:r,stops:a=[]}=o[i],u={};void 0===r&&(r=90),"radial"===t?u.type="radialGradient":(u=aJ(r),["x1","x2","y1","y2"].forEach((e=>{e in o[i]&&(u[e]=o[i][e])})),u.type="linearGradient"),u.id=l,u.children=a.map((e=>{let{offset:t,color:n,opacity:r}=e;return{type:"stop",offset:"".concat(100*t,"%"),style:"stop-color:".concat(n,";stop-opacity:").concat(void 0!==r?r:1)}})),e.push(u),n[s]=l}return"url('".concat(a,"#").concat(l,"')")},onCreate(e){let t="";"undefined"!=typeof window&&(t=window.location.href.split("#")[0]);const n=e.node;n.fill&&"object"==typeof n.fill&&"gradient"===n.fill.type&&(n.fillReference=o.getOrCreateGradient(n,"fill",t)),n.stroke&&"object"==typeof n.stroke&&"gradient"===n.stroke.type&&(n.strokeReference=o.getOrCreateGradient(n,"stroke",t))},clear(){n={}}};return o}(c.children);return u.element=()=>r,u.root=()=>o,u.settings=e=>(e&&Object.keys(l).forEach((t=>{void 0!==e[t]&&(l[t]=e[t])})),l),u.appendTo=t=>(r||(r=t.ownerDocument.createElementNS(e,"svg"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none",r.setAttribute("xmlns",e),o=t.ownerDocument.createElementNS(e,"g"),o.style.pointerEvents="auto",r.appendChild(o)),t.appendChild(r),r),u.getScene=e=>{const n=s.scaleRatio.x,r=s.scaleRatio.y,o={type:"container",children:Array.isArray(e)?[...e,c]:e,transform:s.edgeBleed.bool?"translate(".concat(s.edgeBleed.left*n,", ").concat(s.edgeBleed.top*r,")"):""};return 1===n&&1===r||(o.transform+="scale(".concat(n,", ").concat(r,")")),t({items:[o],on:{create:[e=>{e.node.fillReference=void 0,e.node.strokeReference=void 0},p.onCreate,d.onCreate,S1(u.measureText),l3(u)]}})},u.render=e=>{if(!r)return!1;const t="function"==typeof l.transform&&l.transform();if(t){const{horizontalScaling:e,horizontalSkewing:n,verticalSkewing:r,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return o.style.transform="matrix(".concat(e,", ").concat(n,", ").concat(r,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}o.style.transform="";l.disableScreenReader&&r.setAttribute("aria-hidden",!0),a&&(r.style.left="".concat(s.computedPhysical.x,"px"),r.style.top="".concat(s.computedPhysical.y,"px"),r.setAttribute("width",s.computedPhysical.width),r.setAttribute("height",s.computedPhysical.height)),p.clear(),d.clear(),c.children.length=0;const f=u.getScene(e),h=!i||!f.equals(i),m=a||h;return m&&(u.clear(),n.render(f.children,o)),a=!1,i=f,m},u.itemsAt=e=>i?i.getItemsFrom(e):[],u.findShapes=e=>i?i.findShapes(e):[],u.clear=()=>{if(!o)return u;i=null;const e=o.cloneNode(!1);return r.replaceChild(e,o),o=e,u},u.destroy=()=>{r&&r.parentNode&&r.parentNode.removeChild(r),r=null,o=null},u.size=e=>{if(e){const t=a3(e);JSON.stringify(s)!==JSON.stringify(t)&&(a=!0,s=t)}return s},u}var $3,W3,H3,G3,V3,Y3,U3,K3={},X3=[],J3=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Z3(e,t){for(var n in t)e[n]=t[n];return e}function Q3(e){var t=e.parentNode;t&&t.removeChild(e)}function e6(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?$3.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return t6(e,a,r,o,null)}function t6(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++H3:o};return null==o&&null!=W3.vnode&&W3.vnode(i),i}function n6(e){return e.children}function r6(e,t){this.props=e,this.context=t}function o6(e,t){if(null==t)return e.__?o6(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?o6(e):null}function i6(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return i6(e)}}function a6(e){(!e.__d&&(e.__d=!0)&&G3.push(e)&&!s6.__r++||V3!==W3.debounceRendering)&&((V3=W3.debounceRendering)||Y3)(s6)}function s6(){var e,t,n,r,o,i,a,s;for(G3.sort(U3);e=G3.shift();)e.__d&&(t=G3.length,r=void 0,o=void 0,a=(i=(n=e).__v).__e,(s=n.__P)&&(r=[],(o=Z3({},i)).__v=i.__v+1,g6(s,i,o,n.__n,void 0!==s.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?o6(i):a,i.__h),b6(r,i),i.__e!=a&&i6(i)),G3.length>t&&G3.sort(U3));s6.__r=0}function l6(e,t,n,r,o,i,a,s,l,u){var c,d,p,f,h,m,g,b=r&&r.__k||X3,y=b.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(f=n.__k[c]=null==(f=t[c])||"boolean"==typeof f||"function"==typeof f?null:"string"==typeof f||"number"==typeof f||"bigint"==typeof f?t6(null,f,null,null,f):Array.isArray(f)?t6(n6,{children:f},null,null,null):f.__b>0?t6(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=b[c])||p&&f.key==p.key&&f.type===p.type)b[c]=void 0;else for(d=0;d<y;d++){if((p=b[d])&&f.key==p.key&&f.type===p.type){b[d]=void 0;break}p=null}g6(e,f,p=p||K3,o,i,a,s,l,u),h=f.__e,(d=f.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,f),g.push(d,f.__c||h,f)),null!=h?(null==m&&(m=h),"function"==typeof f.type&&f.__k===p.__k?f.__d=l=u6(f,l,e):l=c6(e,f,p,b,h,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=o6(p))}for(n.__e=m,c=y;c--;)null!=b[c]&&("function"==typeof n.type&&null!=b[c].__e&&b[c].__e==n.__d&&(n.__d=d6(r).nextSibling),v6(b[c],b[c]));if(g)for(c=0;c<g.length;c++)x6(g[c],g[++c],g[++c])}function u6(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?u6(r,t,n):c6(n,r,r,o,r.__e,t));return t}function c6(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function d6(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=d6(n)))return r;return null}function p6(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||J3.test(t)?n:n+"px"}function f6(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||p6(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||p6(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?m6:h6,i):e.removeEventListener(t,i?m6:h6,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function h6(e){return this.l[e.type+!1](W3.event?W3.event(e):e)}function m6(e){return this.l[e.type+!0](W3.event?W3.event(e):e)}function g6(e,t,n,r,o,i,a,s,l){var u,c,d,p,f,h,m,g,b,y,x,v,_,w,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=W3.__b)&&u(t);try{e:if("function"==typeof C){if(g=t.props,b=(u=C.contextType)&&r[u.__c],y=u?b?b.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in C&&C.prototype.render?t.__c=c=new C(g,y):(t.__c=c=new r6(g,y),c.constructor=C,c.render=_6),b&&b.sub(c),c.props=g,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=C.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Z3({},c.__s)),Z3(c.__s,C.getDerivedStateFromProps(g,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==C.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(p,f,h)}))}if(c.context=y,c.props=g,c.__P=e,v=W3.__r,_=0,"prototype"in C&&C.prototype.render){for(c.state=c.__s,c.__d=!1,v&&v(t),u=c.render(c.props,c.state,c.context),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[]}else do{c.__d=!1,v&&v(t),u=c.render(c.props,c.state,c.context),c.state=c.__s}while(c.__d&&++_<25);c.state=c.__s,null!=c.getChildContext&&(r=Z3(Z3({},r),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(p,f)),S=null!=u&&u.type===n6&&null==u.key?u.props.children:u,l6(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,l),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=y6(n.__e,t,n,r,o,i,a,l);(u=W3.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),W3.__e(e,t,n)}}function b6(e,t){W3.__c&&W3.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){W3.__e(e,t.__v)}}))}function y6(e,t,n,r,o,i,a,s){var l,u,c,d=n.props,p=t.props,f=t.type,h=0;if("svg"===f&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!f&&(f?l.localName===f:3===l.nodeType)){e=l,i[h]=null;break}if(null==e){if(null===f)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),i=null,s=!1}if(null===f)d===p||s&&e.data===p||(e.data=p);else{if(i=i&&$3.call(e.childNodes),u=(d=n.props||K3).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||f6(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||f6(e,i,t[i],n[i],r)}(e,p,d,o,s),c)t.__k=[];else if(h=t.props.children,l6(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==f,i,a,i?i[0]:n.__k&&o6(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&Q3(i[h]);s||("value"in p&&void 0!==(h=p.value)&&(h!==e.value||"progress"===f&&!h||"option"===f&&h!==d.value)&&f6(e,"value",h,d.value,!1),"checked"in p&&void 0!==(h=p.checked)&&h!==e.checked&&f6(e,"checked",h,d.checked,!1))}return e}function x6(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){W3.__e(e,n)}}function v6(e,t,n){var r,o;if(W3.unmount&&W3.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||x6(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){W3.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&v6(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||Q3(e.__e),e.__=e.__e=e.__d=void 0}function _6(e,t,n){return this.constructor(e,n)}function w6(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createElement:t=document.createElement.bind(document)}=e;let n,r,o=a3();const i={transform:void 0,disableScreenReader:!1},a=s3();return a.element=()=>n,a.root=()=>n,a.settings=e=>(e&&Object.keys(i).forEach((t=>{void 0!==e[t]&&(i[t]=e[t])})),i),a.appendTo=e=>(n||(n=t("div"),n.style.position="absolute",n.style["-webkit-font-smoothing"]="antialiased",n.style["-moz-osx-font-smoothing"]="antialiased",n.style.pointerEvents="none"),e.appendChild(n),n),a.render=e=>{if(!n)return!1;const t="function"==typeof i.transform&&i.transform();if(t){const{horizontalScaling:e,horizontalSkewing:r,verticalSkewing:o,verticalScaling:i,horizontalMoving:a,verticalMoving:s}=t;return n.style.transform="matrix(".concat(e,", ").concat(r,", ").concat(o,", ").concat(i,", ").concat(a,", ").concat(s,")"),!0}n.style.transform="";let a;return i.disableScreenReader&&n.setAttribute("aria-hidden",!0),n.style.left="".concat(o.computedPhysical.x,"px"),n.style.top="".concat(o.computedPhysical.y,"px"),n.style.width="".concat(o.computedPhysical.width,"px"),n.style.height="".concat(o.computedPhysical.height,"px"),a=Array.isArray(e)?e6("div",null,e):e,r=function(e,t,n){var r,o,i;W3.__&&W3.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],g6(t,e=(!r&&n||t).__k=e6(n6,null,[e]),o||K3,K3,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?$3.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),b6(i,e)}(a,n,r),!0},a.renderArgs=[e6],a.clear=()=>{if(n){let e=n.firstChild;for(;e;)n.removeChild(e),e=n.firstChild;r=null}return a},a.destroy=()=>{n&&n.parentElement&&n.parentElement.removeChild(n),n=null,r=null},a.size=e=>(e&&(o=a3(e)),o),a}$3=X3.slice,W3={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},H3=0,r6.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Z3({},this.state),"function"==typeof e&&(e=e(Z3({},n),this.props)),e&&Z3(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),a6(this))},r6.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),a6(this))},r6.prototype.render=n6,G3=[],Y3="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U3=function(e,t){return e.__v.__b-t.__v.__b},s6.__r=0;var S6=[function(e){e.renderer("svg",B3)},function(e){e.renderer("canvas",y3)},function(e){e.renderer("dom",w6)}];const C6={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4};const E6=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(){let{level:e=C6.OFF,pipe:t=console}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;const r={[C6.OFF]:()=>{},[C6.ERROR]:function(){return t.error(...arguments)},[C6.WARN]:function(){return t.warn(...arguments)},[C6.INFO]:function(){return t.info(...arguments)},[C6.DEBUG]:function(){return t.log(...arguments)}},o=function(e){if(e&&!(n<e)){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];(r[e]||r[C6.DEBUG])(...o)}};return{log:o,error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.ERROR,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.WARN,...t)},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.INFO,...t)},debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(C6.DEBUG,...t)},level:e=>("number"==typeof e&&(n=e),n),LOG_LEVEL:C6}}(t.logger),o={component:BG(n.component,"component",r),data:BG(n.data,"data",r),formatter:BG(n.formatter,"formatter",r),interaction:BG(n.interaction,"interaction",r),renderer:MZ(n.renderer),scale:BG(n.scale,"scale",r),symbol:BG(n.symbol,"symbol",r),logger:r};function i(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e({palettes:t.palettes.concat(n.palettes||[]),style:CH({},t.style,n.style),logger:n.logger||t.logger,renderer:n.renderer||t.renderer},o)}return t.renderer&&t.renderer.prio&&o.renderer.default(t.renderer.prio[0]),i.use=function(e){return function(e){e(arguments.length>2?arguments[2]:void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o)},i.chart=e=>RZ(e,{registries:o,logger:r,style:t.style,palettes:t.palettes}),i.config=()=>t,Object.keys(o).forEach((e=>{i[e]=o[e]})),i.version=EH,i}({renderer:{prio:["svg","canvas"]},logger:{level:0},style:{"$font-family":"'Source Sans Pro', Arial, sans-serif","$font-size":"12px","$line-height":"16px","$font-size--l":"16px","$font-weight":"normal","$gray-100":"#ffffff","$gray-98":"#f9f9f9","$gray-95":"#f2f2f2","$gray-90":"#e6e6e6","$gray-35":"#595959","$gray-30":"#4d4d4d","$gray-25":"#404040","$gray-20":"#333333","$border-95":"rgba(255, 255, 255, 0.05)","$border-90":"rgba(255, 255, 255, 0.1)","$border-80":"rgba(255, 255, 255, 0.2)","$border-20":"rgba(0, 0, 0, 0.2)","$border-10":"rgba(0, 0, 0, 0.1)","$border-5":"rgba(0, 0, 0, 0.05)","$primary-blue":"#3F8AB3","$primary-green":"#6CB33F","$primary-red":"#DC423F","$primary-orange":"#EF960F","$spacing--s":4,$spacing:8,"$spacing--l":12,"$font-color":"$gray-35","$font-color--inverted":"$gray-90","$guide-color":"$gray-90","$guide-color--inverted":"$gray-35",$border:"$border-80","$border--inverted":"$border-10",$shape:{fill:"$primary-blue",strokeWidth:1,stroke:"$border"},"$shape-outline":{stroke:"$primary-blue",strokeWidth:2},"$shape-guide":{stroke:"$guide-color",strokeWidth:1},"$shape-guide--inverted":{"@extend":"$shape-guide",stroke:"$guide-color--inverted"},$label:{fontSize:"$font-size",fontFamily:"$font-family",fill:"$font-color"},"$label--inverted":{$extend:"$label",fill:"$font-color--inverted"},"$label-overlay":{fontSize:"$font-size--l",fontFamily:"$font-family",fill:"$gray-100",color:"$font-color",stroke:"$guide-color--inverted",strokeWidth:1,borderRadius:4},$title:{"@extend":"$label",fontSize:"$font-size--l",fontWeight:"$font-weight",stroke:"$guide-color--inverted",strokeWidth:0},"$guide-line":{strokeWidth:1,stroke:"$guide-color"},"$guide-line--minor":{strokeWidth:1,stroke:"$gray-95"},"$padding--s":{left:"$spacing--s",right:"$spacing--s",top:"$spacing--s",bottom:"$spacing--s"},$padding:{left:"$spacing",right:"$spacing",top:"$spacing",bottom:"$spacing"},"$selection-area-target":{fill:"$primary-green",strokeWidth:0,opacity:.2}},palettes:[{key:"categorical",colors:[["#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da"]]},{key:"diverging",colors:[["#3d52a1","#3a89c9","#77b7e5","#b4ddf7","#e6f5fe","#ffe3aa","#f9bd7e","#ed875e","#d24d3e","#ae1c3e"]]},{key:"sequential",colors:[["rgb(180,221,212)","rgb(34, 83, 90)"]]}]},{component:AZ,data:TZ,formatter:dU,interaction:OZ,renderer:MZ(),scale:pX,symbol:yJ});W2.forEach(E6.use),S6.forEach(E6.use),[].forEach(E6.use);const k6=E6();k6.use(mH),k6.renderer.prio(["canvas"]);const R6=(e,t)=>e&&"center"!==e&&"rtl"===t?Wq(e):e,M6=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:s}}}=tO(),{direction:l}=KT();return se.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[se.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:ej(e),alignItems:R6(r,l),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:se.jsx(vj,{representation:t,textStyle:n})}),se.jsx(e$,{padding:4/(s<=2?2:1),alignSelf:ej(e,!0),children:!!t.labelStructure&&yj(t.labelStructure)})]})},A6=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,I6=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>se.jsxs("span",{children:[se.jsx(aB,{...R$({href:e,text:t,interactions:r,color:o}),children:null!=n&&n.maskedValue?n.maskedValue:null==n?void 0:n.originalValue}),!!n&&A6(n)]}),L6=({children:e,textStyle:t,shouldEnableStickyText:n})=>se.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),P6=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=KT(),{isActive:o}=Jq(),{layoutService:i,styleService:a}=tO(),{interactions:s}=ZT(),l=i.isIndentModeEnabled&&i.indentModeFeatures.isImagesSupported,u=n&&l;let c=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const d=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...kA,...RA(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:ij({cell:e,styleService:t,isCellSelected:n}),fontWeight:aj({cell:e,styleService:t}),fontStyle:sj({cell:e,styleService:t}),textDecoration:lj({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n});if(e.representation.type===cl.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?M6:_j;return se.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:d,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:S$(e,i,n,r)})}if(e.representation.type===cl.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?I6:M$;c=se.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return se.jsx(L6,{shouldEnableStickyText:u,textStyle:{...d,...e.representation.type===cl.Image&&e.isNull?{alignSelf:ej(e)}:{}},children:c})},D6=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=tO(),{isSelected:i}=Jq(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=Fj([n]),f=w$(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=fq(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return se.jsx(hq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return se.jsxs(E$,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[se.jsxs(mq,{verticalAlign:ej(f),width:gq(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[se.jsx(pj,{isLeftColumn:a,isCellSelected:b,cell:f}),se.jsx(P6,{isLeftColumn:a,isCellSelected:b,cell:f})]}),se.jsx(Wj,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?bl.Measures:bl.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var T6=t.memo(D6,ZN);const O6=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*r():!n&&a?(a.leafCount+a.distanceToNextCell)*r():r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},z6=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},N6=(e,t)=>n=>{e.current&&(e.current[t]=n)},q6={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...CA},j6={overflow:"hidden",willChange:"auto",flexShrink:0},F6=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=KT(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=tO(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=Bz();_$(e,d),v$(e,t,n,l);const f=i.rowsOnCurrentPage*l,h={...q6,borderColor:u,width:r.reduce(((e,t)=>e+t),0)};return se.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=fO(p[u]),{itemCount:g,estimatedItemSize:b,listValues:y}=z6(t,f,i.rowsOnCurrentPage,h),x=s.isIndentModeEnabled?()=>l:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return se.jsx(UN,{ref:N6(e,u),style:{...j6,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:x,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:Tj,estimatedItemSize:b,children:T6},m)}))})};var B6=y(F6);const $6={overflow:"hidden",willChange:"auto"},W6=e=>({...CA,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),H6=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=KT(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=tO(),{gridSectionsData:{headersData:c,topDimensionData:d}}=Bz(),p={...W6(a),borderColor:l,height:r};_$(e,d),v$(e,n,r,u);const f=s.size.x*i();return 0===d.rowCount?se.jsx("div",{style:{width:n,height:r,...W6(a)}}):se.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=z6(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=g$({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?fO(g):`empty ${l}`;return se.jsx(UN,{ref:N6(e,l),style:$6,height:t(),width:n,itemCount:p,itemSize:O6({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:Tj,estimatedItemSize:h,direction:a,children:T6},b)}))})};var G6=y(H6);const V6=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=tO(),n=fN(),o=(()=>{const{model:e}=ZT(),t=f((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:i,topGridWrapperRef:a,leftGridWrapperRef:s,dataGridWrapperRef:l},gridRefs:{topGridRef:u,leftGridRef:c,dataGridRef:d},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=pN(),{leftGridWidth:y,leftGridFullWidth:x,leftGridColumnWidths:v,rightGridFullWidth:_,showLastRightBorder:w,getRightGridColumnWidth:S,getHeaderCellsIconsVisibilityStatus:C,overrideLeftGridWidth:E}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:o,styleService:i}=tO(),{gridSectionsData:{headersData:a}}=Bz(),{measureText:s}=QA(i.header),l=oN({tableWidth:e}),u=iN({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),c=l.leftGridWidth+u.rightGridFullWidth+1<e,d=f(((e,t,n="")=>{let r=e;o.isIndentModeEnabled&&(r=1,1===a.size.x&&(r=0));const i=l.leftGridColumnWidths[r];let u=!1,c=!1,d=s(n)+Wz;return t&&d+20<=i&&(c=!0,d+=20),d+20<=i&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,s,o.isIndentModeEnabled,a.size.x]);return r((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;e&&t&&n()}),[n,l.leftGridWidth,l.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...l,...u,showLastRightBorder:c,getHeaderCellsIconsVisibilityStatus:d}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:k,headerGridDims:R,topGridDims:M,leftGridDims:A,dataGridDims:I,metadata:{everyThingFitsInTableRectHeight:L,scrollbarsVisibilityStatus:P}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=fN(),{pageInfo:l}=KT(),{gridSectionsData:{headersData:u,topDimensionData:c}}=Bz(),d=Math.min(s.height*Hz,Math.max(s.height*Hz-25,s.height-t-a)),p=s.width*Hz,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,n),y=s.width-p,x=Math.max(y,s.width-b),v=Math.min(d,m,g),{availableHeight:_,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:S}=((e,t,n)=>{const r=t+1+n+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(v,b,x),C=_-d,E=Math.max(C,_-v),k=Math.min(E,f),R=Math.min(E,f),M=m+1+f,{visibilityStatus:A,metadata:{hasLeftGridOverflowX:I,hasDataGridOverflowX:L}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=i>t,d=a>n,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:x},Y_AXIS:{topSectionHeight:v,bottomSectionHeight:E}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${x}px`,gridTemplateRows:`${v}px ${E}px`},headerGridDims:{width:-1,height:v},topGridDims:{fullSizeWrapper:{width:o-i+(L?i:0),height:g},stickyWrapper:{width:x-1-i,height:-1},self:{width:Math.min(o,x)-(S?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!I&&L?a:0)},stickyWrapper:{width:b,height:E-1-a},self:{width:b,height:Math.max(t,k-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(L?i:0),height:M-g+(!L&&I?a:0)},stickyWrapper:{width:x-1-i,height:E-1-a},self:{width:Math.min(o,x)-(S?1:0)-i,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:A}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:x,rightGridOriginalWidth:_},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),D=f((()=>e),[e]),T=f((()=>t),[t]);return(()=>{const{downloadService:e}=tO();r((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),se.jsxs(mN,{style:k,children:[se.jsx("div",{style:{overflow:"hidden"},ref:i,children:se.jsx(x$,{tableWidth:n.width,leftGridWidth:y,columnWidths:v,getHeaderCellsIconsVisibilityStatus:C,rowHight:e,height:R.height,changeSortOrder:o,overrideLeftGridWidth:E})}),se.jsx(yN,{style:P.topGrid,origin:xl.TopGrid,ref:a,children:se.jsx(hN,{style:M.fullSizeWrapper,children:se.jsx(xN,{style:M.stickyWrapper,children:se.jsx(G6,{topGridRef:u,rowHightCallback:D,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:S})})})}),se.jsx(yN,{style:P.leftGrid,origin:xl.LeftGrid,ref:s,children:se.jsx(hN,{style:A.fullSizeWrapper,children:se.jsx(xN,{style:A.stickyWrapper,children:se.jsx(B6,{leftGridRef:c,...A.self,columnWidths:v,showLastBorder:{right:!1,bottom:L}})})})}),se.jsx(yN,{style:P.dataGrid,origin:xl.DataGrid,ref:l,children:se.jsx(hN,{style:I.fullSizeWrapper,children:se.jsx(xN,{style:I.stickyWrapper,children:se.jsx(qj,{dataGridRef:d,rowHightCallback:T,...I.self,showLastBorder:{right:w,bottom:L},getRightGridColumnWidth:S,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},Y6=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=ZT(),{pageInfo:o,updatePageInfo:i,rect:a}=KT(),{layoutService:s}=tO(),{layout:l,hasData:u}=s;return se.jsxs(se.Fragment,{children:[u?se.jsx(V6,{}):null,se.jsx(rO,{}),se.jsx(YT,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})},U6={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},K6=12,X6=14,J6=16,Z6=24,Q6=3,e4=300,t4=400,n4=600,r4=700,o4={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var i4='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function a4(e){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:se.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var s4=function({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return se.jsx("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})};function l4(e={}){return se.jsx(s4,{...e,children:se.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[se.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),se.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function u4(e={}){return se.jsx(s4,{fontSize:"medium",...e,children:se.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[se.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),se.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function c4(e){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:se.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function d4(e={}){return se.jsx(s4,{...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[se.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),se.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function p4(e={}){return se.jsx(s4,{fontSize:"medium",...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:se.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function f4({className:e}){return se.jsx(s4,{fontSize:"small",className:e,children:se.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:se.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:se.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:se.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[se.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),se.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function h4(e={}){return se.jsx(s4,{...e,children:se.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:se.jsx("rect",{stroke:U6.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const m4={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:Q6,"& > 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 g4=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:U6.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:U6.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:se.jsx(a4,{"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 ${U6.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,borderRadius:Q6,backgroundColor:U6.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 ${U6.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:U6.WHITE,color:U6.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:Q6},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&.Mui-focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&.Mui-focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.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:Q6,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:U6.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:U6.PURPLE,"&.Mui-focusVisible":{borderColor:U6.PURPLE,boxShadow:`0 0 0 3px ${_L(U6.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:U6.GREEN,"&.Mui-focusVisible":{borderColor:U6.GREEN,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:U6.BLUE,"&.Mui-focusVisible":{borderColor:U6.BLUE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:U6.ORANGE,"&.Mui-focusVisible":{borderColor:U6.ORANGE,boxShadow:`0 0 0 3px ${_L(U6.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:U6.RED,"&.Mui-focusVisible":{borderColor:U6.RED,boxShadow:`0 0 0 3px ${_L(U6.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:U6.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:U6.PURPLE_PALE},"&:active":{backgroundColor:U6.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:U6.PURPLE_PALE,boxShadow:`0 0 0 3px ${_L(U6.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&.Mui-focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&.Mui-focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:U6.ORANGE_PALE},"&:active":{backgroundColor:U6.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:U6.ORANGE_PALE,boxShadow:`0 0 0 3px ${_L(U6.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:U6.RED_PALE},"&:active":{backgroundColor:U6.RED_DARK},"&.Mui-focusVisible":{borderColor:U6.RED_PALE,boxShadow:`0 0 0 3px ${_L(U6.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:U6.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:U6.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Q6,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:se.jsx(c4,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:K6,borderRadius:Q6,color:U6.TEXT_PRIMARY,backgroundColor:U6.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:U6.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:U6.GREYSCALE_0_05,color:U6.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:U6.GREEN,borderColor:U6.GREEN},"&.MuiChip-outlinedInfo":{color:U6.BLUE,borderColor:U6.BLUE},"&.MuiChip-outlinedWarning":{color:U6.ORANGE,borderColor:U6.ORANGE},"&.MuiChip-outlinedError":{color:U6.RED,borderColor:U6.RED}},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Q6,boxShadow:"none",backgroundColor:U6.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:U6.GREEN,borderColor:U6.GREEN},outlinedSecondary:{color:U6.BLUE,borderColor:U6.BLUE},label:{fontFamily:o4.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:se.jsx(c4,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:se.jsx(a4,{"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:Q6},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Q6,fontSize:X6,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:U6.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${U6.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:U6.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:U6.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:U6.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Q6,border:`solid 1px ${U6.GREYSCALE_0_15}`,color:U6.GREYSCALE_0_60,marginRight:0,width:Z6,height:Z6},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${U6.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Q6,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:U6.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:X6}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:K6,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:U6.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:U6.GREYSCALE_25,fontSize:K6,fontFamily:o4.FONT_FAMILY,fontWeight:n4,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:U6.TEXT_PRIMARY},"&.Mui-error":{color:U6.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:U6.TEXT_SECONDARY,content:"'(optional)'",fontWeight:t4,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:U6.TEXT_SECONDARY,content:"'(required)'",fontWeight:t4,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:X6,lineHeight:"16px",backgroundColor:U6.WHITE,borderRadius:Q6,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_05}`,borderColor:U6.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.RED}`,boxShadow:`0px 0px 0px 1px ${U6.RED}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_10}`,borderColor:U6.GREYSCALE_0_10,backgroundColor:U6.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:U6.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:U6.GREYSCALE_0_15,borderRadius:Q6,boxShadow:`inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>se.jsx(a4,{...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:U6.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:U6.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&:focus":{backgroundColor:U6.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:U6.GREYSCALE_0_30,"&:hover":{backgroundColor:U6.GREYSCALE_0_0,borderColor:U6.GREYSCALE_0_15},"& ~svg":{color:U6.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Q6}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:U6.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:X6,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:K6,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:K6,fontWeight:n4,color:U6.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:n4}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:se.jsx(p4,{}),checkedIcon:se.jsx(u4,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:U6.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:U6.GREYSCALE_0_20}},"&.Mui-disabled":{fill:U6.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:se.jsx(h4,{}),checkedIcon:se.jsx(l4,{}),indeterminateIcon:se.jsx(d4,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Q6,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:U6.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:U6.GREYSCALE_0_55,color:U6.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:U6.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:U6.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:U6.GREYSCALE_0_55,"&:hover":{color:U6.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:U6.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:U6.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:X6,color:U6.TEXT_PRIMARY,lineHeight:"16px",fontWeight:n4},secondary:{fontSize:K6,color:U6.GREYSCALE_45,fontWeight:t4,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:X6,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:X6,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:U6.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:K6,borderBottom:`solid 1px ${U6.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:X6,color:U6.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:U6.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:U6.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${i4}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:U6.RED}}},"&.Mui-focusVisible":{backgroundColor:U6.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:U6.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:U6.GREEN,height:"24px","&.Mui-disabled":{color:U6.GREYSCALE_0_15}},rail:{backgroundColor:U6.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6,boxShadow:`inset 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.WHITE,boxShadow:`0px 1px 2px 0px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`,"&:hover":{borderRadius:Q6,boxShadow:`0 2px 4px 0 ${U6.GREYSCALE_0_30}, 0 0 0 1px ${U6.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${U6.GREYSCALE_0_15}, 0 0 0 1px ${U6.GREYSCALE_0_06}, 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${U6.GREYSCALE_0_15}, 0 0 0 1px ${U6.GREYSCALE_0_06}, 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:U6.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:U6.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:U6.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:U6.GREYSCALE_0_15},markLabel:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:U6.WHITE,color:U6.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:U6.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:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${_L(U6.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${_L(U6.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:U6.GREYSCALE_0_15,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.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:X6,fontWeight:n4,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${U6.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,backgroundColor:U6.GREYSCALE_0_03,borderRadius:Q6},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:U6.GREYSCALE_25,"&.Mui-selected":{color:U6.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:X6,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Q6,"&:hover":{backgroundColor:U6.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 ${U6.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${U6.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Q6,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:U6.GREYSCALE_0_05},"&:hover":{backgroundColor:U6.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderRight:`1px solid ${U6.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:n4,backgroundColor:U6.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:U6.GREYSCALE_98,borderBottom:`1px solid ${U6.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderTop:`1px solid ${U6.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:U6.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:U6.GREYSCALE_0_05,"&:hover":{backgroundColor:U6.GREYSCALE_0_03}},"&&:hover":{backgroundColor:U6.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>se.jsx(f4,{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 ${U6.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:X6,borderRadius:Q6,padding:"7px 16px",border:`1px solid ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_60,color:U6.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_30}`},"&:hover":{backgroundColor:U6.GREYSCALE_0_03,border:`1px solid ${U6.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:U6.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`,border:`1px solid ${U6.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:U6.GREYSCALE_25,backgroundColor:U6.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:K6,height:24,width:24,padding:7},sizeLarge:{fontSize:J6,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:X6,borderRadius:Q6}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:U6.GREYSCALE_20},tooltip:{backgroundColor:U6.GREYSCALE_20,fontSize:K6,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...m4}:{}});var b4=()=>({mode:"light",primary:{ultraLight:U6.GREEN_ULTRA_LIGHT,light:U6.GREEN_PALE,main:U6.GREEN,dark:U6.GREEN_DARK,extraDark:U6.GREEN_EXTRA_DARK,contrastText:U6.WHITE},secondary:{ultraLight:U6.BLUE_ULTRA_LIGHT,light:U6.BLUE_PALE,main:U6.BLUE,dark:U6.BLUE_DARK,extraDark:U6.BLUE_EXTRA_DARK,contrastText:U6.WHITE},error:{ultraLight:U6.RED_ULTRA_LIGHT,light:U6.RED_PALE,main:U6.RED,dark:U6.RED_DARK,extraDark:U6.RED_EXTRA_DARK,contrastText:U6.WHITE},warning:{ultraLight:U6.ORANGE_ULTRA_LIGHT,light:U6.ORANGE_PALE,main:U6.ORANGE,dark:U6.ORANGE_DARK,extraDark:U6.ORANGE_EXTRA_DARK,contrastText:U6.WHITE},success:{ultraLight:U6.GREEN_ULTRA_LIGHT,light:U6.GREEN_PALE,main:U6.GREEN,dark:U6.GREEN_DARK,extraDark:U6.GREEN_EXTRA_DARK,contrastText:U6.WHITE},info:{ultraLight:U6.BLUE_ULTRA_LIGHT,light:U6.BLUE_PALE,main:U6.BLUE,dark:U6.BLUE_DARK,extraDark:U6.BLUE_EXTRA_DARK,contrastText:U6.WHITE},text:{primary:U6.TEXT_PRIMARY,secondary:U6.TEXT_SECONDARY,disabled:U6.GREYSCALE_0_30},action:{hover:U6.GREYSCALE_0_03,hoverOpacity:.03,selected:U6.GREYSCALE_0_05,selectedOpacity:.05,focus:U6.MISC_FOCUS_BORDER},amethyst:{ultraLight:U6.WHITE,main:U6.PURPLE,light:U6.PURPLE_PALE,dark:U6.PURPLE_DARK,extraDark:U6.GREYSCALE_0_0,contrastText:U6.WHITE},background:{paper:U6.WHITE,default:U6.GREYSCALE_95},divider:U6.GREYSCALE_0_15});var y4=e=>b4();var x4=(e,t=!1)=>{const n=((e,t)=>g4(t))(0,t);return{components:n,palette:y4(e),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:X6,fontWeightLight:e4,fontWeightRegular:t4,fontWeightMedium:n4,fontWeightBold:r4,htmlFontSize:X6,fontFamily:o4.FONT_FAMILY,button:{fontWeight:n4,fontSize:X6,textTransform:"none"},body1:{fontSize:J6,lineHeight:"24px"},body2:{fontSize:X6,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Z6,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:J6,fontWeight:n4,lineHeight:"16px"},h6:{fontSize:X6,fontWeight:n4,lineHeight:"16px"},caption:{color:U6.TEXT_SECONDARY},subtitle1:{fontSize:X6,color:U6.TEXT_SECONDARY},subtitle2:{fontSize:K6,color:U6.TEXT_SECONDARY}},shape:{borderRadius:Q6}}},v4={},_4={exports:{}},w4={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(w4);var S4=w4.exports;!function(e){var t=S4.default;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}e.exports=function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=n(r);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(_4);var C4=_4.exports,E4={},k4=X(ku);Object.defineProperty(E4,"__esModule",{value:!0}),E4.hexToRgb=A4,E4.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=L4(e),n=t.values;return"#".concat(n.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},E4.hslToRgb=I4,E4.decomposeColor=L4,E4.recomposeColor=P4,E4.getContrastRatio=function(e,t){var n=D4(e),r=D4(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},E4.getLuminance=D4,E4.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return D4(e)>.5?O4(e,t):z4(e,t)},E4.fade=function(e,t){return T4(e,t)},E4.alpha=T4,E4.darken=O4,E4.lighten=z4;var R4=k4;function M4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function A4(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function I4(e){var t=(e=L4(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),P4({type:s,values:l})}function L4(e){if(e.type)return e;if("#"===e.charAt(0))return L4(A4(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,R4.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function P4(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function D4(e){var t="hsl"===(e=L4(e)).type?L4(I4(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function T4(e,t){return e=L4(e),t=M4(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,P4(e)}function O4(e,t){if(e=L4(e),t=M4(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return P4(e)}function z4(e,t){if(e=L4(e),t=M4(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return P4(e)}var N4,q4,j4,F4={},B4={exports:{}},$4={exports:{}},W4={exports:{}};function H4(){return N4||(N4=1,function(e){var t=S4.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(W4)),W4.exports}function G4(){return q4||(q4=1,function(e){var t=S4.default,n=H4();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}($4)),$4.exports}function V4(){return j4||(j4=1,function(e){var t=G4();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(B4)),B4.exports}var Y4,U4={exports:{}};function K4(){return Y4||(Y4=1,function(e){var t=Yw();e.exports=function(e,n){if(null==e)return{};var r,o,i=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(U4)),U4.exports}var X4,J4={};var Z4,Q4={};var e8,t8={},n8={};var r8,o8={};var i8,a8={};var s8,l8={};var u8,c8={};var d8,p8={};var f8,h8={};var m8,g8,b8={};function y8(){if(g8)return t8;g8=1;var e=J_;Object.defineProperty(t8,"__esModule",{value:!0}),t8.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,x=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,v=e.error,_=void 0===v?{light:l.default[300],main:l.default[500],dark:l.default[700]}:v,w=e.warning,S=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,C=e.info,E=void 0===C?{light:c.default[300],main:c.default[500],dark:c.default[700]}:C,k=e.success,R=void 0===k?{light:d.default[300],main:d.default[500],dark:d.default[700]}:k,M=e.type,A=void 0===M?"light":M,I=e.contrastThreshold,L=void 0===I?3:I,P=e.tonalOffset,D=void 0===P?.2:P,T=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:f.text.primary}var z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,D),m(e,"dark",i,D),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},q=(0,r.deepmerge)((0,t.default)({common:o.default,type:A,primary:z(b),secondary:z(x,"A400","A200","A700"),error:z(_),warning:z(S),info:z(E),success:z(R),grey:i.default,contrastThreshold:L,getContrastText:O,augmentColor:z,tonalOffset:D},N[A]),T);return q},t8.dark=t8.light=void 0;var t=e(Hw()),n=e(K4()),r=k4,o=e(function(){if(e8)return n8;e8=1,Object.defineProperty(n8,"__esModule",{value:!0}),n8.default=void 0;var e={black:"#000",white:"#fff"};return n8.default=e,n8}()),i=e(function(){if(r8)return o8;r8=1,Object.defineProperty(o8,"__esModule",{value:!0}),o8.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return o8.default=e,o8}()),a=e(function(){if(i8)return a8;i8=1,Object.defineProperty(a8,"__esModule",{value:!0}),a8.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return a8.default=e,a8}()),s=e(function(){if(s8)return l8;s8=1,Object.defineProperty(l8,"__esModule",{value:!0}),l8.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return l8.default=e,l8}()),l=e(function(){if(u8)return c8;u8=1,Object.defineProperty(c8,"__esModule",{value:!0}),c8.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return c8.default=e,c8}()),u=e(function(){if(d8)return p8;d8=1,Object.defineProperty(p8,"__esModule",{value:!0}),p8.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return p8.default=e,p8}()),c=e(function(){if(f8)return h8;f8=1,Object.defineProperty(h8,"__esModule",{value:!0}),h8.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return h8.default=e,h8}()),d=e(function(){if(m8)return b8;m8=1,Object.defineProperty(b8,"__esModule",{value:!0}),b8.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return b8.default=e,b8}()),p=E4,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},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}};t8.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.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 m(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return t8.dark=h,t8}var x8,v8={};var _8,w8={};var S8,C8={};var E8,k8={},R8=X(pd);var M8,A8={};function I8(){if(M8)return A8;M8=1;var e=J_;Object.defineProperty(A8,"__esModule",{value:!0}),A8.default=A8.duration=A8.easing=void 0;var t=e(K4()),n={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)"};A8.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}A8.duration=r;var i={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?r.standard:a,l=i.easing,u=void 0===l?n.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return A8.default=i,A8}var L8,P8,D8={};function T8(){if(P8)return F4;P8=1;var e=J_;Object.defineProperty(F4,"__esModule",{value:!0}),F4.createMuiTheme=function(){return p.apply(void 0,arguments)},F4.default=void 0,e(V4());var t=e(K4()),n=k4,r=e(function(){if(X4)return J4;X4=1;var e=J_;Object.defineProperty(J4,"__esModule",{value:!0}),J4.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof i[r[n+1]]?i[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:i,up:d,down:function(e){var t=r.indexOf(e)+1,n=i[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},J4.keys=void 0;var t=e(Hw()),n=e(K4()),r=["xs","sm","md","lg","xl"];return J4.keys=r,J4}()),o=e(function(){if(Z4)return Q4;Z4=1;var e=J_;Object.defineProperty(Q4,"__esModule",{value:!0}),Q4.default=function(e,r,o){var i;return(0,n.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,n.default)({paddingLeft:r(2),paddingRight:r(2)},o,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(V4()),n=e(Hw());return Q4}()),i=e(y8()),a=e(function(){if(x8)return v8;x8=1;var e=J_;Object.defineProperty(v8,"__esModule",{value:!0}),v8.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,y=u.fontWeightMedium,x=void 0===y?500:y,v=u.fontWeightBold,_=void 0===v?700:v,w=u.htmlFontSize,S=void 0===w?16:w,C=u.allVariants,E=u.pxToRem,k=(0,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,M=E||function(e){return"".concat(e/S*R,"rem")},A=function(e,n,r,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(n),lineHeight:r},d===s?{letterSpacing:"".concat(o(i/n),"em")}:{},a,C)},I={h1:A(m,96,1.167,-1.5),h2:A(m,60,1.2,-.5),h3:A(b,48,1.167,0),h4:A(b,34,1.235,.25),h5:A(b,24,1.334,0),h6:A(x,20,1.6,.15),subtitle1:A(b,16,1.75,.15),subtitle2:A(x,14,1.57,.1),body1:A(b,16,1.5,.15),body2:A(b,14,1.43,.15),button:A(x,14,1.75,.4,a),caption:A(b,12,1.66,.4),overline:A(b,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:S,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:x,fontWeightBold:_},I),k,{clone:!1})};var t=e(Hw()),n=e(K4()),r=k4;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return v8}()),s=e(function(){if(_8)return w8;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}_8=1,Object.defineProperty(w8,"__esModule",{value:!0}),w8.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return w8.default=t,w8}()),l=e(function(){if(S8)return C8;S8=1,Object.defineProperty(C8,"__esModule",{value:!0}),C8.default=void 0;var e={borderRadius:4};return C8.default=e,C8}()),u=e(function(){if(E8)return k8;E8=1,Object.defineProperty(k8,"__esModule",{value:!0}),k8.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=R8;return k8}()),c=e(I8()),d=e(function(){if(L8)return D8;L8=1,Object.defineProperty(D8,"__esModule",{value:!0}),D8.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return D8.default=e,D8}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,y=e.spacing,x=e.typography,v=void 0===x?{}:x,_=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),S=(0,r.default)(f),C=(0,u.default)(y),E=(0,n.deepmerge)({breakpoints:S,direction:"ltr",mixins:(0,o.default)(S,C,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,v),spacing:C,shape:l.default,transitions:c.default,zIndex:d.default},_),k=arguments.length,R=new Array(k>1?k-1:0),M=1;M<k;M++)R[M-1]=arguments[M];return E=R.reduce((function(e,t){return(0,n.deepmerge)(e,t)}),E)}var f=p;return F4.default=f,F4}var O8,z8={};var N8,q8={},j8=X(pm);var F8,B8,$8={},W8={};function H8(){if(F8)return W8;F8=1;var e=J_;Object.defineProperty(W8,"__esModule",{value:!0}),W8.default=void 0;var t=(0,e(T8()).default)();return W8.default=t,W8}var G8,V8,Y8={},U8={};function K8(){if(V8)return Y8;V8=1;var e=J_;Object.defineProperty(Y8,"__esModule",{value:!0}),Y8.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(Hw()),n=k4,r=function(){if(G8)return U8;G8=1;var e=J_;Object.defineProperty(U8,"__esModule",{value:!0}),U8.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},U8.getUnit=n,U8.toUnitless=r,U8.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},U8.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},U8.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},U8.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach((function(e){var o=r+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(V4());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return U8}();return Y8}var X8,J8={};var Z8,Q8={};var e7,t7={};var n7,r7={};!function(e){var n=J_,r=C4;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=E4;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=r(T8()),s=n(function(){if(O8)return z8;O8=1;var e=J_;Object.defineProperty(z8,"__esModule",{value:!0}),z8.default=function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=k4,n=e(T8());return z8}()),l=n(function(){if(N8)return q8;N8=1,Object.defineProperty(q8,"__esModule",{value:!0}),q8.default=function(t){return(0,e.createStyles)(t)};var e=j8;return q8}()),u=n(function(){if(B8)return $8;B8=1;var e=J_;Object.defineProperty($8,"__esModule",{value:!0}),$8.default=void 0;var t=e(Hw()),n=j8,r=e(H8()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return $8.default=o,$8}()),c=n(K8()),d=n(function(){if(X8)return J8;X8=1;var e=J_;Object.defineProperty(J8,"__esModule",{value:!0}),J8.default=void 0;var t=e(Hw()),n=j8,r=e(H8()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return J8.default=o,J8}()),p=I8();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=n(function(){if(Z8)return Q8;Z8=1;var e=J_;Object.defineProperty(Q8,"__esModule",{value:!0}),Q8.default=function(){return(0,n.useTheme)()||r.default};var n=j8;e(t);var r=e(H8());return Q8}()),h=n(function(){if(e7)return t7;e7=1;var e=J_;Object.defineProperty(t7,"__esModule",{value:!0}),t7.default=void 0;var t=e(Hw()),n=j8,r=e(H8()),o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return t7.default=o,t7}()),m=n(function(){if(n7)return r7;n7=1;var e=J_;Object.defineProperty(r7,"__esModule",{value:!0}),r7.default=void 0;var t=j8,n=e(H8()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return r7.default=r,r7}()),g=j8}(v4);var o7=Object.defineProperty,i7=(e,t)=>{for(var n in t)o7(e,n,{get:t[n],enumerable:!0})};i7({},{light:()=>a7});const a7={root:{backgroundColor:U6.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};i7({},{light:()=>s7});const s7={root:{backgroundColor:U6.WHITE}};i7({},{light:()=>l7});const l7={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${U6.GREYSCALE_0_15}`,"&$focused":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,borderRadius:Q6,backgroundColor:U6.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};i7({},{light:()=>u7});const u7={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${U6.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:U6.WHITE,color:U6.TEXT_PRIMARY}};i7({},{light:()=>c7});const c7={inputRoot:{boxSizing:"border-box",borderRadius:Q6,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:X6,height:"32px",'&[data-focus="true"]':{backgroundColor:U6.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:Q6,border:`solid 1px ${U6.GREYSCALE_0_15}`,color:U6.GREYSCALE_0_60,marginRight:0,width:Z6,height:Z6,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${U6.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:U6.GREYSCALE_25,width:J6,height:Z6,borderRadius:Q6,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:v4.alpha(U6.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:U6.GREYSCALE_0_10}};i7({},{light:()=>d7});const d7={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};i7({},{light:()=>p7});const p7={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Q6,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&$focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&$focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};i7({},{light:()=>f7});const f7={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Q6},groupedText:{padding:"8px 16px","&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:U6.GREYSCALE_0_15,backgroundColor:U6.GREYSCALE_100_60,"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&$focusVisible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:U6.GREEN_PALE},"&:active":{backgroundColor:U6.GREEN_DARK},"&$focusVisible":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:U6.BLUE_PALE},"&:active":{backgroundColor:U6.BLUE_DARK},"&$focusVisible":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}}};i7({},{light:()=>h7});const h7={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:U6.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:U6.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:Q6,boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};i7({},{light:()=>m7});const m7={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:U6.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:U6.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}}};i7({},{light:()=>g7});const g7={root:{height:"24px",fontSize:K6,borderRadius:Q6,color:U6.TEXT_PRIMARY,backgroundColor:U6.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:U6.GREYSCALE_0_05,color:U6.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:Q6,boxShadow:"none",backgroundColor:U6.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:o4.FONT_FAMILY,lineHeight:"16px"}};i7({},{light:()=>b7});const b7={root:{padding:"8px",backgroundColor:U6.GREYSCALE_98,borderTop:`1px ${U6.GREYSCALE_0_15} solid`}};i7({},{light:()=>y7});const y7={root:{padding:"24px"}};i7({},{light:()=>x7});const x7={root:{marginBottom:0}};i7({},{light:()=>v7});const v7={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:U6.GREYSCALE_98,borderBottom:`1px ${U6.GREYSCALE_0_15} solid`}};i7({},{light:()=>_7});const _7={middle:{margin:"4px 8px"}};i7({},{light:()=>w7});const w7={root:{marginLeft:"-10px"},label:{fontSize:X6}};i7({},{light:()=>S7});const S7={root:{fontSize:K6,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:U6.RED}},contained:{marginLeft:0,marginRight:0}};i7({},{light:()=>C7});const C7={root:{color:U6.GREYSCALE_25,fontSize:K6,fontFamily:o4.FONT_FAMILY,fontWeight:n4,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:U6.TEXT_PRIMARY},"&$error":{color:U6.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:U6.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:t4,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:U6.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:t4,marginLeft:"4px"}}};i7({},{light:()=>E7});const E7={root:{padding:7,borderRadius:Q6,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:U6.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};i7({},{light:()=>k7});const k7={root:{padding:"4px 8px",color:U6.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};i7({},{light:()=>R7});const R7={input:{padding:"8px 12px",lineHeight:"16px"}};i7({},{light:()=>M7});const M7={outlined:{fontSize:`${K6}px`,fontWeight:n4,color:U6.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:n4}}};i7({},{light:()=>A7});const A7={root:{color:U6.MISC_FOCUS_BORDER}};i7({},{light:()=>I7});const I7={padding:{paddingTop:"0px",paddingBottom:"0px"}};i7({},{light:()=>L7});const L7={root:{minHeight:"32px",fontSize:X6,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${i4}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:U6.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&:active":{backgroundColor:U6.GREYSCALE_0_05}}};i7({},{light:()=>P7});const P7={root:{color:U6.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};i7({},{light:()=>D7});const D7={root:{fontSize:"12px"},primary:{fontSize:X6,color:U6.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:K6,fontWeight:e4,lineHeight:"16px",color:U6.TEXT_SECONDARY}};i7({},{light:()=>T7});const T7={root:{'&[role="option"]':{color:U6.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:K6,borderBottom:`solid 1px ${U6.GREYSCALE_0_15}`,pointerEvents:"none"}}};i7({},{light:()=>O7});const O7={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:U6.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};i7({},{light:()=>z7});const z7={root:{fontSize:X6,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:U6.GREYSCALE_25}}};i7({},{light:()=>N7});const N7={root:{fontSize:X6,lineHeight:"16px",backgroundColor:U6.WHITE,borderRadius:Q6,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_05}`,borderColor:U6.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${U6.RED}`,boxShadow:`0px 0px 0px 1px ${U6.RED}, inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${U6.GREYSCALE_0_10}`,borderColor:U6.GREYSCALE_0_10,backgroundColor:U6.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:U6.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:U6.GREYSCALE_0_15,borderRadius:Q6,boxShadow:`inset 0 2px 0 0 ${U6.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};i7({},{light:()=>q7});const q7={day:{"&&&:hover":{backgroundColor:U6.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:U6.GREEN}}};i7({},{light:()=>j7});const j7={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`}};i7({},{light:()=>F7});const F7={root:{fill:U6.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}},"&$disabled":{color:U6.GREYSCALE_0_20}},"&$disabled":{fill:U6.GREYSCALE_0_20,stroke:"none"}}};i7({},{light:()=>B7});const B7={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:U6.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:U6.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:U6.GREYSCALE_0_03},"&:active":{backgroundColor:U6.GREYSCALE_0_10},"&:focus":{backgroundColor:U6.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${U6.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${U6.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:U6.GREYSCALE_0_30,"&:hover":{backgroundColor:U6.GREYSCALE_0_0,borderColor:U6.GREYSCALE_0_15},"& ~svg":{color:U6.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${U6.GREYSCALE_0_15}`}};i7({},{light:()=>$7});const $7={root:{color:U6.GREEN,height:"24px","&$disabled":{color:U6.GREYSCALE_0_15}},rail:{backgroundColor:U6.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6,boxShadow:`inset 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${U6.GREYSCALE_0_05}`,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.WHITE,boxShadow:`0px 1px 2px 0px ${U6.GREYSCALE_0_15}, 0px 0px 0px 1px ${U6.GREYSCALE_0_05}`,"&:hover":{borderRadius:Q6,boxShadow:`0 2px 4px 0 ${U6.GREYSCALE_0_30}, 0 0 0 1px ${U6.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${U6.GREYSCALE_0_15}, 0 0 0 1px ${U6.GREYSCALE_0_06}, 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:U6.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:U6.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:U6.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:U6.GREYSCALE_0_15},markLabel:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:U6.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};i7({},{light:()=>W7});const W7={root:{backgroundColor:U6.WHITE,color:U6.GREYSCALE_25}};i7({},{light:()=>H7});const H7={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:U6.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:U6.GREEN_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:U6.BLUE_PALE,boxShadow:`0 0 0 3px ${v4.alpha(U6.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:U6.GREYSCALE_0_15,borderRadius:Q6},thumb:{height:"16px",width:"16px",borderRadius:Q6,backgroundColor:U6.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};i7({},{light:()=>G7});const G7={root:{fontSize:X6,fontWeight:n4,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${U6.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${U6.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:U6.GREYSCALE_0_03,borderRadius:Q6,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:U6.GREYSCALE_25,"&$selected":{color:U6.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};i7({},{light:()=>V7});const V7={root:{borderLeft:`1px solid ${U6.GREYSCALE_85}`}};i7({},{light:()=>Y7});const Y7={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderRight:`1px solid ${U6.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:n4,backgroundColor:U6.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:U6.GREYSCALE_98,borderBottom:`1px solid ${U6.GREYSCALE_85}`}};i7({},{light:()=>U7});const U7={root:{borderBottom:`1px solid ${U6.GREYSCALE_85}`,borderTop:`1px solid ${U6.GREYSCALE_85}`}};i7({},{light:()=>K7});const K7={root:{backgroundColor:U6.GREYSCALE_98}};i7({},{light:()=>X7});const X7={hover:{"&$selected":{backgroundColor:U6.GREYSCALE_0_05,"&:hover":{backgroundColor:U6.GREYSCALE_0_03}},"&&:hover":{backgroundColor:U6.GREYSCALE_0_03}}};i7({},{light:()=>J7});const J7={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};i7({},{light:()=>Z7});const Z7={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:X6,fontWeight:"bold"},indicator:{height:2}};i7({},{light:()=>Q7});const Q7={root:{height:32,lineHeight:16,width:32,fontSize:X6,borderRadius:Q6,padding:"7px 16px",border:`1px solid ${U6.GREYSCALE_0_15}`,backgroundColor:U6.GREYSCALE_100_60,color:U6.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_30}`},"&:hover":{backgroundColor:U6.GREYSCALE_0_03,border:`1px solid ${U6.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:U6.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${U6.MISC_FOCUS_BORDER}`,border:`1px solid ${U6.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:U6.GREYSCALE_25,backgroundColor:U6.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:U6.GREYSCALE_0_10,border:`1px solid ${U6.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:K6,height:24,width:24,padding:7},sizeLarge:{fontSize:J6,height:40,width:40,lineHeight:20}};i7({},{light:()=>e9});const e9={root:{height:"32px",lineHeight:"16px",fontSize:X6,borderRadius:Q6}};i7({},{light:()=>t9});const t9={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};i7({},{light:()=>n9});const n9={arrow:{color:U6.GREYSCALE_20},tooltip:{backgroundColor:U6.GREYSCALE_20,fontSize:K6,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};function r9(e){var t;const n=((e="light",t=!1)=>x4(e,t))();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),JP({...n,direction:e})}var o9,i9,a9,s9;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(o9||(o9={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(i9||(i9={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(a9||(a9={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(s9||(s9={}));const l9=e=>e?`${parseInt(e,10)}px`:void 0,u9=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?_A.Transparent:n}},c9=(e,t)=>+(parseInt(e,10)*vA*t+8).toFixed(2),d9=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?yA:"normal",p9=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",f9=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",h9=document.createElement("textarea");function m9(e){h9.value=e,document.body.appendChild(h9),h9.select(),h9.setSelectionRange(0,h9.value.length),document.execCommand("copy"),document.body.removeChild(h9)}h9.style.position="absolute",h9.style.left="-9999px",h9.setAttribute("readonly","");function g9(e){null==A||A(((t,n)=>{const r=n.target,o=null==r?void 0:r.closest(`.${Zi}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>{m9(n)})):m9(n))})(o)}}),null==e||e.forEach((e=>{e(t,n,o)}))}))}const b9=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>$A(((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(oO,0,0,!0),await e.expandLeft(oO,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=r?r:""]),tid:"expand-dimension",select:o$({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:t$.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(oO,0,0,!0),await e.collapseLeft(oO,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=r?r:""]),tid:"collapse-dimension",select:o$({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:t$.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))}),[e,t,n]),y9=(e,t)=>w((()=>(({layout:e,flags:t})=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:s,snapshotData:l}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!l,h=null!==(n=null==l||null===(r=l.content)||void 0===r?void 0:r.rowsPerPage)&&void 0!==n?n:15e3,m={x:Math.min(e.qHyperCube.qSize.qcx,xA),y:Math.min(e.qHyperCube.qSize.qcy,h)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),y=b(iO),x=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:iO,e]}))),v=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==s?void 0:s.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(y)return 0;const n=e%v.length;return t?n:d.findIndex((e=>e===v[n]))},getDimensionInfo:e=>e===iO?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=x.get(e))&&void 0!==t?t:-1},size:m,isSnapshot:f,hasLimitedData:!f&&m.x<e.qHyperCube.qSize.qcx,hasData:m.x>0&&m.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:y,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeFeatures:{isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:na.Auto,pixels:ta.PixelsDefault,percentage:ta.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),x9=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=HA(e);return t.current=e,t})(Oz(o));return XA((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,o,u)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:s}}=e,{qTop:l,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return l<t.page*t.rowsPerPage||u<Math.min(r,s.qcx)||c<Math.min(n,s.qcy)})(i,r,o,u))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(xA,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),n>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,n,i.qHyperCube.qSize,r,o,u);return t?e.getHyperCubePivotData(oO,zz(t)):[]}return t.qPivotDataPages}),[i,a,e,n,r.page,r.rowsPerPage,l,s])},v9=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),_9=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:v9({rowsPerPage:n,totalRowCount:e,page:t})}),w9=15,S9=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return I((async e=>{const i=e;if(!i.snapshotData||!r||i.snapshotData.content)return i;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-w9,0),u=Math.max(s+o-w9,s,0),c=xA-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Oz(n);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,n),c=zz(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(oO,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=n.width,i.snapshotData.object.size.h=n.height}return i})),L((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var C9={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const E9=()=>{const e=P(),t=e.language();return w((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(C9).forEach((t=>{e.add(C9[t])}))}(e)}),[e]),{translator:e,language:t}},k9=e=>{const{flags:n}=e,r=D(),o=(e=>{const t=w((()=>eI(e)),[e]);return k((()=>()=>{t.unmount()}),[t]),t})(r),i=T(),a=O(),s=z(),l=N(),u=q(),c=GA(),d=((e,t)=>{const[n]=XA((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]),r=w((()=>{var e,t;const r=void 0!==(null==n?void 0:n.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==n?void 0:n.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==n?void 0:n.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:r,getSortCriteriaForDimension:e=>o[e]}}),[n]);return r})(a,i),p=y9(i,n),f=(e=>{const t=M();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=j(),m=KA(i,r),{translator:g,language:b}=E9(),{pageInfo:y,updatePageInfo:x}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,s]=E((()=>{const a=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:r.qcy>n.y&&!o,..._9(r.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return k((()=>{s((t=>({...t,..._9(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),k((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=v9({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:v9({...a,...e})})}}})(p,c),v=((e,t,n)=>w((()=>((e,t)=>{var n,r,o,i,a,s,l,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(l=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==l?l:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(y,i,c),_=S9({rect:F(),layoutService:p,viewService:v,model:a,pageInfo:y}),[C,R]=x9({model:a,layoutService:p,viewService:v,pageInfo:y,rect:_}),A=w((()=>((e,t,n)=>{var r,o,i,a,s,l,u,c,d,p,f,h,m,g,b,y,x,v,_,w,S,C,E,k,R,M,A,I,L,P,D,T,O,z,N,q,j,F,B,$,W,H,G,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[o9.LineClamp])&&void 0!==i?i:oe(i9.Grid,a9.Grid,s9.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(s=null==re?void 0:re[o9.ColumnLineClamp])&&void 0!==s?s:oe(i9.Grid,a9.Grid,s9.ColumnLineClamp))&&void 0!==a?a:1):1,se=null!==(l=null!==(u=u9(e,null==J?void 0:J[o9.Background]))&&void 0!==u?u:oe(i9.Dimension,a9.LabelName,s9.BackgroundColor))&&void 0!==l?l:_A.Transparent,le={header:{fontSize:null!==(c=null!==(d=l9(null==J?void 0:J[o9.FontSize]))&&void 0!==d?d:oe(i9.Dimension,a9.LabelName,s9.FontSize))&&void 0!==c?c:gA,fontFamily:null!==(p=null!==(f=null==J?void 0:J[o9.FontFamily])&&void 0!==f?f:oe(i9.Dimension,a9.LabelName,s9.FontFamily))&&void 0!==p?p:bA,fontWeight:d9(null==J?void 0:J[o9.FontStyle],yA),fontStyle:p9(null==J?void 0:J[o9.FontStyle]),textDecoration:f9(null==J?void 0:J[o9.FontStyle]),color:null!==(h=null!==(m=u9(e,null==J?void 0:J[o9.FontColor]))&&void 0!==m?m:oe(i9.Dimension,a9.LabelName,s9.FontColor))&&void 0!==h?h:AR.TEXT,background:se,hoverBackground:oA(se,ra),activeBackground:oA(se,oa)},dimensionValues:{fontSize:null!==(g=null!==(b=l9(null==Z?void 0:Z[o9.FontSize]))&&void 0!==b?b:oe(i9.Dimension,a9.LabelValue,s9.FontSize))&&void 0!==g?g:gA,fontFamily:null!==(y=null!==(x=null==Z?void 0:Z[o9.FontFamily])&&void 0!==x?x:oe(i9.Dimension,a9.LabelValue,s9.FontFamily))&&void 0!==y?y:bA,fontWeight:d9(null==Z?void 0:Z[o9.FontStyle],void 0),fontStyle:p9(null==Z?void 0:Z[o9.FontStyle]),textDecoration:f9(null==Z?void 0:Z[o9.FontStyle]),color:null!==(v=null!==(_=u9(e,null==Z?void 0:Z[o9.FontColor]))&&void 0!==_?_:oe(i9.Dimension,a9.LabelValue,s9.FontColor))&&void 0!==v?v:AR.TEXT,background:null!==(w=null!==(S=u9(e,null==Z?void 0:Z[o9.Background]))&&void 0!==S?S:oe(i9.Dimension,a9.LabelValue,s9.BackgroundColor))&&void 0!==w?w:_A.Transparent},measureValues:{fontSize:null!==(C=null!==(E=l9(null==Q?void 0:Q[o9.FontSize]))&&void 0!==E?E:oe(i9.Measure,a9.LabelValue,s9.FontSize))&&void 0!==C?C:gA,fontFamily:null!==(k=null!==(R=null==Q?void 0:Q[o9.FontFamily])&&void 0!==R?R:oe(i9.Measure,a9.LabelValue,s9.FontFamily))&&void 0!==k?k:bA,fontWeight:d9(null==Q?void 0:Q[o9.FontStyle],"normal"),fontStyle:p9(null==Q?void 0:Q[o9.FontStyle]),textDecoration:f9(null==Q?void 0:Q[o9.FontStyle]),color:null!==(M=null!==(A=u9(e,null==Q?void 0:Q[o9.FontColor]))&&void 0!==A?A:oe(i9.Measure,a9.LabelValue,s9.FontColor))&&void 0!==M?M:_A.FontSecondary,background:null!==(I=null!==(L=u9(e,null==Q?void 0:Q[o9.Background]))&&void 0!==L?L:oe(i9.Measure,a9.LabelValue,s9.BackgroundColor))&&void 0!==I?I:_A.Transparent},measureLabels:{fontWeight:d9(null==ee?void 0:ee[o9.FontStyle],"normal"),fontStyle:p9(null==ee?void 0:ee[o9.FontStyle]),textDecoration:f9(null==ee?void 0:ee[o9.FontStyle]),color:null!==(P=null!==(D=u9(e,null==ee?void 0:ee[o9.FontColor]))&&void 0!==D?D:oe(i9.Measure,a9.LabelName,s9.FontColor))&&void 0!==P?P:_A.FontSecondary,background:null!==(T=null!==(O=u9(e,null==ee?void 0:ee[o9.Background]))&&void 0!==O?O:oe(i9.Measure,a9.LabelName,s9.BackgroundColor))&&void 0!==T?T:_A.Transparent},totalValues:{fontWeight:d9(null==te?void 0:te[o9.FontStyle],yA),fontStyle:p9(null==te?void 0:te[o9.FontStyle]),textDecoration:f9(null==te?void 0:te[o9.FontStyle]),color:null!==(z=null!==(N=u9(e,null==te?void 0:te[o9.FontColor]))&&void 0!==N?N:oe(i9.Total,a9.LabelValue,s9.FontColor))&&void 0!==z?z:AR.TEXT,background:null!==(q=null!==(j=u9(e,null==te?void 0:te[o9.Background]))&&void 0!==j?j:oe(i9.Total,a9.LabelValue,s9.BackgroundColor))&&void 0!==q?q:_A.Transparent},nullValues:{fontWeight:d9(null==ne?void 0:ne[o9.FontStyle],"normal"),fontStyle:p9(null==ne?void 0:ne[o9.FontStyle]),textDecoration:f9(null==ne?void 0:ne[o9.FontStyle]),color:null!==(F=null!==(B=u9(e,null==ne?void 0:ne[o9.FontColor]))&&void 0!==B?B:oe(i9.Null,a9.LabelValue,s9.FontColor))&&void 0!==F?F:AR.TEXT,background:null!==($=null!==(W=u9(e,null==ne?void 0:ne[o9.Background]))&&void 0!==W?W:oe(i9.Null,a9.LabelValue,s9.BackgroundColor))&&void 0!==$?$:_A.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(G=u9(e,null==re?void 0:re[o9.Border]))&&void 0!==G?G:oe(i9.Grid,a9.Grid,s9.BorderColor))&&void 0!==H?H:_A.DividerLight,divider:null!==(V=null!==(Y=u9(e,null==re?void 0:re[o9.Divider]))&&void 0!==Y?Y:oe(i9.Grid,a9.Divider,s9.BorderColor))&&void 0!==V?V:_A.DividerDark,background:null!==(U=null!==(K=u9(e,null==re?void 0:re[o9.Background]))&&void 0!==K?K:oe(i9.Grid,a9.Grid,s9.BackgroundColor))&&void 0!==U?U:_A.Transparent},selectedColors:rA(e)};return le.headerCellHeight=Math.max(c9(le.header.fontSize,ae),c9(le.dimensionValues.fontSize,ae),32),le.contentCellHeight=Math.max(c9(le.measureValues.fontSize,ie),c9(le.dimensionValues.fontSize,ie),24),le.dimensionValueTextHeight=c9(le.dimensionValues.fontSize,1),le})(m,p,n)),[m,p,n]),I=((e,t,n)=>{const[,r,o]=XA((async()=>{var t;const r=UR(n.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...r,...s,o,i,a,nI].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(m,i,e),L=S(),P=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?L.direction:"ltr";g9([b9({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),k((()=>{!R&&a&&!!C&&I&&((e,{selections:n,baseObjects:r,coreServices:o,nebulaObjects:i})=>{const a=r9(r.direction);e.render(se.jsx(t.StrictMode,{children:se.jsx(ED,{theme:a,children:se.jsx(QT,{...i,children:se.jsx(XT,{...r,children:se.jsx(Zq,{selections:n,children:se.jsx(nO,{...o,children:se.jsx($z,{children:se.jsx(Y6,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:_,pageInfo:y,qPivotDataPages:C,updatePageInfo:x,direction:P},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:A,viewService:v,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,_,f,h,v,p,c,R,C,A,o,I,g,b,y,x,d,l,u,m,e,P])},R9={version:"6.0.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};function M9(e){return{qae:{properties:{initial:{...R9,qHyperCubeDef:{...R9.qHyperCubeDef,qIndentMode:!1}}},data:tl(e)},ext:FA(e),component(){k9(e)}}}export{M9 as default};