@nebula.js/sn-tabbed-container 2.15.0 → 2.16.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/api-specification/sn-tabbed-container.json +144 -172
- package/api-specification/spec.json +1 -1
- package/core/esm/index.js +2 -2
- package/dist/sn-tabbed-container.js +2 -2
- package/dist/sn-tabbed-container.systemjs.js +3 -3
- package/package.json +13 -12
- package/sn-tabbed-container-ext/dist/sn-tabbed-container.js +2 -2
- package/sn-tabbed-container-ext/sn-tabbed-container.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-tabbed-container v2.
|
|
2
|
+
* @nebula.js/sn-tabbed-container v2.16.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -86,4 +86,4 @@ import{useOptions as e,useEffect as t,onTakeSnapshot as n,useKeyboard as r,useMe
|
|
|
86
86
|
}
|
|
87
87
|
`),Xa.rippleVisible,rs,550,({theme:e})=>e.transitions.easing.easeInOut,Xa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xa.child,Xa.childLeaving,os,550,({theme:e})=>e.transitions.easing.easeInOut,Xa.childPulsate,is,({theme:e})=>e.transitions.easing.easeInOut),ls=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=U(n,Za),[s,l]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=v.useRef(!1),p=eo(),h=v.useRef(null),f=v.useRef(null),m=v.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Ht.jsx(ss,{classes:{ripple:vr(o.ripple,Xa.ripple),rippleVisible:vr(o.rippleVisible,Xa.rippleVisible),ripplePulsate:vr(o.ripplePulsate,Xa.ripplePulsate),child:vr(o.child,Xa.child),childLeaving:vr(o.childLeaving,Xa.childLeaving),childPulsate:vr(o.childPulsate,Xa.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),b=v.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,b;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)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=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;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:b,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:b,cb:n})},[r,m,p]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),y=v.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,()=>{y(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return v.useImperativeHandle(t,()=>({pulsate:g,start:b,stop:y}),[g,b,y]),Ht.jsx(as,H({className:vr(Xa.root,o.root,i),ref:f},a,{children:Ht.jsx(Ha,{component:null,exit:!0,children:s})}))});function us(e){return Cr("MuiButtonBase",e)}const cs=Dr("MuiButtonBase",["root","disabled","focusVisible"]),ds=["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"],ps=sa("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"},[`&.${cs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hs=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:y,onKeyDown:E,onKeyUp:C,onMouseDown:D,onMouseLeave:x,onMouseUp:A,onTouchEnd:S,onTouchMove:w,onTouchStart:R,tabIndex:F=0,TouchRippleProps:_,touchRippleRef:k,type:I}=n,B=U(n,ds),L=v.useRef(null),T=v.useRef(null),P=Xr(T,k),{isFocusVisibleRef:O,onFocus:M,onBlur:j,ref:N}=uo(),[$,z]=v.useState(!1);l&&$&&z(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{z(!0),L.current.focus()}}),[]);const[G,V]=v.useState(!1);v.useEffect(()=>{V(!0)},[]);const W=G&&!u&&!l;function q(e,t,n=c){return Kr(r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0})}v.useEffect(()=>{$&&d&&!u&&G&&T.current.pulsate()},[u,d,$,G]);const Y=q("start",D),K=q("stop",m),X=q("stop",b),Z=q("stop",A),J=q("stop",e=>{$&&e.preventDefault(),x&&x(e)}),Q=q("start",R),ee=q("stop",S),te=q("stop",w),ne=q("stop",e=>{j(),!1===O.current&&z(!1),h&&h(e)},!1),re=Kr(e=>{L.current||(L.current=e.currentTarget),M(e),!0===O.current&&(z(!0),y&&y(e)),g&&g(e)}),oe=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=v.useRef(!1),ae=Kr(e=>{d&&!ie.current&&$&&T.current&&" "===e.key&&(ie.current=!0,T.current.stop(e,()=>{T.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))}),se=Kr(e=>{d&&" "===e.key&&T.current&&$&&!e.defaultPrevented&&(ie.current=!1,T.current.stop(e,()=>{T.current.pulsate(e)})),C&&C(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)});let le=s;"button"===le&&(B.href||B.to)&&(le=p);const ue={};"button"===le?(ue.type=void 0===I?"button":I,ue.disabled=l):(B.href||B.to||(ue.role="button"),l&&(ue["aria-disabled"]=l));const ce=Xr(t,N,L),de=H({},n,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:F,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=mo({root:["root",t&&"disabled",n&&"focusVisible"]},us,o);return n&&r&&(i.root+=` ${r}`),i})(de);return Ht.jsxs(ps,H({as:le,className:vr(pe.root,a),ownerState:de,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:Y,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:ce,tabIndex:l?-1:F,type:I},ue,B,{children:[i,W?Ht.jsx(ls,H({ref:P,center:o},_)):null]}))});function fs(e){return Cr("MuiTypography",e)}Dr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ms=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bs=sa("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${un(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>H({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})),gs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ys=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiTypography"}),r=(e=>vs[e]||e)(n.color),o=hr(H({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=gs}=o,h=U(o,ms),f=H({},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]||gs[d])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return mo({root:["root",i,"inherit"!==e.align&&`align${un(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},fs,a)})(f);return Ht.jsx(bs,H({as:m,ref:t,ownerState:f,className:vr(b.root,a)},h))});const Es=v.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=v.useState(null),s=Xr(v.isValidElement(n)?Co(n):null,t);if(Or(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Or(()=>{if(i&&!o)return Vr(t,i),()=>{Vr(t,null)}},[t,i,o]),o){if(v.isValidElement(n)){const e={ref:s};return v.cloneElement(n,e)}return Ht.jsx(v.Fragment,{children:n})}return Ht.jsx(v.Fragment,{children:i?B.createPortal(n,i):i})}),Cs=["onChange","maxRows","minRows","style","value"];function Ds(e){return parseInt(e,10)||0}const xs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function As(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ss=v.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=U(e,Cs),{current:l}=v.useRef(null!=a),u=v.useRef(null),c=Xr(t,u),d=v.useRef(null),p=v.useRef(null),h=v.useCallback(()=>{const t=u.current,n=p.current;if(!t||!n)return;const i=Ur(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Ds(i.paddingBottom)+Ds(i.paddingTop),l=Ds(i.borderBottomWidth)+Ds(i.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let h=c;o&&(h=Math.max(Number(o)*d,h)),r&&(h=Math.min(Number(r)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-c)<=1}},[r,o,e.placeholder]),f=Kr(()=>{const e=u.current,t=h();if(!e||!t||As(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=v.useCallback(()=>{const e=u.current,t=h();if(!e||!t||As(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=v.useRef(-1);Or(()=>{const e=Gr(m),t=null==u?void 0:u.current;if(!t)return;const n=Ur(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{f()&&(r.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,m,f]),Or(()=>{m()});return Ht.jsxs(v.Fragment,{children:[Ht.jsx("textarea",H({value:a,onChange:e=>{l||m(),n&&n(e)},ref:c,rows:o,style:i},s)),Ht.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:H({},xs,i,{paddingTop:0,paddingBottom:0})})]})});const ws=v.createContext(void 0);function Rs(){return v.useContext(ws)}function Fs(e){return Ht.jsx(dr,H({},e,{defaultTheme:Vi,themeId:G}))}function _s(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ks(e){return Cr("MuiInputBase",e)}const Is=Dr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Bs=["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"],Ls=sa("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(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${un(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>H({},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",[`&.${Is.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&H({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ts=sa("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(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]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=H({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 H({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] + .${Is.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},[`&.${Is.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"})}),Ps=Ht.jsx(Fs,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Os=v.forwardRef(function(e,t){var n;const r=Da({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:y,maxRows:E,minRows:C,multiline:D=!1,name:x,onBlur:A,onChange:S,onClick:w,onFocus:R,onKeyDown:F,onKeyUp:_,placeholder:k,readOnly:I,renderSuffix:B,rows:L,slotProps:T={},slots:P={},startAdornment:O,type:M="text",value:j}=r,N=U(r,Bs),z=null!=g.value?g.value:j,{current:G}=v.useRef(null!=z),V=v.useRef(),W=v.useCallback(e=>{},[]),q=Xr(V,y,g.ref,W),[Y,K]=v.useState(!1),X=Rs(),Z=function({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),{})}({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:Y,v.useEffect(()=>{!X&&d&&Y&&(K(!1),A&&A())},[X,d,Y,A]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=v.useCallback(e=>{!function(e,t=!1){return e&&(_s(e.value)&&""!==e.value||t&&_s(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);Or(()=>{G&&ee({value:z})},[z,ee,G]);v.useEffect(()=>{ee(V.current)},[]);let te=b,ne=g;D&&"input"===te&&(ne=H(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:E,minRows:C},ne),te=Ss);v.useEffect(()=>{X&&X.setAdornedStart(Boolean(O))},[X,O]);const re=H({},r,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:D,size:Z.size,startAdornment:O,type:M}),oe=(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:h,type:f}=e;return mo({root:["root",`color${un(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${un(p)}`,c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},ks,t)})(re),ie=P.root||l.Root||Ls,ae=T.root||u.root||{},se=P.input||l.Input||Ts;return ne=H({},ne,null!=(n=T.input)?n:u.input),Ht.jsxs(v.Fragment,{children:[!p&&Ps,Ht.jsxs(ie,H({},ae,!bo(ie)&&{ownerState:H({},re,ae.ownerState)},{ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),w&&w(e)}},N,{className:vr(oe.root,ae.className,s,I&&"MuiInputBase-readOnly"),children:[O,Ht.jsx(ws.Provider,{value:null,children:Ht.jsx(se,H({ownerState:re,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:x,placeholder:k,readOnly:I,required:Z.required,rows:L,value:z,onKeyDown:F,onKeyUp:_,type:M},ne,!bo(se)&&{as:te,ownerState:H({},re,ne.ownerState)},{ref:q,className:vr(oe.input,ne.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{A&&A(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||V.current;if(null==t)throw new Error($(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),S&&S(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(R&&R(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,B?B(H({},Z,{startAdornment:O})):null]}))]})}),Ms=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],js={entering:{opacity:1},entered:{opacity:1}},Ns=v.forwardRef(function(e,t){const n=Wi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=Ma}=e,y=U(e,Ms),E=v.useRef(null),C=Xr(E,Co(a),t),D=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},x=D(d),A=D((e,t)=>{Ua(e);const r=Va({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),S=D(c),w=D(f),R=D(e=>{const t=Va({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),F=D(h);return Ht.jsx(g,H({appear:i,in:l,nodeRef:E,onEnter:A,onEntered:S,onEntering:x,onExit:R,onExited:F,onExiting:w,addEndListener:e=>{o&&o(E.current,e)},timeout:b},y,{children:(e,t)=>v.cloneElement(a,H({style:H({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},js[e],m,a.props.style),ref:C},t))}))});function $s(e){return Cr("MuiBackdrop",e)}Dr("MuiBackdrop",["root","invisible"]);const zs=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gs=sa("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>H({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"})),Hs=v.forwardRef(function(e,t){var n,r,o;const i=Da({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Ns,transitionDuration:b}=i,g=U(i,zs),v=H({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return mo({root:["root",n&&"invisible"]},$s,t)})(v),E=null!=(n=h.root)?n:c.root;return Ht.jsx(m,H({in:p,timeout:b},g,{children:Ht.jsx(Gs,H({"aria-hidden":!0},E,{as:null!=(r=null!=(o=f.root)?o:u.Root)?r:l,className:vr(y.root,s,null==E?void 0:E.className),ownerState:H({},v,null==E?void 0:E.ownerState),classes:y,ref:t,children:a}))}))}),Us=Dr("MuiBox",["root"]),Vs=Ui(),Ws=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Wt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nr);return v.forwardRef(function(e,a){const s=ur(n),l=hr(e),{className:u,component:c="div"}=l,d=U(l,yr);return Ht.jsx(i,H({as:c,ref:a,className:vr(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:G,defaultTheme:Vs,defaultClassName:Us.root,generateClassName:br.generate});function qs(e){return Cr("MuiButton",e)}const Ys=Dr("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"]),Ks=v.createContext({}),Xs=v.createContext(void 0),Zs=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Js=e=>H({},"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}}),Qs=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${un(n.color)}`],t[`size${un(n.size)}`],t[`${n.variant}Size${un(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 H({},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":H({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Uo.alpha(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})`:Uo.alpha(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})`:Uo.alpha(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":H({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ys.focusVisible}`]:H({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ys.disabled}`]:H({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 ${Uo.alpha(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"},[`&.${Ys.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ys.disabled}`]:{boxShadow:"none"}}),el=sa("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${un(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Js(e))),tl=sa("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${un(n.size)}`]]}})(({ownerState:e})=>H({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Js(e))),nl=v.forwardRef(function(e,t){const n=v.useContext(Ks),r=v.useContext(Xs),o=Da({props:Pr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:y="text"}=o,E=U(o,Zs),C=H({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:f,size:m,type:g,variant:y}),D=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return H({},a,mo({root:["root",i,`${i}${un(t)}`,`size${un(o)}`,`${i}Size${un(o)}`,`color${un(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${un(o)}`],endIcon:["icon","endIcon",`iconSize${un(o)}`]},qs,a))})(C),x=b&&Ht.jsx(el,{className:D.startIcon,ownerState:C,children:b}),A=p&&Ht.jsx(tl,{className:D.endIcon,ownerState:C,children:p}),S=r||"";return Ht.jsxs(Qs,H({ownerState:C,className:vr(n.className,D.root,l,S),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:vr(D.focusVisible,h),ref:t,type:g},E,{classes:D,children:[x,i,A]}))});function rl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ol(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function il(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&&rl(e,o)})}function al(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function sl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Hr(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=co(Hr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ol(r)+e}px`;const t=Hr(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ol(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Hr(r).body;else{const t=r.parentElement,n=Ur(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 ll=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ul(e){const t=[],n=[];return Array.from(e.querySelectorAll(ll)).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 cl(){return!0}function dl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ul,isEnabled:a=cl,open:s}=e,l=v.useRef(!1),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),p=v.useRef(null),h=v.useRef(!1),f=v.useRef(null),m=Xr(Co(t),f),b=v.useRef(null);v.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),v.useEffect(()=>{if(!s||!f.current)return;const e=Hr(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),v.useEffect(()=>{if(!s||!f.current)return;const e=Hr(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0};return Ht.jsxs(v.Fragment,{children:[Ht.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Ht.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:c,"data-testid":"sentinelEnd"})]})}const pl=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&&rl(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);il(t,e.mount,e.modalRef,r,!0);const o=al(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=al(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=sl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=al(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&&rl(e.modalRef,t),il(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&&rl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function hl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=pl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=v.useRef({}),h=v.useRef(null),f=v.useRef(null),m=Xr(f,d),[b,g]=v.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let E=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(E=!1);const C=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),D=()=>{o.mount(C(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=Kr(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hr(h.current).body;o.add(C(),e),f.current&&D()}),A=v.useCallback(()=>o.isTopModal(C()),[o]),S=Kr(e=>{h.current=e,e&&(c&&A()?D():f.current&&rl(f.current,E))}),w=v.useCallback(()=>{o.remove(C(),E)},[E,o]);v.useEffect(()=>()=>{w()},[w]),v.useEffect(()=>{c?x():y&&i||w()},[c,w,y,i,x]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},F=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=go(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=H({},n,t);return H({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>H({"aria-hidden":!0},e,{onClick:F(e),open:c}),getTransitionProps:()=>({onEnter:zr(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:zr(()=>{g(!0),s&&s(),i&&w()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:S,isTopModal:A,exited:b,hasTransition:y}}function fl(e){return Cr("MuiModal",e)}Dr("MuiModal",["root","hidden","backdrop"]);const ml=["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"],bl=sa("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})=>H({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gl=sa(Hs,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vl=v.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Da({name:"MuiModal",props:e}),{BackdropComponent:u=gl,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:D=!1,disableRestoreFocus:x=!1,disableScrollLock:A=!1,hideBackdrop:S=!1,keepMounted:w=!1,onBackdropClick:R,open:F,slotProps:_,slots:k}=l,I=U(l,ml),B=H({},l,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:D,disableRestoreFocus:x,disableScrollLock:A,hideBackdrop:S,keepMounted:w}),{getRootProps:L,getBackdropProps:T,getTransitionProps:P,portalRef:O,isTopModal:M,exited:j,hasTransition:N}=hl(H({},B,{rootRef:t})),$=H({},B,{exited:j}),z=(e=>{const{open:t,exited:n,classes:r}=e;return mo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fl,r)})($),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),N){const{onEnter:e,onExited:t}=P();G.onEnter=e,G.onExited=t}const V=null!=(n=null!=(r=null==k?void 0:k.root)?r:b.Root)?n:bl,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:b.Backdrop)?o:u,q=null!=(a=null==_?void 0:_.root)?a:g.root,Y=null!=(s=null==_?void 0:_.backdrop)?s:g.backdrop,K=Eo({elementType:V,externalSlotProps:q,externalForwardedProps:I,getSlotProps:L,additionalProps:{ref:t,as:m},ownerState:$,className:vr(d,null==q?void 0:q.className,null==z?void 0:z.root,!$.open&&$.exited&&(null==z?void 0:z.hidden))}),X=Eo({elementType:W,externalSlotProps:Y,additionalProps:c,getSlotProps:e=>T(H({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vr(null==Y?void 0:Y.className,null==c?void 0:c.className,null==z?void 0:z.backdrop),ownerState:$});return w||F||N&&!j?Ht.jsx(Es,{ref:O,container:f,disablePortal:D,children:Ht.jsxs(V,H({},K,{children:[!S&&u?Ht.jsx(W,H({},X)):null,Ht.jsx(dl,{disableEnforceFocus:E,disableAutoFocus:y,disableRestoreFocus:x,isEnabled:M,open:F,children:v.cloneElement(h,G)})]}))}):null});function yl(e){return Cr("MuiDivider",e)}const El=Dr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Dl=sa("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})=>H({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)`:Uo.alpha(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})=>H({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>H({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>H({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>H({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xl=sa("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>H({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)`})),Al=v.forwardRef(function(e,t){const n=Da({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,h=U(n,Cl),f=H({},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 mo({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"]},yl,r)})(f);return Ht.jsx(Dl,H({as:a,className:vr(m.root,i),role:c,ref:t,ownerState:f},h,{children:o?Ht.jsx(xl,{className:m.wrapper,ownerState:f,children:o}):null}))});Al.muiSkipListHighlight=!0;const Sl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function wl(e){return`scale(${e}, ${e**2})`}const Rl={entering:{opacity:1,transform:wl(1)},entered:{opacity:1,transform:"none"}},Fl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_l=v.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Ma}=e,b=U(e,Sl),g=eo(),y=v.useRef(),E=Wi(),C=v.useRef(null),D=Xr(C,Co(o),t),x=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},A=x(u),S=x((e,t)=>{Ua(e);const{duration:n,delay:r,easing:o}=Va({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=E.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[E.transitions.create("opacity",{duration:a,delay:r}),E.transitions.create("transform",{duration:Fl?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),w=x(l),R=x(p),F=x(e=>{const{duration:t,delay:n,easing:r}=Va({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=E.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[E.transitions.create("opacity",{duration:o,delay:n}),E.transitions.create("transform",{duration:Fl?o:.666*o,delay:Fl?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=wl(.75),c&&c(e)}),_=x(d);return Ht.jsx(m,H({appear:r,in:a,nodeRef:C,onEnter:S,onEntered:w,onEntering:A,onExit:F,onExited:_,onExiting:R,addEndListener:e=>{"auto"===f&&g.start(y.current||0,e),n&&n(C.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>v.cloneElement(o,H({style:H({opacity:0,transform:wl(.75),visibility:"exited"!==e||a?void 0:"hidden"},Rl[e],h,o.props.style),ref:D},t))}))});function kl(e){return Cr("MuiInputAdornment",e)}_l.muiSupportAuto=!0;const Il=Dr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Bl;const Ll=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Tl=sa("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${un(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>H({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Il.positionStart}&:not(.${Il.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Pl=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:u}=n,c=U(n,Ll),d=Rs()||{};let p=u;u&&d.variant,d&&!p&&(p=d.variant);const h=H({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return mo({root:["root",n&&"disablePointerEvents",o&&`position${un(o)}`,a,r&&"hiddenLabel",i&&`size${un(i)}`]},kl,t)})(h);return Ht.jsx(ws.Provider,{value:null,children:Ht.jsx(Tl,H({as:i,ownerState:h,className:vr(f.root,o),ref:t},c,{children:"string"!=typeof r||s?Ht.jsxs(v.Fragment,{children:["start"===l?Bl||(Bl=Ht.jsx("span",{className:"notranslate",children:""})):null,r]}):Ht.jsx(ys,{color:"text.secondary",children:r})}))})}),Ol=v.createContext({});function Ml(e){return Cr("MuiList",e)}Dr("MuiList",["root","padding","dense","subheader"]);const jl=["children","className","component","dense","disablePadding","subheader"],Nl=sa("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})=>H({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$l=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,u=U(n,jl),c=v.useMemo(()=>({dense:a}),[a]),d=H({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mo({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Ml,t)})(d);return Ht.jsx(Ol.Provider,{value:c,children:Ht.jsxs(Nl,H({as:i,className:vr(p.root,o),ref:t,ownerState:d},u,{children:[l,r]}))})});function zl(e){return Cr("MuiListItem",e)}const Gl=Dr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Hl(e){return Cr("MuiListItemButton",e)}const Ul=Dr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Vl=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Wl=sa(hs,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>H({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ul.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ul.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ul.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(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})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ul.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ul.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),ql=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:p}=n,h=U(n,Vl),f=v.useContext(Ol),m=v.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=v.useRef(null);Or(()=>{o&&b.current&&b.current.focus()},[o]);const g=H({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return H({},n,mo({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Hl,n))})(g),E=Xr(b,t);return Ht.jsx(Ol.Provider,{value:m,children:Ht.jsx(Wl,H({ref:E,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:vr(y.focusVisible,c),ownerState:g,className:vr(y.root,p)},h,{classes:y,children:a}))})});function Yl(e){return Cr("MuiListItemSecondaryAction",e)}Dr("MuiListItemSecondaryAction",["root","disableGutters"]);const Kl=["className"],Xl=sa("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>H({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Zl=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=U(n,Kl),i=H({},n,{disableGutters:v.useContext(Ol).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return mo({root:["root",t&&"disableGutters"]},Yl,n)})(i);return Ht.jsx(Xl,H({className:vr(a.root,r),ownerState:i,ref:t},o))});Zl.muiName="ListItemSecondaryAction";const Jl=["className"],Ql=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],eu=sa("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>H({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&H({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ul.root}`]:{paddingRight:48}},{[`&.${Gl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(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})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),tu=sa("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),nu=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:y,secondaryAction:E,selected:C=!1,slotProps:D={},slots:x={}}=n,A=U(n.ContainerProps,Jl),S=U(n,Ql),w=v.useContext(Ol),R=v.useMemo(()=>({dense:h||w.dense||!1,alignItems:r,disableGutters:m}),[r,w.dense,h,m]),F=v.useRef(null);Or(()=>{o&&F.current&&F.current.focus()},[o]);const _=v.Children.toArray(a),k=_.length&&(I=_[_.length-1],B=["ListItemSecondaryAction"],v.isValidElement(I)&&-1!==B.indexOf(null!=(L=I.type.muiName)?L:null==(T=I.type)||null==(T=T._payload)||null==(T=T.value)?void 0:T.muiName));var I,B,L,T;const P=H({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:k,selected:C}),O=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return mo({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},zl,r)})(P),M=Xr(F,t),j=x.root||u.Root||eu,N=D.root||c.root||{},$=H({className:vr(O.root,N.className,s),disabled:f},S);let z=l||"li";return i&&($.component=l||"div",$.focusVisibleClassName=vr(Gl.focusVisible,y),z=hs),k?(z=$.component||l?z:"div","li"===d&&("li"===z?z="div":"li"===$.component&&($.component="div")),Ht.jsx(Ol.Provider,{value:R,children:Ht.jsxs(tu,H({as:d,className:vr(O.container,p),ref:M,ownerState:P},A,{children:[Ht.jsx(j,H({},N,!bo(j)&&{as:z,ownerState:H({},P,N.ownerState)},$,{children:_})),_.pop()]}))})):Ht.jsx(Ol.Provider,{value:R,children:Ht.jsxs(j,H({},N,{as:z,ref:M},!bo(j)&&{ownerState:H({},P,N.ownerState)},$,{children:[_,E&&Ht.jsx(Zl,{children:E})]}))})});function ru(e){return Cr("MuiListItemIcon",e)}const ou=Dr("MuiListItemIcon",["root","alignItemsFlexStart"]),iu=["className"],au=sa("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})=>H({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),su=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=U(n,iu),i=H({},n,{alignItems:v.useContext(Ol).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return mo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ru,n)})(i);return Ht.jsx(au,H({className:vr(a.root,r),ownerState:i,ref:t},o))}),lu=Dr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),uu=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cu(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function du(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pu(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 hu(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")&&pu(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const fu=v.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=U(e,uu),p=v.useRef(null),h=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Or(()=>{r&&p.current.focus()},[r]),v.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${co(Hr(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=Xr(p,t);let m=-1;v.Children.forEach(i,(e,t)=>{v.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const b=v.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),v.cloneElement(e,t)}return e});return Ht.jsx($l,H({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Hr(t).activeElement;if("ArrowDown"===n)e.preventDefault(),hu(t,r,l,s,cu);else if("ArrowUp"===n)e.preventDefault(),hu(t,r,l,s,du);else if("Home"===n)e.preventDefault(),hu(t,null,l,s,cu);else if("End"===n)e.preventDefault(),hu(t,null,l,s,du);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 l=r&&!o.repeating&&pu(r,o);o.previousKeyMatched&&(l||hu(t,r,!1,s,cu,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:b}))});function mu(e){return Cr("MuiPopover",e)}Dr("MuiPopover",["root","paper"]);const bu=["onEntering"],gu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vu=["slotProps"];function yu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Eu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Cu(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Du(e){return"function"==typeof e?e():e}const xu=sa(vl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Au=sa(Ka,{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}),Su=v.forwardRef(function(e,t){var n,r,o;const i=Da({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:y,slotProps:E,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:D=_l,transitionDuration:x="auto",TransitionProps:{onEntering:A}={},disableScrollLock:S=!1}=i,w=U(i.TransitionProps,bu),R=U(i,gu),F=null!=(n=null==E?void 0:E.paper)?n:g,_=v.useRef(),k=Xr(_,F.ref),I=H({},i,{anchorOrigin:l,anchorReference:c,elevation:f,marginThreshold:m,externalPaperSlotProps:F,transformOrigin:C,TransitionComponent:D,transitionDuration:x,TransitionProps:w}),B=(e=>{const{classes:t}=e;return mo({root:["root"],paper:["paper"]},mu,t)})(I),L=v.useCallback(()=>{if("anchorPosition"===c)return u;const e=Du(s),t=(e&&1===e.nodeType?e:Hr(_.current).body).getBoundingClientRect();return{top:t.top+yu(t,l.vertical),left:t.left+Eu(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),T=v.useCallback(e=>({vertical:yu(e,C.vertical),horizontal:Eu(e,C.horizontal)}),[C.horizontal,C.vertical]),P=v.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Cu(n)};const r=L();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,u=Ur(Du(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Cu(n)}},[s,c,L,T,m]),[O,M]=v.useState(b),j=v.useCallback(()=>{const e=_.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[P]);v.useEffect(()=>(S&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,S,j]);v.useEffect(()=>{b&&j()}),v.useImperativeHandle(a,()=>b?{updatePosition:()=>{j()}}:null,[b,j]),v.useEffect(()=>{if(!b)return;const e=Gr(()=>{j()}),t=Ur(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,j]);let N=x;"auto"!==x||D.muiSupportAuto||(N=void 0);const $=h||(s?Hr(Du(s)).body:void 0),z=null!=(r=null==y?void 0:y.root)?r:xu,G=null!=(o=null==y?void 0:y.paper)?o:Au,V=Eo({elementType:G,externalSlotProps:H({},F,{style:O?F.style:H({},F.style,{opacity:0})}),additionalProps:{elevation:f,ref:k},ownerState:I,className:vr(B.paper,null==F?void 0:F.className)}),W=Eo({elementType:z,externalSlotProps:(null==E?void 0:E.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:b},ownerState:I,className:vr(B.root,p)}),{slotProps:q}=W,Y=U(W,vu);return Ht.jsx(z,H({},Y,!bo(z)&&{slotProps:q,disableScrollLock:S},{children:Ht.jsx(D,H({appear:!0,in:b,onEntering:(e,t)=>{A&&A(e,t),j()},onExited:()=>{M(!1)},timeout:N},w,{children:Ht.jsx(G,H({},V,{children:d}))}))}))});function wu(e){return Cr("MuiMenu",e)}Dr("MuiMenu",["root","paper","list"]);const Ru=["onEntering"],Fu=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],_u={vertical:"top",horizontal:"right"},ku={vertical:"top",horizontal:"left"},Iu=sa(Su,{shouldForwardProp:e=>aa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bu=sa(Au,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Lu=sa(fu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tu=v.forwardRef(function(e,t){var n,r;const o=Da({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:y={}}=o,E=U(o.TransitionProps,Ru),C=U(o,Fu),D=_o(),x=H({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:E,variant:b}),A=(e=>{const{classes:t}=e;return mo({root:["root"],paper:["paper"],list:["list"]},wu,t)})(x),S=i&&!l&&d,w=v.useRef(null);let R=-1;v.Children.map(a,(e,t)=>{v.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===R)&&(R=t))});const F=null!=(n=g.paper)?n:Bu,_=null!=(r=y.paper)?r:p,k=Eo({elementType:g.root,externalSlotProps:y.root,ownerState:x,className:[A.root,s]}),I=Eo({elementType:F,externalSlotProps:_,ownerState:x,className:A.paper});return Ht.jsx(Iu,H({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?_u:ku,slots:{paper:F,root:g.root},slotProps:{root:k,paper:I},open:d,ref:t,transitionDuration:f,TransitionProps:H({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,{direction:D?"rtl":"ltr"}),m&&m(e,t)}},E),ownerState:x},C,{classes:h,children:Ht.jsx(Lu,H({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:w,autoFocus:i&&(-1===R||l),autoFocusItem:S,variant:b},u,{className:vr(A.list,u.className),children:a}))}))});function Pu(e){return Cr("MuiMenuItem",e)}const Ou=Dr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Mu=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ju=sa(hs,{shouldForwardProp:e=>aa(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})=>H({},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"}},[`&.${Ou.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ou.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ou.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Uo.alpha(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})`:Uo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ou.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ou.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${El.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${El.inset}`]:{marginLeft:52},[`& .${lu.root}`]:{marginTop:0,marginBottom:0},[`& .${lu.inset}`]:{paddingLeft:36},[`& .${ou.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&H({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ou.root} svg`]:{fontSize:"1.25rem"}}))),Nu=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=n,p=U(n,Mu),h=v.useContext(Ol),f=v.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=v.useRef(null);Or(()=>{r&&m.current&&m.current.focus()},[r]);const b=H({},n,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return H({},a,mo({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Pu,a))})(n),y=Xr(m,t);let E;return n.disabled||(E=void 0!==c?c:-1),Ht.jsx(Ol.Provider,{value:f,children:Ht.jsx(ju,H({ref:y,role:u,tabIndex:E,component:o,focusVisibleClassName:vr(g.focusVisible,l),className:vr(g.root,d)},p,{ownerState:b,classes:g}))})});function $u(e){return Cr("MuiTab",e)}const zu=Dr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Gu=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Hu=sa(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${un(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${zu.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>H({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zu.iconWrapper}`]:H({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${zu.selected}`]:{opacity:1},[`&.${zu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${zu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${zu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Uu=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:u,label:c,onChange:d,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:y=!1}=n,E=U(n,Gu),C=H({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!c,fullWidth:a,textColor:b,wrapped:y}),D=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return mo({root:["root",i&&a&&"labelIcon",`textColor${un(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},$u,t)})(C),x=s&&c&&v.isValidElement(s)?v.cloneElement(s,{className:vr(D.iconWrapper,s.props.className)}):s;return Ht.jsxs(Hu,H({focusRipple:!i,className:vr(D.root,r),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&d&&d(e,g),p&&p(e)},onFocus:e=>{m&&!f&&d&&d(e,g),h&&h(e)},ownerState:C,tabIndex:f?0:-1},E,{children:["top"===l||"start"===l?Ht.jsxs(v.Fragment,{children:[x,c]}):Ht.jsxs(v.Fragment,{children:[c,x]}),u]}))});var Vu=Ra(Ht.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Wu=Ra(Ht.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function qu(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Yu=["onChange"],Ku={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Xu(e){return Cr("MuiTabScrollButton",e)}const Zu=Dr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ju=["className","slots","slotProps","direction","orientation","disabled"],Qu=sa(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>H({width:40,flexShrink:0,opacity:.8,[`&.${Zu.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ec=v.forwardRef(function(e,t){var n,r;const o=Da({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,u=U(o,Ju),c=H({isRtl:_o()},o),d=(e=>{const{classes:t,orientation:n,disabled:r}=e;return mo({root:["root",n,r&&"disabled"]},Xu,t)})(c),p=null!=(n=a.StartScrollButtonIcon)?n:Vu,h=null!=(r=a.EndScrollButtonIcon)?r:Wu,f=Eo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:c}),m=Eo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:c});return Ht.jsx(Qu,H({component:"div",className:vr(d.root,i),ref:t,role:null,ownerState:c,tabIndex:null},u,{children:"left"===l?Ht.jsx(p,H({},f)):Ht.jsx(h,H({},m))}))});function tc(e){return Cr("MuiTabs",e)}const nc=Dr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rc=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],oc=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ic=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ac=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},sc=sa("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nc.scrollButtons}`]:t.scrollButtons},{[`& .${nc.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>H({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nc.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),lc=sa("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>H({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),uc=sa("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>H({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cc=sa("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>H({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),dc=sa(function(e){const{onChange:t}=e,n=U(e,Yu),r=v.useRef(),o=v.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Or(()=>{const e=Gr(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=Ur(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),v.useEffect(()=>{i(),t(r.current)},[t]),Ht.jsx("div",H({style:Ku},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pc={},hc=v.forwardRef(function(e,t){const n=Da({props:e,name:"MuiTabs"}),r=Wi(),o=_o(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:u,className:c,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=ec,scrollButtons:g="auto",selectionFollowsFocus:y,slots:E={},slotProps:C={},TabIndicatorProps:D={},TabScrollButtonProps:x={},textColor:A="primary",value:S,variant:w="standard",visibleScrollbar:R=!1}=n,F=U(n,rc),_="scrollable"===w,k="vertical"===m,I=k?"scrollTop":"scrollLeft",B=k?"top":"left",L=k?"bottom":"right",T=k?"clientHeight":"clientWidth",P=k?"height":"width",O=H({},n,{component:d,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:k,scrollButtons:g,textColor:A,variant:w,visibleScrollbar:R,fixed:!_,hideScrollbar:_&&!R,scrollableX:_&&!k,scrollableY:_&&k,centered:l&&!_,scrollButtonsHideMobile:!p}),M=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return mo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},tc,l)})(O),j=Eo({elementType:E.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:O}),N=Eo({elementType:E.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:O}),[$,z]=v.useState(!1),[G,V]=v.useState(pc),[W,q]=v.useState(!1),[Y,K]=v.useState(!1),[X,Z]=v.useState(!1),[J,Q]=v.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=v.useRef(null),ne=v.useRef(null),re=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:fo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==S){const e=ne.current.children;if(e.length>0){const t=e[ee.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Kr(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(k)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[P]:t?t[P]:0};if(isNaN(G[n])||isNaN(G[P]))V(i);else{const e=Math.abs(G[n]-i[n]),t=Math.abs(G[P]-i[P]);(e>=1||t>=1)&&V(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=qu,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=r=>{if(u)return void o(new Error("Animation cancelled"));null===s&&(s=r);const c=Math.min(1,(r-s)/a);t[e]=i(c)*(n-l)+l,c>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(I,te.current,e,{duration:r.transitions.duration.standard}):te.current[I]=e},ae=e=>{let t=te.current[I];k?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===ho()?-1:1),ie(t)},se=()=>{const e=te.current[T];let t=0;const n=Array.from(ne.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[T]>e){0===r&&(t=e);break}t+=o[T]}return t},le=()=>{ae(-1*se())},ue=()=>{ae(se())},ce=v.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),de=Kr(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[B]<t[B]){const r=t[I]+(n[B]-t[B]);ie(r,{animation:e})}else if(n[L]>t[L]){const r=t[I]+(n[L]-t[L]);ie(r,{animation:e})}}),pe=Kr(()=>{_&&!1!==g&&Z(!X)});v.useEffect(()=>{const e=Gr(()=>{te.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),pe()},r=Ur(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}},[oe,pe]),v.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&_&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[_,g,X,null==u?void 0:u.length]),v.useEffect(()=>{z(!0)},[]),v.useEffect(()=>{oe()}),v.useEffect(()=>{de(pc!==G)},[de,G]),v.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=Ht.jsx(cc,H({},D,{className:vr(M.indicator,D.className),ownerState:O,style:H({},G,D.style)}));let fe=0;const me=v.Children.map(u,e=>{if(!v.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===S;return fe+=1,v.cloneElement(e,H({fullWidth:"fullWidth"===w,indicator:n&&!$&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:A,value:t},1!==fe||!1!==S||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=_?Ht.jsx(dc,{onChange:ce,className:vr(M.scrollableX,M.hideScrollbar)}):null;const t=_&&("auto"===g&&(W||Y)||!0===g);return e.scrollButtonStart=t?Ht.jsx(b,H({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:j},orientation:m,direction:o?"right":"left",onClick:le,disabled:!W},x,{className:vr(M.scrollButtons,x.className)})):null,e.scrollButtonEnd=t?Ht.jsx(b,H({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:N},orientation:m,direction:o?"left":"right",onClick:ue,disabled:!Y},x,{className:vr(M.scrollButtons,x.className)})):null,e})();return Ht.jsxs(sc,H({className:vr(M.root,c),ownerState:O,ref:t,as:d},F,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Ht.jsxs(lc,{className:M.scroller,ownerState:O,style:{overflow:J.overflow,[k?"margin"+(o?"Left":"Right"):"marginBottom"]:R?void 0:-J.scrollbarWidth},ref:te,children:[Ht.jsx(uc,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:M.flexContainer,ownerState:O,onKeyDown:e=>{const t=ne.current,n=Hr(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),ac(t,n,ic);break;case i:e.preventDefault(),ac(t,n,oc);break;case"Home":e.preventDefault(),ac(t,null,oc);break;case"End":e.preventDefault(),ac(t,null,ic)}},ref:ne,role:"tablist",children:me}),$&&he]}),be.scrollButtonEnd]}))});function fc(e){return Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ht.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function mc({fontSize:e="medium",children:t=null,className:n=""}={}){return Ht.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function bc(e={}){return Ht.jsx(mc,{...e,children:Ht.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ht.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ht.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 gc(e={}){return Ht.jsx(mc,{fontSize:"medium",...e,children:Ht.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ht.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 vc(e){return Ht.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ht.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 yc(e={}){return Ht.jsx(mc,{...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ht.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ht.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ec(e={}){return Ht.jsx(mc,{fontSize:"medium",...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ht.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Cc({className:e}){return Ht.jsx(mc,{fontSize:"small",className:e,children:Ht.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ht.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ht.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ht.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ht.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"}),Ht.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 Dc(e={}){return Ht.jsx(mc,{...e,children:Ht.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ht.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ht.jsx("rect",{stroke:da.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var xc=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:da.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:da.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ht.jsx(fc,{"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 ${da.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:da.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${da.MISC_FOCUS_BORDER}`,borderRadius:ba,backgroundColor:da.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 ${da.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:da.WHITE,color:da.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:ba},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${da.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:da.GREYSCALE_0_15,backgroundColor:da.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${da.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:da.GREEN_PALE},"&:active":{backgroundColor:da.GREEN_DARK},"&.Mui-focusVisible":{borderColor:da.GREEN_PALE,boxShadow:`0 0 0 3px ${$r(da.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:da.BLUE_PALE},"&:active":{backgroundColor:da.BLUE_DARK},"&.Mui-focusVisible":{borderColor:da.BLUE_PALE,boxShadow:`0 0 0 3px ${$r(da.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:ba,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:da.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${da.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:da.GREYSCALE_0_42,backgroundColor:da.GREYSCALE_100_60,"&:active":{backgroundColor:da.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${da.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:da.PURPLE,"&.Mui-focusVisible":{borderColor:da.PURPLE,boxShadow:`0 0 0 3px ${$r(da.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:da.GREEN,"&.Mui-focusVisible":{borderColor:da.GREEN,boxShadow:`0 0 0 3px ${$r(da.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:da.BLUE,"&.Mui-focusVisible":{borderColor:da.BLUE,boxShadow:`0 0 0 3px ${$r(da.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:da.ORANGE,"&.Mui-focusVisible":{borderColor:da.ORANGE,boxShadow:`0 0 0 3px ${$r(da.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:da.RED,"&.Mui-focusVisible":{borderColor:da.RED,boxShadow:`0 0 0 3px ${$r(da.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:da.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:da.PURPLE_PALE},"&:active":{backgroundColor:da.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:da.PURPLE_PALE,boxShadow:`0 0 0 3px ${$r(da.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:da.GREEN_PALE},"&:active":{backgroundColor:da.GREEN_DARK},"&.Mui-focusVisible":{borderColor:da.GREEN_PALE,boxShadow:`0 0 0 3px ${$r(da.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:da.BLUE_PALE},"&:active":{backgroundColor:da.BLUE_DARK},"&.Mui-focusVisible":{borderColor:da.BLUE_PALE,boxShadow:`0 0 0 3px ${$r(da.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:da.ORANGE_PALE},"&:active":{backgroundColor:da.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:da.ORANGE_PALE,boxShadow:`0 0 0 3px ${$r(da.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:da.RED_PALE},"&:active":{backgroundColor:da.RED_DARK},"&.Mui-focusVisible":{borderColor:da.RED_PALE,boxShadow:`0 0 0 3px ${$r(da.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:da.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:da.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ba,boxShadow:`inset 0 0 0 2px ${da.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ht.jsx(vc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:pa,borderRadius:ba,color:da.TEXT_PRIMARY,backgroundColor:da.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:da.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${da.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:da.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:da.GREYSCALE_0_05,color:da.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:da.GREEN,borderColor:da.GREEN},"&.MuiChip-outlinedInfo":{color:da.BLUE,borderColor:da.BLUE},"&.MuiChip-outlinedWarning":{color:da.ORANGE,borderColor:da.ORANGE},"&.MuiChip-outlinedError":{color:da.RED,borderColor:da.RED}},outlined:{border:`solid 1px ${da.GREYSCALE_0_15}`,backgroundColor:da.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ba,boxShadow:"none",backgroundColor:da.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:da.GREEN,borderColor:da.GREEN},outlinedSecondary:{color:da.BLUE,borderColor:da.BLUE},label:{fontFamily:Ca.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ht.jsx(vc,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ht.jsx(fc,{"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:ba},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ba,fontSize:ha,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:da.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${da.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:da.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:da.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:da.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ba,border:`solid 1px ${da.GREYSCALE_0_15}`,color:da.GREYSCALE_0_60,marginRight:0,width:ma,height:ma},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${da.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ba,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:da.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ha}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:pa,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:da.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:da.GREYSCALE_25,fontSize:pa,fontFamily:Ca.FONT_FAMILY,fontWeight:ya,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:da.TEXT_PRIMARY},"&.Mui-error":{color:da.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:da.TEXT_SECONDARY,content:"'(optional)'",fontWeight:va,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:da.TEXT_SECONDARY,content:"'(required)'",fontWeight:va,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ha,lineHeight:"16px",backgroundColor:da.WHITE,borderRadius:ba,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${da.GREYSCALE_0_05}`,borderColor:da.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${da.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${da.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${da.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${da.RED}`,boxShadow:`0px 0px 0px 1px ${da.RED}, inset 0 2px 0 0 ${da.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${da.GREYSCALE_0_10}`,borderColor:da.GREYSCALE_0_10,backgroundColor:da.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:da.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:da.GREYSCALE_0_15,borderRadius:ba,boxShadow:`inset 0 2px 0 0 ${da.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ht.jsx(fc,{...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:da.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:da.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:da.GREYSCALE_0_03},"&:active":{backgroundColor:da.GREYSCALE_0_10},"&:focus":{backgroundColor:da.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${da.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${da.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:da.GREYSCALE_0_30,"&:hover":{backgroundColor:da.GREYSCALE_0_0,borderColor:da.GREYSCALE_0_15},"& ~svg":{color:da.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${da.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ba}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${da.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:da.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ha,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:pa,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:pa,fontWeight:ya,color:da.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:ya}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${da.GREYSCALE_0_15}, 0px 0px 0px 1px ${da.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ht.jsx(Ec,{}),checkedIcon:Ht.jsx(gc,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:da.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${da.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:da.GREEN_PALE,boxShadow:`0 0 0 3px ${$r(da.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:da.BLUE_PALE,boxShadow:`0 0 0 3px ${$r(da.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:da.GREYSCALE_0_20}},"&.Mui-disabled":{fill:da.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ht.jsx(Dc,{}),checkedIcon:Ht.jsx(bc,{}),indeterminateIcon:Ht.jsx(yc,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ba,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:da.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:da.GREYSCALE_0_55,color:da.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:da.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:da.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:da.GREYSCALE_0_55,"&:hover":{color:da.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:da.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:da.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ha,color:da.TEXT_PRIMARY,lineHeight:"16px",fontWeight:ya},secondary:{fontSize:pa,color:da.GREYSCALE_45,fontWeight:va,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ha,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ha,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:da.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:pa,borderBottom:`solid 1px ${da.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ha,color:da.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:da.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:da.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:da.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'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\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:da.RED}}},"&.Mui-focusVisible":{backgroundColor:da.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:da.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:da.GREEN,height:"24px","&.Mui-disabled":{color:da.GREYSCALE_0_15}},rail:{backgroundColor:da.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${da.GREYSCALE_0_05}`,borderRadius:ba,boxShadow:`inset 0px 0px 0px 1px ${da.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${da.GREYSCALE_0_05}`,borderRadius:ba},thumb:{height:"16px",width:"16px",borderRadius:ba,backgroundColor:da.WHITE,boxShadow:`0px 1px 2px 0px ${da.GREYSCALE_0_15}, 0px 0px 0px 1px ${da.GREYSCALE_0_05}`,"&:hover":{borderRadius:ba,boxShadow:`0 2px 4px 0 ${da.GREYSCALE_0_30}, 0 0 0 1px ${da.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${da.GREYSCALE_0_15}, 0 0 0 1px ${da.GREYSCALE_0_06}, 0 0 0 2px ${da.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${da.GREYSCALE_0_15}, 0 0 0 1px ${da.GREYSCALE_0_06}, 0 0 0 2px ${da.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:da.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:da.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:da.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:da.GREYSCALE_0_15},markLabel:{color:da.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:da.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:da.WHITE,color:da.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:da.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:da.GREEN_PALE,boxShadow:`0 0 0 3px ${$r(da.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:da.BLUE_PALE,boxShadow:`0 0 0 3px ${$r(da.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:da.GREYSCALE_0_15,borderRadius:ba},thumb:{height:"16px",width:"16px",borderRadius:ba,backgroundColor:da.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:ha,fontWeight:ya,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${da.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${da.MISC_FOCUS_BORDER}`,backgroundColor:da.GREYSCALE_0_03,borderRadius:ba},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:da.GREYSCALE_25,"&.Mui-selected":{color:da.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ha,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ba,"&:hover":{backgroundColor:da.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 ${da.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${da.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ba,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:da.GREYSCALE_0_05},"&:hover":{backgroundColor:da.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${da.GREYSCALE_85}`,borderRight:`1px solid ${da.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:ya,backgroundColor:da.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:da.GREYSCALE_98,borderBottom:`1px solid ${da.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${da.GREYSCALE_85}`,borderTop:`1px solid ${da.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:da.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:da.GREYSCALE_0_05,"&:hover":{backgroundColor:da.GREYSCALE_0_03}},"&&:hover":{backgroundColor:da.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ht.jsx(Cc,{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 ${da.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ha,borderRadius:ba,padding:"7px 16px",border:`1px solid ${da.GREYSCALE_0_15}`,backgroundColor:da.GREYSCALE_100_60,color:da.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:da.GREYSCALE_0_10,border:`1px solid ${da.GREYSCALE_0_30}`},"&:hover":{backgroundColor:da.GREYSCALE_0_03,border:`1px solid ${da.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:da.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${da.MISC_FOCUS_BORDER}`,border:`1px solid ${da.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:da.GREYSCALE_25,backgroundColor:da.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:da.GREYSCALE_0_10,border:`1px solid ${da.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:pa,height:24,width:24,padding:7},sizeLarge:{fontSize:fa,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ha,borderRadius:ba}}},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:da.GREYSCALE_20},tooltip:{backgroundColor:da.GREYSCALE_20,fontSize:pa,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Ac=e=>({mode:"light",primary:{ultraLight:da.GREEN_ULTRA_LIGHT,light:da.GREEN_PALE,main:da.GREEN,dark:da.GREEN_DARK,extraDark:da.GREEN_EXTRA_DARK,contrastText:da.WHITE},secondary:{ultraLight:da.BLUE_ULTRA_LIGHT,light:da.BLUE_PALE,main:da.BLUE,dark:da.BLUE_DARK,extraDark:da.BLUE_EXTRA_DARK,contrastText:da.WHITE},error:{ultraLight:da.RED_ULTRA_LIGHT,light:da.RED_PALE,main:da.RED,dark:da.RED_DARK,extraDark:da.RED_EXTRA_DARK,contrastText:da.WHITE},warning:{ultraLight:da.ORANGE_ULTRA_LIGHT,light:da.ORANGE_PALE,main:da.ORANGE,dark:da.ORANGE_DARK,extraDark:da.ORANGE_EXTRA_DARK,contrastText:da.WHITE},success:{ultraLight:da.GREEN_ULTRA_LIGHT,light:da.GREEN_PALE,main:da.GREEN,dark:da.GREEN_DARK,extraDark:da.GREEN_EXTRA_DARK,contrastText:da.WHITE},info:{ultraLight:da.BLUE_ULTRA_LIGHT,light:da.BLUE_PALE,main:da.BLUE,dark:da.BLUE_DARK,extraDark:da.BLUE_EXTRA_DARK,contrastText:da.WHITE},text:{primary:da.TEXT_PRIMARY,secondary:da.TEXT_SECONDARY,disabled:da.GREYSCALE_0_30},action:{hover:da.GREYSCALE_0_03,hoverOpacity:.03,selected:da.GREYSCALE_0_05,selectedOpacity:.05,focus:da.MISC_FOCUS_BORDER},amethyst:{ultraLight:da.WHITE,main:da.PURPLE,light:da.PURPLE_PALE,dark:da.PURPLE_DARK,extraDark:da.GREYSCALE_0_0,contrastText:da.WHITE},background:{paper:da.WHITE,default:da.GREYSCALE_95},divider:da.GREYSCALE_0_15});function Sc(e){return Ui({components:xc(),palette:Ac(),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:ha,fontWeightLight:ga,fontWeightRegular:va,fontWeightMedium:ya,fontWeightBold:Ea,htmlFontSize:ha,fontFamily:Ca.FONT_FAMILY,button:{fontWeight:ya,fontSize:ha,textTransform:"none"},body1:{fontSize:fa,lineHeight:"24px"},body2:{fontSize:ha,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ma,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:fa,fontWeight:ya,lineHeight:"16px"},h6:{fontSize:ha,fontWeight:ya,lineHeight:"16px"},caption:{color:da.TEXT_SECONDARY},subtitle1:{fontSize:ha,color:da.TEXT_SECONDARY},subtitle2:{fontSize:pa,color:da.TEXT_SECONDARY}},shape:{borderRadius:ba},direction:e})}const wc=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class Rc{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()??[]).reduce((e,t)=>{if(!wc.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const n=t;n.libraryInfo?.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var Fc,_c={};var kc=function(){if(Fc)return _c;Fc=1;var e=L;return _c.createRoot=e.createRoot,_c.hydrateRoot=e.hydrateRoot,_c}();const Ic=E((e,t)=>Ht.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:Ht.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"})})),Bc="rgb(89, 89, 89)",Lc=jt(Ws)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),Tc=jt(Ws)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),Pc=jt($l,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),Oc=jt(ys)({color:Bc,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),Mc=jt(su)({"&.MuiListItemIcon-root":{minWidth:32,color:Bc,marginRight:"0px"}}),jc=jt(Al)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Nc=jt(nl)({"&.MuiButton-contained":{backgroundColor:Bc,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Bc,color:Bc,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Bc}`}}}),$c=jt(wa)({width:"1em",height:"1em",paddingBottom:"8px"}),zc=jt(wa)({width:"16px",height:"16px"}),Gc=({name:e,items:t,onSelect:n})=>Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nu,{dense:!0,children:Ht.jsx(Oc,{noWrap:!0,fontWeight:"bold",children:e})},e),Ht.jsx(jc,{}),t.map(e=>Ht.jsx(nu,{divider:!0,disablePadding:!0,disableGutters:!0,children:Ht.jsxs(ql,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?Ht.jsx(Mc,{children:e.IconDefinition?Ht.jsx(e.IconDefinition,{}):Ht.jsx(zc,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:e.iconPath})})}):null,Ht.jsx(Oc,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),Hc=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=S(""),s=!!t;return Ht.jsxs(Su,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[Ht.jsx(Os,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:Ht.jsx(Pl,{position:"start",children:Ht.jsx(Ic,{})})}),Ht.jsx(jc,{}),Ht.jsx(Pc,{width:o,children:e.map(e=>{const t=e.items.filter(e=>{const t=e.translation||e.name;return t?.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1});return t.length>0&&Ht.jsx(Gc,{name:e.name,items:t,onSelect:r},e.name)})})]})},Uc=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=S([]),[l,u]=S({});w(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),u(n.getCharts())})().catch(()=>{})}},[e,n]);const c=[],d=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)c.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,n=p.get(t);n?n.push(e):p.set(t,[e])}else d.push(e)});const f=e=>e.map(e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id})).toSorted((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.get("LayoutContainer.Object.MasterItems"),items:a.map(e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization})).toSorted((e,t)=>e.name.localeCompare(t.name))},{name:r.get("LayoutContainer.Object.Charts"),items:c.map(e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""})).toSorted((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(d)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return Ht.jsx(Hc,{categories:m,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:r}=e;(r?n.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:{qType:"undefined"}}}):n.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then(e=>{e?.id&&o?.setSelected([e.id])}).catch(e=>{console.warn(e)}).finally(()=>{t()})},onClose:t,width:i})},Vc=e=>{const t=qc(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},Wc=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),qc=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Yc=Wc,Kc=e=>{const t={...e};return t.objects=Vc(t),t},Xc=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),Zc=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Jc=(e,t)=>{if(!e)return t;const n=Wc(e,t);return n?.qInfo?.qId};class Qc{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme&&this.data.translator){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],kc.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(Ht.jsx(ua,{theme:this.data.muiTheme,children:Ht.jsx(Uc,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}getChartIcon(e){const t=this.getEngineId(e);if(!t)return;const n=this.activeContainer?.renderHelper.getChildLayout(t),r=n?.qData.visualization;return r?this.activeContainer?.chartList?.getChart(r)?.libraryInfo?.icon:void 0}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Jc(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}const ed="object",td=["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"];const nd=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function rd({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontFamilies");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o.map(e=>e.split(",").map(e=>e.trim()).map(e=>e.replace(/\s+/g," ").trim()).filter(Boolean).join(", "))])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFonts"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>nd(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...td.map(e=>nd(e))]}({theme:e,translator:t,defaultValue:o()})}}var od=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const id=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function ad({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontSize");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>id(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...od.map(e=>id(e))]}({theme:e,translator:t,defaultValue:o()})}}function sd({theme:e,translator:t,id:n,path:r}){return{fontFamily:rd({theme:e,translator:t,id:n,path:r}),fontSize:ad({theme:e,translator:t,id:n,path:r})}}const ld=["__proto__","constructor"],ud=e=>{if(ld.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var cd,dd,pd,hd=function(){if(dd)return cd;dd=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 cd=function e(){var t,n,r,l,u,c,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&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(f,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},cd}();function fd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function md(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bd(){}(pd=hd)&&pd.__esModule&&Object.prototype.hasOwnProperty.call(pd,"default")&&pd.default;var gd=.7,vd=1/gd,yd="\\s*([+-]?\\d+)\\s*",Ed="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dd=/^#([0-9a-f]{3,8})$/,xd=new RegExp(`^rgb\\(${yd},${yd},${yd}\\)$`),Ad=new RegExp(`^rgb\\(${Cd},${Cd},${Cd}\\)$`),Sd=new RegExp(`^rgba\\(${yd},${yd},${yd},${Ed}\\)$`),wd=new RegExp(`^rgba\\(${Cd},${Cd},${Cd},${Ed}\\)$`),Rd=new RegExp(`^hsl\\(${Ed},${Cd},${Cd}\\)$`),Fd=new RegExp(`^hsla\\(${Ed},${Cd},${Cd},${Ed}\\)$`),_d={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 kd(){return this.rgb().formatHex()}function Id(){return this.rgb().formatRgb()}function Bd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dd.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ld(t):3===n?new Md(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Td(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Td(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=xd.exec(e))?new Md(t[1],t[2],t[3],1):(t=Ad.exec(e))?new Md(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Sd.exec(e))?Td(t[1],t[2],t[3],t[4]):(t=wd.exec(e))?Td(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rd.exec(e))?Hd(t[1],t[2]/100,t[3]/100,1):(t=Fd.exec(e))?Hd(t[1],t[2]/100,t[3]/100,t[4]):_d.hasOwnProperty(e)?Ld(_d[e]):"transparent"===e?new Md(NaN,NaN,NaN,0):null}function Ld(e){return new Md(e>>16&255,e>>8&255,255&e,1)}function Td(e,t,n,r){return r<=0&&(e=t=n=NaN),new Md(e,t,n,r)}function Pd(e){return e instanceof bd||(e=Bd(e)),e?new Md((e=e.rgb()).r,e.g,e.b,e.opacity):new Md}function Od(e,t,n,r){return 1===arguments.length?Pd(e):new Md(e,t,n,null==r?1:r)}function Md(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function jd(){return`#${Gd(this.r)}${Gd(this.g)}${Gd(this.b)}`}function Nd(){const e=$d(this.opacity);return`${1===e?"rgb(":"rgba("}${zd(this.r)}, ${zd(this.g)}, ${zd(this.b)}${1===e?")":`, ${e})`}`}function $d(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gd(e){return((e=zd(e))<16?"0":"")+e.toString(16)}function Hd(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vd(e,t,n,r)}function Ud(e){if(e instanceof Vd)return new Vd(e.h,e.s,e.l,e.opacity);if(e instanceof bd||(e=Bd(e)),!e)return new Vd;if(e instanceof Vd)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 Vd(a,s,l,e.opacity)}function Vd(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Wd(e){return(e=(e||0)%360)<0?e+360:e}function qd(e){return Math.max(0,Math.min(1,e||0))}function Yd(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fd(bd,Bd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kd,formatHex:kd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ud(this).formatHsl()},formatRgb:Id,toString:Id}),fd(Md,Od,md(bd,{brighter(e){return e=null==e?vd:Math.pow(vd,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?gd:Math.pow(gd,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Md(zd(this.r),zd(this.g),zd(this.b),$d(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:jd,formatHex:jd,formatHex8:function(){return`#${Gd(this.r)}${Gd(this.g)}${Gd(this.b)}${Gd(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Nd,toString:Nd})),fd(Vd,function(e,t,n,r){return 1===arguments.length?Ud(e):new Vd(e,t,n,null==r?1:r)},md(bd,{brighter(e){return e=null==e?vd:Math.pow(vd,e),new Vd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?gd:Math.pow(gd,e),new Vd(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 Md(Yd(e>=240?e-240:e+120,o,r),Yd(e,o,r),Yd(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Vd(Wd(this.h),qd(this.s),qd(this.l),$d(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=$d(this.opacity);return`${1===e?"hsl(":"hsla("}${Wd(this.h)}, ${100*qd(this.s)}%, ${100*qd(this.l)}%${1===e?")":`, ${e})`}`}}));const Kd=Math.PI/180,Xd=180/Math.PI,Zd=.96422,Jd=.82521,Qd=4/29,ep=6/29,tp=3*ep*ep,np=ep*ep*ep;function rp(e){if(e instanceof op)return new op(e.l,e.a,e.b,e.opacity);if(e instanceof up)return cp(e);e instanceof Md||(e=Pd(e));var t,n,r=lp(e.r),o=lp(e.g),i=lp(e.b),a=ip((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ip((.4360747*r+.3850649*o+.1430804*i)/Zd),n=ip((.0139322*r+.0971045*o+.7141733*i)/Jd)),new op(116*a-16,500*(t-a),200*(a-n),e.opacity)}function op(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ip(e){return e>np?Math.pow(e,1/3):e/tp+Qd}function ap(e){return e>ep?e*e*e:tp*(e-Qd)}function sp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function up(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function cp(e){if(isNaN(e.h))return new op(e.l,0,0,e.opacity);var t=e.h*Kd;return new op(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fd(op,function(e,t,n,r){return 1===arguments.length?rp(e):new op(e,t,n,null==r?1:r)},md(bd,{brighter(e){return new op(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new op(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 Md(sp(3.1338561*(t=Zd*ap(t))-1.6168667*(e=1*ap(e))-.4906146*(n=Jd*ap(n))),sp(-.9787684*t+1.9161415*e+.033454*n),sp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fd(up,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof up)return new up(e.h,e.c,e.l,e.opacity);if(e instanceof op||(e=rp(e)),0===e.a&&0===e.b)return new up(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Xd;return new up(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new up(e,t,n,null==r?1:r)},md(bd,{brighter(e){return new up(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new up(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return cp(this).rgb()}}));var dp=e=>()=>e;function pp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):dp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?pp: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):dp(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Od(e)).r,(t=Od(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pp(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 hp="center",fp="bottom";function mp(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}[{key:"NoDataExist",alignment:hp,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:hp,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:hp,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:hp},{key:"DataRangeIncludingZero",alignment:fp},{key:"LimitedData",alignment:fp},{key:"NegativeOrZeroValues",alignment:fp}].reduce((e,t)=>(e[t.key]=t,e),{});const bp=["__proto__","constructor"];function gp(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(bp.some(e=>r.includes(e)))return;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]}function vp(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 yp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Cp)):void 0===t&&(t=Ep);for(var n,r,o,i,a,s=new Ap(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 Ap(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(xp)}function Ep(e){return e.children}function Cp(e){return Array.isArray(e)?e[1]:null}function Dp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function xp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ap(e){this.data=e,this.depth=this.height=0,this.parent=null}var Sp;Ap.prototype=yp.prototype={constructor:Ap,count:function(){return this.eachAfter(vp)},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 yp(this).eachBefore(Dp)},[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)}},Sp=function(e){
|
|
88
88
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
89
|
-
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,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),E=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).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="",g=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+E}},Sp({exports:{}});const wp="'Source Sans Pro', 'Arial', 'sans-serif'",Rp="#333333",Fp="#595959",_p="#737373",kp="#cccccc",Ip="#e6e6e6";function Bp(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Fp],["object","axis.label.name","fontFamily",wp],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",kp],["object","axis.line.minor","color",Ip],["object","axis.title","color"],["object","axis.title","fontFamily",wp],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Ip],["object","grid.line.major","color",kp],["object","grid.line.minor","color",Ip],["object","label.value","color",Fp],["object","label.value","fontFamily",wp],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Fp],[!1,"label.value","lightColor",Ip],["object","outOfRange","color","#999"],["object","legend.title","color",Rp],["object","legend.title","fontFamily",wp],["object","legend.title","fontSize","15px"],["object","legend.label","color",Fp],["object","legend.label","fontFamily",wp],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Rp],["object","referenceLine.label.name","fontFamily",wp],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Ip],["object","referenceLine.outOfBounds","fontFamily",wp],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",_p,e=>"transparent"===e?_p:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).toSorted((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const Lp="object",Tp=e=>e;function Pp({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,u=e=>e]=n,c=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===Lp&&t?`${Lp}.${t}`:r,path:o,attribute:s,defaultValue:l}),d=(a[`${o}.${s}`]||Tp)(u(c));gp(i,[o,s].filter(Boolean).join("."),d)}),r.forEach(e=>{const[t,n]=e;gp(i,t,n)}),i}const Op={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function Mp(e){if(!e.objects)return{};const t=Zc(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition&&!1!==t[n.qData.childRefId]?.visible,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const jp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(mp(t,`${e}.color`)||mp(t,`${e}.colorExpression`))&&(gp(t,`${e}.color`,void 0),gp(t,`${e}.colorExpression`,void 0)),n?.(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:3,show:t=>!mp(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>mp(t,`${e}.useColorExpression`)}}}),Np=({theme:e})=>({bgColorAllWrapper:jp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:jp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jp({ref:"background.hover",theme:e,change:e=>{gp(e,"indicator.hover.color",mp(e,"background.hover.color")),gp(e,"indicator.hover.useColorExpression",mp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),$p=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.show}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},zp=({theme:e})=>({colorWrapper:jp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jp({ref:"indicator.hover",theme:e,change:e=>{gp(e,"background.hover.color",mp(e,"indicator.hover.color")),gp(e,"background.hover.useColorExpression",mp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Gp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.fontsUsed=o}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Hp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Gp({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Up=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{if(void 0!==e.width?.value&&"%"===e.width?.unit)for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>"px"===e.width?.unit,defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Vp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:zp({theme:e})}}}),Wp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:$p({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),qp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:jp({ref:"background"})}:Np({theme:e})}}}),Yp=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Hp({ref:n,key:r,fontResolver:e,theme:t}),width:{...Up({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Wp({ref:n,key:r,fontResolver:e,theme:t}),background:qp({ref:n,key:r,theme:t})}}},Kp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Xp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Zp=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Jp=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Yc(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Zp(t,n.getLayout())}),n.setSelectedChild([i]))}}),Qp=e=>{const{sense:t}=e.env.anything;return{label:Kp,condition:Xp,styling:Yp({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Jp(e)}},eh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},th={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},nh=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:Qp(e)}),rh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:eh,chartsLabel:th,chartList:nh(e)}}),oh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},ih={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},ah={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},sh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},lh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Jc(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},uh={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},ch=({fontResolver:e,theme:t})=>{const n="components",r="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Hp({ref:n,key:r,fontResolver:e,theme:t}),width:Up({ref:n,key:r}),indicator:Vp({ref:n,key:r,theme:t}),icon:Wp({ref:n,key:r,fontResolver:e,theme:t}),background:qp({ref:n,key:r,theme:t})}}},dh={items:{details:{show:e=>!0===e.showDetails}}},ph=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:ch({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:oh,useDropdown:ih,useScrollButton:ah,showIcons:sh,orientation:uh,defaultTabId:lh}}}}},hh=e=>({uses:"settings",items:{general:dh,presentation:ph(e)}}),fh=e=>({type:"items",component:"accordion",items:{content:rh(e),settings:hh(e)}}),mh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?ed:`${ed}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");ud(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=sd({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");ud(t);let n=i;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return i.getDefaultValue=e=>a(e).getDefaultValue(),i.getOptions=e=>a(e).getOptions(),i}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map(e=>({qProperty:e}))})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),n()},async addChild(t,n){const{model:r}=this,o=new Qc({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&wc.includes(t.template))return!1;if("visualization"===t.type&&wc.includes(t.visualization))return!1}return"gridcell"!==e.type||!wc.includes(e.cell.model.layout.visualization)}}}(e);return{definition:fh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Qc({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const u=await Promise.all(l),c={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:Op,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:c,qChildren:u})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:Mp}},bh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),gh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:bh(n)}},vh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;o.getSnapshotLayout?t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e)):o.takeSnapshot&&t.push(o.takeSnapshot().then(e=>({id:n,data:e?.layout})).catch(()=>e))}const n=await Promise.all(t);return bh(n)},yh=(e,t)=>(n(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Kc(r),i=t(e.objectMap,n),[a,s]=await Promise.all([vh(i.objectMap),gh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>gh(e.objectMap)});let Eh=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Ch=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Dh=function(e){return e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator",e}({});const xh=`& .${Dh.TAB}.${Dh.TAB_EXTRA_PRIO}, .${Dh.TAB}.${Dh.ACTIVE_TAB}`,Ah=`& .${Dh.TAB}.${Dh.TAB_EXTRA_PRIO}:hover`,Sh=`& .${Dh.TAB_LABEL}`,wh=`& .${Dh.TABS_ICON} svg`,Rh=`& .${Dh.TAB_WRAPPER}`,Fh=`& .${Dh.TAB_INDICATOR}`,_h=e=>e.getElementsByClassName(Dh.ACTIVE_TAB)?.[0],kh=e=>e.getElementsByClassName(Dh.ACTIVE_TAB_PANEL)?.[0],Ih=({element:e,setAccessibility:n,accessibility:a,renderHelper:s,interactions:l,env:u,models:c})=>{const{modifiedLayout:{showTabs:d,objects:p,orientation:h},translator:f}=c;t(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,d?t:""]))})()},[e,d,p,f,h]);const m=u.flags.isEnabled("VIZ-7_NEW_SHEET")||u.flags.isEnabled("VIZ-7_NEW_SHEET_EDIT"),b=r(),g=o(()=>()=>{n(!1),b.enabled&&b.blur?.(!0)},[b,n]),v=o(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case Eh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Eh.ENTER:case Eh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Dh.ACTIVE_TAB)&&kh(e)?.focus();break}}},[e,b]),y=o(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case Eh.ESCAPE:{const n=_h(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case Eh.ENTER:case Eh.SPACE:{const n=kh(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:r,activeTab:n});break}case Eh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),E=o(()=>e=>{const t=e.target;t?.classList.contains(Dh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);t(()=>(a&&e.addEventListener(Ch.KEY_DOWN,E),()=>{e.removeEventListener(Ch.KEY_DOWN,E)}),[e,a,E]);const[C,D]=i(!1);t(()=>{C&&(D(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Dh.TAB_MENU)?.[0])(e)??_h(e))?.focus(),0))},[e,C]),t(()=>{n(!1)},[l.edit,n]),t(()=>{const t=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Dh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(n(!0),D(!0),e.addEventListener(Ch.FOCUS_OUT,t)),()=>{e.removeEventListener(Ch.FOCUS_OUT,t)}},[b])},Bh=e=>{const[t]=i(e);return[t,function(e){Object.assign(t,e)}]},Lh=({isContainerActive:e,activeTabId:n,modifiedLayout:r,renderHelper:i,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:n,renderHelper:i,isContainerActive:e},[u,c]=Bh(l);c(l);const d=o(()=>()=>{const e=Xc(u.modifiedLayout);for(const[t,n]of u.renderHelper.objectMap.entries()){const r=u.isContainerActive&&u.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[u]);t(()=>{u.isContainerActive&&d()},[i.objectMap,d,u]),t(()=>{d()},[e,d]),(({activeCharts:e,onSetActiveCharts:n,canSetActiveChart:r=!0})=>{const[o,i]=Bh({onSetActiveCharts:n});i({onSetActiveCharts:n}),t(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=u.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==u.activeTabId&&s.setSelected(e)}})},Th={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Ph={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Oh{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=Ph.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(Ph))};getMasterVisualizations=async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map(e=>({...e.qData,qExtendsId:e.qInfo.qId})).filter(e=>!wc.includes(e.visualization))}catch{return[]}}}let Mh=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class jh{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new Oh(n)),e&&r&&(this.chartList=new Rc(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!wc.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=Th.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.setProperties(t)}return t&&o&&await Promise.all(t.map(({qProperty:e})=>o.createChild(e))),o};return await this.rememberAsGroup(o)}catch{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case Mh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case Mh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case Mh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case Mh.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class Nh{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise(e=>{this.tasks.push(e)}):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const $h={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},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},zh={index:-1,color:"none",alpha:1},Gh=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Hh=(e,t,n,r,o=1)=>{let i,a,s,l;switch(n=Math.floor(n)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Uh=e=>{const{h:t,s:n,l:r}=Gh(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Hh(i,s,a,r-.5*i,o)},Vh={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Uh(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Uh(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:n,v:r}=Gh(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Hh(o,a,i,r-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const n=e&&$h[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||zh;let o;return o=e?.useColorExpression?Vh.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},Wh=()=>Ht.jsx($c,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})}),qh=({libraryInfo:e,style:t,id:n})=>Ht.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Dh.TABS_ICON,children:Ht.jsx(e.IconDefinition,{})}),Yh=({style:e,id:t})=>Ht.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ht.jsx(zc,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"})})}),Kh=()=>Ht.jsx(zc,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})}),Xh=sa(ec)({width:28,overflow:"hidden"}),Zh=sa(ec)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Jh=(e,t)=>e.find(e=>e.childRefId===t),Qh=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),ef=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class tf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=ef(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Zc(this.modifiedLayout),this.style=this.createStyleClasses()}getTabsWidth=e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return Vh.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=Vh.getColor({style:e,theme:this.theme})}return n??Vh.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:mp(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:mp(r,"label.fontSize"),fontFamily:mp(r,"label.fontFamily"),color:Vh.getColor({style:mp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:mp(r,"icon.size"),color:Vh.getColor({style:mp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[Sh]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[wh]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[xh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[Ah]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[Rh]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Fh]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return mp(o,t)??mp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const nf=()=>{const t=a(),n=s(),r=l(),m=u(),b=c(),g=d(),v=e(),y=p(),E=h(),C=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Bp(r),styles:void 0};return a.styles=Pp({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=Pp({theme:e,id:n,transform:o,extend:i,matrix:a.matrix})}}}({theme:f(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),D=o(()=>new Rc(m,g),[m,g]),[x]=i(()=>new Nh(b?.id)),[A,S]=i(!1),w=o(()=>m&&b&&n?new jh({embed:m,model:b,app:n,translator:g,mutex:x}):void 0,[m,b,n,g,x]),R=o(()=>Kc(r),[r]),F=o(()=>new tf({modifiedLayout:R,themeService:C}),[R,C]);return o(()=>({app:n,modifiedLayout:R,embed:m,model:b,emitter:y,interactions:E,dataHandler:w,chartList:D,styleModel:F,mutex:x,options:v,accessibility:A,setAccessibility:S,translator:g,element:t}),[R,m,b,n,y,E,w,D,F,x,v,A,g,t])},rf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=S(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ht.jsx(Tc,{children:Ht.jsxs(Lc,{children:[Ht.jsx(o,{}),s?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(Nc,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),Ht.jsx(Uc,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ht.jsx(ys,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class of{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get dependencyData(){return this._dependencyData}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)}),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}shouldRenderWithQmfeEmbed(e){return!!this._dependencyData.options.useQlikEmbedChildRendering&&!!e}getNebulaOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData;return{isReadonly:!1,isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:r.direction,chartAnimations:r.chartAnimations,progressiveRendering:r.progressiveRendering,freeResize:r.freeResize,navigation:r.navigation,disableThemeBorder:r.disableThemeBorder??!1,fallbackToClient:r.fallbackToClient}}getNebulaEmbedOptions(e){const{useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}=this._dependencyData.options;return{...this.getNebulaOptions(e),setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}}getQmfeEmbedProps(e,t){const{options:n,containerMenu:r={id:"container-menu",icon:"ChartObject"},translator:o}=this._dependencyData,{embedProps:i,getContextMenuParent:a}=n;return{...i,ui:"analytics/chart",objectId:e,preview:!0,appId:t,onRender:()=>{this.onRendered(e)},options:{...i?.options,...this.getNebulaOptions(e)},onError:t=>{const n=this.getChildLayout(e)?.qInfo.qType;console.error("Could not render chart with id",e,n,t)},exposeRefApi:({getVisualizationApi:t})=>{t().then(t=>{const n=t;this.saveObjectApi(e,n),this.saveObject(e,{...n,getViewState:()=>n.getImperativeHandle().then(e=>e.getViewState())})})},onContextMenu:async e=>{try{const t=await(i?.onContextMenu?i.onContextMenu(e):e.contextMenuItems)??[],n=await(a?.(e));return n&&"contextMenuItems"in e&&t.push({id:r.id,icon:{value:r.icon,type:"sprout"},label:o?.get("contextMenu.subMenuContainerOptions")??"Container options",onClick:()=>{},items:n}),t}catch(e){return console.error("Error getting context menu parent options",e),[]}}}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}var af=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),sf=af((e,t)=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/}),lf=af((e,t)=>{const n=sf();t.exports={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}}),uf=af((e,t)=>{const n=lf();let r,o,i,a,s,l,u,c,d,p,h,f,m,b;function g(e,t,n){const r=e[t];if(null!=r&&"object"==typeof r)if(Array.isArray(r))for(let e=0;e<r.length;e++){const t=String(e),o=g(r,t,n);void 0===o?delete r[t]:Object.defineProperty(r,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const e in r){const t=g(r,e,n);void 0===t?delete r[e]:Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}function v(){for(p="default",h="",f=!1,m=1;;){b=y();const e=C[p]();if(e)return e}}function y(){if(r[a])return String.fromCodePoint(r.codePointAt(a))}function E(){const e=y();return"\n"===e?(s++,l=0):e?l+=e.length:l++,e&&(a+=e.length),e}t.exports=function(e,t){r=String(e),o="start",i=[],a=0,s=1,l=0,u=void 0,c=void 0,d=void 0;do{u=v(),S[o]()}while("eof"!==u.type);return"function"==typeof t?g({"":d},"",t):d};const C={default(){switch(b){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void E();case"/":return E(),void(p="comment");case void 0:return E(),D("eof")}if(!n.isSpaceSeparator(b))return C[o]();E()},comment(){switch(b){case"*":return E(),void(p="multiLineComment");case"/":return E(),void(p="singleLineComment")}throw F(E())},multiLineComment(){switch(b){case"*":return E(),void(p="multiLineCommentAsterisk");case void 0:throw F(E())}E()},multiLineCommentAsterisk(){switch(b){case"*":return void E();case"/":return E(),void(p="default");case void 0:throw F(E())}E(),p="multiLineComment"},singleLineComment(){switch(b){case"\n":case"\r":case"\u2028":case"\u2029":return E(),void(p="default");case void 0:return E(),D("eof")}E()},value(){switch(b){case"{":case"[":return D("punctuator",E());case"n":return E(),x("ull"),D("null",null);case"t":return E(),x("rue"),D("boolean",!0);case"f":return E(),x("alse"),D("boolean",!1);case"-":case"+":return"-"===E()&&(m=-1),void(p="sign");case".":return h=E(),void(p="decimalPointLeading");case"0":return h=E(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=E(),void(p="decimalInteger");case"I":return E(),x("nfinity"),D("numeric",1/0);case"N":return E(),x("aN"),D("numeric",NaN);case'"':case"'":return f='"'===E(),h="",void(p="string")}throw F(E())},identifierNameStartEscape(){if("u"!==b)throw F(E());E();const e=A();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e))throw k()}h+=e,p="identifierName"},identifierName(){switch(b){case"$":case"_":case"":case"":return void(h+=E());case"\\":return E(),void(p="identifierNameEscape")}if(!n.isIdContinueChar(b))return D("identifier",h);h+=E()},identifierNameEscape(){if("u"!==b)throw F(E());E();const e=A();switch(e){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(e))throw k()}h+=e,p="identifierName"},sign(){switch(b){case".":return h=E(),void(p="decimalPointLeading");case"0":return h=E(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=E(),void(p="decimalInteger");case"I":return E(),x("nfinity"),D("numeric",m*(1/0));case"N":return E(),x("aN"),D("numeric",NaN)}throw F(E())},zero(){switch(b){case".":return h+=E(),void(p="decimalPoint");case"e":case"E":return h+=E(),void(p="decimalExponent");case"x":case"X":return h+=E(),void(p="hexadecimal")}return D("numeric",0*m)},decimalInteger(){switch(b){case".":return h+=E(),void(p="decimalPoint");case"e":case"E":return h+=E(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},decimalPointLeading(){if(n.isDigit(b))return h+=E(),void(p="decimalFraction");throw F(E())},decimalPoint(){switch(b){case"e":case"E":return h+=E(),void(p="decimalExponent")}return n.isDigit(b)?(h+=E(),void(p="decimalFraction")):D("numeric",m*Number(h))},decimalFraction(){switch(b){case"e":case"E":return h+=E(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},decimalExponent(){switch(b){case"+":case"-":return h+=E(),void(p="decimalExponentSign")}if(n.isDigit(b))return h+=E(),void(p="decimalExponentInteger");throw F(E())},decimalExponentSign(){if(n.isDigit(b))return h+=E(),void(p="decimalExponentInteger");throw F(E())},decimalExponentInteger(){if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},hexadecimal(){if(n.isHexDigit(b))return h+=E(),void(p="hexadecimalInteger");throw F(E())},hexadecimalInteger(){if(!n.isHexDigit(b))return D("numeric",m*Number(h));h+=E()},string(){switch(b){case"\\":return E(),void(h+=function(){switch(y()){case"b":return E(),"\b";case"f":return E(),"\f";case"n":return E(),"\n";case"r":return E(),"\r";case"t":return E(),"\t";case"v":return E(),"\v";case"0":if(E(),n.isDigit(y()))throw F(E());return"\0";case"x":return E(),function(){let e="",t=y();if(!n.isHexDigit(t))throw F(E());if(e+=E(),t=y(),!n.isHexDigit(t))throw F(E());return e+=E(),String.fromCodePoint(parseInt(e,16))}();case"u":return E(),A();case"\n":case"\u2028":case"\u2029":return E(),"";case"\r":return E(),"\n"===y()&&E(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw F(E())}return E()}());case'"':return f?(E(),D("string",h)):void(h+=E());case"'":return f?void(h+=E()):(E(),D("string",h));case"\n":case"\r":throw F(E());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${I(e)}' in strings is not valid ECMAScript; consider escaping`)}(b);break;case void 0:throw F(E())}h+=E()},start(){switch(b){case"{":case"[":return D("punctuator",E())}p="value"},beforePropertyName(){switch(b){case"$":case"_":return h=E(),void(p="identifierName");case"\\":return E(),void(p="identifierNameStartEscape");case"}":return D("punctuator",E());case'"':case"'":return f='"'===E(),void(p="string")}if(n.isIdStartChar(b))return h+=E(),void(p="identifierName");throw F(E())},afterPropertyName(){if(":"===b)return D("punctuator",E());throw F(E())},beforePropertyValue(){p="value"},afterPropertyValue(){switch(b){case",":case"}":return D("punctuator",E())}throw F(E())},beforeArrayValue(){if("]"===b)return D("punctuator",E());p="value"},afterArrayValue(){switch(b){case",":case"]":return D("punctuator",E())}throw F(E())},end(){throw F(E())}};function D(e,t){return{type:e,value:t,line:s,column:l}}function x(e){for(const t of e){if(y()!==t)throw F(E());E()}}function A(){let e="",t=4;for(;t-- >0;){const t=y();if(!n.isHexDigit(t))throw F(E());e+=E()}return String.fromCodePoint(parseInt(e,16))}const S={start(){if("eof"===u.type)throw _();w()},beforePropertyName(){switch(u.type){case"identifier":case"string":return c=u.value,void(o="afterPropertyName");case"punctuator":return void R();case"eof":throw _()}},afterPropertyName(){if("eof"===u.type)throw _();o="beforePropertyValue"},beforePropertyValue(){if("eof"===u.type)throw _();w()},beforeArrayValue(){if("eof"===u.type)throw _();"punctuator"!==u.type||"]"!==u.value?w():R()},afterPropertyValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforePropertyName");case"}":R()}},afterArrayValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforeArrayValue");case"]":R()}},end(){}};function w(){let e;switch(u.type){case"punctuator":switch(u.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=u.value}if(void 0===d)d=e;else{const t=i[i.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,c,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)i.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function R(){i.pop();const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function F(e){return B(void 0===e?`JSON5: invalid end of input at ${s}:${l}`:`JSON5: invalid character '${I(e)}' at ${s}:${l}`)}function _(){return B(`JSON5: invalid end of input at ${s}:${l}`)}function k(){return l-=5,B(`JSON5: invalid identifier character at ${s}:${l}`)}function I(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function B(e){const t=new SyntaxError(e);return t.lineNumber=s,t.columnNumber=l,t}}),cf=af((e,t)=>{const n=lf();t.exports=function(e,t,r){const o=[];let i,a,s,l="",u="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,s=t.quote,t=t.replacer),"function"==typeof t)a=t;else if(Array.isArray(t)){i=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&i.indexOf(t)<0&&i.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):"string"==typeof r&&(u=r.substr(0,10)),c("",{"":e});function c(e,t){let n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),a&&(n=a.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?d(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=[];for(let t=0;t<e.length;t++){const n=c(String(t),e);r.push(void 0!==n?n:"null")}if(0===r.length)n="[]";else if(""===u)n="["+r.join(",")+"]";else{let e=",\n"+l,o=r.join(e);n="[\n"+l+o+",\n"+t+"]"}return o.pop(),l=t,n}(n):function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=i||Object.keys(e),a=[];for(const t of r){const n=c(t,e);if(void 0!==n){let e=p(t)+":";""!==u&&(e+=" "),e+=n,a.push(e)}}if(0===a.length)n="{}";else{let e;if(""===u)e=a.join(","),n="{"+e+"}";else{let r=",\n"+l;e=a.join(r),n="{\n"+l+e+",\n"+t+"}"}}return o.pop(),l=t,n}(n):void 0}function d(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let o="";for(let i=0;i<e.length;i++){const a=e[i];switch(a){case"'":case'"':t[a]++,o+=a;continue;case"\0":if(n.isDigit(e[i+1])){o+="\\x00";continue}}if(r[a])o+=r[a];else{if(a<" "){let e=a.charCodeAt(0).toString(16);o+="\\x"+("00"+e).substring(e.length);continue}o+=a}}const i=s||Object.keys(t).reduce((e,n)=>t[e]<t[n]?e:n);return o=o.replace(new RegExp(i,"g"),r[i]),i+o+i}function p(e){if(0===e.length)return d(e);const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t))return d(e);for(let r=t.length;r<e.length;r++)if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(r))))return d(e);return e}}});async function df(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({url:t,hostConfig:e}),t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&(window.__qlikMainPrivateResolvers.forwardCompatibleHostConfig=e,window.__qlikMainPrivateResolvers.resolveMainJsUrl(t))}(t),async function(e){if(!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}af((e,t)=>{t.exports={parse:uf(),stringify:cf()}})(),window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})})),window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise||(window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig=t=>{e(t)})})),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise||!window.__qlikMainPrivateResolvers.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),{url:t,hostConfig:n}=await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise,window.__qlikMainPrivateResolvers.mainUrlPromise.then(e=>({url:e,hostConfig:window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig}))]);clearTimeout(e);const r=await async function(e,t){if("windowscookie"===t?.authType){if(t.getAccessToken){const n=await async function(e){if("function"==typeof e)return e();if("string"==typeof e){const t=function(e){return globalThis[e]}(e);if("function"!=typeof t)throw new Error(`getAccessToken function "${e}" not found on globalThis. Please make sure it is defined.`);return t()}}(t.getAccessToken);return n&&await fetch(e,{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},cache:"no-cache"}),!0}if(t.loginUri&&!(await fetch(e,{method:"GET",mode:"cors",credentials:"include",redirect:"manual"}).catch(()=>({ok:!1}))).ok)return window.location.replace(t.loginUri),new Promise(()=>{})}return!1}(t,n);return new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),r&&(n.crossOrigin="use-credentials"),n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})());const pf=R(void 0),hf=e=>{const t=_(null),n=_(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return w(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),w(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ht.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},ff=e=>{const t=C(pf),{vanillaEmbedFn:n}=function(e){const[t,n]=S({});return w(()=>{e&&df("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{n({vanillaEmbedFn:e})}).catch(e=>{n({vanillaError:e instanceof Error?e:new Error(String(e))})})},[e]),t}(t);return n?Ht.jsx(hf,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const mf=E(function(e,t){const[n,r]=S(null),o=function(e){const t=_(e);return w(()=>{t.current=e},[e]),k(e=>{t.current(e)},[])}(e=>{r(()=>e)});return F(t,()=>n,[n]),Ht.jsx(ff,{exposeRefApi:o,...e})}),bf=new Map,gf=e=>{const t=bf.get(e);t&&(t.unmount(),bf.delete(e))},vf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=_(null),{id:l}=e;w(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=o?.id;if(r.shouldRenderWithQmfeEmbed(i))try{const n=kc.createRoot(e);return bf.set(t,n),void n.render(Ht.jsx(pf.Provider,{value:{},children:Ht.jsx(mf,{...r.getQmfeEmbedProps(t,i)})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),gf(t)}n.render({element:e,id:t,options:r.getNebulaEmbedOptions(t)}).then(e=>{r.saveObjectApi(t,e)}).catch(e=>{const n=r.getChildLayout(t)?.qInfo.qType;console.error("Could not render chart with id",t,n,e)})})(s.current,l,t,n,a),()=>{l&&gf(l)}),[l,t,n,r,a]);const u=I(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return w(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",u),()=>{e?.removeEventListener("dblclick",u)}},[s,u,o]),Ht.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let yf=function(e){return e.TABS_HEIGHT="36px",e}({});const Ef=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=y.useState(null),u=Boolean(s),c=()=>{l(null)},d=k(e=>{e?.focus()},[]);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:Dh.TAB_MENU,sx:{m:"2px"},children:Ht.jsx(Kh,{})}),Ht.jsx(Tu,{anchorEl:s,open:u,onClose:c,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map(e=>Ht.jsx(Nu,{className:Dh.TAB_MENU_ITEM,ref:n===e.childRefId&&u?d:null,onClick:()=>{(e=>{t(e.childRefId),c(),window.setTimeout(()=>{r.getElementsByClassName(Dh.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{},"aria-label":e.label,title:e.label,children:Ht.jsx(ys,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},Cf=({label:e,id:t})=>Ht.jsx(Ws,{className:Dh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:Ht.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),Df=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition||!1===t.visible?Ht.jsx(Yh,{id:`${Dh.TABS_ICON}-${r}`,style:o}):e?Ht.jsx(qh,{id:`${Dh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},xf=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Qh(e,i)),{orientation:u,tabContainerStyle:c,ScrollButtonComponent:d}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Zh}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Xh})(r),p=!1===i.active&&!i.edit,[h,f]=S(!1),m=k(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===u?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[u]);return Ht.jsxs(Ws,{className:Dh.TAB_WRAPPER,sx:c,ref:e=>{m(e)},children:[r.useDropdown&&h?Ht.jsx(Ef,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ht.jsx(hc,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:d,variant:"scrollable",orientation:u,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:yf.TABS_HEIGHT},children:l.map(n=>{const o=Yc(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),c=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,d="vertical"===u?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:d}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ht.jsx(Uu,{className:`${Dh.TAB} ${t===n.childRefId?Dh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ht.jsx(Cf,{label:n.label,id:b}):void 0,icon:c?Ht.jsx(Df,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==u||r.showIcons?"center":"start",minWidth:"vertical"===u?"100%":void 0,minHeight:yf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},Af=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:u,accessibility:c,app:d}=e,p=i.objects,h=s.edit||!!p.find(e=>0!==e.condition&&!1!==e.visible),f=i.showTabs&&h,m="left"===i.orientation?"row":"column",b=u.getStyleClasses();return Ht.jsxs(Ws,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ht.jsx(xf,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,u=n===e.childRefId&&!Qh(e,s);return Ht.jsx(Ws,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...u?{className:Dh.ACTIVE_TAB_PANEL,tabIndex:c?0:-1}:{hidden:!0},children:u?Ht.jsx(vf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:d}):null},r)})]})};let Sf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),wf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Rf=[wf.PASTE_AND_REPLACE,wf.ZOOM_IN,wf.VISUAL_EXPLORATION],Ff=[wf.VISUAL_EXPLORATION,wf.ALERT_GROUP,wf.SHOW_DETAILS,wf.EXPLAIN_KEY_DRIVERS,wf.EXPLAIN_KEY_DRIVERS_OLD_ID],_f=[wf.DELETE,wf.CUT,wf.ADD_TO_MASTER_ITEMS,wf.UNLINK_VISUALIZATION],kf=[wf.PASTE_AND_REPLACE],If=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Bf=(e,t,n,r,o)=>{const i=t.getSupportFunction(wf.COPY);if(!i)return void e.deleteItem(wf.COPY);const a=()=>{i(If(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===wf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===wf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:wf.COPY,id:wf.COPY,icon:"copy",select:a,items:[]},n)}},Lf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Tf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:wf.CONTAINER_HEADER,id:wf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Lf(n);a.items.forEach(e=>{(Ff.includes(e.id)||!s&&kf.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(Sf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||wc.includes(o.template))return void e.deleteItem(wf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===wf.PASTE_AND_REPLACE||e.id===wf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===wf.COPY||e.id===wf.DEVELOPER||e.id===wf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:wf.PASTE_AND_REPLACE,id:wf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(wf.CONTAINER_HEADER)},Pf="tabbed-container-menu",Of=e=>{const t={[wf.MONITOR_IN_HUB]:!0,[wf.SUBSCRIBE]:!0,[wf.NOTES_GROUP]:!0,[wf.DOWNLOAD]:!0,[wf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Of(n)})},Mf=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Lf(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===wf.CHART_HEADER||e.id===wf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:wf.EDIT_PROPERTIES,id:wf.EDIT_PROPERTIES,icon:wf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(wf.COPY);if(!a)return void e.deleteItem(wf.CUT);const s=()=>{o&&a(If(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===wf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===wf.ADD_TO_MASTER_ITEMS||e.id===wf.UNLINK_VISUALIZATION||e.id===wf.EDIT_PROPERTIES||e.id===wf.REORDER_LAYERS_GROUP||e.id===wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:wf.CUT,id:wf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Bf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(Sf.COPY),a=t.getSupportFunction(Sf.PASTE);if(!i||!a)return void e.deleteItem(wf.DUPLICATE);const s=()=>{i(If(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===wf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===wf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:wf.DUPLICATE,id:wf.DUPLICATE,icon:wf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===wf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===wf.DUPLICATE||e.id===wf.ADD_TO_MASTER_ITEMS||e.id===wf.UNLINK_VISUALIZATION||e.id===wf.REORDER_LAYERS_GROUP||e.id===wf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:wf.DELETE,id:wf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Bf(a,e,n,l,!1)},jf=(e,t,n,r)=>{b(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Sf.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(Sf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Tf(o,a,n,s,r),Of(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,Dh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const u=t.objectMap.get(l);if(!u)return!0;const c=Mf(a,e,u,n,r,s),d=await(async(e,t,n,r)=>{const o=Lf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:wf.CHART_HEADER,id:wf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Rf.includes(e.id)||!o&&_f.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(wf.CHART_HEADER),a})(a,u,n,c);return!d||(o.items.length>0&&d.addItem({translation:"contextMenu.subMenuContainerOptions",tid:Pf,id:Pf,icon:"tabbed-container",items:[...o.items]},d.items.length),o.updateItem({items:d.items}),!0)})},Nf=({element:n,models:r,env:a,activeCharts:s})=>{const l=((e,n)=>{const[r,o]=i(void 0);return t(()=>{if(0===e.getElementsByClassName(n).length){const t=document.createElement("div");t.className=n,e.appendChild(t);const r=kc.createRoot(t);o(r)}return()=>{r?.unmount()}},[e,n,r]),r})(n,"init-component"),{options:u,modifiedLayout:c,interactions:d,model:p}=r,{qChildList:h}=c,f=Sc(u.direction),b=(t=>{const{viewState:n}=e(),{snapshotData:r}=t;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(c),g=o(()=>ef(c),[c]),v={modifiedLayout:c,activeTabId:g,env:a},[y,E]=Bh(v);E(v);const C=o(()=>c.objects.filter(e=>g===e.childRefId),[g,c.objects]),D=o(()=>({...u,disableThemeBorder:!0}),[u]),{renderHelper:x}=(e=>{const{visibleLayoutObjects:n,options:r}=e,[o]=i(()=>new of(e)),[,a]=i(r);return o.dependencyData=e,m(async()=>(a(e=>(e!==r&&n.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(n)?o.createTimerForRendering()?.promise:o.resolver?.promise),[n,r]),t(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:c,visibleLayoutObjects:C,viewState:b,options:D,containerMenu:{id:Pf,icon:"TabbedContainerOutline"},translator:r.translator});jf(g,x,r,a);const[A]=i({current:void 0}),S=o(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]}).then(()=>{const t=y.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;s.updateActiveCharts(t?[t]:[])})},[s,p,y.modifiedLayout.objects]),w=o(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?S(t):A.current=e[0]}}),[S,y,A]);t(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Jh(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)S(e);else if(A.current){const e=y.modifiedLayout.objects.find(e=>e.id===A.current)?.childRefId;e&&S(e)}A.current=void 0},[c?.objects.length,y,A,S]),t(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Jh(e,t);if(!r||Qh(r,n)){const n=e.find(e=>0!==e.condition&&!1!==e.visible);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:d});e!==y.activeTabId&&S(e)},[d,c?.objects,y,S]);const R=0===h.qItems.length&&d.edit;return t(()=>{l?.render(Ht.jsxs(ua,{theme:f,children:[R?Ht.jsx(rf,{Icon:Wh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:w}):null,!R&&Ht.jsx(Af,{models:r,renderHelper:x,activeTabId:g,handleChangeTab:S,env:a})]}))},[l,r,f,R,x,g,w,S,a]),{renderHelper:x,sharedContainerUtilities:w,activeTabId:g}};var $f={targets:[]};const zf={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const Gf=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition&&!1!==r.visible){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r},Hf=new class{translator;muiTheme;containers={};sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=Sc(e)};destroy=e=>{delete this.containers[e]}};function Uf(n){return{qae:{properties:zf,data:$f},ext:mh({env:n,propertyHandlerData:Hf}),component(){const r=nf(),a=d();o(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(O).forEach(t=>{e.add(O[t])})}}(a)},[a]);const{dataHandler:s,model:l,accessibility:u,setAccessibility:c,interactions:p,element:h,modifiedLayout:f}=r,m=o(()=>function(){const e=new N.EventEmitter;let t=[];return e.updateActiveCharts=n=>{t=n.slice(),e.emit("activeChartsChange",t.slice())},e.setActiveCharts=n=>{t=n.slice(),e.emit("setActiveCharts",t.slice())},e.getActiveCharts=()=>[...t],e}(),[]),{renderHelper:b,sharedContainerUtilities:v,activeTabId:y}=Nf({element:h,models:r,env:n,activeCharts:m});(({propertyHandlerData:n,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:u})=>{const c=e();a&&n.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:u}),t(()=>{n.setMuiTheme(c.direction)},[c.direction,n]),t(()=>()=>{a&&n.destroy(a)},[a,n,c.direction])})({containerId:l?.id||"",element:h,sharedContainerUtilities:v,translator:a,dataHandler:s,propertyHandlerData:Hf,renderHelper:b});const[E,C]=i(!0);Lh({isContainerActive:E,activeTabId:y,renderHelper:b,modifiedLayout:f,activeCharts:m,sharedContainerUtilities:v}),Ih({element:h,accessibility:u,setAccessibility:c,renderHelper:b,interactions:p,env:n,models:r});const{getViewState:D}=yh(b,Gf);g(()=>({getViewState:D,getChildrenObjects:()=>(e=>e.map(e=>{if("canReceive"in e){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:n=>t(n)&&e.canReceive(n)}}return e}))(b.getChildrenObjects()),updateActiveState(e){C(e)},activeCharts:m}),[])}}}export{Uf as default};
|
|
89
|
+
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,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),E=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).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="",g=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+E}},Sp({exports:{}});const wp="'Source Sans Pro', 'Arial', 'sans-serif'",Rp="#333333",Fp="#595959",_p="#737373",kp="#cccccc",Ip="#e6e6e6";function Bp(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Fp],["object","axis.label.name","fontFamily",wp],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",kp],["object","axis.line.minor","color",Ip],["object","axis.title","color"],["object","axis.title","fontFamily",wp],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Ip],["object","grid.line.major","color",kp],["object","grid.line.minor","color",Ip],["object","label.value","color",Fp],["object","label.value","fontFamily",wp],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Fp],[!1,"label.value","lightColor",Ip],["object","outOfRange","color","#999"],["object","legend.title","color",Rp],["object","legend.title","fontFamily",wp],["object","legend.title","fontSize","15px"],["object","legend.label","color",Fp],["object","legend.label","fontFamily",wp],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Rp],["object","referenceLine.label.name","fontFamily",wp],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Ip],["object","referenceLine.outOfBounds","fontFamily",wp],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",_p,e=>"transparent"===e?_p:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).toSorted((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const Lp="object",Tp=e=>e;function Pp({theme:e,id:t,transform:n,extend:r,matrix:o}){const i={},a=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,u=e=>e]=n,c=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const i=e.getStyle(t,n,r);return void 0===i?o:i}({theme:e,base:r===Lp&&t?`${Lp}.${t}`:r,path:o,attribute:s,defaultValue:l}),d=(a[`${o}.${s}`]||Tp)(u(c));gp(i,[o,s].filter(Boolean).join("."),d)}),r.forEach(e=>{const[t,n]=e;gp(i,t,n)}),i}const Op={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}};function Mp(e){if(!e.objects)return{};const t=Zc(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition&&!1!==t[n.qData.childRefId]?.visible,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const jp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(mp(t,`${e}.color`)||mp(t,`${e}.colorExpression`))&&(gp(t,`${e}.color`,void 0),gp(t,`${e}.colorExpression`,void 0)),n?.(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:3,show:t=>!mp(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>mp(t,`${e}.useColorExpression`)}}}),Np=({theme:e})=>({bgColorAllWrapper:jp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:jp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jp({ref:"background.hover",theme:e,change:e=>{gp(e,"indicator.hover.color",mp(e,"background.hover.color")),gp(e,"indicator.hover.useColorExpression",mp(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),$p=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.show}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},zp=({theme:e})=>({colorWrapper:jp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jp({ref:"indicator.hover",theme:e,change:e=>{gp(e,"background.hover.color",mp(e,"indicator.hover.color")),gp(e,"background.hover.useColorExpression",mp(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Gp=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.fontsUsed=o}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Hp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Gp({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),Up=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{if(void 0!==e.width?.value&&"%"===e.width?.unit)for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>"px"===e.width?.unit,defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Vp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:zp({theme:e})}}}),Wp=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:$p({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>t.showIcons}),qp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:jp({ref:"background"})}:Np({theme:e})}}}),Yp=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Hp({ref:n,key:r,fontResolver:e,theme:t}),width:{...Up({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Wp({ref:n,key:r,fontResolver:e,theme:t}),background:qp({ref:n,key:r,theme:t})}}},Kp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Xp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Zp=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Jp=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Yc(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Zp(t,n.getLayout())}),n.setSelectedChild([i]))}}),Qp=e=>{const{sense:t}=e.env.anything;return{label:Kp,condition:Xp,styling:Yp({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Jp(e)}},eh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},th={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},nh=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:Qp(e)}),rh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:eh,chartsLabel:th,chartList:nh(e)}}),oh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},ih={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},ah={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},sh={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},lh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Jc(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},uh={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},ch=({fontResolver:e,theme:t})=>{const n="components",r="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Hp({ref:n,key:r,fontResolver:e,theme:t}),width:Up({ref:n,key:r}),indicator:Vp({ref:n,key:r,theme:t}),icon:Wp({ref:n,key:r,fontResolver:e,theme:t}),background:qp({ref:n,key:r,theme:t})}}},dh={items:{details:{show:e=>!0===e.showDetails}}},ph=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:ch({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:oh,useDropdown:ih,useScrollButton:ah,showIcons:sh,orientation:uh,defaultTabId:lh}}}}},hh=e=>({uses:"settings",items:{general:dh,presentation:ph(e)}}),fh=e=>({type:"items",component:"accordion",items:{content:rh(e),settings:hh(e)}}),mh=e=>{const{sense:t}=e.env.anything,n=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?ed:`${ed}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),i={};o.forEach(n=>{const o=n.split(".");ud(o);let a=i;for(let i=0;i<o.length;i++){const s=o[i];i===o.length-1?a[s]=sd({theme:e,translator:t,id:r,path:n}):void 0===a[s]&&(a[s]={}),a=a[s]}});const a=e=>{const t=e.split(".");ud(t);let n=i;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return i.getDefaultValue=e=>a(e).getDefaultValue(),i.getOptions=e=>a(e).getOptions(),i}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map(e=>({qProperty:e}))})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),n()},async addChild(t,n){const{model:r}=this,o=new Qc({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&wc.includes(t.template))return!1;if("visualization"===t.type&&wc.includes(t.visualization))return!1}return"gridcell"!==e.type||!wc.includes(e.cell.model.layout.visualization)}}}(e);return{definition:fh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Qc({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const u=await Promise.all(l),c={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:Op,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:c,qChildren:u})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:Mp}},bh=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),gh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:bh(n)}},vh=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;o.getSnapshotLayout?t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e)):o.takeSnapshot&&t.push(o.takeSnapshot().then(e=>({id:n,data:e?.layout})).catch(()=>e))}const n=await Promise.all(t);return bh(n)},yh=(e,t)=>(n(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=Kc(r),i=t(e.objectMap,n),[a,s]=await Promise.all([vh(i.objectMap),gh(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>gh(e.objectMap)});let Eh=function(e){return e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),Ch=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),Dh=function(e){return e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator",e}({});const xh=`& .${Dh.TAB}.${Dh.TAB_EXTRA_PRIO}, .${Dh.TAB}.${Dh.ACTIVE_TAB}`,Ah=`& .${Dh.TAB}.${Dh.TAB_EXTRA_PRIO}:hover`,Sh=`& .${Dh.TAB_LABEL}`,wh=`& .${Dh.TABS_ICON} svg`,Rh=`& .${Dh.TAB_WRAPPER}`,Fh=`& .${Dh.TAB_INDICATOR}`,_h=e=>e.getElementsByClassName(Dh.ACTIVE_TAB)?.[0],kh=e=>e.getElementsByClassName(Dh.ACTIVE_TAB_PANEL)?.[0],Ih=({element:e,setAccessibility:n,accessibility:a,renderHelper:s,interactions:l,env:u,models:c})=>{const{modifiedLayout:{showTabs:d,objects:p,orientation:h},translator:f}=c;t(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,d?t:""]))})()},[e,d,p,f,h]);const m=u.flags.isEnabled("VIZ-7_NEW_SHEET")||u.flags.isEnabled("VIZ-7_NEW_SHEET_EDIT"),b=r(),g=o(()=>()=>{n(!1),b.enabled&&b.blur?.(!0)},[b,n]),v=o(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case Eh.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case Eh.ENTER:case Eh.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(Dh.ACTIVE_TAB)&&kh(e)?.focus();break}}},[e,b]),y=o(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case Eh.ESCAPE:{const n=_h(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case Eh.ENTER:case Eh.SPACE:{const n=kh(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:r,activeTab:n});break}case Eh.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),E=o(()=>e=>{const t=e.target;t?.classList.contains(Dh.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);t(()=>(a&&e.addEventListener(Ch.KEY_DOWN,E),()=>{e.removeEventListener(Ch.KEY_DOWN,E)}),[e,a,E]);const[C,D]=i(!1);t(()=>{C&&(D(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(Dh.TAB_MENU)?.[0])(e)??_h(e))?.focus(),0))},[e,C]),t(()=>{n(!1)},[l.edit,n]),t(()=>{const t=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(Dh.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(n(!0),D(!0),e.addEventListener(Ch.FOCUS_OUT,t)),()=>{e.removeEventListener(Ch.FOCUS_OUT,t)}},[b])},Bh=e=>{const[t]=i(e);return[t,function(e){Object.assign(t,e)}]},Lh=({isContainerActive:e,activeTabId:n,modifiedLayout:r,renderHelper:i,activeCharts:a,sharedContainerUtilities:s})=>{const l={modifiedLayout:r,activeTabId:n,renderHelper:i,isContainerActive:e},[u,c]=Bh(l);c(l);const d=o(()=>()=>{const e=Xc(u.modifiedLayout);for(const[t,n]of u.renderHelper.objectMap.entries()){const r=u.isContainerActive&&u.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[u]);t(()=>{u.isContainerActive&&d()},[i.objectMap,d,u]),t(()=>{d()},[e,d]),(({activeCharts:e,onSetActiveCharts:n,canSetActiveChart:r=!0})=>{const[o,i]=Bh({onSetActiveCharts:n});i({onSetActiveCharts:n}),t(()=>{if(!r)return;const t=e=>{o.onSetActiveCharts(e)};e.on("setActiveCharts",t);const n=e.getActiveCharts();return n.length>0&&t(n),()=>e.removeListener("setActiveCharts",t)},[e,o,r])})({activeCharts:a,onSetActiveCharts:e=>{if(0===e.length)return;const t=u.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t&&t!==u.activeTabId&&s.setSelected(e)}})},Th={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Ph={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Oh{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=Ph.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(Ph))};getMasterVisualizations=async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map(e=>({...e.qData,qExtendsId:e.qInfo.qId})).filter(e=>!wc.includes(e.visualization))}catch{return[]}}}let Mh=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class jh{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new Oh(n)),e&&r&&(this.chartList=new Rc(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!wc.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=Th.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.setProperties(t)}return t&&o&&await Promise.all(t.map(({qProperty:e})=>o.createChild(e))),o};return await this.rememberAsGroup(o)}catch{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case Mh.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case Mh.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case Mh.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case Mh.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class Nh{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise(e=>{this.tasks.push(e)}):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const $h={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},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},zh={index:-1,color:"none",alpha:1},Gh=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Hh=(e,t,n,r,o=1)=>{let i,a,s,l;switch(n=Math.floor(n)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Uh=e=>{const{h:t,s:n,l:r}=Gh(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Hh(i,s,a,r-.5*i,o)},Vh={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Uh(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Uh(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:n,v:r}=Gh(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Hh(o,a,i,r-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const n=e&&$h[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||zh;let o;return o=e?.useColorExpression?Vh.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},Wh=()=>Ht.jsx($c,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})}),qh=({libraryInfo:e,style:t,id:n})=>Ht.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:Dh.TABS_ICON,children:Ht.jsx(e.IconDefinition,{})}),Yh=({style:e,id:t})=>Ht.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:Ht.jsx(zc,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"})})}),Kh=()=>Ht.jsx(zc,{viewBox:"0 0 16 16",children:Ht.jsx("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})}),Xh=sa(ec)({width:28,overflow:"hidden"}),Zh=sa(ec)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Jh=(e,t)=>e.find(e=>e.childRefId===t),Qh=(e,t)=>!t.edit&&(0===e.condition||!1===e.visible),ef=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class tf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=ef(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Zc(this.modifiedLayout),this.style=this.createStyleClasses()}getTabsWidth=e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return Vh.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=Vh.getColor({style:e,theme:this.theme})}return n??Vh.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:mp(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:mp(r,"label.fontSize"),fontFamily:mp(r,"label.fontFamily"),color:Vh.getColor({style:mp(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:mp(r,"icon.size"),color:Vh.getColor({style:mp(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[Sh]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[wh]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[xh]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[Ah]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[Rh]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Fh]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return mp(o,t)??mp(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const nf=()=>{const t=a(),n=s(),r=l(),m=u(),b=c(),g=d(),v=e(),y=p(),E=h(),C=function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:i=[]}=t,a={theme:e,matrix:Bp(r),styles:void 0};return a.styles=Pp({theme:e,id:n,transform:o,extend:i,matrix:a.matrix}),{getStyles:()=>a.styles,getTheme:()=>a.theme,setTheme:e=>{a.theme=e,a.styles=Pp({theme:e,id:n,transform:o,extend:i,matrix:a.matrix})}}}({theme:f(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),D=o(()=>new Rc(m,g),[m,g]),[x]=i(()=>new Nh(b?.id)),[A,S]=i(!1),w=o(()=>m&&b&&n?new jh({embed:m,model:b,app:n,translator:g,mutex:x}):void 0,[m,b,n,g,x]),R=o(()=>Kc(r),[r]),F=o(()=>new tf({modifiedLayout:R,themeService:C}),[R,C]);return o(()=>({app:n,modifiedLayout:R,embed:m,model:b,emitter:y,interactions:E,dataHandler:w,chartList:D,styleModel:F,mutex:x,options:v,accessibility:A,setAccessibility:S,translator:g,element:t}),[R,m,b,n,y,E,w,D,F,x,v,A,g,t])},rf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=S(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return Ht.jsx(Tc,{children:Ht.jsxs(Lc,{children:[Ht.jsx(o,{}),s?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(Nc,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),Ht.jsx(Uc,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):Ht.jsx(ys,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class of{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get dependencyData(){return this._dependencyData}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this._dependencyData.options.onRenderStatusUpdate?.("Layout container rendering timeout reached after 90 seconds. Resolving anyway."),this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){e.every(e=>this.rendered.has(e.id))&&(this._dependencyData.options.onRenderStatusUpdate?.("All layout container children rendered"),this.doResolve())}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.destroy(),this.objectApis.delete(e)}),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this._dependencyData.options.onRenderStatusUpdate?.(`Layout container child rendered: ${this.rendered.size+1}/${this._dependencyData.visibleLayoutObjects.length} ${e}`),this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach(e=>{const n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}shouldRenderWithQmfeEmbed(e){return!!this._dependencyData.options.useQlikEmbedChildRendering&&!!e}getNebulaOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData;return{isReadonly:!1,isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:r.direction,chartAnimations:r.chartAnimations,progressiveRendering:r.progressiveRendering,freeResize:r.freeResize,navigation:r.navigation,disableThemeBorder:r.disableThemeBorder??!1,fallbackToClient:r.fallbackToClient}}getNebulaEmbedOptions(e){const{useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}=this._dependencyData.options;return{...this.getNebulaOptions(e),setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},useQlikEmbedChildRendering:t,getContextMenuParent:n,embedProps:r}}getQmfeEmbedProps(e,t){const{options:n,containerMenu:r={id:"container-menu",icon:"ChartObject"},translator:o}=this._dependencyData,{embedProps:i,getContextMenuParent:a}=n;return{...i,ui:"analytics/chart",objectId:e,preview:!0,appId:t,onRender:()=>{this.onRendered(e)},options:{...i?.options,...this.getNebulaOptions(e)},onError:t=>{const n=this.getChildLayout(e)?.qInfo.qType;console.error("Could not render chart with id",e,n,t)},exposeRefApi:({getVisualizationApi:t})=>{t().then(t=>{const n=t;this.saveObjectApi(e,n),this.saveObject(e,{...n,getViewState:()=>n.getImperativeHandle().then(e=>e.getViewState())})})},onContextMenu:async e=>{try{const t=await(i?.onContextMenu?i.onContextMenu(e):e.contextMenuItems)??[],n=await(a?.(e));return n&&"contextMenuItems"in e&&t.push({id:r.id,icon:{value:r.icon,type:"sprout"},label:o?.get("contextMenu.subMenuContainerOptions")??"Container options",onClick:()=>{},items:n}),t}catch(e){return console.error("Error getting context menu parent options",e),[]}}}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}var af=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),sf=af((e,t)=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,t.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,t.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/}),lf=af((e,t)=>{const n=sf();t.exports={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}}),uf=af((e,t)=>{const n=lf();let r,o,i,a,s,l,u,c,d,p,h,f,m,b;function g(e,t,n){const r=e[t];if(null!=r&&"object"==typeof r)if(Array.isArray(r))for(let e=0;e<r.length;e++){const t=String(e),o=g(r,t,n);void 0===o?delete r[t]:Object.defineProperty(r,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const e in r){const t=g(r,e,n);void 0===t?delete r[e]:Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}function v(){for(p="default",h="",f=!1,m=1;;){b=y();const e=C[p]();if(e)return e}}function y(){if(r[a])return String.fromCodePoint(r.codePointAt(a))}function E(){const e=y();return"\n"===e?(s++,l=0):e?l+=e.length:l++,e&&(a+=e.length),e}t.exports=function(e,t){r=String(e),o="start",i=[],a=0,s=1,l=0,u=void 0,c=void 0,d=void 0;do{u=v(),S[o]()}while("eof"!==u.type);return"function"==typeof t?g({"":d},"",t):d};const C={default(){switch(b){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void E();case"/":return E(),void(p="comment");case void 0:return E(),D("eof")}if(!n.isSpaceSeparator(b))return C[o]();E()},comment(){switch(b){case"*":return E(),void(p="multiLineComment");case"/":return E(),void(p="singleLineComment")}throw F(E())},multiLineComment(){switch(b){case"*":return E(),void(p="multiLineCommentAsterisk");case void 0:throw F(E())}E()},multiLineCommentAsterisk(){switch(b){case"*":return void E();case"/":return E(),void(p="default");case void 0:throw F(E())}E(),p="multiLineComment"},singleLineComment(){switch(b){case"\n":case"\r":case"\u2028":case"\u2029":return E(),void(p="default");case void 0:return E(),D("eof")}E()},value(){switch(b){case"{":case"[":return D("punctuator",E());case"n":return E(),x("ull"),D("null",null);case"t":return E(),x("rue"),D("boolean",!0);case"f":return E(),x("alse"),D("boolean",!1);case"-":case"+":return"-"===E()&&(m=-1),void(p="sign");case".":return h=E(),void(p="decimalPointLeading");case"0":return h=E(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=E(),void(p="decimalInteger");case"I":return E(),x("nfinity"),D("numeric",1/0);case"N":return E(),x("aN"),D("numeric",NaN);case'"':case"'":return f='"'===E(),h="",void(p="string")}throw F(E())},identifierNameStartEscape(){if("u"!==b)throw F(E());E();const e=A();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e))throw k()}h+=e,p="identifierName"},identifierName(){switch(b){case"$":case"_":case"":case"":return void(h+=E());case"\\":return E(),void(p="identifierNameEscape")}if(!n.isIdContinueChar(b))return D("identifier",h);h+=E()},identifierNameEscape(){if("u"!==b)throw F(E());E();const e=A();switch(e){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(e))throw k()}h+=e,p="identifierName"},sign(){switch(b){case".":return h=E(),void(p="decimalPointLeading");case"0":return h=E(),void(p="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return h=E(),void(p="decimalInteger");case"I":return E(),x("nfinity"),D("numeric",m*(1/0));case"N":return E(),x("aN"),D("numeric",NaN)}throw F(E())},zero(){switch(b){case".":return h+=E(),void(p="decimalPoint");case"e":case"E":return h+=E(),void(p="decimalExponent");case"x":case"X":return h+=E(),void(p="hexadecimal")}return D("numeric",0*m)},decimalInteger(){switch(b){case".":return h+=E(),void(p="decimalPoint");case"e":case"E":return h+=E(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},decimalPointLeading(){if(n.isDigit(b))return h+=E(),void(p="decimalFraction");throw F(E())},decimalPoint(){switch(b){case"e":case"E":return h+=E(),void(p="decimalExponent")}return n.isDigit(b)?(h+=E(),void(p="decimalFraction")):D("numeric",m*Number(h))},decimalFraction(){switch(b){case"e":case"E":return h+=E(),void(p="decimalExponent")}if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},decimalExponent(){switch(b){case"+":case"-":return h+=E(),void(p="decimalExponentSign")}if(n.isDigit(b))return h+=E(),void(p="decimalExponentInteger");throw F(E())},decimalExponentSign(){if(n.isDigit(b))return h+=E(),void(p="decimalExponentInteger");throw F(E())},decimalExponentInteger(){if(!n.isDigit(b))return D("numeric",m*Number(h));h+=E()},hexadecimal(){if(n.isHexDigit(b))return h+=E(),void(p="hexadecimalInteger");throw F(E())},hexadecimalInteger(){if(!n.isHexDigit(b))return D("numeric",m*Number(h));h+=E()},string(){switch(b){case"\\":return E(),void(h+=function(){switch(y()){case"b":return E(),"\b";case"f":return E(),"\f";case"n":return E(),"\n";case"r":return E(),"\r";case"t":return E(),"\t";case"v":return E(),"\v";case"0":if(E(),n.isDigit(y()))throw F(E());return"\0";case"x":return E(),function(){let e="",t=y();if(!n.isHexDigit(t))throw F(E());if(e+=E(),t=y(),!n.isHexDigit(t))throw F(E());return e+=E(),String.fromCodePoint(parseInt(e,16))}();case"u":return E(),A();case"\n":case"\u2028":case"\u2029":return E(),"";case"\r":return E(),"\n"===y()&&E(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw F(E())}return E()}());case'"':return f?(E(),D("string",h)):void(h+=E());case"'":return f?void(h+=E()):(E(),D("string",h));case"\n":case"\r":throw F(E());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${I(e)}' in strings is not valid ECMAScript; consider escaping`)}(b);break;case void 0:throw F(E())}h+=E()},start(){switch(b){case"{":case"[":return D("punctuator",E())}p="value"},beforePropertyName(){switch(b){case"$":case"_":return h=E(),void(p="identifierName");case"\\":return E(),void(p="identifierNameStartEscape");case"}":return D("punctuator",E());case'"':case"'":return f='"'===E(),void(p="string")}if(n.isIdStartChar(b))return h+=E(),void(p="identifierName");throw F(E())},afterPropertyName(){if(":"===b)return D("punctuator",E());throw F(E())},beforePropertyValue(){p="value"},afterPropertyValue(){switch(b){case",":case"}":return D("punctuator",E())}throw F(E())},beforeArrayValue(){if("]"===b)return D("punctuator",E());p="value"},afterArrayValue(){switch(b){case",":case"]":return D("punctuator",E())}throw F(E())},end(){throw F(E())}};function D(e,t){return{type:e,value:t,line:s,column:l}}function x(e){for(const t of e){if(y()!==t)throw F(E());E()}}function A(){let e="",t=4;for(;t-- >0;){const t=y();if(!n.isHexDigit(t))throw F(E());e+=E()}return String.fromCodePoint(parseInt(e,16))}const S={start(){if("eof"===u.type)throw _();w()},beforePropertyName(){switch(u.type){case"identifier":case"string":return c=u.value,void(o="afterPropertyName");case"punctuator":return void R();case"eof":throw _()}},afterPropertyName(){if("eof"===u.type)throw _();o="beforePropertyValue"},beforePropertyValue(){if("eof"===u.type)throw _();w()},beforeArrayValue(){if("eof"===u.type)throw _();"punctuator"!==u.type||"]"!==u.value?w():R()},afterPropertyValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforePropertyName");case"}":R()}},afterArrayValue(){if("eof"===u.type)throw _();switch(u.value){case",":return void(o="beforeArrayValue");case"]":R()}},end(){}};function w(){let e;switch(u.type){case"punctuator":switch(u.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=u.value}if(void 0===d)d=e;else{const t=i[i.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,c,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)i.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function R(){i.pop();const e=i[i.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function F(e){return B(void 0===e?`JSON5: invalid end of input at ${s}:${l}`:`JSON5: invalid character '${I(e)}' at ${s}:${l}`)}function _(){return B(`JSON5: invalid end of input at ${s}:${l}`)}function k(){return l-=5,B(`JSON5: invalid identifier character at ${s}:${l}`)}function I(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function B(e){const t=new SyntaxError(e);return t.lineNumber=s,t.columnNumber=l,t}}),cf=af((e,t)=>{const n=lf();t.exports=function(e,t,r){const o=[];let i,a,s,l="",u="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,s=t.quote,t=t.replacer),"function"==typeof t)a=t;else if(Array.isArray(t)){i=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&i.indexOf(t)<0&&i.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):"string"==typeof r&&(u=r.substr(0,10)),c("",{"":e});function c(e,t){let n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),a&&(n=a.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?d(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=[];for(let t=0;t<e.length;t++){const n=c(String(t),e);r.push(void 0!==n?n:"null")}if(0===r.length)n="[]";else if(""===u)n="["+r.join(",")+"]";else{let e=",\n"+l,o=r.join(e);n="[\n"+l+o+",\n"+t+"]"}return o.pop(),l=t,n}(n):function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);let t=l;l+=u;let n,r=i||Object.keys(e),a=[];for(const t of r){const n=c(t,e);if(void 0!==n){let e=p(t)+":";""!==u&&(e+=" "),e+=n,a.push(e)}}if(0===a.length)n="{}";else{let e;if(""===u)e=a.join(","),n="{"+e+"}";else{let r=",\n"+l;e=a.join(r),n="{\n"+l+e+",\n"+t+"}"}}return o.pop(),l=t,n}(n):void 0}function d(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let o="";for(let i=0;i<e.length;i++){const a=e[i];switch(a){case"'":case'"':t[a]++,o+=a;continue;case"\0":if(n.isDigit(e[i+1])){o+="\\x00";continue}}if(r[a])o+=r[a];else{if(a<" "){let e=a.charCodeAt(0).toString(16);o+="\\x"+("00"+e).substring(e.length);continue}o+=a}}const i=s||Object.keys(t).reduce((e,n)=>t[e]<t[n]?e:n);return o=o.replace(new RegExp(i,"g"),r[i]),i+o+i}function p(e){if(0===e.length)return d(e);const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t))return d(e);for(let r=t.length;r<e.length;r++)if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(r))))return d(e);return e}}});function df(e){if("undefined"==typeof window)throw new Error(`Cannot load runtime module "${e}" outside a browser (no window available)`)}async function pf(e,t){return t?.runtimeModuleMocks?.[e]?t.runtimeModuleMocks?.[e]:(df(e),function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");const t=function(e){if(!window.__qlikMainPrivateResolvers)throw new Error("No main url resolver found");let t,n=e?.embedRuntimeUrl||e?.url||e?.host;if(n||"noauth"!==e?.authType||(n="https://cdn.qlikcloud.com/qmfe"),n){for(t=n.toLowerCase().startsWith("https://")||n.toLowerCase().startsWith("http://")?n:`https://${n}`;t.endsWith("/");)t=t.slice(0,-1);return`${t}/qlik-embed/main.js`}}(e);t&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig&&window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({url:t,hostConfig:e}),t&&window.__qlikMainPrivateResolvers.resolveMainJsUrl&&(window.__qlikMainPrivateResolvers.forwardCompatibleHostConfig=e,window.__qlikMainPrivateResolvers.resolveMainJsUrl(t))}(t),async function(e){if(df(e),!window.__qlikMainPrivateResolvers?.qlikMainPromise)throw new Error("No main url resolver found");return(await window.__qlikMainPrivateResolvers.qlikMainPromise).import(e)}(e))}af((e,t)=>{t.exports={parse:uf(),stringify:cf()}})(),"undefined"!=typeof window&&(window.__qlikMainPrivateResolvers||(window.__qlikMainPrivateResolvers={}),window.__qlikMainPrivateResolvers.mainUrlPromise||(window.__qlikMainPrivateResolvers.mainUrlPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrl=t=>{e(t)})})),window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise||(window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise=new Promise(e=>{window.__qlikMainPrivateResolvers&&(window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig=t=>{e(t)})})),window.__qlikMainPrivateResolvers.qlikMainPromise||(window.__qlikMainPrivateResolvers.qlikMainPromise=(async()=>{if(window.QlikMain)return window.QlikMain;if(!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise||!window.__qlikMainPrivateResolvers.mainUrlPromise)throw new Error("No main url promise found, report this issue");const e=setTimeout(()=>{console.warn("Waiting for a host parameter pointing to a Qlik runtime system")},5e3),{url:t,hostConfig:n}=await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise,window.__qlikMainPrivateResolvers.mainUrlPromise.then(e=>({url:e,hostConfig:window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig}))]);clearTimeout(e);const r=await async function(e,t){if("windowscookie"===t?.authType){if(t.getAccessToken){const n=await async function(e){if("function"==typeof e)return e();if("string"==typeof e){const t=function(e){return globalThis[e]}(e);if("function"!=typeof t)throw new Error(`getAccessToken function "${e}" not found on globalThis. Please make sure it is defined.`);return t()}}(t.getAccessToken);return n&&await fetch(e,{method:"GET",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},cache:"no-cache"}),!0}if(t.loginUri&&!(await fetch(e,{method:"GET",mode:"cors",credentials:"include",redirect:"manual"}).catch(()=>({ok:!1}))).ok)return window.location.replace(t.loginUri),new Promise(()=>{})}return!1}(t,n);return new Promise(e=>{if(window.QlikMain)e(window.QlikMain);else{const n=window.document.createElement("script");t&&(n.src=t),r&&(n.crossOrigin="use-credentials"),n.addEventListener("error",()=>{console.error(`Qlik runtime system not found: ${t}`)}),n.addEventListener("load",()=>{window.QlikMain&&e(window.QlikMain)}),window.document.head.appendChild(n)}})})()));const hf=R(void 0),ff=e=>{const t=_(null),n=_(void 0),{vanillaEmbedFn:r,hostConfig:o,...i}=e;return w(()=>(t.current&&(n.current=r({target:t.current,props:{hostConfig:o,...i}})),()=>{n.current&&n.current.$destroy()}),[]),w(()=>{n.current&&n.current.$set({hostConfig:o,...i})},[i,o]),Ht.jsx("qlik-embed-react",{style:{display:"contents"},ref:t})},mf=e=>{const t=C(hf),{vanillaEmbedFn:n}=function(e){const[t,n]=S({});return w(()=>{let t=!1;const r=e=>{t||n({vanillaError:e instanceof Error?e:new Error(String(e))})},o=e=>pf("embed-vanilla@v1",e).then(({mountVanillaEmbedComponent:e})=>{t||n({vanillaEmbedFn:e})});return e?o(e).catch(r):pf("auth@v1").then(e=>{if(!t&&e.getDefaultHostConfig?.())return o(void 0)}).catch(r),()=>{t=!0}},[e]),t}(t);return n?Ht.jsx(ff,{hostConfig:t,...e,vanillaEmbedFn:n}):null};const bf=E(function(e,t){const[n,r]=S(null),o=function(e){const t=_(e);return w(()=>{t.current=e},[e]),k(e=>{t.current(e)},[])}(e=>{r(()=>e)});return F(t,()=>n,[n]),Ht.jsx(mf,{exposeRefApi:o,...e})}),gf=new Map,vf=e=>{const t=gf.get(e);t&&(t.unmount(),gf.delete(e))},yf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i,app:a})=>{const s=_(null),{id:l}=e;w(()=>(l&&s.current&&(async(e,t,n,r,o)=>{const i=o?.id;if(r.shouldRenderWithQmfeEmbed(i))try{const n=kc.createRoot(e);return gf.set(t,n),void n.render(Ht.jsx(hf.Provider,{value:{},children:Ht.jsx(bf,{...r.getQmfeEmbedProps(t,i)})}))}catch(e){console.warn("QlikEmbed mount failed, falling back to embed.render()",t,e),vf(t)}n.render({element:e,id:t,options:r.getNebulaEmbedOptions(t)}).then(e=>{r.saveObjectApi(t,e)}).catch(e=>{const n=r.getChildLayout(t)?.qInfo.qType;console.error("Could not render chart with id",t,n,e)})})(s.current,l,t,n,a),()=>{l&&vf(l)}),[l,t,n,r,a]);const u=I(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return w(()=>{const e=s?.current;return e&&o?.edit&&e.addEventListener("dblclick",u),()=>{e?.removeEventListener("dblclick",u)}},[s,u,o]),Ht.jsx("div",{ref:s,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let Ef=function(e){return e.TABS_HEIGHT="36px",e}({});const Cf=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=y.useState(null),u=Boolean(s),c=()=>{l(null)},d=k(e=>{e?.focus()},[]);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(nl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:Dh.TAB_MENU,sx:{m:"2px"},children:Ht.jsx(Kh,{})}),Ht.jsx(Tu,{anchorEl:s,open:u,onClose:c,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}},children:e.map(e=>Ht.jsx(Nu,{className:Dh.TAB_MENU_ITEM,ref:n===e.childRefId&&u?d:null,onClick:()=>{(e=>{t(e.childRefId),c(),window.setTimeout(()=>{r.getElementsByClassName(Dh.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{},"aria-label":e.label,title:e.label,children:Ht.jsx(ys,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},Df=({label:e,id:t})=>Ht.jsx(Ws,{className:Dh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:Ht.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),xf=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition||!1===t.visible?Ht.jsx(Yh,{id:`${Dh.TABS_ICON}-${r}`,style:o}):e?Ht.jsx(qh,{id:`${Dh.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},Af=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Qh(e,i)),{orientation:u,tabContainerStyle:c,ScrollButtonComponent:d}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Zh}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Xh})(r),p=!1===i.active&&!i.edit,[h,f]=S(!1),m=k(e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===u?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)},[u]);return Ht.jsxs(Ws,{className:Dh.TAB_WRAPPER,sx:c,ref:e=>{m(e)},children:[r.useDropdown&&h?Ht.jsx(Cf,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,Ht.jsx(hc,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:d,variant:"scrollable",orientation:u,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Ef.TABS_HEIGHT},children:l.map(n=>{const o=Yc(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),c=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show||!1===n.visible,d="vertical"===u?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:d}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return Ht.jsx(Uu,{className:`${Dh.TAB} ${t===n.childRefId?Dh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?Ht.jsx(Df,{label:n.label,id:b}):void 0,icon:c?Ht.jsx(xf,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==u||r.showIcons?"center":"start",minWidth:"vertical"===u?"100%":void 0,minHeight:Ef.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},Sf=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:u,accessibility:c,app:d}=e,p=i.objects,h=s.edit||!!p.find(e=>0!==e.condition&&!1!==e.visible),f=i.showTabs&&h,m="left"===i.orientation?"row":"column",b=u.getStyleClasses();return Ht.jsxs(Ws,{sx:{display:"flex",flexDirection:m,height:"100%",width:"100%",direction:l.direction,...b},children:[f?Ht.jsx(Af,{models:e,activeTabId:n,handleChangeTab:r}):null,p.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,u=n===e.childRefId&&!Qh(e,s);return Ht.jsx(Ws,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...u?{className:Dh.ACTIVE_TAB_PANEL,tabIndex:c?0:-1}:{hidden:!0},children:u?Ht.jsx(yf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o,app:d}):null},r)})]})};let wf=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Rf=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Ff=[Rf.PASTE_AND_REPLACE,Rf.ZOOM_IN,Rf.VISUAL_EXPLORATION],_f=[Rf.VISUAL_EXPLORATION,Rf.ALERT_GROUP,Rf.SHOW_DETAILS,Rf.EXPLAIN_KEY_DRIVERS,Rf.EXPLAIN_KEY_DRIVERS_OLD_ID],kf=[Rf.DELETE,Rf.CUT,Rf.ADD_TO_MASTER_ITEMS,Rf.UNLINK_VISUALIZATION],If=[Rf.PASTE_AND_REPLACE],Bf=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},Lf=(e,t,n,r,o)=>{const i=t.getSupportFunction(Rf.COPY);if(!i)return void e.deleteItem(Rf.COPY);const a=()=>{i(Bf(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===Rf.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===Rf.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Rf.COPY,id:Rf.COPY,icon:"copy",select:a,items:[]},n)}},Tf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,Pf=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:Rf.CONTAINER_HEADER,id:Rf.CONTAINER_HEADER,bold:!0,items:[]},0);const s=Tf(n);a.items.forEach(e=>{(_f.includes(e.id)||!s&&If.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(wf.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||wc.includes(o.template))return void e.deleteItem(Rf.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===Rf.PASTE_AND_REPLACE||e.id===Rf.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===Rf.COPY||e.id===Rf.DEVELOPER||e.id===Rf.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Rf.PASTE_AND_REPLACE,id:Rf.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(Rf.CONTAINER_HEADER)},Of="tabbed-container-menu",Mf=e=>{const t={[Rf.MONITOR_IN_HUB]:!0,[Rf.SUBSCRIBE]:!0,[Rf.NOTES_GROUP]:!0,[Rf.DOWNLOAD]:!0,[Rf.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&Mf(n)})},jf=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(Tf(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===Rf.CHART_HEADER||e.id===Rf.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Rf.EDIT_PROPERTIES,id:Rf.EDIT_PROPERTIES,icon:Rf.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(Rf.COPY);if(!a)return void e.deleteItem(Rf.CUT);const s=()=>{o&&a(Bf(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===Rf.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===Rf.ADD_TO_MASTER_ITEMS||e.id===Rf.UNLINK_VISUALIZATION||e.id===Rf.EDIT_PROPERTIES||e.id===Rf.REORDER_LAYERS_GROUP||e.id===Rf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Rf.CUT,id:Rf.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),Lf(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(wf.COPY),a=t.getSupportFunction(wf.PASTE);if(!i||!a)return void e.deleteItem(Rf.DUPLICATE);const s=()=>{i(Bf(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===Rf.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===Rf.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Rf.DUPLICATE,id:Rf.DUPLICATE,icon:Rf.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===Rf.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===Rf.DUPLICATE||e.id===Rf.ADD_TO_MASTER_ITEMS||e.id===Rf.UNLINK_VISUALIZATION||e.id===Rf.REORDER_LAYERS_GROUP||e.id===Rf.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Rf.DELETE,id:Rf.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else Lf(a,e,n,l,!1)},Nf=(e,t,n,r)=>{b(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(wf.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(wf.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await Pf(o,a,n,s,r),Mf(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,Dh.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const u=t.objectMap.get(l);if(!u)return!0;const c=jf(a,e,u,n,r,s),d=await(async(e,t,n,r)=>{const o=Tf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Rf.CHART_HEADER,id:Rf.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(Ff.includes(e.id)||!o&&kf.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(Rf.CHART_HEADER),a})(a,u,n,c);return!d||(o.items.length>0&&d.addItem({translation:"contextMenu.subMenuContainerOptions",tid:Of,id:Of,icon:"tabbed-container",items:[...o.items]},d.items.length),o.updateItem({items:d.items}),!0)})},$f=({element:n,models:r,env:a,activeCharts:s})=>{const l=((e,n)=>{const[r,o]=i(void 0);return t(()=>{if(0===e.getElementsByClassName(n).length){const t=document.createElement("div");t.className=n,e.appendChild(t);const r=kc.createRoot(t);o(r)}return()=>{r?.unmount()}},[e,n,r]),r})(n,"init-component"),{options:u,modifiedLayout:c,interactions:d,model:p}=r,{qChildList:h}=c,f=Sc(u.direction),b=(t=>{const{viewState:n}=e(),{snapshotData:r}=t;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(c),g=o(()=>ef(c),[c]),v={modifiedLayout:c,activeTabId:g,env:a},[y,E]=Bh(v);E(v);const C=o(()=>c.objects.filter(e=>g===e.childRefId),[g,c.objects]),D=o(()=>({...u,disableThemeBorder:!0}),[u]),{renderHelper:x}=(e=>{const{visibleLayoutObjects:n,options:r}=e,[o]=i(()=>new of(e)),[,a]=i(r);return o.dependencyData=e,m(async()=>(a(e=>(e!==r&&n.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(n)?o.createTimerForRendering()?.promise:o.resolver?.promise),[n,r]),t(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:c,visibleLayoutObjects:C,viewState:b,options:D,containerMenu:{id:Of,icon:"TabbedContainerOutline"},translator:r.translator});Nf(g,x,r,a);const[A]=i({current:void 0}),S=o(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]}).then(()=>{const t=y.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;s.updateActiveCharts(t?[t]:[])})},[s,p,y.modifiedLayout.objects]),w=o(()=>({setSelected:e=>{const t=y.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?S(t):A.current=e[0]}}),[S,y,A]);t(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Jh(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId});if(e!==y.activeTabId)S(e);else if(A.current){const e=y.modifiedLayout.objects.find(e=>e.id===A.current)?.childRefId;e&&S(e)}A.current=void 0},[c?.objects.length,y,A,S]),t(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Jh(e,t);if(!r||Qh(r,n)){const n=e.find(e=>0!==e.condition&&!1!==e.visible);return n?.childRefId||t}return t})({chartObjects:y.modifiedLayout.objects,activeTabId:y.activeTabId,interactions:d});e!==y.activeTabId&&S(e)},[d,c?.objects,y,S]);const R=0===h.qItems.length&&d.edit;return t(()=>{l?.render(Ht.jsxs(ua,{theme:f,children:[R?Ht.jsx(rf,{Icon:Wh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:w}):null,!R&&Ht.jsx(Sf,{models:r,renderHelper:x,activeTabId:g,handleChangeTab:S,env:a})]}))},[l,r,f,R,x,g,w,S,a]),{renderHelper:x,sharedContainerUtilities:w,activeTabId:g}};var zf={targets:[]};const Gf={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition",visible:"/visible"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const Hf=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition&&!1!==r.visible){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r},Uf=new class{translator;muiTheme;containers={};sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i,chartList:a})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i,chartList:a}};setMuiTheme=e=>{this.muiTheme=Sc(e)};destroy=e=>{delete this.containers[e]}};function Vf(n){return{qae:{properties:Gf,data:zf},ext:mh({env:n,propertyHandlerData:Uf}),component(){const r=nf(),a=d();o(()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(O).forEach(t=>{e.add(O[t])})}}(a)},[a]);const{dataHandler:s,model:l,accessibility:u,setAccessibility:c,interactions:p,element:h,modifiedLayout:f}=r,m=o(()=>function(){const e=new N.EventEmitter;let t=[];return e.updateActiveCharts=n=>{t=n.slice(),e.emit("activeChartsChange",t.slice())},e.setActiveCharts=n=>{t=n.slice(),e.emit("setActiveCharts",t.slice())},e.getActiveCharts=()=>[...t],e}(),[]),{renderHelper:b,sharedContainerUtilities:v,activeTabId:y}=$f({element:h,models:r,env:n,activeCharts:m});(({propertyHandlerData:n,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l,chartList:u})=>{const c=e();a&&n.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l,chartList:u}),t(()=>{n.setMuiTheme(c.direction)},[c.direction,n]),t(()=>()=>{a&&n.destroy(a)},[a,n,c.direction])})({containerId:l?.id||"",element:h,sharedContainerUtilities:v,translator:a,dataHandler:s,propertyHandlerData:Uf,renderHelper:b});const[E,C]=i(!0);Lh({isContainerActive:E,activeTabId:y,renderHelper:b,modifiedLayout:f,activeCharts:m,sharedContainerUtilities:v}),Ih({element:h,accessibility:u,setAccessibility:c,renderHelper:b,interactions:p,env:n,models:r});const{getViewState:D}=yh(b,Hf);g(()=>({getViewState:D,getChildrenObjects:()=>(e=>e.map(e=>{if("canReceive"in e){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:n=>t(n)&&e.canReceive(n)}}return e}))(b.getChildrenObjects()),updateActiveState(e){C(e)},activeCharts:m}),[])}}}export{Vf as default};
|